Hello community,

here is the log from the commit of package python-wheel for openSUSE:Factory 
checked in at 2014-02-12 07:08:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-wheel (Old)
 and      /work/SRC/openSUSE:Factory/.python-wheel.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-wheel"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-wheel/python-wheel.changes        
2013-09-23 11:17:55.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-wheel.new/python-wheel.changes   
2014-02-12 07:08:11.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Feb 10 14:46:04 UTC 2014 - speili...@suse.com
+
+- Fix update-alternatives usage
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-wheel.spec ++++++
--- /var/tmp/diff_new_pack.S2a2HJ/_old  2014-02-12 07:08:11.000000000 +0100
+++ /var/tmp/diff_new_pack.S2a2HJ/_new  2014-02-12 07:08:11.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-wheel
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,7 +27,6 @@
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 # Test requirements:
-BuildRequires:  python-argparse
 BuildRequires:  python-cov-core >= 1.6
 BuildRequires:  python-coverage
 BuildRequires:  python-jsonschema
@@ -40,6 +39,7 @@
 Requires(postun): update-alternatives
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
+BuildRequires:  python-argparse
 Requires:       python-argparse
 %{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %else
@@ -76,9 +76,11 @@
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 for b in egg2wheel wheel wininst2wheel ; do
   mv %{buildroot}%{_bindir}/$b %{buildroot}%{_bindir}/$b-%{py_ver}
-  ln -s %{_bindir}/$b-%{py_ver} %{buildroot}%{_bindir}/$b
+  touch %{buildroot}%{_sysconfdir}/alternatives/$b
+  ln -sf %{_sysconfdir}/alternatives/$b %{buildroot}/%{_bindir}/$b
 done
 
 %check
@@ -89,7 +91,7 @@
     --slave %{_bindir}/egg2wheel egg2wheel %{_bindir}/egg2wheel-%{py_ver} \
     --slave %{_bindir}/wininst2wheel wininst2wheel 
%{_bindir}/wininst2wheel-%{py_ver}
 
-%preun
+%postun
 if [ $1 -eq 0 ] ; then
     update-alternatives --remove wheel %{_bindir}/wheel-%{py_ver}
 fi
@@ -97,12 +99,15 @@
 %files
 %defattr(-,root,root,-)
 %doc CHANGES.txt README.txt LICENSE.txt
-%ghost %{_bindir}/egg2wheel
+%{_bindir}/egg2wheel
 %{_bindir}/egg2wheel-%{py_ver}
-%ghost %{_bindir}/wheel
+%{_bindir}/wheel
 %{_bindir}/wheel-%{py_ver}
-%ghost %{_bindir}/wininst2wheel
+%{_bindir}/wininst2wheel
 %{_bindir}/wininst2wheel-%{py_ver}
+%ghost %{_sysconfdir}/alternatives/wheel
+%ghost %{_sysconfdir}/alternatives/egg2wheel
+%ghost %{_sysconfdir}/alternatives/wininst2wheel
 %{python_sitelib}/wheel-%{version}-py%{py_ver}.egg-info
 %{python_sitelib}/wheel/
 

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to