public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/man-pages] rawhide: Remove man(7) alternative from the package (#2404910)
@ 2026-06-24 10:52 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2026-06-24 10:52 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/man-pages
            Branch : rawhide
            Commit : d42c4808c1b1cdc64b0b697f5a67039d6bf61d25
            Author : Florian Weimer <fweimer@redhat.com>
            Date   : 2026-06-24T12:34:52+02:00
            Stats  : +3/-29 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/man-pages/c/d42c4808c1b1cdc64b0b697f5a67039d6bf61d25?branch=rawhide

            Log:
            Remove man(7) alternative from the package (#2404910)

Going forward, a functional man(7) page will be provided by the
groff-base package.

---
diff --git a/man-pages.spec b/man-pages.spec
index 16fc210..198a49c 100644
--- a/man-pages.spec
+++ b/man-pages.spec
@@ -88,13 +88,9 @@ rm man3/crypt{,_r}.3
 %install
 make -R install prefix=/usr DESTDIR=$RPM_BUILD_ROOT
 
-# The man.7 manual page is empty and references groff_man.7, but we
-# don't want to explicitly require installing groff to make the set
-# of man pages complete.
-#
-# rename files for alternative usage
-mv %{buildroot}%{_mandir}/man7/man.7 %{buildroot}%{_mandir}/man7/man.%{name}.7
-touch %{buildroot}%{_mandir}/man7/man.7
+# Per <https://bugzilla.redhat.com/show_bug.cgi?id=2404910>, man(7)
+# is provided by groff-base.
+rm %{buildroot}%{_mandir}/man7/man.7
 
 # Remove binaries we don't use and their man pages.
 rm %{buildroot}%{_bindir}/diffman-git
@@ -106,30 +102,8 @@ rm %{buildroot}%{_mandir}/man1/diffman-git.1
 rm %{buildroot}%{_mandir}/man1/pdfman.1
 rm %{buildroot}%{_mandir}/man1/sortman.1
 
-%pre
-# remove alternativized files if they are not symlinks
-[ -L %{_mandir}/man7/man.7.gz ] || rm -f %{_mandir}/man7/man.7.gz >/dev/null 2>&1 || :
-
-%post
-# set up the alternatives files
-%{_sbindir}/update-alternatives --install %{_mandir}/man7/man.7.gz man.7.gz %{_mandir}/man7/man.%{name}.7.gz 300 \
-    >/dev/null 2>&1 || :
-
-%preun
-if [ $1 -eq 0 ]; then
-    %{_sbindir}/update-alternatives --remove man.7.gz %{_mandir}/man7/man.%{name}.7.gz >/dev/null 2>&1 || :
-fi
-
-%postun
-if [ $1 -ge 1 ]; then
-    if [ "$(readlink %{_sysconfdir}/alternatives/man.7.gz)" == "%{_mandir}/man7/man.%{name}.7.gz" ]; then
-        %{_sbindir}/update-alternatives --set man.7.gz %{_mandir}/man7/man.%{name}.7.gz >/dev/null 2>&1 || :
-    fi
-fi
-
 %files
 %doc README Changes
-%ghost %{_mandir}/man7/man.7.gz
 %{_mandir}/man*/*
 
 %changelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-24 10:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 10:52 [rpms/man-pages] rawhide: Remove man(7) alternative from the package (#2404910) Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox