Linux/OSS : RPM spec files

This page is almost completely obsolete; I now use and contribute to the Fedora Project including EPEL. See the packages I maintain.

I'm a great fan of RPMs; the RPM system is a brilliant way to keep your system in order. In particular, on critical servers it's crucial that your system is organised and that the result of program/library updates is as predictable and reliable as possible, and that's where RPMs really come into their own.

Unfortunately, not all programs are distributed with RPM specification (spec) files. Since I like to keep my systems 'RPMified', I generally make spec files for programs that I install if they don't have them, so that I can compile/build them as RPMs. Therefore, I've put this page together in order to make available some of the spec files that I've created in the hope that they will be useful to others.

I don't claim that these spec files are the best or most perfect spec files. Some (e.g. PHP) are already made available from other sources (e.g. Red Hat) and my version is considerably less generic. But you might well find mine much simpler if your needs are similar to mine. All are tested on (and many are biased towards) Red Hat 7.2 and/or 7.3 and may need modifications for other systems.

Server daemons

PackageVersionSpec fileNotes
monit4.3monit.specService monitoring daemon.
Qpopper (standalone mode)4.0.5qpopper.specCan now build as non-root. Includes a SysV init file, config file and manpage support. Compiles by default as standalone server. Requires qpopper.init.
Qpopper (inetd mode)4.0.4qpopper-inetd.specAs above, but this spec file is better if you prefer to run Qpopper from inetd/xinetd - it compiles by default without the --enable-standalone option, and omits the SysV init/chkconfig stuff.
sophie (v3)3.03sophie3.specUse in conjunction with the Sophos spec below. You'll also need sophie.init.
sophie (v1)1.42sophie.specVersion of the above for the old (v1.x) series of sophie. You'll also need sophie.init.
Sophos Antivirus3.70sophos.specReplaces my libsavi spec; ideal for use with the sophie spec above. Includes the shared library, config file, virus data file, InterCheck daemon and Sophos Sweep. Latest version no longer needs an external sav.conf to build; it's generated automatically. The InterCheck support is not well-developed.

PHP and related packages

PackageVersionSpec fileNotes
PHP manual20031102phpmanual.specHandy for use with PHP Help, below. Update the version number to reflect the date you download the manual tarball.
PHP Help1.0.2phphelp.specSee my PHP Helppage for more details.
Zend Optimizer2.1.0ZendOptimizer.specPackages the binary Zend Optimizer for PHP into an RPM. Modify the code_ver parameter to suit your version of PHP.

Random userland applications

PackageVersionSpec fileNotes
Adobe Acrobat Reader5.0.7AcrobatReader.specMesses around a bit to achieve the required result including patching the install file so you'll need this patch. I've also made a small desktop file which will make it appear in the menus on many standard configurations. Check the spec file for some install paths you can alter, although you will have to update the patch too.
NB Red Hat 9 users may need to set the LANG variable in their environment to the non-UTF8 version, i.e. "en_GB" instead of "en_GB.UTF-8".
avifile - Win32 Codecs011002avifile-codecs.specA spec file to package the avifile Win32 binary codecs as an RPM
Blackdown Java2 Runtime Environment1.3.1j2re.specThe Blackdown documentation mentions RPM install packages, but I can't find one, so this spec file will turn the downloadable binary .tar.bz2 into an RPM.
compface1.4compface.spec
Deck-It WAP/WML Previewer1.2.4deckit.spec
GIMP WinICO plugin1.0.0gimp-winicon-plugin.spec
GPGME0.3.14gpgme.specHandy for use with the excellent mail client Sylpheed.
MPlayer - Win32 Codecs0.60MPlayer-codecs.specA spec file to package the MPlayer Win32 binary codecs as an RPM. Note that this is just the codecs - go here for MPlayer RPMs
Nserver1.0.0nserver.specEssential program for Nokia 9000/9110 owners
RealSystem Producer Basic8.51realproducer.specPackages the RealSystem Producer Basic binaries as an RPM. I've been a bit naughty here - you need to rename the downloaded file to be realproducer_8.51_linux.tar. This is mostly deprecated and replaced by Helix.
recover1.3recover.specAbsolutely essential tool! Install it now!
Alcatel SpeedTouch ADSL modem management module1.3.4speedmgmt.specPackages the binary module (ONLY!) from the Alcatel distribution. Ideal for use with the GPL SpeedTouch drivers.
TKDiff3.09tkdiff.specBrilliant visual diff program.
YAREC0.65yarec.specSound recording program.

Linux kernel

Note: these specs have not been maintained for a while, and also require that you build as root rather than a normal user - not so good. I may update them at some point.

PackageVersionSpec fileNotes
kernel2.4.20kernel-2.4.20.spec A sensible kernel spec file that isn't 150KiB (like Red Hat's). OK, so it's not as generic and there is a minor hack in there, but it works very well for me and others. ALSO! Includes (optional) support for Robert Love's pre-emptive kernel patch. I've set the revision number to 100 to avoid any possible conflicts with Red Hat-supplied kernels
kernel2.4.19kernel-2.4.19.specOlder version of the above
kernel2.4.18kernel-2.4.18.specOlder version of the above

Site Navigation