Hello community, here is the log from the commit of package python-nose for openSUSE:Factory checked in at 2013-05-16 16:16:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nose (Old) and /work/SRC/openSUSE:Factory/.python-nose.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nose" Changes: -------- --- /work/SRC/openSUSE:Factory/python-nose/python-nose.changes 2013-05-13 15:25:46.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-nose.new/python-nose.changes 2013-05-16 16:16:08.000000000 +0200 @@ -1,0 +2,10 @@ +Wed May 15 14:43:18 UTC 2013 - [email protected] + +- Don't damage entry points + +------------------------------------------------------------------- +Wed May 15 14:27:11 UTC 2013 - [email protected] + +- Fix update-alternatives and support upgrade from previous versions + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/python-nose/python3-nose.changes 2013-05-13 15:25:46.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-nose.new/python3-nose.changes 2013-05-16 16:16:08.000000000 +0200 @@ -1,0 +2,10 @@ +Wed May 15 14:43:30 UTC 2013 - [email protected] + +- Don't damage entry points + +------------------------------------------------------------------- +Wed May 15 14:27:41 UTC 2013 - [email protected] + +- Fix update-alternatives and support upgrade from previous versions + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nose.spec ++++++ --- /var/tmp/diff_new_pack.ljREst/_old 2013-05-16 16:16:09.000000000 +0200 +++ /var/tmp/diff_new_pack.ljREst/_new 2013-05-16 16:16:09.000000000 +0200 @@ -64,25 +64,36 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -ln -s %{_mandir}/man1/nosetests.1.gz %{buildroot}%{_mandir}/man1/nosetests-%{py_ver}.1.gz +mv %{buildroot}%{_mandir}/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{py_ver}.1 +ln -s %{_mandir}/man1/nosetests-%{py_ver}.1 %{buildroot}%{_mandir}/man1/nosetests.1 +rm %{buildroot}%{_bindir}/nosetests +ln -s %{_bindir}/nosetests-%{py_ver} %{buildroot}%{_bindir}/nosetests %check python setup.py test +%pre +# Since /usr/bin/nosetests and /usr/share/man/man1/nosetests.1.gz became ghosted to be used +# with update-alternatives, we have to get rid of the old binary resulting from the +# non-update-alternativies-ified package: +[[ ! -L %{_bindir}/nosetests ]] && rm -f %{_bindir}/nosetests +[[ ! -L %{_mandir}/man1/nosetests.1.gz ]] && rm -f %{_mandir}/man1/nosetests.1.gz +exit 0 + %post update-alternatives \ - --install %{_bindir}/nosetests nosetests %{_bindir}/nosetests-%{py_ver} 10 \ - --slave %{_mandir}/man1/nosetests.1.gz nosetests.1 %{_mandir}/nosetests-%{py_ver}.1.gz + --install %{_bindir}/nosetests nosetests %{_bindir}/nosetests-%{py_ver} 20 \ + --slave %{_mandir}/man1/nosetests.1.gz nosetests.1 %{_mandir}/man1/nosetests-%{py_ver}.1.gz -%postun +%preun if [ $1 -eq 0 ] ; then - update-alternatives --remove nosetests %{_bindir}/nosetestsc-%{py_ver} + update-alternatives --remove nosetests %{_bindir}/nosetests-%{py_ver} fi %files %defattr(-,root,root,-) %doc NEWS README.txt lgpl.txt -%ghost %attr(0755,root,root) %{_bindir}/nosetests +%ghost %{_bindir}/nosetests %{_bindir}/nosetests-%{py_ver} %ghost %{_mandir}/man1/nosetests.1.gz %{_mandir}/man1/nosetests-%{py_ver}.1.gz ++++++ python3-nose.spec ++++++ --- /var/tmp/diff_new_pack.ljREst/_old 2013-05-16 16:16:09.000000000 +0200 +++ /var/tmp/diff_new_pack.ljREst/_new 2013-05-16 16:16:09.000000000 +0200 @@ -63,25 +63,36 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} -ln -s %{_mandir}/man1/nosetests.1.gz %{buildroot}%{_mandir}/man1/nosetests-%{py3_ver}.1.gz +mv %{buildroot}%{_mandir}/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{py3_ver}.1 +ln -s %{_mandir}/man1/nosetests-%{py3_ver}.1 %{buildroot}%{_mandir}/man1/nosetests.1 +rm %{buildroot}%{_bindir}/nosetests +ln -s %{_bindir}/nosetests-%{py3_ver} %{buildroot}%{_bindir}/nosetests #%%check #python3 setup.py test +%pre +# Since /usr/bin/nosetests and /usr/share/man/man1/nosetests.1.gz became ghosted to be used +# with update-alternatives, we have to get rid of the old binary resulting from the +# non-update-alternativies-ified package: +[[ ! -L %{_bindir}/nosetests ]] && rm -f %{_bindir}/nosetests +[[ ! -L %{_mandir}/man1/nosetests.1.gz ]] && rm -f %{_mandir}/man1/nosetests.1.gz +exit 0 + %post update-alternatives \ - --install %{_bindir}/nosetests nosetests %{_bindir}/nosetests-%{py3_ver} 10 \ - --slave %{_mandir}/man1/nosetests.1.gz nosetests.1 %{_mandir}/nosetests-%{py3_ver}.1.gz + --install %{_bindir}/nosetests nosetests %{_bindir}/nosetests-%{py3_ver} 30 \ + --slave %{_mandir}/man1/nosetests.1.gz nosetests.1 %{_mandir}/man1/nosetests-%{py3_ver}.1.gz -%postun +%preun if [ $1 -eq 0 ] ; then - update-alternatives --remove nosetests %{_bindir}/nosetestsc-%{py3_ver} + update-alternatives --remove nosetests %{_bindir}/nosetests-%{py3_ver} fi %files %defattr(-,root,root,-) %doc NEWS README.txt lgpl.txt -%ghost %attr(0755,root,root) %{_bindir}/nosetests +%ghost %{_bindir}/nosetests %{_bindir}/nosetests-%{py3_ver} %ghost %{_mandir}/man1/nosetests.1.gz %{_mandir}/man1/nosetests-%{py3_ver}.1.gz -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
