Hello community, here is the log from the commit of package Regina-REXX for openSUSE:Factory checked in at 2018-06-28 15:11:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/Regina-REXX (Old) and /work/SRC/openSUSE:Factory/.Regina-REXX.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "Regina-REXX" Thu Jun 28 15:11:40 2018 rev:3 rq:587548 version:3.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/Regina-REXX/Regina-REXX.changes 2017-06-16 10:54:46.931508989 +0200 +++ /work/SRC/openSUSE:Factory/.Regina-REXX.new/Regina-REXX.changes 2018-06-28 15:11:43.659778992 +0200 @@ -1,0 +2,7 @@ +Thu Mar 15 14:44:19 UTC 2018 - [email protected] + +- Modernise spec file with spec-cleaner +- Allow alternative rexx implementations to be installed in + parallel (bsc#1083875) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ Regina-REXX.spec ++++++ --- /var/tmp/diff_new_pack.TkJsB6/_old 2018-06-28 15:11:44.763776966 +0200 +++ /var/tmp/diff_new_pack.TkJsB6/_new 2018-06-28 15:11:44.763776966 +0200 @@ -1,7 +1,7 @@ # # spec file for package Regina-REXX # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -22,9 +22,9 @@ Version: 3.9.1 Release: 0 Summary: Mark Hessling's implementation of the REXX Interpreter -License: GFDL-1.1 and LGPL-2.1+ +License: GFDL-1.1-only AND LGPL-2.1-or-later Group: Development/Languages/Other -Url: http://regina-rexx.sourceforge.net/ +URL: http://regina-rexx.sourceforge.net/ Source: http://downloads.sourceforge.net/project/regina-rexx/regina-rexx/%{version}/Regina-REXX-%{version}.tar.gz Source1: http://sourceforge.net/projects/regina-rexx/files/regina-documentation/%{version}/regina.pdf#/Regina-REXX-%{version}-doc.pdf Source2: http://sourceforge.net/projects/regina-rexx/files/regina-documentation/%{version}/regutil.pdf#/Regina-REXX-regutil-%{version}-doc.pdf @@ -34,7 +34,8 @@ BuildRequires: lsb-release BuildRequires: ncurses-devel BuildRequires: systemd-rpm-macros -Conflicts: ooRexx +Requires(post): update-alternatives +Requires(postun): update-alternatives Provides: rexx %{?systemd_requires} @@ -92,6 +93,18 @@ ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcrxstack ln -s %{_mandir}/man1/regina.1.gz %{buildroot}/%{_mandir}/man1/rexx.1.gz +# adding update-alternatives support (boo#1083875) +install -d %{buildroot}%{_sysconfdir}/alternatives + +touch %{buildroot}%{_sysconfdir}/alternatives/rexx +touch %{buildroot}%{_sysconfdir}/alternatives/rxqueue + +mv %{buildroot}%{_bindir}/rexx %{buildroot}%{_bindir}/rexx-%{name} +mv %{buildroot}%{_bindir}/rxqueue %{buildroot}%{_bindir}/rxqueue-%{name} + +ln -sf %{_sysconfdir}/alternatives/rexx %{buildroot}%{_bindir}/rexx +ln -sf %{_sysconfdir}/alternatives/rxqueue %{buildroot}%{_bindir}/rxqueue + # Drop not needed examples/addons rm -rf %{buildroot}%{_datadir}/Regina-REXX/addons @@ -100,40 +113,50 @@ %post %service_add_post rxstack.service +update-alternatives --install \ + %{_bindir}/rexx rexx %{_bindir}/rexx-%{name} 15 +update-alternatives --install \ + %{_bindir}/rxqueue rxqueue %{_bindir}/rxqueue-%{name} 15 %preun %service_del_preun rxstack.service %postun %service_del_postun rxstack.service +if [ ! -f %{_bindir}/rexx ] ; then + update-alternatives --remove rexx %{_bindir}/rexx-%{name} +fi +if [ ! -f %{_bindir}/rxqueue ] ; then + update-alternatives --remove rxqueue %{_bindir}/rxqueue-%{name} +fi %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -%defattr(-,root,root) %{_mandir}/man1/* %doc COPYING-LIB README.* +%ghost %{_sysconfdir}/alternatives/rexx +%ghost %{_sysconfdir}/alternatives/rxqueue %{_bindir}/regina %{_bindir}/rexx +%{_bindir}/rexx-%{name} %{_bindir}/rxqueue +%{_bindir}/rxqueue-%{name} %{_bindir}/rxstack %{_datadir}/Regina-REXX %{_sbindir}/rcrxstack %{_unitdir}/rxstack.service %files doc -%defattr(-,root,root) %doc Regina-REXX-%{version}-doc.pdf Regina-REXX-regutil-%{version}-doc.pdf %files devel -%defattr(-,root,root) %{_bindir}/regina-config %{_includedir}/* %{_libdir}/libregina.so %files -n %{libname} -%defattr(-,root,root) -%{_libdir}/libregina.so.* +%{_libdir}/libregina.so.%{somajor}* %changelog
