1
0

Accepting request 1152838 from home:gladiac:mailman

- Fix building on SLE15 based distributions

OBS-URL: https://build.opensuse.org/request/show/1152838
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-HyperKitty?expand=0&rev=78
This commit is contained in:
2024-02-28 13:00:57 +00:00
committed by Git OBS Bridge
parent f83a9ec61b
commit 71795ff6ce
2 changed files with 21 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 28 06:46:36 UTC 2024 - Andreas Schneider <asn@cryptomilk.org>
- Fix building on SLE15 based distributions
-------------------------------------------------------------------
Sat Feb 24 20:34:06 UTC 2024 - Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>

View File

@@ -55,18 +55,26 @@
%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-mailman/python-mailman-web/python-postorious
%if 0%{?suse_version} >= 1550
# Newest python supported by mailman is Python 3.12 (?)
%if 0%{?suse_version} >= 1600
# Newest python supported by mailman is Python 3.12, but we have just Python 3.11 in SLE
# See https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/docs/NEWS.rst
%define pythons python312
%define mypython python312
%define __mypython %{__python312}
%define mypython_sitelib %{python312_sitelib}
%define __mypython %{__python312}
%else
%{?sle15_python_module_pythons}
%define pythons python312
%define mypython python312
%define __mypython %{__python312}
%define mypython_sitelib %{python312_sitelib}
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500
%define pythons python311
%define mypython python311
%define mypython_sitelib %{python311_sitelib}
%define __mypython %{__python311}
%else
%{?!python_module:%define python_module() python3-%{**}}
%define pythons python3
%define mypython python3
%define mypython_sitelib %{python3_sitelib}
%define __mypython %{__python3}
%endif
%endif
Name: python-HyperKitty