forked from pool/python-wheel
Accepting request 294250 from home:benoit_monin:branches:devel:languages:python
- update to version 0.24.0 - removed wininst2wheel and egg2wheel: they are not in 0.24.0 anymore OBS-URL: https://build.opensuse.org/request/show/294250 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wheel?expand=0&rev=12
This commit is contained in:
committed by
Git OBS Bridge
parent
c98f335bbf
commit
161d3a753e
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-wheel
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-wheel
|
||||
Version: 0.22.0
|
||||
Version: 0.24.0
|
||||
Release: 0
|
||||
Summary: A built-package format for Python
|
||||
License: MIT
|
||||
@@ -77,7 +77,7 @@ python setup.py build
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
for b in egg2wheel wheel wininst2wheel ; do
|
||||
for b in wheel ; do
|
||||
mv %{buildroot}%{_bindir}/$b %{buildroot}%{_bindir}/$b-%{py_ver}
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/$b
|
||||
ln -sf %{_sysconfdir}/alternatives/$b %{buildroot}/%{_bindir}/$b
|
||||
@@ -87,9 +87,7 @@ done
|
||||
python setup.py test
|
||||
|
||||
%post
|
||||
update-alternatives --install %{_bindir}/wheel wheel %{_bindir}/wheel-%{py_ver} 20 \
|
||||
--slave %{_bindir}/egg2wheel egg2wheel %{_bindir}/egg2wheel-%{py_ver} \
|
||||
--slave %{_bindir}/wininst2wheel wininst2wheel %{_bindir}/wininst2wheel-%{py_ver}
|
||||
update-alternatives --install %{_bindir}/wheel wheel %{_bindir}/wheel-%{py_ver} 20
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
@@ -99,15 +97,9 @@ fi
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.txt README.txt LICENSE.txt
|
||||
%{_bindir}/egg2wheel
|
||||
%{_bindir}/egg2wheel-%{py_ver}
|
||||
%{_bindir}/wheel
|
||||
%{_bindir}/wheel-%{py_ver}
|
||||
%{_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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user