#2 Avoid including compression format in man page globs
Opened a month ago by feborges. Modified a month ago
rpms/ feborges/nmap man-page-globs  into  master

file modified
+12 -9

@@ -13,7 +13,7 @@ 

  Epoch: 2

  Version: 7.70

  #global prerelease TEST5

- Release: 8%{?dist}

+ Release: 9%{?dist}

  # Uses combination of licenses based on GPL license, but with extra modification

  # so it got its own license tag rhbz#1055861

  License: Nmap

@@ -210,23 +210,23 @@ 

  %doc docs/nmap.usage.txt

  %{_bindir}/nmap

  %{_bindir}/nping

- %{_mandir}/man1/nmap.1.gz

- %{_mandir}/man1/nping.1.gz

+ %{_mandir}/man1/nmap.1*

+ %{_mandir}/man1/nping.1*

  %{_datadir}/nmap

  

  %files ncat 

  %doc COPYING ncat/docs/AUTHORS ncat/docs/README ncat/docs/THANKS ncat/docs/examples

  %{_bindir}/nc

  %{_bindir}/ncat

- %{_mandir}/man1/nc.1.gz

- %{_mandir}/man1/ncat.1.gz

+ %{_mandir}/man1/nc.1*

+ %{_mandir}/man1/ncat.1*

  

  %if %{with_frontend}

  %files ndiff

  %{_bindir}/ndiff

  %{python2_sitelib}/ndiff.py

  %{python2_sitelib}/ndiff.py?

- %{_mandir}/man1/ndiff.1.gz

+ %{_mandir}/man1/ndiff.1*

  

  %files frontend -f zenmap.lang

  %config(noreplace) %{_sysconfdir}/pam.d/zenmap-root

@@ -238,13 +238,16 @@ 

  %{_datadir}/applications/nmap-zenmap.desktop

  %{_datadir}/icons/hicolor/256x256/apps/*

  %{_datadir}/zenmap

- %{_mandir}/man1/zenmap.1.gz

- %{_mandir}/man1/nmapfe.1.gz

- %{_mandir}/man1/xnmap.1.gz

+ %{_mandir}/man1/zenmap.1*

+ %{_mandir}/man1/nmapfe.1*

+ %{_mandir}/man1/xnmap.1*

  %{_datadir}/metainfo/zenmap.appdata.xml

  %endif

  

  %changelog

+ - Thu Sep 19 2019 Felipe Borges <feborges@redhat.com> - 2:7.70-9

+ - Avoid including compression format in man page globs

+ 

  * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:7.70-8

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

  

The recommendation in the Fedora packaging guidelines is to have:

%{_mandir}/man1/<command>.1*

which is more robust against future changes to the RPM scripts to
use different compression.

See https://docs.fedoraproject.org/en-US/packaging-guidelines/#_manpages

For context: the reason I came across this is that I am building
Flatpaks from RPMs[0] in the Fedora infrastructure and our tooling
is verypicky about this. GNOME Boxes depends on libvirt that needs
ncat, that's why I am building it. These changes don't introduce
regressions.

[0] https://docs.fedoraproject.org/en-US/flatpak/tutorial/

rebased onto b14505f

a month ago

Thank you! I pushed new changes now.

We don't need a build or anything, since the modulemd is going to build nmap from the source itself.