C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
The Preamble
 

The Preamble

This section outlines the tags that comprise a spec file's preamble.

Package Naming Tags

This section outlines the tags that are used to name a package.

The Name: Tag

The Name: tag is used to define the name of the software being packaged.
Name: cdplayer
          

See also: the section called The name Tag in Chapter 13.

The Version: Tag

The Version: tag defines the version of the software being packaged.
Version: 1.2
          

See also: the section called The version Tag in Chapter 13.

The Release: Tag

The Release: tag can be thought of as the package's version.
Release: 5
          

See also: the section called The release Tag in Chapter 13.

Descriptive Tags

%description Directive -- Describe the packages intended use.

The %description presented to user as-is, with no formatting done by RPM. Blank lines in the descriptive text denote paragraphs.
%description
 It slices!
 It dices!
 It's a CD player app that can't be beat.


          

The %description tag can be made specific to a particular subpackage by adding the subpackage name, and optionally, the -n option:
%description bar

%description -n bar
          

The subpackage name and usage of the -n option must match those defined with the %package directive.

See also: the section called The %description Tag in Chapter 13.

The Summary: Tag

The Summary: tag is used to define a one-line description of the packaged software.
Summary: A CD player app that rocks!
          

See also: the section called The summary Tag in Chapter 13.

The Copyright: Tag

The Copyright: tag is used to define the copyright terms applicable to the software being packaged.
Copyright: GPL
          

See also: the section called The copyright Tag in Chapter 13.

The Distribution: Tag

The Distribution: tag is used to define a group of packages, of which this package is a part.
Distribution: Doors '95
          

See also: the section called The distribution Tag in Chapter 13.

The Icon: Tag

The Icon: background of the icon should be transparent.
Icon: foo.xpm
          

See also: the section called The icon Tag in Chapter 13.

The Vendor: Tag

The Vendor: tag is used to define the name of the entity that is responsible for packaging the software.
Vendor: White Socks Software, Inc.
          

See also: the section called The vendor Tag in Chapter 13.

The URL: Tag

The URL:
URL: http://www.gnomovision.com/cdplayer.html
          

See also: the section called The url Tag in Chapter 13.

The Group: Tag

The Group: tag is used to group packages together by the types of functionality they provide.
Group: Applications/Editors
          

See also: the section called The group Tag in Chapter 13.

The Packager: Tag

The Packager: tag is used to hold the name and contact information for the person or persons who built the package.
Packager: Fred Foonly <fred@gnomovision.com>
          

See also: the section called The packager Tag in Chapter 13.

Dependency Tags

The Provides: Tag

The Provides: tag is used to specify a "virtual package" that the packaged software makes available when it is installed.
Provides: module-info
          

See also: the section called The provides Tag in Chapter 13.

The Requires: Tag

The Requires:
Requires: playmidi
          

<, >, =, >=, or <=
          

Requires: playmidi >= 2.3
          

If the Requires: tag needs to perform a comparison against a serial numbered defined with the Serial: tag, then the proper format would be:
Requires: playmidi =S 4
          

See also: the section called The requires Tag in Chapter 13.

The Serial: Tag

The Serial:
Serial: 4
          

See also: the section called The serial Tag in Chapter 13.

The Conflicts: Tag

The Conflicts: tag is used to alert RPM to the fact that the package is not compatible with other packages.
Conflicts: playmidi
          

<, >, =, >=, or <=
          

Conflicts: playmidi >= 2.3
          

If the Conflicts: tag needs to perform a comparison against a serial numbered defined with the Serial: tag, then the proper format would be:
Conflicts: playmidi =S 4
          

See also: the section called The conflicts Tag in Chapter 13.

The AutoReqProv: Tag

The AutoReqProv:
AutoReqProv: no
          

(The number 0 may be used instead of no) Although RPM defaults to performing automatic dependency processing, the effect of the AutoReqProv: tag can be reversed by changing no to yes. (The number 1 may be used instead of yes)

See also: the section called The autoreqprov Tag in Chapter 13.

Architecture- and Operating System-Specific Tags

The ExcludeArch: Tag

The ExcludeArch: tag is used to direct RPM to ensure that the package does not attempt to build on the excluded architecture(s).
ExcludeArch: sparc alpha
          

See also: the section called The excludearch Tag in Chapter 13.

The ExclusiveArch: Tag

The ExclusiveArch: tag is used to direct RPM to ensure the package is only built on the specified architecture(s).
ExclusiveArch: sparc alpha
          

See also: the section called The exclusivearch Tag in Chapter 13.

The ExcludeOs: Tag

The ExcludeOs: tag is used to direct RPM to ensure that the package does not attempt to build on the excluded operating system(s).
ExcludeOS: linux irix
          

See also: the section called The excludeos Tag in Chapter 13.

The ExclusiveOs: Tag

The ExclusiveOs: tag is used to denote which operating system(s) should only be be permitted to build the package.
ExclusiveOS: linux
          

See also: the section called The exclusiveos Tag in Chapter 13.

Directory-related Tags

The Prefix: Tag

The Prefix: where the package is installed.
Prefix: /opt
          

See also: the section called The prefix Tag in Chapter 13.

The BuildRoot: Tag

The BuildRoot:
BuildRoot: /tmp/cdplayer
          

See also: the section called The buildroot Tag in Chapter 13.

Source and Patch Tags

The Source: Tag

The Source: tag is used to define the filename of the sources to be packaged. When there is more than one Source: tag in a spec file, each one must be numbered so they are unique, starting with the number 0. When there is only one tag, it does not need to be numbered.

Source0: ftp://ftp.gnomovision.com/pub/cdplayer-1.0.tgz
Source1: foo.tgz
          

See also: the section called The source Tag in Chapter 13.

The NoSource: Tag

The NoSource: correspond to the numbers following the Source: tags that are to be excluded from packaging.
NoSource: 0, 3
          

See also: the section called The nosource Tag in Chapter 13.

The Patch: Tag

The Patch: tag is used to define the name of a patch file to be applied to the package's sources. When there is more than one Patch: tag in a spec file, each one must be numbered so they are unique, starting with the number 0. When there is only one tag, it does not need to be numbered.
Patch: cdp-0.33-fsstnd.patch
          

See also: the section called The patch Tag in Chapter 13.

The NoPatch: Tag

The NoPatch: correspond to the numbers following the Patch: tags that are to be excluded from packaging.
NoPatch: 2 3
          

See also: the section called The nopatch Tag in Chapter 13.

Главная