From bdb98f9fc50617387469310c1783026d3f363bde5208fa8efa77a53adb09172d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 23 Jan 2024 10:20:07 +0000 Subject: [PATCH] Accepting request 1140796 from home:mcalabkova:branches:openSUSE:Backports:SLE-15-SP6:mailman - Add patch find-flufl.patch to fix the tests with recent flufl.* - Don't require importlib-resources on new Pythons, they are already a part of a standard library OBS-URL: https://build.opensuse.org/request/show/1140796 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman?expand=0&rev=90 --- find-flufl.patch | 30 ++++++++++++++++++++++++++++++ python-mailman.changes | 7 +++++++ python-mailman.spec | 8 +++++++- 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 find-flufl.patch diff --git a/find-flufl.patch b/find-flufl.patch new file mode 100644 index 0000000..3718a93 --- /dev/null +++ b/find-flufl.patch @@ -0,0 +1,30 @@ +Index: mailman-3.3.9/setup.py +=================================================================== +--- mailman-3.3.9.orig/setup.py ++++ mailman-3.3.9/setup.py +@@ -119,8 +119,8 @@ case second 'm'. Any other spelling is + 'dnspython>=1.14.0', + 'falcon>=3.0.0', + 'flufl.bounce>=4.0', +- 'flufl.i18n>=3.2', +- 'flufl.lock>=5.1', ++ 'flufl-i18n>=3.2', ++ 'flufl_lock>=5.1', + 'gunicorn', + 'lazr.config', + 'python-dateutil>=2.0', +Index: mailman-3.3.9/src/mailman.egg-info/requires.txt +=================================================================== +--- mailman-3.3.9.orig/src/mailman.egg-info/requires.txt ++++ mailman-3.3.9/src/mailman.egg-info/requires.txt +@@ -7,8 +7,8 @@ click>=8.0.0 + dnspython>=1.14.0 + falcon>=3.0.0 + flufl.bounce>=4.0 +-flufl.i18n>=3.2 +-flufl.lock>=5.1 ++flufl-i18n>=3.2 ++flufl_lock>=5.1 + gunicorn + lazr.config + python-dateutil>=2.0 diff --git a/python-mailman.changes b/python-mailman.changes index 368b764..a6ce217 100644 --- a/python-mailman.changes +++ b/python-mailman.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jan 23 09:56:40 UTC 2024 - Markéta Machová + +- Add patch find-flufl.patch to fix the tests with recent flufl.* +- Don't require importlib-resources on new Pythons, they are already + a part of a standard library + ------------------------------------------------------------------- Mon Nov 6 00:27:43 UTC 2023 - Marcus Rueckert diff --git a/python-mailman.spec b/python-mailman.spec index 97b05ec..d8da215 100644 --- a/python-mailman.spec +++ b/python-mailman.spec @@ -86,6 +86,10 @@ Source31: python-mailman.rpmlintrc Source100: https://gitlab.com/mailman/mailman/-/raw/master/src/mailman/testing/ssl_test_cert.crt Source101: https://gitlab.com/mailman/mailman/-/raw/master/src/mailman/testing/ssl_test_key.key # +# PATCH-FIX-OPENSUSE mmachova@suse.com based on upstream merge request https://gitlab.com/mailman/mailman/-/merge_requests/1123 +# it won't be needed with new releases of flufl.lock and flufl.i18n, because the issue was fixed in pdm upstream https://github.com/pdm-project/pdm/pull/2057 +Patch0: find-flufl.patch +# BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -119,7 +123,6 @@ Requires: %{mypython}-flufl.bounce >= %{flufl_bounce_min_version} Requires: %{mypython}-flufl.i18n >= %{flufl_i18n_min_version} Requires: %{mypython}-flufl.lock >= %{flufl_lock_min_version} Requires: %{mypython}-gunicorn -Requires: %{mypython}-importlib-resources >= 1.1.0 Requires: %{mypython}-lazr.config Requires: %{mypython}-passlib Requires: %{mypython}-psycopg2 @@ -138,6 +141,9 @@ Provides: mailman = %{version} %if "%{expand:%%%{mypython}_provides}" == "python3" Provides: python3-mailman = %{version}-%{release} %endif +%if %{expand:%%%{mypython}_version_nodots} < 39 +Requires: %{mypython}-importlib-resources >= 1.1.0 +%endif Obsoletes: python3-mailman < %{version}-%{release} # help in replacing any previously installed multiflavor package back to the unprefixed package Provides: %{mypython}-mailman = %{version}-%{release}