Adding a helper file to an RPM
Posted on 2004-11-29
I am trying to create an RPM for the Emulex 2.01g drivers for our kernel. The base RPM works fine, but I am now trying to include a helper script in the RPM. This script lives outside the driver source, as I wan't to preserve the emulex tarball.
I tried including
in my spec file, but it died because it tries to unpack all source files during the RPM creation.
I then tried just adding the file where I do the other installs, but instead of doing
install -m $RPM_BUILD_ROOT/blah
install -m /usr/src/redhat/SOURCES/updateinitrd.sh /usr/local/bin
This works fine, and the file then appears in my binary RPM and is installed at installation time.
The problem I have is that the file is _NOT_ included in the resulting source RPM, so rebuilding the source RPM means finding this file and manually copying it into place.
Can anyone advise a solution for this ?