Tuesday, February 3, 2009

Made my first RPM

Took a long time.

First I tried using a template Spec file, but "rpmbuild" failed on "Source0". After considerable reading, troubleshooting and pondering, figured out the right URL format to allow download of source from the SourceForge site.

Then I was stuck in the middle of the %prep stage. Rpmbuild was trying to change the working directory to something based on the versioning scheme I used. However, since the original source uses a different version number, the build would stop. Once I used the same version number as the source, it worked.

The source RPM is here:filezilla-3.1.5.1-1.fc10.src.rpm

1 comment:

  1. Rahi, one thing you might want to do to improve the quality of your RPMs, and essential if you want to submit them to fedora is to use the versioning scheme of upstream. If they call it filezilla_3.2.0.tar.gz then you should call your package "filezilla" and give it a version number of "3.2.0". It makes it very complicated for other people to work with your rpms if you use non standard version numbers. If you need to put a version number for your own purposes, there is always the "Release:" tag

    ReplyDelete