Accepting request 1066427 from devel:languages:python

- do primary/all split only for tumbleweed (similar to flit-core)

OBS-URL: https://build.opensuse.org/request/show/1066427
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyparsing?expand=0&rev=44
This commit is contained in:
Dominique Leuenberger 2023-02-19 17:18:34 +00:00 committed by Git OBS Bridge
commit dc31f62a4e
2 changed files with 23 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 17 20:54:20 UTC 2023 - Dirk Müller <dmueller@suse.com>
- do primary/all split only for tumbleweed (similar to flit-core)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 15 22:00:29 UTC 2022 - Ben Greiner <code@bnavigator.de> Thu Sep 15 22:00:29 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
# #
# spec file # spec file
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,23 +20,33 @@
# in order to avoid rewriting for subpackage generator # in order to avoid rewriting for subpackage generator
%define mypython python %define mypython python
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if 0%{?suse_version} >= 1550
# The primary python flavor is built in Factory Ring0
%if "%{flavor}" == "primary" %if "%{flavor}" == "primary"
# this one is built in Ring0
%define pprefix %{primary_python} %define pprefix %{primary_python}
%define pythons %{primary_python} %define pythons %{primary_python}
%endif %endif
# Additional flavors are built in Factory Ring1
%if "%{flavor}" == "" %if "%{flavor}" == ""
# The rest is in Ring1
%define pprefix python %define pprefix python
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} == 150500
BuildRequires: python3-base >= 3.6
%{expand:%%define skip_%{primary_python} 1} %{expand:%%define skip_%{primary_python} 1}
%else # ... 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)
%define python_module() no-build-without-multibuild-flavor %if "%{pythons}" == "" || "%{pythons}" == " " || "%{pythons}" == " " || "%{pythons}" == " " || "%{pythons}" == " "
# no non-primary python in <=15.4 # Exclude for local osc build: unresolvable
%define python_module() empty-python-buildset
# Exclude for obs server
ExclusiveArch: do-not-build ExclusiveArch: do-not-build
%endif %endif
%endif %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" %if "%{flavor}" == "test"
%define pprefix python %define pprefix python
%define psuffix -test %define psuffix -test
@ -44,7 +54,6 @@ ExclusiveArch: do-not-build
%else %else
%bcond_with test %bcond_with test
%endif %endif
%{?!python_module:%define python_module() python3-%{**}}
Name: %{pprefix}-pyparsing%{?psuffix} Name: %{pprefix}-pyparsing%{?psuffix}
Version: 3.0.9 Version: 3.0.9
Release: 0 Release: 0