From 7cdee4b3c0cb57d41377f25b92abd77d4816a41b28af41f07b9e53ddd830019d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 29 Dec 2025 10:58:02 +0000 Subject: [PATCH] - If possible build for primary_python (fixes Leap 16.0) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-HyperKitty?expand=0&rev=99 --- python-HyperKitty.changes | 5 +++++ python-HyperKitty.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-HyperKitty.changes b/python-HyperKitty.changes index 6504e2e..4ccdd20 100644 --- a/python-HyperKitty.changes +++ b/python-HyperKitty.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 19 07:17:03 UTC 2025 - Andreas Schneider + +- If possible build for primary_python (fixes Leap 16.0) + ------------------------------------------------------------------- Thu Dec 18 09:09:01 UTC 2025 - Markéta Machová diff --git a/python-HyperKitty.spec b/python-HyperKitty.spec index b3169be..83a8c51 100644 --- a/python-HyperKitty.spec +++ b/python-HyperKitty.spec @@ -52,11 +52,13 @@ %global hyperkitty_services hyperkitty-qcluster.service hyperkitty-runjob-daily.service hyperkitty-runjob-daily.timer hyperkitty-runjob-hourly.service hyperkitty-runjob-hourly.timer hyperkitty-runjob-minutely.service hyperkitty-runjob-minutely.timer hyperkitty-runjob-monthly.service hyperkitty-runjob-monthly.timer hyperkitty-runjob-quarter-hourly.service hyperkitty-runjob-quarter-hourly.timer hyperkitty-runjob-weekly.service hyperkitty-runjob-weekly.timer hyperkitty-runjob-yearly.service hyperkitty-runjob-yearly.timer # keep in sync with python-postorius/python-mailman-web -# 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}}