Maximum RPM: Taking the RPM Package Manager to the Limit | ||
---|---|---|
Prev | Appendix E. Concise Spec File Reference | Next |
The %files list indicates which files on the build system are to be packaged. The list consists of one file per line. If a directory is specified, by default all files and subdirectories will be packaged.
%files /etc/foo.conf /sbin/foo /usr/bin/foocmd |
The %files list can be made specific to a particular
subpackage by adding the subpackage name, and optionally, the
-n
option:
%files bar %files -n bar |
The subpackage name and usage of the -n
option must
match those defined with the %package directive.
The %files list can also use the contents of a file as
the list of files to be packaged. This is done by using the
-f
option, which is then followed by a filename:
%files -f files.list |