Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2014-02-19 14:10:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and      /work/SRC/openSUSE:Factory/.mawk.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mawk"

Changes:
--------
--- /work/SRC/openSUSE:Factory/mawk/mawk.changes        2012-05-15 
17:42:13.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.mawk.new/mawk.changes   2014-02-19 
14:10:10.000000000 +0100
@@ -1,0 +2,7 @@
+Sat Feb  8 12:04:51 UTC 2014 - [email protected]
+
+- adjust update-alternative usage to packaging policy
+  (see http://lists.opensuse.org/opensuse-packaging/2014-02/msg00024.html)
+- move mawk to /usr/bin and add symlink in /bin
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ mawk.spec ++++++
--- /var/tmp/diff_new_pack.mD2vJh/_old  2014-02-19 14:10:10.000000000 +0100
+++ /var/tmp/diff_new_pack.mD2vJh/_new  2014-02-19 14:10:10.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mawk
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2010 Guido Berhoerster.
 #
 # All modifications and additions to the file contributed by third parties
@@ -51,41 +51,46 @@
 # without --enable-warnings several functions will not be marked with gcc's
 # noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
 %configure \
-    --enable-warnings \
-    --bindir=/bin
+    --enable-warnings
 make %{?_smp_mflags}
 
 %install
 %make_install
 
-# move to /bin and symlink to /usr/bin
-install -d -m 755 %{buildroot}/%{_bindir}
-ln -s ../../bin/mawk %{buildroot}/%{_bindir}/mawk
-# create ghost files
-touch %{buildroot}/bin/awk %{buildroot}%{_bindir}/awk \
-    %{buildroot}%{_mandir}/man1/awk.1.gz
+# compatibility symlink
+install -d -m 755 %{buildroot}/bin
+ln -s %{_bindir}/mawk %{buildroot}/bin/mawk
+# create symlinks for update-alternatives
+install -d -m 755 %{buildroot}%{_sysconfdir}/alternatives
+ln -s %{_sysconfdir}/alternatives/awk %{buildroot}/bin/awk
+ln -s %{_sysconfdir}/alternatives/usr-bin-awk %{buildroot}%{_bindir}/awk
+ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} 
%{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
 
 %check
 make check
 
 %post
-/usr/sbin/update-alternatives --install /bin/awk awk /bin/mawk 15 \
-  --slave /usr/bin/awk usr-bin-awk /bin/mawk \
-  --slave %{_mandir}/man1/awk.1.gz awk.1.gz %{_mandir}/man1/mawk.1.gz
+%{_sbindir}/update-alternatives \
+  --install /bin/awk awk %{_bindir}/mawk 15 \
+  --slave %{_bindir}/awk usr-bin-awk %{_bindir}/mawk \
+  --slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} 
%{_mandir}/man1/mawk.1%{?ext_man}
 
 %preun
 if [ $1 -eq 0 ]; then
-    /usr/sbin/update-alternatives --remove awk /bin/mawk
+    %{_sbindir}/update-alternatives --remove awk %{_bindir}/mawk
 fi
 
 %files
 %defattr(-,root,root,-)
 %doc ACKNOWLEDGMENT CHANGES COPYING README examples/
-%doc %{_mandir}/man1/mawk.1*
-%ghost /bin/awk
-%ghost %{_bindir}/awk
-%ghost %{_mandir}/man1/awk.1.gz
-%{_bindir}/mawk
 /bin/mawk
+%{_bindir}/mawk
+%{_mandir}/man1/mawk.1%{?ext_man}
+/bin/awk
+%{_bindir}/awk
+%{_mandir}/man1/awk.1%{?ext_man}
+%ghost %{_sysconfdir}/alternatives/awk
+%ghost %{_sysconfdir}/alternatives/usr-bin-awk
+%ghost %{_sysconfdir}/alternatives/awk.1%{?ext_man}
 
 %changelog

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to