rpm: correct man page entry in files section
authorDusty Mabe <dusty@dustymabe.com>
Mon, 30 Sep 2019 02:58:19 +0000 (22:58 -0400)
committerDusty Mabe <dusty@dustymabe.com>
Thu, 10 Oct 2019 00:41:30 +0000 (20:41 -0400)
Code review comments [1]:
- Man pages should not be marked as %doc
- man pages extension should be globbed as the compression may change in the future.
- the man page should be installed unzipped. The compression will be handled by the rpm build process.
- %doc /usr/share/man/man1/%{name}.1.gz → %{_mandir}/man1/%{name}.1*

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1750179#c2

Signed-off-by: Dusty Mabe <dusty@dustymabe.com>
redhat/git-remote-gcrypt.spec

index 2813fd678f5a61bafebc2b43ba00b258a4183998..cba844e12e1e4768293ea9eea085bba433fac33c 100644 (file)
@@ -36,7 +36,7 @@ export prefix="%{_prefix}"
 
 %files
 %{_bindir}/%{name}
-%doc /usr/share/man/man1/%{name}.1.gz
+%{_mandir}/man1/%{name}.1*
 
 %changelog