From Fedora Project Wiki
(Created page with "== Tags and Sections == * The <code>BuildRoot:</code> tag is unnecessary. * The <code>Group:</code> tag is unnecessary. * The <code>%clean</code> section is unnecessary. * It ...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
== Tags and Sections ==
 
== Tags and Sections ==
* The <code>BuildRoot:</code> tag is unnecessary.
+
* The <code>Copyright:</code>, <code>Packager:</code>, <code>Vendor:</code> and <code>PreReq:</code> tags MUST NOT be used.
 +
* The <code>BuildRoot:</code> tag and <code>%clean</code> section SHOULD NOT be used.
 +
* The contents of the buildroot SHOULD NOT be removed in the first line of <code>%install</code>.
 +
* The <code>Summary:</code> tag value SHOULD NOT end in a period.
 +
* The <code>Source:</code> tags document where to find the upstream sources for the package.  In most cases this should be a complete URL to the upstream tarball.  For special cases, please see the [[Packaging:SourceURL|SourceURL Guidelines]].
 
* The <code>Group:</code> tag is unnecessary.
 
* The <code>Group:</code> tag is unnecessary.
* The <code>%clean</code> section is unnecessary.
 
* It is not necessary to remove the contents of the buildroot as the first line of <code>%install</code>.
 
* The <code>Packager:</code> tag should not be used.  If you need to include information about the packager in the rpms ''you'' built, define the <code>%packager</code> macro in your <code>~/.rpmmacros</code> file instead.
 
* The <code>Vendor:</code> tag should not be used.
 
* The <code>Copyright:</code> tag should not be used.  Use the <code>License</code> tag instead, as detailed in [[Packaging:LicensingGuidelines]] . Contact the upstream author if there is any doubt about what license the software is distributed under.
 
* The <code>Summary:</code> tag value should not end in a period.
 
* The <code>PreReq:</code> tag should not be used.
 
* The <code>Source:</code> tags document where to find the upstream sources for the package.  In most cases this should be a complete URL to the upstream tarball.  For special cases, please see the [[Packaging:SourceURL|SourceURL Guidelines]].
 

Latest revision as of 16:23, 3 October 2016

Tags and Sections

  • The Copyright:, Packager:, Vendor: and PreReq: tags MUST NOT be used.
  • The BuildRoot: tag and %clean section SHOULD NOT be used.
  • The contents of the buildroot SHOULD NOT be removed in the first line of %install.
  • The Summary: tag value SHOULD NOT end in a period.
  • The Source: tags document where to find the upstream sources for the package. In most cases this should be a complete URL to the upstream tarball. For special cases, please see the SourceURL Guidelines.
  • The Group: tag is unnecessary.