[GLLUG] rpmbuild can't fathom %Patch
Ken Smith
kens at kensnet.org
Fri Dec 20 15:28:53 UTC 2024
Hi all,
I'm trying to package a simple c programme as a .rpm but I'm getting
stuck with applying a patch.
If I take the patch commands out of my spec file and run rpmbuild -bi I
can see the .tar file of the source being unpacked and the compile
starts as expected. Obviously without the needed patches.
However, if I put "Patch0: rpm-patch" after the Source statements and
put "patch0: p1" after the %setup statement, I don't see the unpack of
the source take place, as I would expect when the %setup runs, and the
patch command following it fails because the files its expecting to
patch are not there.
I'm sure I've just missed some subtle incantation but I can't see what.
Any suggestions.....
Much appreciated.
Ken
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the GLLUG
mailing list