Is there a kind of "include" directive in RPM spec? I couldn't find an answer by googling.
Motivation: I have a RPM spec template which the build process modifies with the version, revision and other build-specific data. This is done by sed
currently. I think it would be cleaner if the spec would #include
a build-specific definitions file, which would be generated by the build process, so I don't need to search and replace in the spec.
If there is no include
, is there an idiomatic way to do this (quite common, I believe) task?
You can include the
*.inc
files from the SOURCES directory (%_sourcedir
):In this way they will go automatically into SRPMS.