12. Dynamic file manifests

%files -f doc.lst doc

Specifying -f filename reads this package's, or subpackage's manifest from filename in addition to the file manifest that follows the %files section. The rest of this %files section may be empty, or it may contain ordinary file manifest declarations. In either case, additional file manifests are read from filename. A relative filename is interpreted relative to the build directory. filename is usually created by the build script, and uses the same format as file manifests. This is a means to dynamically create the list of files to put into a package, or a subpackage.