Tuesday, October 12, 2010

SBR600 - Building a package from a new spec file

The software I chose to build is "dosbox" which is a DOS emulator supporting graphic and sound for old DOS applications.
To create a package from source code, rpmdevtools, which contains a bunch of rpm-related commands, is required.

root# yum install rpmdevtools

First of all, I needed the source rpm file of the "dosbox" application.

user# yumdownloader --source dosbox

And then installed the source rpm file.

user# rpm -i dosbox-0.74-1.fc13.src.rpm

After installing it, there were a spec file in the SPEC directory and 3 files, dosbox- 0.74.tar.gz, dosbox.desktop, dosbox.png in the SOURCES directory.

Renamed the existing spec file and created a new spec file using the command:

user# rpmdev-newspec dosbox


Before working on the spec file, I installed the dependencies for the dosbox such as:
libpng-devel, SDL-devel, SDL_net-devel, SDL_sound-devel, desktop-file-utils, alsa-lib-devel, and libGLU-devel.

Then modified the dosbox.spec file and ran the command "rpmbuild -ba dosbox.spec" to create a new rpm package from souces but the following errors were generated at the end.

Checking for unpackaged file(s):
/usr/lib/rpm/check-files /home/jaewoo/rpmbuild/BUILDROOT/dosbox-0.74-1.fc13.x86_64


error: Installed (but unpackaged) file(s) found:
/usr/bin/dosbox
/usr/share/man/man1/dosbox.1.gz


RPM build errors:

Installed (but unpackaged) file(s) found:

/usr/bin/dosbox

/usr/share/man/man1/dosbox.1.gz


Now I'm working on how to fix the problem

No comments:

Post a Comment