public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/man-pages] rawhide: Switch from 'make install' to 'make install-man'
@ 2026-10-31  8:19 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-10-31  8:19 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/man-pages
            Branch : rawhide
            Commit : 767ceb6cafabf053bd8a8d25b979800048d93f0a
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-28T21:12:48+02:00
            Stats  : +2/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/man-pages/c/767ceb6cafabf053bd8a8d25b979800048d93f0a?branch=rawhide

            Log:
            Switch from 'make install' to 'make install-man'

Use the 'install-man' target instead of 'install' to skip installing
project-internal binaries ('diffman-git', 'mansect', 'pdfman',
'sortman') entirely. This is cleaner than installing everything and
removing the binaries afterward, and avoids having to track new
upstream utilities in future rebases.

The man1 pages for these utilities are still installed by the
'install-man' target, so they still need explicit removal.

Co-Authored-By: Claude AI <noreply@anthropic.com>

---
diff --git a/man-pages.spec b/man-pages.spec
index d307263..90ec611 100644
--- a/man-pages.spec
+++ b/man-pages.spec
@@ -86,17 +86,13 @@ rm man3/crypt{,_r}.3
 # nothing to build
 
 %install
-make -R install prefix=/usr DESTDIR=$RPM_BUILD_ROOT
+make -R install-man prefix=/usr DESTDIR=$RPM_BUILD_ROOT
 
 # 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
-rm %{buildroot}%{_bindir}/mansect
-rm %{buildroot}%{_bindir}/pdfman
-rm %{buildroot}%{_bindir}/sortman
+# Remove man pages for project-internal utilities not shipped in the package.
 rm %{buildroot}%{_mandir}/man1/mansect.1
 rm %{buildroot}%{_mandir}/man1/diffman-git.1
 rm %{buildroot}%{_mandir}/man1/pdfman.1

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

only message in thread, other threads:[~2026-10-31  8:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-31  8:19 [rpms/man-pages] rawhide: Switch from 'make install' to 'make install-man' Michal Schorm

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