Sascha Peilicke 2014-02-10 15:34:07 +00:00 committed by Git OBS Bridge
parent d7f28b9d11
commit 57893d5c6d

View File

@ -34,7 +34,7 @@ BuildRequires: python-xml
Requires: python
Requires: python-xml
Requires(post): update-alternatives
Requires(preun): 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}
@ -72,7 +72,7 @@ python setup.py test
update-alternatives \
--install %{_bindir}/easy_install easy_install %{_bindir}/easy_install-%{py_ver} 20
%preun
%postun
if [ $1 -eq 0 ] ; then
update-alternatives --remove easy_install %{_bindir}/easy_install-%{py_ver}
fi