diff --git a/python-mailman-hyperkitty.changes b/python-mailman-hyperkitty.changes index e8fbb0f..18389f1 100644 --- a/python-mailman-hyperkitty.changes +++ b/python-mailman-hyperkitty.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 19 07:15:22 UTC 2025 - Andreas Schneider + +- If possible build for primary_python (fixes Leap 16.0) + ------------------------------------------------------------------- Thu Feb 29 20:11:12 UTC 2024 - Ben Greiner diff --git a/python-mailman-hyperkitty.spec b/python-mailman-hyperkitty.spec index ec84f43..3ea10fe 100644 --- a/python-mailman-hyperkitty.spec +++ b/python-mailman-hyperkitty.spec @@ -1,7 +1,7 @@ # # spec file for package python-mailman-hyperkitty # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 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 @@ -16,11 +16,13 @@ # -# Always only build one flavor: primary python for TW, python311 from the SLE15 python module for 15.x -%if 0%{?suse_version} >= 1550 -%define pythons python3 -%else +# Always only build one flavor +%if 0%{?sle_version} && 0%{?sle_version} < 160000 %{?sle15_python_module_pythons} +%elif %{defined primary_python} +%define pythons %{primary_python} +%else +%define pythons python3 %endif %global mypython %pythons %global mypython_sitelib %{expand:%%{%{mypython}_sitelib}}