Hello community,

here is the log from the commit of package man-pages for openSUSE:Factory 
checked in at 2019-12-11 12:03:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/man-pages (Old)
 and      /work/SRC/openSUSE:Factory/.man-pages.new.4691 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "man-pages"

Wed Dec 11 12:03:28 2019 rev:134 rq:754699 version:5.04

Changes:
--------
--- /work/SRC/openSUSE:Factory/man-pages/man-pages.changes      2019-12-02 
11:36:41.538439861 +0100
+++ /work/SRC/openSUSE:Factory/.man-pages.new.4691/man-pages.changes    
2019-12-11 12:04:23.200758991 +0100
@@ -1,0 +2,10 @@
+Wed Dec  4 22:09:23 CET 2019 - Matej Cepl <[email protected]>
+
+- Set up %{_mandir}/man7/man.7%{?ext_man} as an alternative for
+  the man-page specific document. The other package providing
+  this man page is mandoc, which is meant as an alternative
+  lightweight faster replacement for man-pages package. It does
+  not have that many dependencies, it is written in C, see
+  http://mandoc.bsd.lv/ for more.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ man-pages.spec ++++++
--- /var/tmp/diff_new_pack.yCBhhe/_old  2019-12-11 12:04:23.972758667 +0100
+++ /var/tmp/diff_new_pack.yCBhhe/_new  2019-12-11 12:04:23.976758665 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package man-pages
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
 Summary:        Linux  Manual Pages
 License:        BSD-3-Clause AND GPL-2.0-or-later AND MIT
 Group:          Documentation/Man
-Url:            http://www.kernel.org/doc/man-pages/download.html
+URL:            https://www.kernel.org/doc/man-pages/download.html
 #Git-Clone:    git://git.kernel.org/pub/scm/docs/man-pages/man-pages
 #Git-Web:      http://git.kernel.org/cgit/docs/man-pages/man-pages.git/
 Source:         
https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/snapshot/man-pages-%{version}.tar.gz
@@ -33,9 +33,11 @@
 # [bsc#1154701]
 Patch6:         man-pages-tcp_fack.patch
 BuildRequires:  fdupes
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildArch:      noarch
+BuildRequires:  update-alternatives
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Supplements:    man
+BuildArch:      noarch
 
 %description
 A large collection of man pages (documentation) from the Linux
@@ -90,11 +92,31 @@
 if [ "$RETVAL" -ne 0 ] ; then
   exit "$RETVAL"
 fi
+
+# Prepare alternatives
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+from=$(readlink -f %{buildroot}%{_mandir}/man7/man.7*)
+to=$(echo $from|sed -e 's!\.7$!!')-mp.7
+mv -v "$from" "$to"
+ln -s -f %{_sysconfdir}/alternatives/man.7 "$from"
+
+# Remove duplicates
 %fdupes -s %{buildroot}/%{_prefix}
 
+%post
+update-alternatives --install \
+   %{_mandir}/man7/man.7%{?ext_man} man.7%{?ext_man} \
+   %{_mandir}/man7/man-mp.7%{?ext_man} 500
+
+%preun
+if [ $1 -eq 0 ] ; then
+   update-alternatives --remove man.7%{?ext_man} 
%{_mandir}/man7/man-mp.7%{?ext_man}
+fi
+
 %files
 %defattr(644,root,root,755)
-%doc %{_mandir}/man*/*.gz
+%{_mandir}/man*/*.gz
+%ghost %{_sysconfdir}/alternatives/man.7%{?ext_man}
 %doc README Changes Changes.old
 %doc man-pages-*.Announce
 %doc man-pages-*.lsm


Reply via email to