public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/man-pages] rawhide: Remove man(7) alternative from the package (#2404910)
Date: Wed, 24 Jun 2026 10:52:47 GMT	[thread overview]
Message-ID: <178229836733.1.3328165287932842482.rpms-man-pages-d42c4808c1b1@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-06-24 10:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178229836733.1.3328165287932842482.rpms-man-pages-d42c4808c1b1@fedoraproject.org \
    --to=fweimer@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox