[argyllcms] Re: DispcalGUI v0.2.5b Ubuntu package

Ok, the x86 Ubuntu package is now in the download section. And here is the way I created it, which should also be applicable when building on x64. Basically I created an RPM, just as on the other platforms, and then used alien to convert it.

First, we need some development files.

sudo apt-get install libxinerama-dev libxrandr-dev libxxf86vm-dev
sudo apt-get install python-all-dev

Then extract the dispcalGUI-x.x.x source, cd into the toplevel dir. Check if the binary extension module builds:

./setup.py build_ext

If this runs through without errors, the rest should be painless as well. Next we install alien:

sudo apt-get install alien

Then, we set up an empty rpm db which is just used so the rpm build runs through.

sudo rpmdb --initdb

And build the rpm:

cp misc/setup.ubuntu9.cfg setup.cfg
./setup.py bdist_rpm --use-distutils 2>&1 | tee rpm.log

The rpm should appear in the "dist" subfolder. Convert it using:

cd dist
sudo alien -c -g -k dispcalGUI-0.2.5b2-1.<arch>.rpm

which will create two directories: One the original RPM unpacked (dispcalGUI-0.2.5b2.orig), and one containing the files for the DEB (dispcalGUI-0.2.5b2). Inside the latter, there should be a "debian" subdirectory. Edit the file 'control' in there, and change the line which starts with "Depends:" to: Depends: ${shlibs:Depends}, python-wxgtk2.8

You might also want to edit the changelog and enter packager's name.
Now build the DEB:

cd dispcalGUI-0.2.5b2
sudo ./debian/rules binary

Should yield a deb package, and we are done :)

To automate this procedure, I'm going to add some code to setup.py, so in the future instead of going through those steps one will just have to install the dev files and then e.g. 'sudo ./setup.py bdist_deb'.

Regards,

Florian Höch


Thanks for the offer, I'll let you know what'll be needed once I find a good way to get started. Current results for the x86 package look promising, mostly because I let alien do all the work of creating the .deb (from the Fedora 10 RPM).

Regards,

Florian Höch

Louis Gardent schrieb:
i am ubuntu jaunty 64 equiped. So if you want me to try out building an
amd64 package, just tell me what to do ;)

Louis Gardent


Other related posts: