15
0

Sync with factory

This commit is contained in:
2026-02-18 12:16:09 +01:00
parent 84d92a6006
commit 43447bc052
6 changed files with 139 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-packaging
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,8 @@
# in order to avoid rewriting for subpackage generator
%define mypython python
%global flavor @BUILD_FLAVOR@%{nil}
%if 0%{?suse_version} >= 1650
%if 0%{?suse_version} >= 1600
%if "%{flavor}" == "primary"
# this one is goes into Ring0: Bootstrap for primary python stack
%define pprefix %{primary_python}
@@ -42,8 +43,9 @@ ExclusiveArch: do-not-build
%else
%define pprefix python
%endif
%{?sle15_python_module_pythons}
%endif
%if "%{flavor}" == "test"
%define pprefix python
%define psuffix -test
@@ -52,8 +54,20 @@ ExclusiveArch: do-not-build
%bcond_with test
%endif
%if "%{flavor}" == ""
%{?pythons_for_pypi}
%endif
%{?sle15_python_module_pythons}
%if "%{flavor}" == "" && "%{shrink:%{pythons}}" == ""
# Exclude for local osc build: unresolvable
%define python_module() empty-python-buildset
# Exclude for obs server
ExclusiveArch: do-not-build
%endif
Name: %{pprefix}-packaging%{?psuffix}
Version: 24.2
Version: 26.0
Release: 0
Summary: Core utilities for Python packages
License: Apache-2.0 AND BSD-2-Clause
@@ -71,6 +85,7 @@ BuildArch: noarch
BuildRequires: %{python_module packaging = %{version}}
BuildRequires: %{python_module pretend}
BuildRequires: %{python_module pytest >= 6.2}
BuildRequires: %{python_module tomli-w}
%endif
%if "%{flavor}" == "primary"
# See boo#1186870, we can't provide ourselves to pythondistdeps.py