Hello community,

here is the log from the commit of package python-setuptools for 
openSUSE:Factory checked in at 2013-07-18 17:34:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-setuptools (Old)
 and      /work/SRC/openSUSE:Factory/.python-setuptools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-setuptools"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-setuptools/python-setuptools.changes      
2013-07-02 14:30:21.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-setuptools.new/python-setuptools.changes 
2013-07-18 18:08:34.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Jul 18 10:11:58 UTC 2013 - [email protected]
+
+- Use update-alternatives to be parallel-installable with python3-setuptools
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-setuptools.spec ++++++
--- /var/tmp/diff_new_pack.iDg7tQ/_old  2013-07-18 18:08:34.000000000 +0200
+++ /var/tmp/diff_new_pack.iDg7tQ/_new  2013-07-18 18:08:34.000000000 +0200
@@ -11,7 +11,7 @@
 # case the license is the MIT License). An "Open Source License" is a
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
-#
+
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
@@ -29,6 +29,8 @@
 Patch1:         setuptools-0.6c9-create-sitedir.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 # NOTE(saschpe): Distribute was merged into 0.7.x, so even though distribute
 # obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again
 Provides:       python-distribute = %{version}
@@ -54,14 +56,31 @@
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+rm %{buildroot}%{_bindir}/easy_install
+ln -s %{_bindir}/easy_install-%{py_ver} %{buildroot}%{_bindir}/easy_install
 
 %check
 python setup.py test
 
+%pre
+# Since /usr/bin/easy_install became ghosted to be used with 
update-alternatives,
+# we have to get rid of the old binary:
+[[ ! -L %{_bindir}/easy_install ]] && rm -f %{_bindir}/easy_install
+exit 0
+
+%post
+update-alternatives \
+    --install %{_bindir}/easy_install easy_install 
%{_bindir}/easy_install-%{py_ver} 20
+
+%preun
+if [ $1 -eq 0 ] ; then
+    update-alternatives --remove easy_install %{_bindir}/easy_install-%{py_ver}
+fi
+
 %files
 %defattr(-,root,root,-)
 %doc CHANGES.txt README.txt
-%{_bindir}/easy_install
+%ghost %{_bindir}/easy_install
 %{_bindir}/easy_install-%{py_ver}
 %{python_sitelib}/_markerlib
 %{python_sitelib}/setuptools

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

Reply via email to