From 68b998f304288abbfd8b7324f2f28e3905f6fb401e2b20cf173b341762ae29ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 21 Aug 2025 10:18:02 +0000 Subject: [PATCH] fix spec-cleaner changes OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-run?expand=0&rev=16 --- python-pip-run.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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