commit python3-unittest2 for openSUSE:Factory
Hello community, here is the log from the commit of package python3-unittest2 for openSUSE:Factory checked in at 2015-10-24 10:22:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-unittest2 (Old) and /work/SRC/openSUSE:Factory/.python3-unittest2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-unittest2" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-unittest2/python3-unittest2.changes 2015-07-03 00:19:02.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-unittest2.new/python3-unittest2.changes 2015-10-24 10:22:43.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Oct 12 11:32:46 UTC 2015 - toddrme2178@gmail.com + +- Implement update-alternatives + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-unittest2.spec ++++++ --- /var/tmp/diff_new_pack.SoT8p8/_old 2015-10-24 10:22:44.000000000 +0200 +++ /var/tmp/diff_new_pack.SoT8p8/_new 2015-10-24 10:22:44.000000000 +0200 @@ -33,6 +33,8 @@ Requires: python3-linecache2 Requires: python3-six Requires: python3-traceback2 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %description @@ -48,12 +50,29 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} -mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-python%{py3_ver} + +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-%{py3_ver} +ln -s -f %{_sysconfdir}/alternatives/unit2 %{buildroot}%{_bindir}/unit2 +# create a dummy target for /etc/alternatives/unit2 +touch %{buildroot}%{_sysconfdir}/alternatives/unit2 + +%post +"%_sbindir/update-alternatives" \ + --install %{_bindir}/unit2 unit2 %{_bindir}/unit2-%{py3_ver} 30 + +%postun +if [ $1 -eq 0 ] ; then + "%_sbindir/update-alternatives" --remove unit2 %{_bindir}/unit2-%{py3_ver} +fi %files %defattr(-,root,root,-) %doc README.txt -%{_bindir}/unit2-python%{py3_ver}* +%{_bindir}/unit2 +%{_bindir}/unit2-%{py3_ver} +%ghost %{_sysconfdir}/alternatives/unit2 %{python3_sitelib}/unittest2/ %{python3_sitelib}/unittest2-%{version}-py%{py3_ver}.egg-info
participants (1)
-
root@hilbert.suse.de