Hello community,

here is the log from the commit of package python-nose for openSUSE:Factory 
checked in at 2013-05-13 15:25:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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-04-24 
19:37:07.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-nose.new/python-nose.changes     
2013-05-13 15:25:46.000000000 +0200
@@ -1,0 +2,5 @@
+Fri May  3 08:11:42 UTC 2013 - [email protected]
+
+- Apply update-alternatives for binaries and man-pages
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/python-nose/python3-nose.changes 2013-04-24 
19:37:07.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-nose.new/python3-nose.changes    
2013-05-13 15:25:46.000000000 +0200
@@ -1,0 +2,5 @@
+Fri May  3 08:12:07 UTC 2013 - [email protected]
+
+- Apply update-alternatives for binaries and man-pages
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-nose.spec ++++++
--- /var/tmp/diff_new_pack.8VK7eX/_old  2013-05-13 15:25:47.000000000 +0200
+++ /var/tmp/diff_new_pack.8VK7eX/_new  2013-05-13 15:25:47.000000000 +0200
@@ -32,6 +32,8 @@
 BuildRequires:  python-coverage
 Requires:       python-distribute
 Requires:       python-xml
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
 %{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %else
@@ -67,13 +69,24 @@
 %check
 python setup.py test
 
+%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
+
+%postun
+if [ $1 -eq 0 ] ; then
+  update-alternatives --remove nosetests %{_bindir}/nosetestsc-%{py_ver}
+fi
+
 %files
 %defattr(-,root,root,-)
 %doc NEWS README.txt lgpl.txt
-%{_bindir}/nosetests
+%ghost %attr(0755,root,root) %{_bindir}/nosetests
 %{_bindir}/nosetests-%{py_ver}
-%{_mandir}/man1/nosetests.1.gz
+%ghost %{_mandir}/man1/nosetests.1.gz
 %{_mandir}/man1/nosetests-%{py_ver}.1.gz
-%{python_sitelib}/*
+%{python_sitelib}/nose-%{version}-py%{py_ver}.egg-info/
+%{python_sitelib}/nose
 
 %changelog

++++++ python3-nose.spec ++++++
--- /var/tmp/diff_new_pack.8VK7eX/_old  2013-05-13 15:25:47.000000000 +0200
+++ /var/tmp/diff_new_pack.8VK7eX/_new  2013-05-13 15:25:47.000000000 +0200
@@ -34,6 +34,8 @@
 BuildRequires:  python-coverage
 Requires:       python3-distribute
 Requires:       python3-xml
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 
 %description
@@ -61,18 +63,29 @@
 
 %install
 python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
-# remove or move files that conflict with python 2.x
-rm %{buildroot}%{_bindir}/nosetests
-mv %{buildroot}%{_mandir}/man1/nosetests.1 
%{buildroot}%{_mandir}/man1/nosetests-%{py3_ver}.1
+ln -s %{_mandir}/man1/nosetests.1.gz 
%{buildroot}%{_mandir}/man1/nosetests-%{py3_ver}.1.gz
 
 #%%check
 #python3 setup.py test
 
+%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
+
+%postun
+if [ $1 -eq 0 ] ; then
+  update-alternatives --remove nosetests %{_bindir}/nosetestsc-%{py3_ver}
+fi
+
 %files
 %defattr(-,root,root,-)
 %doc NEWS README.txt lgpl.txt
+%ghost %attr(0755,root,root) %{_bindir}/nosetests
 %{_bindir}/nosetests-%{py3_ver}
+%ghost %{_mandir}/man1/nosetests.1.gz
 %{_mandir}/man1/nosetests-%{py3_ver}.1.gz
-%{python3_sitelib}/*
+%{python3_sitelib}/nose-%{version}-py%{py3_ver}.egg-info/
+%{python3_sitelib}/nose
 
 %changelog

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

Reply via email to