Use patched files in RPMs   November 17th, 2007

see Packaging software with RPM

diff -uNr the_package/the_file \
the_package/ > the_file.patch

copy the patch file to /usr/src/redhat/SOURCES

The spec file has those lines:

After Sources:
Patch0: the_file.patch

After %setup, before %build

%patch -p1

To get your new version from the original file:
patch slapd.conf.template \
../../slapd.conf.template.patch \

Tags: , ,
This entry was posted on Saturday, November 17th, 2007 at 11:29 pm and is filed under Software Development. You can follow any responses to this entry through the RSS 2.0 feed.Both comments and pings are currently closed.

No Responses