| Maximum RPM: Taking the Red Hat Package Manager to the Limit | ||
|---|---|---|
| Prev | Appendix E. Concise Spec File Reference | Next |
This section lists the various directived used in the %files lists.
This section lists those directives that are related to files.
The %doc directive flags the filename(s) that follow as being documentation.
%doc README
|
See also: the section called The %doc Directive in Chapter 13.
The %config directive is used to flag the specified file as being a configuration file.
%config /etc/fstab
|
See also: the section called The %config Directive in Chapter 13.
The %attr%attr directive has the following format:
%attr(<mode>, <user>, <group>) file
|
%attr may be replaced with a dash:
%attr(755, root, -) foo.bar
|
See also: the section called The %attr Directive in Chapter 13.
The %verify
owner — The file's owner.
group — The file's group.
mode — The file's mode.
md5 — The file's MD5 checksum.
size — The file's size.
maj — The file's major number.
min — The file's minor number.
symlink — The file's symbolic link string.
mtime — The file's modification time.
If the keyword not precedes the list, every attribute except those listed will be verified.
%verify(mode md5 size maj min symlink mtime) /dev/ttyS0
|
See also: the section called The %verify Directive in Chapter 13.
The %docdir in this directory (and any subdirectories) will automatically be marked as documentation.
See also: the section called The %docdir Directive in Chapter 13.
The %dir
%dir /usr/blather
|
See also: the section called The %dir Directive in Chapter 13.
| Главная |