Hello community,

here is the log from the commit of package groff for openSUSE:Factory checked 
in at 2019-12-23 22:39:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/groff (Old)
 and      /work/SRC/openSUSE:Factory/.groff.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "groff"

Mon Dec 23 22:39:48 2019 rev:59 rq:758083 version:1.22.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/groff/groff.changes      2019-02-24 
20:45:46.495905440 +0100
+++ /work/SRC/openSUSE:Factory/.groff.new.6675/groff.changes    2019-12-23 
22:42:30.889952305 +0100
@@ -1,0 +2,6 @@
+Mon Dec 16 15:53:33 CET 2019 - Matej Cepl <[email protected]>
+
+- Add man page roff(7) to alternatives to avoid conflict with
+  mandoc.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ groff.spec ++++++
--- /var/tmp/diff_new_pack.5SvpPI/_old  2019-12-23 22:42:31.581952605 +0100
+++ /var/tmp/diff_new_pack.5SvpPI/_new  2019-12-23 22:42:31.585952607 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package groff
 #
-# 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
@@ -83,6 +83,10 @@
 # X fonts were moved back
 Provides:       groff-devx = %{version}-%{release}
 Obsoletes:      groff-devx <= 1.21
+# alternatives
+BuildRequires:  update-alternatives
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %else
 Recommends:     groff-full
 %endif
@@ -183,6 +187,15 @@
 rm -f %{buildroot}%{_mandir}/man1/soelim.1*
 rm -f %{buildroot}%{_mandir}/man1/tbl.1*
 rm -f %{buildroot}%{_mandir}/man1/troff.1*
+
+# Prepare alternatives
+find %{buildroot}%{_mandir}
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv -v %{buildroot}%{_mandir}/man7/roff.7* \
+    %{buildroot}%{_mandir}/man7/roff-gf.7%{?ext_man}
+ln -s -f %{_sysconfdir}/alternatives/roff.7%{?ext_man} \
+    %{buildroot}%{_mandir}/man7/roff.7%{?ext_man}
+# full_build
 %else
 # fix permission for devps/generate/afmname
 # used by ghostscript-fonts-grops
@@ -228,6 +241,8 @@
 # install profiles to disable the use of ANSI colour sequences by default:
 install -d -m 0755 %{buildroot}/%{_sysconfdir}/profile.d
 install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
+
+# full_build
 %endif
 
 %fdupes -s %{buildroot}
@@ -235,9 +250,15 @@
 %if %{with full_build}
 %post -n groff-full
 %install_info --info-dir=%{_infodir} %{_infodir}/groff.info.gz
+update-alternatives --install \
+   %{_mandir}/man7/roff.7%{?ext_man} roff.7%{?ext_man} \
+       %{_mandir}/man7/roff-gf.7%{?ext_man} 500
 
 %preun -n groff-full
 %install_info_delete --info-dir=%{_infodir} %{_infodir}/groff.info.gz
+if [ $1 -eq 0 ] ; then
+   update-alternatives --remove man.7%{?ext_man} 
%{_mandir}/man7/man-gf.7%{?ext_man}
+fi
 %endif
 
 %if !%{with full_build}
@@ -299,6 +320,7 @@
 %{_mandir}/man5/*
 %{_mandir}/man7/*
 %exclude %{_mandir}/man1/gxditview.1*
+%ghost %{_sysconfdir}/alternatives/roff.7%{?ext_man}
 %{_bindir}/*
 %exclude %{_bindir}/gxditview
 %dir %{_datadir}/groff




Reply via email to