Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gawk for openSUSE:Factory checked in 
at 2021-10-08 22:04:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gawk (Old)
 and      /work/SRC/openSUSE:Factory/.gawk.new.2443 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gawk"

Fri Oct  8 22:04:34 2021 rev:46 rq:922644 version:5.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/gawk/gawk.changes        2021-02-07 
15:14:11.173397170 +0100
+++ /work/SRC/openSUSE:Factory/.gawk.new.2443/gawk.changes      2021-10-08 
22:04:36.760517131 +0200
@@ -1,0 +2,7 @@
+Thu Sep 23 15:02:47 UTC 2021 - Manfred Schwarb <manfre...@gmx.ch>
+
+- remove update-alternatives support, as on linux systems GNU software
+    (i.e. gawk in this case) is usually considered the default implementation.
+- use %make macros
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ gawk.spec ++++++
--- /var/tmp/diff_new_pack.b8R0vY/_old  2021-10-08 22:04:38.104519342 +0200
+++ /var/tmp/diff_new_pack.b8R0vY/_new  2021-10-08 22:04:38.108519349 +0200
@@ -32,11 +32,6 @@
 BuildRequires:  libtool
 BuildRequires:  make
 BuildRequires:  makeinfo
-BuildRequires:  update-alternatives
-Requires(post): %{install_info_prereq}
-Requires(post): update-alternatives
-Requires(preun): %{install_info_prereq}
-Requires(preun): update-alternatives
 Provides:       awk
 
 %description
@@ -52,48 +47,26 @@
 %build
 autoreconf -fiv
 %configure
-make %{?_smp_mflags}
+%make_build
 
 %check
-make check %{?_smp_mflags}
+%make_build check
 
 %install
 %make_install
 
 %if !0%{?usrmerged}
-install -d %{buildroot}/bin
-ln -sf %{_bindir}/gawk %{buildroot}/bin
-ln -s %{_sysconfdir}/alternatives/awk %{buildroot}/bin/awk
+install -d -m 755 %{buildroot}/bin
+ln -s %{_bindir}/gawk %{buildroot}/bin/gawk
+ln -s %{_bindir}/gawk %{buildroot}/bin/awk
 %endif
-rm -f %{buildroot}%{_bindir}/*-%{version} %{buildroot}%{_bindir}/awk
 
-# create symlinks for update-alternatives
-%if !0%{?usrmerged}
-ln -s %{_sysconfdir}/alternatives/usr-bin-awk %{buildroot}%{_bindir}/awk
-%else
-ln -s %{_sysconfdir}/alternatives/awk %{buildroot}%{_bindir}/awk
-%endif
-ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} 
%{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
+# remove versioned gawk and create symlink for awk.1
+rm -fv %{buildroot}%{_bindir}/*-%{version}
+ln -sfv %{_mandir}/man1/gawk.1%{?ext_man} 
%{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
 
 %find_lang %{name}
 
-%post
-%if !0%{?usrmerged}
-%{_sbindir}/update-alternatives \
-  --install /bin/awk awk %{_bindir}/gawk 20 \
-  --slave %{_bindir}/awk usr-bin-awk %{_bindir}/gawk \
-  --slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} 
%{_mandir}/man1/gawk.1%{?ext_man}
-%else
-%{_sbindir}/update-alternatives \
-  --install %{_bindir}/awk awk %{_bindir}/gawk 20 \
-  --slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} 
%{_mandir}/man1/gawk.1%{?ext_man}
-%endif
-
-%postun
-if [ ! -f %{_bindir}/gawk ]; then
-    %{_sbindir}/update-alternatives --remove awk %{_bindir}/gawk
-fi
-
 %files -f %{name}.lang
 %config %{_sysconfdir}/profile.d/gawk.csh
 %config %{_sysconfdir}/profile.d/gawk.sh
@@ -101,13 +74,10 @@
 #UsrMerge
 /bin/awk
 /bin/gawk
-%ghost %{_sysconfdir}/alternatives/usr-bin-awk
 #EndUsrMerge
 %endif
 %{_bindir}/awk
 %{_mandir}/man1/awk.1%{?ext_man}
-%ghost %{_sysconfdir}/alternatives/awk
-%ghost %{_sysconfdir}/alternatives/awk.1%{?ext_man}
 %license COPYING*
 %doc AUTHORS NEWS POSIX.STD README ChangeLog*
 %{_bindir}/gawk

Reply via email to