diff --git a/python-pip-run.spec b/python-pip-run.spec index c999037..febfefd 100644 --- a/python-pip-run.spec +++ b/python-pip-run.spec @@ -24,6 +24,8 @@ %define psuffix %{nil} %bcond_with test %endif +# Disables installing nbformat for tests in Ring1 (see also Patch1) +%bcond_with ringdisabled # Do not depend on nbformat for SLES or SLFO:Main %if ( 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400 ) || 0%{?suse_version} == 1600 %bcond_without ringdisabled @@ -33,8 +35,6 @@ %else %bcond_with libalternatives %endif -# Disables installing nbformat for tests in Ring1 (see also Patch1) -%bcond_with ringdisabled %{?sle15_python_module_pythons} Name: python-pip-run%{psuffix} Version: 8.8.2 @@ -122,15 +122,15 @@ dont_test="" %pytest -k "$dont_test" %endif +%pre +%python_libalternatives_reset_alternative pip-run + %post %python_install_alternative pip-run %postun %python_uninstall_alternative pip-run -%pre -%python_libalternatives_reset_alternative pip-run - %if !%{with test} %files %{python_files} %license LICENSE