From ee82c25c21192fcb3cb1569eb0405463e78fd1757792adea13b246496185e667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 29 Dec 2025 11:01:30 +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-postorius?expand=0&rev=75 --- python-postorius.changes | 5 +++++ python-postorius.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-postorius.changes b/python-postorius.changes index 89a9d51..3cbd36c 100644 --- a/python-postorius.changes +++ b/python-postorius.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 19 07:18:04 UTC 2025 - Andreas Schneider + +- If possible build for primary_python (fixes Leap 16.0) + ------------------------------------------------------------------- Wed Dec 17 13:32:04 UTC 2025 - Markéta Machová diff --git a/python-postorius.spec b/python-postorius.spec index b03a7f9..329de19 100644 --- a/python-postorius.spec +++ b/python-postorius.spec @@ -39,11 +39,13 @@ %global postorius_datadir %{postorius_libdir}/data # keep in sync with python-HyperKitty/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}}