October 17, 2010
Oraje Applet 0.4, Gettext and Packaging Frustrations

Yes, all my frustrations are properly packaged :). But let’s start from the beginning.

About one week ago I almost finished gettext support for my weather applet for Gnome. It wasn’t as difficult as I thought it would be, and after adding the project to Transifex, I got the first translations very soon.

It’s surprising. I think the translation isn’t easy at all, mainly because of the weather conditions. Even in my mother tongue, some of the translations in other weather applications sound weird to me, because that’s not the way it’s said in my region (for example: aguaceros).

With the UI translated to Spanish, Polish, Galician, French and Italian, today I decided to do a release, and I wanted to make packages available for Fedora.

Currently I’ve used Python distutils to install from sources with more or less success (I’m a newbie too), and packaging it for Fedora has been quite difficult… because I’m not sure of doing it right.

First of all I was installing application data in the wrong place, and I’ve realized it because I’ve started to use a x86_64 laptop for first time. I wonder how many times I’ve been that 32-bit-centrist.

It was easy to fix, but I still have a problem with the server file for Bonobo, that it’s supposed to be installed on /usr/lib/bonobo/servers. But, how can I make a noarch package that must install a file in a different place depending on the architecture?

Finally I’ve chosen to install it on $PREFIX/lib/..., regardless the architecture (Bonobo finds it anyway). rpmlint complies, but I can’t see a better way to do it.

Another issue is Fedora 12: the application was developed almost 100% in Fedora 12, but now the package doesn’t build on Koji (it does for Fedora 13 and Fedora 14), and after some time looking at the problem, I must confess I’m clueless and already too tired to keep trying.

So I’ve setup a repository for Fedora 13 & 14, although there’s no reason to not use the applet in Fedora 12 (it works, I swear!).

Btw, I was expecting to not find the Bonobo interface for Gnome panel in Gnome 2.32 (bug 572131), but I was apparently wrong. Ah, too much confusion for a single hacking day!

Blog comments powered by Disqus