diff --git a/python-installer.changes b/python-installer.changes index 5862a6b..eea1c0b 100644 --- a/python-installer.changes +++ b/python-installer.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Apr 24 16:05:22 UTC 2023 - Daniel Garcia + +- Use python311 to build if sle15_python_module_pythons is defined. + +------------------------------------------------------------------- +Fri Apr 21 12:26:59 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + ------------------------------------------------------------------- Tue Mar 28 03:51:53 UTC 2023 - Steve Kowalik diff --git a/python-installer.spec b/python-installer.spec index ddc01d0..0cbaf1d 100644 --- a/python-installer.spec +++ b/python-installer.spec @@ -24,6 +24,7 @@ %define pkg_suffix %{nil} %bcond_with test %endif +%{?sle15_python_module_pythons} Name: python-installer%{pkg_suffix} Version: 0.7.0 Release: 0 @@ -50,7 +51,15 @@ A library for installing Python wheels. %if !%{with test} %build -python3 -m flit_core.wheel + +# Use defined python if sle15_python_module_pythons, in other case use +# the default python3 module to build + %if %{defined sle15_python_module_pythons} + python3.11 -m flit_core.wheel + %else + python3 -m flit_core.wheel + %endif + %endif %if !%{with test}