Let us suppose that you have a program which you would like to turn in to an RPM. You might need to make some minor changes to the program to customize it for Red Hat Linux. Once you have made any necessary changes, you will need to generate one or more patches for RPM to use.
You can use
gendiff to make the patches for your RPM. Just make
sure that for every file
foo you modify, you keep an original version
of that file under a name like
foo.dist. If you have done this, and
your sources are in the directory
newpkg-1.7, just type ``
newpkg-1.7 .dist > mypatch'' and you'll get a patch you can use (with
-p1 in this case) in your RPM.
If you have made two independent changes (unrelated changes with the
additional property that neither affects a file affected by the other) you
can rename original files
foo affected by the first change
foo.dist-1 and files
bar affected by the second
then you can type ``
gendiff newpkg-1.7 .dist-1 > mypatch-1'' and
gendiff newpkg-1.7 .dist-2 > mypatch-2'' to obtain two separate
patches with very little work.
Then just create a specification file according to the directions in the RPM
HOWTO, which gives numerous examples at varying levels. Note that the
Icon field does not really need to be filled in; if it is left blank,
glint will use a default ``package'' icon.