Reading file list from .spec files in Python

Stuart D. Gathman stuart at
Fri Jan 23 15:21:29 UTC 2015

On Fri, 23 Jan 2015, Pavel Fedin wrote:

>> The %files list is dynamic, and can even be computed in %build (often
>> done for python packages).
> I have re-read RPM manual. Are you talking about %file -f blah here ? If
> so, this is not a problem because cygport also supports picking up file
> lists. The only thing to do would be to filter out directives like %mode,
> %doc, etc.

Yes, but also wildcards in the filenames expand according to whatever
was installed in the %install section.  And, just to tweak your nose,
the filenames contain macros, like %{_mandir}, and the macros can
be programmatically defined (via mini embedded shell script) when the spec file is run.

More information about the Rpm-list mailing list