RPM Packaging

I’ve been occasionally making RPM packages, but I’ve only really followed the method of packaging stuff that came from a tar-ball that needed compiling. Yesterday at work I needed to package a static-binary for some hardware infomation gathering program we use here, and for the life of me I couldn’t find any documentation on how to do it easily for such files. All the howto’s (and even the bloody book I spent all my cash on) didn’t seem to be dispensing much wisdom on it.

After digging through some of Dag Wieers .spec files, I managed to find that using install to install the files from $RPM_BUILD_DIR to $RPM_BUILD_ROOT in the %install stanza of the spec file seems to be the goods (well atleast on my laptop running FC1).

One Response to “RPM Packaging” »»

  1. Comment by David Baker | 03/11/08 at 3:53 pm

    Had the same issue while trying to build an RPM to distribute some PHP source code.
    No need for any of those compiling options.
    http://linux.dtbaker.com.au/post/creating_rpms_to_distribute_php_code.html

Leave a Reply »»

I'll protect you: the voluminous Wordpress Hash-cash!