#930 Tighten up the manpage section.
Merged 4 years ago by tibbs. Opened 4 years ago by tibbs.
tibbs/packaging-committee manpages  into  master

@@ -671,13 +671,28 @@ 

  

  == Manpages

  

- As man pages are the traditional method of getting help on a Unix system, packages SHOULD contain them for all executables. If some man pages are absent, packagers SHOULD work with upstream to add them. It is also occasionally possible to find pages created by other distributions, or to use the output of the help2man program; those are often useful as a starting point. When installing man pages, note that they should be installed uncompressed as the build system will compress them as needed. The compression method may change, so it is important to reference the pages in the %files section with a pattern that takes this into account:

+ As man pages are the traditional method of getting help on a Unix system,

+ packages SHOULD contain them for all executables.

+ If some man pages are absent,

+ packagers SHOULD work with upstream to add them.

+ It is also occasionally possible to find pages created by other distributions,

+ or to use the output of the `+help2man+` program;

+ those are often useful as a starting point.

+ When installing man pages,

+ note that RPM will re-compress them into its preferred format.

+ So the `+%files+` section MUST reference manpages

+ with a pattern that takes this into account:

  

  ....

  %files

  %{_mandir}/man1/foo.1*

  ....

  

+ Note also that files installed in `+%{_mandir}+`

+ are automatically marked by RPM as documentation.

+ Thus it is not necessary to use `+%doc+`.

+ 

+ 

  [#compiler]

  == Compiler

  

Use SHOULD/MUST language throughout, and require that manpages be referenced by pattern.

(The first commit converts to semantic linebreaks; look at the following commits to see the actual changes).

1 new commit added

  • Note explicitly that %doc is not needed for manpages.
4 years ago

Changes look good (haven't checked if it renders correctly).

I really do recommend the browser extension; it's possible to get an idea of the rendering (without the Fedora stylesheets and such, sadly) just by looking at the raw file.

1 new commit added

  • Render %files as code.
4 years ago

One interesting thing I've found is that RPM (via brp-compress) will re-compress manpages into its preferred format. So if you install a xz-compressed manpage, rpm will call unxz and then gzip the result. So I'm not sure if there is any point in stating "they SHOULD be installed uncompressed as the build system will compress them is needed". In reality it doesn't seem to matter at all whether they are compressed or not; you'll get .gz files out at the end.

1 new commit added

  • Note that RPM will recompress manpages.
4 years ago

Pull-Request has been merged by tibbs

4 years ago
Metadata