- Don't use :primary multibuild flavor for non-Tumbleweed

* accomodates special SLE15 projects defininig extra flavors but
    not building for primary python3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=68
This commit is contained in:
Dirk Mueller 2023-03-09 16:40:11 +00:00 committed by Git OBS Bridge
parent 11a1c7f9aa
commit e29925bb8e
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 9 16:39:58 UTC 2023 - Dirk Müller <dmueller@suse.com>
- Don't use :primary multibuild flavor for non-Tumbleweed
* accomodates special SLE15 projects defininig extra flavors but
not building for primary python3
-------------------------------------------------------------------
Fri Jan 13 15:27:09 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -20,6 +20,7 @@
# in order to avoid rewriting for subpackage generator
%define mypython python
%global flavor @BUILD_FLAVOR@%{nil}
%if 0%{?suse_version} >= 1550
%if "%{flavor}" == "primary"
# this one is goes into Ring0: Bootstrap for primary python stack
%define pprefix %{primary_python}
@ -33,6 +34,15 @@
%{expand:%%define skip_%{primary_python} 1}
BuildRequires: python3-packaging
%endif
%else
# backport and option d projects for 15.X having one or more python in the buildset don't need the Ring split for bootstrap
%if "%{flavor}" == "primary"
%define python_module() invalid-multibuild-flavor-for-15.X
ExclusiveArch: do-not-build
%else
%define pprefix python
%endif
%endif
%if "%{flavor}" == "test"
%define pprefix python
%define psuffix -test