Hello community,

here is the log from the commit of package makewhat for openSUSE:Factory 
checked in at 2019-03-08 11:02:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/makewhat (Old)
 and      /work/SRC/openSUSE:Factory/.makewhat.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "makewhat"

Fri Mar  8 11:02:46 2019 rev:15 rq:682356 version:2009.6.17

Changes:
--------
--- /work/SRC/openSUSE:Factory/makewhat/makewhat.changes        2013-08-07 
11:58:29.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.makewhat.new.28833/makewhat.changes     
2019-03-08 11:02:47.612527483 +0100
@@ -1,0 +2,12 @@
+Thu Mar  7 07:59:37 UTC 2019 - Dr. Werner Fink <wer...@suse.de>
+
+- Skip %verify(not link mtime) from symbolic links %_bindir even if
+  those should not hurt but avoid superfluous verify messages
+
+-------------------------------------------------------------------
+Wed Mar  6 13:26:38 UTC 2019 - Dr. Werner Fink <wer...@suse.de>
+
+- Use update-alternatives to allow that makewhatis(1) can be
+  overwritten by an other package like mandoc 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ makewhat.spec ++++++
--- /var/tmp/diff_new_pack.p8g75K/_old  2019-03-08 11:02:48.160527395 +0100
+++ /var/tmp/diff_new_pack.p8g75K/_new  2019-03-08 11:02:48.164527395 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package makewhat
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,24 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           makewhat
-Requires:       man
 Version:        2009.6.17
 Release:        0
+Url:            https://build.opensuse.org/package/show/Base:System/makewhat
 Summary:        Create a whatis Database
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          System/Base
+BuildRequires:  update-alternatives
+Requires:       man
+Requires(post): update-alternatives
+Requires(preun): update-alternatives
 Source:         makewhat.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildArch:      noarch
 
 %description
 The man system in SUSE Linux (package man) does not need a whatis
@@ -40,14 +45,33 @@
 %prep
 %setup -n makewhat
 
+%build
+echo Build section is empty
+
 %install
-mkdir -p $RPM_BUILD_ROOT/usr/sbin
-install -m755 makewhatis $RPM_BUILD_ROOT/usr/sbin
+mkdir -p %{buildroot}%{_sbindir}
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+install -m755 makewhatis %{buildroot}%{_sbindir}/makewhatis.mw
+ln -sf %{_sbindir}/makewhatis.mw 
%{buildroot}%{_sysconfdir}/alternatives/makewhatis
+ln -sf %{_sysconfdir}/alternatives/makewhatis 
%{buildroot}%{_sbindir}/makewhatis
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%{_sbindir}/update-alternatives --quiet --force \
+        --install %{_sbindir}/makewhatis makewhatis %{_sbindir}/makewhatis.mw 
900
+
+%preun
+if test $1 -eq 0
+then
+       %{_sbindir}/update-alternatives --quiet --remove makewhatis 
%{_sbindir}/makewhatis
+fi
+
 %files
-%attr(-,root,root) /usr/sbin/makewhatis
+%defattr(-,root,root)
+%ghost %config %{_sysconfdir}/alternatives/makewhatis
+%{_sbindir}/makewhatis.mw
+%{_sbindir}/makewhatis
 
 %changelog


Reply via email to