From a18433370c85ca13fa27711697ea64794f026e1bebdebe94adff66f660dbb770 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Mon, 9 Feb 2026 11:05:17 +0000 Subject: [PATCH] - Add pythons_for_pypi macro. This macro will help to build the python minimal stack for different python versions. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flit-core?expand=0&rev=58 --- python-flit-core.changes | 6 ++++++ python-flit-core.spec | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-flit-core.changes b/python-flit-core.changes index b18c7d0..cab5481 100644 --- a/python-flit-core.changes +++ b/python-flit-core.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 9 11:04:15 UTC 2026 - Daniel Garcia + +- Add pythons_for_pypi macro. This macro will help to build the python + minimal stack for different python versions. + ------------------------------------------------------------------- Thu Jan 29 09:13:15 UTC 2026 - Daniel Garcia diff --git a/python-flit-core.spec b/python-flit-core.spec index 8003ab5..61793a0 100644 --- a/python-flit-core.spec +++ b/python-flit-core.spec @@ -19,7 +19,7 @@ %define modname flit-core %global flavor @BUILD_FLAVOR@%{nil} %define plainpython python -%if 0%{?suse_version} >= 1550 +%if 0%{?suse_version} >= 1600 # The primary python flavor is built in Factory Ring0 %if "%{flavor}" == "primary" %define pprefix %{primary_python} @@ -49,6 +49,9 @@ ExclusiveArch: do-not-build %bcond_with test %endif +%if "%{flavor}" == "" +%{?pythons_for_pypi} +%endif %{?sle15_python_module_pythons} %if "%{flavor}" == "" && "%{shrink:%{pythons}}" == ""