From 93ff47ed680f96f08f1bfa227496e3618ffecb124673a98074577b5c0a19ec2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 23 Feb 2024 12:31:59 +0000 Subject: [PATCH] Accepting request 1149900 from home:dimstar:Factory - Use newly supported shrink{} on OBS to exclude python flavors will all python versions skipped. OBS-URL: https://build.opensuse.org/request/show/1149900 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flit-core?expand=0&rev=44 --- python-flit-core.changes | 6 ++++++ python-flit-core.spec | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-flit-core.changes b/python-flit-core.changes index c648453..b629746 100644 --- a/python-flit-core.changes +++ b/python-flit-core.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 23 12:20:15 UTC 2024 - Dominique Leuenberger + +- Use newly supported shrink{} on OBS to exclude python flavors + will all python versions skipped. + ------------------------------------------------------------------- Thu Sep 7 10:50:43 UTC 2023 - Dirk Müller diff --git a/python-flit-core.spec b/python-flit-core.spec index 91f1e49..84a6937 100644 --- a/python-flit-core.spec +++ b/python-flit-core.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-flit-core # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,8 +29,7 @@ %if "%{flavor}" == "" %define pprefix python %{expand:%%define skip_%{primary_python} 1} -# ... unless the build set is empty. (We can't use shrink server-side and any skips here or on project level may have left spaces) -%if "%{pythons}" == "" || "%{pythons}" == " " || "%{pythons}" == " " || "%{pythons}" == " " || "%{pythons}" == " " +%if "%{shrink:%{pythons}}" == "" # Exclude for local osc build: unresolvable %define python_module() empty-python-buildset # Exclude for obs server