Saturday, February 13, 2010

Creating RPM packages

I created the rpm package for the package xye-0.9.1.tar.gz from http://sourceforge.net. Xye is an abstract puzzle game.

The packages rpm-build, rpmdevtools and rpmlint were installed. After installing the packages the command rpmdev-setuptree was executed to setup the RPM tree. I then proceeded with creating the RPM package.

yumdownloader --source xye [was executed to download the package.]
This package was then copied to ~/rpmbuild/SOURCES where the command rpmdev-newspec xye.0.9.1.tar.gz was executed to create the spec file. The newly created spec file was then copied to ~/rpmbuild/SPECS and renamed xye.spec.

Changes and lines were added to the spec file and then the command rmbuild -ba xye.spec was executed. There was success the binary files were created. The command rpmlint was executed on the following files in the directories ~/rpmbuild/SRPMS and ~/rpmbuild/RPMS/i386 with no errors.

Below is a link to the spec file

No comments:

Post a Comment