As I understand it, the purpose of the Source: header in an rpm spec file
is to specify a file (often a tar archive) that is used as the package payload. This source file is typically generated beforehand, perhaps by make, and then rpmbuild is executed afterwards.
I'm wondering if it's possible to cut make out of the picture and just
use rpmbuild. Can the source file be created as part of the rpmbuild process, perhaps in the %build or %install step in the spec file?
If so, what does one use as the Source: header? I can't just leave it
blank, because rpmbuild complains. Is there a way to tell rpm that the payload file is generated from within the spec file, and not supplied externally?
Just omit the "Source:" header entirely and do whatever is needed to create the build files in the %prep section.
See http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec for an
|Nodes:||10 (1 / 9)|