Preamble items of a spec file
Use the following directives in the Preamble section of the RPM spec file.
| Directive | Definition |
|---|---|
|
|
A base name of the package that must match the |
|
|
An upstream version number of the software. |
|
|
The number of times the version of the package was released. Set the initial value to |
|
|
A brief one-line summary of the package. |
|
|
A license of the software being packaged. The exact format for how to label the |
|
|
A full URL for more information about the software, for example, an upstream project website for the software being packaged. |
|
|
A path or URL to the compressed archive of the unpatched upstream source code. This link must point to an accessible and reliable storage of the archive, for example, the upstream page, not the packager’s local storage. You can apply the |
|
|
A name of the first patch to apply to the source code, if necessary. You can apply the You can apply the patches individually by using the |
|
|
An architecture that the software will be built for. If the software is not architecture-dependent, for example, if you wrote the software entirely in an interpreted programming language, set the value to |
|
|
A comma- or whitespace-separated list of packages required to build the program written in a compiled language. There can be multiple entries of |
|
|
A comma- or whitespace-separated list of packages required by the software to run once installed. There can be multiple entries of |
|
|
If a piece of software cannot operate on a specific processor architecture, you can exclude this architecture in the |
|
|
A comma- or whitespace-separated list of packages that must not be installed on the system in order for your software to function properly when installed. There can be multiple entries of |
|
|
The
|
|
|
If you add the |