From d965af1b18643f1fd3ee4789dc95a9ec7526602c7e0e685ded6796723972edf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Mon, 26 Feb 2024 09:36:05 +0000 Subject: [PATCH] Accepting request 1150470 from home:dimstar:Factory - Use newly supported shrink{} on OBS to exclude python flavors when all python versions are skipped. OBS-URL: https://build.opensuse.org/request/show/1150470 OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=49 --- python-wxPython.changes | 6 ++++++ python-wxPython.spec | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-wxPython.changes b/python-wxPython.changes index 89e3f3e..4dd6c82 100644 --- a/python-wxPython.changes +++ b/python-wxPython.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 23 12:16:15 UTC 2024 - Dominique Leuenberger + +- Use newly supported shrink{} on OBS to exclude python flavors + when all python versions are skipped. + ------------------------------------------------------------------- Mon Jan 15 16:29:26 UTC 2024 - Dominique Leuenberger diff --git a/python-wxPython.spec b/python-wxPython.spec index 617d897..606dcb9 100644 --- a/python-wxPython.spec +++ b/python-wxPython.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-wxPython # # Copyright (c) 2024 SUSE LLC # @@ -71,8 +71,7 @@ ExclusiveArch: donotbuild %endif %endif %endif -# The obs server-side interpreter cannot use lua or rpm shrink -%if "%pythons" == "" || "%pythons" == " " || "%pythons" == " " || "%pythons" == " " || "%pythons" == " " +%if "%{shrink:%pythons}" == "" ExclusiveArch: donotbuild %define python_module() %flavor-not-enabled-in-buildset-for-suse-%{?suse_version} %else @@ -147,7 +146,7 @@ Requires: %{pprefix}-Pillow Requires: %{pprefix}-numpy Requires: %{pprefix}-six Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives Conflicts: %{pprefix}-wxWidgets Provides: %{pprefix}-wxWidgets = %{version} %if "%{python_provides}" != ""