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}" != ""