Next Previous Table of Contents
Creating a spec file from scratch is a little more difficult because you will have to keep track of the version number and the application name. Because the source file is created from a combination of the application name and the version number you will have to make sure that these match the original source archive. To do this a good rule to follow is
{application name}-{version number}.tar.gzOnce this is accomplished you can fill in the other fields and then save the SPEC file as normal. This file will then need to be added to the tar.gz archive or put in the SPECS directory and the source put in the SOURCES directory.
The template specifications are as follows:
Once you have a SPEC file you can pass in local shell flags to the build process as follows:
% export LOCALFLAGS=--with-qt-dir=/usr/lib/qt-144
% rpm -ba somespec.spec
This will pass in any variables declared in LOCALFLAGS to the RPM. This is handy
if your system has libraries in messed up places and you want others to be able
to control where they are looking for the libraries.
Next Previous Table of Contents