diff --git a/python-setuptools.changes b/python-setuptools.changes index 4e085f1..d4bbe4e 100644 --- a/python-setuptools.changes +++ b/python-setuptools.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jan 29 14:55:29 UTC 2026 - Daniel Garcia + +- Fix suse_version check to make sure that primary builds for SLE-16 + series +- Add pythons_for_pypi macro. This macro will help to build the python + minimal stack for different python versions. + ------------------------------------------------------------------- Thu Jan 1 12:37:12 UTC 2026 - Ben Greiner diff --git a/python-setuptools.spec b/python-setuptools.spec index 9ec1979..2ddbd61 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -17,7 +17,7 @@ %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} @@ -51,7 +51,19 @@ ExclusiveArch: do-not-build # in order to avoid rewriting for subpackage generator %define mypython python + +%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}-setuptools%{psuffix} Version: 80.9.0 Release: 0