Библиотека сайта rus-linux.net
|Maximum RPM: Taking the Red Hat Package Manager to the Limit|
|Prev||Chapter 13. Inside the Spec File||Next|
The <string> should be a name that describes
the subpackage. This string is appended to the base package name to
produce the subpackage's name. For example, if a spec file contains a
name tag value of "foonly", and a
"%package doc" line, then the subpackage name will be
The %package directive plays another role in subpackage building. That role is to act as a place to collect tags that are specific to a given subpackage. Any tag placed after a %package directive will only apply to that subpackage.
In this heavily edited spec file segment, a subpackage called
bar has been defined. Later in the file is a
post-install script. Because it has subpackage
bar's name on the %post line,
the post-install script will be part of the
For more information on building subpackages, please see Chapter 18.