diff --git a/python-setuptools.spec b/python-setuptools.spec index 1286409..c83177c 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -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