Archive for the ‘Linux’ Category

Sadly, back to chromium

Wednesday, May 26th, 2010

My day job does not involve Linux or programming, so I usually go around with a netbook as my primary machine.
Sadly, on F13 (which I installed gracefully since beta) Firefox has some performance issue, such as to force me to Chromium. So no weave anymore (weave is awesome) and some support less for the FLOSS world.

Hope Firefox catch back the performance crown, or anyway improve it to be good enough. In the meantime, Chromium is my platform.

Surfing

Tuesday, January 12th, 2010

Sometimes I get lost in the Web, just following links after link for new ideas, following a vague plan of action, multiplying tabs and relying on browser’s session restore capabilities and tab and bookmark syncing.
Tonight, after a full day of work, the gym, the dinner and some chatting with my lovely wife, I had one of this session on the sofa (thanks to netbook magic, the fully working Samsung NC10 with F12 and about 4hrs battery life..).
Anyway, I discovered some interesting projects. the first is a Django powered software forge (think sourceforge plus trac): basie is a MIT licensed software which is growing up from an academic world, and I shall admit to find it intriguing, and an interesting candidate to the trac position.
Next one is the Python Buildhaus Project, which goal is to setup a build system for Python packages against multiple architectures / OSes / python environments: infrastructure will be provided by the Snakebite project, which goal is to make available as many platforms as possible to test open source software builds.
Finally, a nice old blog entry regarding TDD AntiPatterns.
Lot of stuff. Will keep an eye on those (and perhaps contribute to basie, who knows…).

Java 6 update 17 on Fedora 12

Friday, January 8th, 2010

A nice reader asked about the spec file for update 17 of the Sun Java virtual machine. I already had updated the spec file, which you can find here and then follow my previous post.
Right now, I am using Chromium (open source version of Google Chrome) and I will fix the Java plugin for that.
I Promise!

Building RPMs, part two – Pinax

Sunday, August 23rd, 2009

Ok, so now we have the environment complete. First thing I want to package is Pinax. This is a nice little collection of Django applications which add some required stuff for most of web based applications.

On the link above you will find all the info for the project, so let’s start. We will build the release version of Pinax (for development versions I have a side project, which I will show you at right time). Please note – all the release used are current for the day this entry has been written.

Download pinax version 0.5.1 from here and put it in rpmbuild/SOURCES. After that:

cd ~/rpmbuild/SPECS

rpmdev-newspec -t python pinax

Rpmdev-newspec creates the skeleton for a new spec file named pinax. The -t python option tells to create a skeleton with some python definitions in it (python definitions are laid out according to this wiki entry on the Fedora Project Wiki); you can see which skeletons are available looking in ‘\etc\rpmdevtools’.

Why Python? Well, my guess is that being DJango a Python framework, you know….

Let’s look at the spec file and put some info into that. You can use any editor for the file (I use geany, fast and lightweight).

# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c “from distutils.sysconfig import get_python_lib; print get_python_lib()”)}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c “from distutils.sysconfig import get_python_lib; print get_python_lib(1)”)}

Name: pinax
Version:
Release: 1%{?dist}
Summary:

Group: Development/Languages
License:
URL:
Source0:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:
BuildRequires: python-devel

I am assuming that Pinax is a pure python package, so we use the sitelib for noarch packages (first line of the two provided). After that we have to insert some descriptive info of the Pinax project.

But, of course, before going ahead we must check some of the Pinax dependencies.

Continuing tomorrow…

Java 1.6u15 installation in Fedora 11

Friday, August 7th, 2009

Sometimes life is strange. Just 4 days ago I was releasing the spec file for Java 1.6u14, and now Sun releases the new patched vm. Anyway, go grab the new jdk bin package (check for update 15) and download the spec file from here . Follow the instructions from previous post and all should be ok.

Just in case, the older spec file can be found here .

A sidenote – the behaviour here is that fixes of major version will update the base package. So 1.6u15 will just upgrade 1.6u14. If you wish something different, let me know. But this is JPackage standard.

Update – please remove previous version of packages. I am studying the update path + alternatives issues which emerged.