My first RPM
As I said last week, I packaged the PHP MDB2 driver for PostgreSQL as an RPM for Fedora 8 and 9. Actually, this is my first self-made RPM ever and I’m quite happy with it.
I learned my way trough SPEC files and rpmbuild thanks to this excellent documentation on the wiki and of course by looking at other SPEC files…I love Open Source for that!
If I don’t detect any bugs, I’ll try to push this package in Fedora and become an active contributor
Ah, my homemade Hackergotchi was also accepted. I now have a face on the Planet. Yes, it’s scary.
April 29th, 2008 at 5:55 pm
Maybe you should shrink it down a touch for the hackergotchi. Unless you want your head to run over into the content. Which might be pretty cool too.
April 29th, 2008 at 5:57 pm
I know, I know. The problem is that the picture for the planet is not hosted by me. It has to be 80×80, but here it’s 180×180 due to a typo I made before sending it. I sent a mail to the admin to correct it and apologize
April 29th, 2008 at 6:01 pm
Good to see another contributor stepping up. Congrats on your first package.
April 29th, 2008 at 8:22 pm
Just a few tips on what have bitten me on my first RPM packages.
1) check out if the fedora compilation flags are being respected. I believe that usually a CFLAGS=%{optflags} before the configure line would do the job. But some makefiles can be tricky, one way out is setting the CC to “gcc %{optflags}”
2) Make sure created directories belong to the package.
3) Always remember to use the rpmlint tool on the created rpm files.
Good luck.
April 30th, 2008 at 9:17 pm
Thanks for the tip on rpmlint