diff --git a/python-argcomplete.spec b/python-argcomplete.spec index 6384daa..875ba3c 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -109,23 +109,20 @@ export TERM=xterm-mono %endif %if %{without test} -%if %{with libalternatives} %pre %python_libalternatives_reset_alternative activate-global-python-argcomplete %python_libalternatives_reset_alternative register-python-argcomplete %python_libalternatives_reset_alternative python-argcomplete-check-easy-install-script -%else %post %python_install_alternative activate-global-python-argcomplete %python_install_alternative register-python-argcomplete %python_install_alternative python-argcomplete-check-easy-install-script -%pre +%postun %python_uninstall_alternative activate-global-python-argcomplete %python_uninstall_alternative register-python-argcomplete %python_uninstall_alternative python-argcomplete-check-easy-install-script -%endif %files %{python_files} %doc README.rst