Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://uneex.mithril.cs.msu.su/static/MaximumRPMBook/max-rpm-html/s1-rpm-specref-package.html
Дата изменения: Mon Sep 26 12:35:47 2011 Дата индексирования: Tue Oct 2 01:15:06 2012 Кодировка: |
Maximum RPM: Taking the Red Hat Package Manager to the Limit | ||
---|---|---|
Prev | Appendix E. Concise Spec File Reference | Next |
The %package directive is used to control the creation of subpackages. The subpackage name is derived from the first name tag in the spec file, followed by the name specified after the %package directive. Therefore, if the first name tag is:
Name: foo |
and a subpackage is defined with the following %package directive:
%package bar |
the subpackage name will be foo-bar.
See also: the section called The Lone Directive: %package in Chapter 13.
The -n option is used to change how RPM derives the subpackage name. When the -n option is used, the name following the %package directive becomes the complete subpackage name. Therefore, if a subpackage is defined with the following %package directive:
%package -n bar |
the subpackage name will be bar.
See also: the section called -n <string> — Use <string> As the Entire Subpackage Name in Chapter 13.