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.

Edit: someone already had the same idea :)

This entry was posted in Fedora. Bookmark the permalink.

5 Responses to My first RPM

  1. Greg DeK says:

    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. :)

  2. Steven says:

    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 :)

  3. Rahul Sundaram says:

    Good to see another contributor stepping up. Congrats on your first package.

  4. Victor Bogado says:

    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. :-)

  5. Steven says:

    Thanks for the tip on rpmlint :)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>