From 4168d2c460605cb4c4660b4bf6838e97223948925c60ccd0708050c4c26d93e6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Jul 2025 12:50:59 +0000 Subject: [PATCH 1/2] cleanup OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman-hyperkitty?expand=0&rev=24 --- python-mailman-hyperkitty.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-mailman-hyperkitty.spec b/python-mailman-hyperkitty.spec index ec84f43..c8ab1e3 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 # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed From 2269e5afb28f19d1ea43b6928940938e69a8f4ad389437af8d6119d585271b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 29 Dec 2025 10:59:15 +0000 Subject: [PATCH 2/2] - If possible build for primary_python (fixes Leap 16.0) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman-hyperkitty?expand=0&rev=25 --- python-mailman-hyperkitty.changes | 5 +++++ python-mailman-hyperkitty.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) 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 c8ab1e3..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) 2025 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}}