From 69d83cd77d1216c4f70c2dafc7f7c0853388c7031e4f62b60f70828e78dbd2b7 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 --- .gitattributes | 23 +++++ .gitignore | 1 + mailman-hyperkitty-1.2.1.tar.gz | 3 + ...mailman-hyperkitty-fix-archiver-test.patch | 13 +++ python-mailman-hyperkitty.changes | 87 +++++++++++++++++++ python-mailman-hyperkitty.spec | 82 +++++++++++++++++ 6 files changed, 209 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mailman-hyperkitty-1.2.1.tar.gz create mode 100644 python-mailman-hyperkitty-fix-archiver-test.patch create mode 100644 python-mailman-hyperkitty.changes create mode 100644 python-mailman-hyperkitty.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mailman-hyperkitty-1.2.1.tar.gz b/mailman-hyperkitty-1.2.1.tar.gz new file mode 100644 index 0000000..92e5213 --- /dev/null +++ b/mailman-hyperkitty-1.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8d69dfbc6ccb582896d40a9a69457aa1075cdd6efbc55d34c797024b40bcc38 +size 22197 diff --git a/python-mailman-hyperkitty-fix-archiver-test.patch b/python-mailman-hyperkitty-fix-archiver-test.patch new file mode 100644 index 0000000..ace98b4 --- /dev/null +++ b/python-mailman-hyperkitty-fix-archiver-test.patch @@ -0,0 +1,13 @@ +Index: mailman-hyperkitty-1.2.0/mailman_hyperkitty/tests/test_archiver.py +=================================================================== +--- mailman-hyperkitty-1.2.0.orig/mailman_hyperkitty/tests/test_archiver.py 2022-06-09 13:02:11.689258996 +0200 ++++ mailman-hyperkitty-1.2.0/mailman_hyperkitty/tests/test_archiver.py 2022-06-09 13:09:00.023906415 +0200 +@@ -130,7 +130,7 @@ MIME-Version: 1.0 + Content-Type: multipart/alternative; boundary="zzz123" + + Ce message est au format MIME. Comme votre logiciel de courrier ne comprend +-pas ce format, tout ou partie de ce message pourrait \xc3\xaatre illisible. ++pas ce format, tout ou partie de ce message pourrait \udcc3\udcaatre illisible. + + --zzz123 + Content-Type: text/plain; charset="us-ascii" diff --git a/python-mailman-hyperkitty.changes b/python-mailman-hyperkitty.changes new file mode 100644 index 0000000..e8fbb0f --- /dev/null +++ b/python-mailman-hyperkitty.changes @@ -0,0 +1,87 @@ +------------------------------------------------------------------- +Thu Feb 29 20:11:12 UTC 2024 - Ben Greiner + +- Simplify python flavor selection + * Go back to primary python3 on Tumbleweed + * Use SLE15 python module pythons on 15.x +- Replace pseudo python singlespec rewriter in order to not give + the wrong impression + +------------------------------------------------------------------- +Wed Feb 28 13:28:58 UTC 2024 - Georg Pfuetzenreuter + +- Build for Python 3.12 + +------------------------------------------------------------------- +Sat Jul 1 09:32:57 UTC 2023 - Andreas Schneider + +- Fix requirement for mailman3 and python modules + +------------------------------------------------------------------- +Mon Jun 26 20:31:18 UTC 2023 - Andreas Schneider + +- Update to version 1.2.1 +- Use sle15_python_module_pythons +- Removed python-mailman-hyperkitty-no-mock.patch + +------------------------------------------------------------------- +Mon Jul 4 11:12:24 UTC 2022 - Ben Greiner + +- Go back to python39 -- highest supported Python by mailman3 + +------------------------------------------------------------------- +Thu Jun 9 11:11:24 UTC 2022 - Andreas Schneider + +- Fix BR for mailman3 (package has been renamed) +- Fix test_archive_message_with_surrogates + * Added python-mailman-hyperkitty-fix-archiver-test.patch + +------------------------------------------------------------------- +Thu May 26 08:46:16 UTC 2022 - pgajdos@suse.com + +- do not use python-mock for build +- added patches + fix https://gitlab.com/mailman/mailman-hyperkitty/-/issues/28 + + python-mailman-hyperkitty-no-mock.patch + +------------------------------------------------------------------- +Wed Nov 17 08:25:00 UTC 2021 - Andreas Schneider + +- Update to version 1.2.0 + * Update the authentication to call Hyperkitty using the API key as a part of + Authorization HTTP header instead of url parameter. +- Removed obsolete python-mailman-hyperkitty-reflect-changes-in-mailman-core.patch + +------------------------------------------------------------------- +Tue May 4 09:36:18 UTC 2021 - Ben Greiner + +- restrict to primary python3 flavor due to mailman + +------------------------------------------------------------------- +Mon Dec 2 10:47:15 UTC 2019 - pgajdos@suse.com + +- call spec-cleaner + +------------------------------------------------------------------- +Wed Nov 27 14:29:11 UTC 2019 - pgajdos@suse.com + +- ship mailman-hyperkitty.cfg, in doc for now + +------------------------------------------------------------------- +Thu Nov 14 17:58:56 UTC 2019 - pgajdos@suse.com + +- fix testsuite +- added patches + https://gitlab.com/mailman/mailman-hyperkitty/commit/84e05811fb71aa105fd85fd14399bff813ed744d + + python-mailman-hyperkitty-reflect-changes-in-mailman-core.patch + +------------------------------------------------------------------- +Thu Nov 14 12:36:41 UTC 2019 - Tomáš Chvátal + +- Use nose2 to run the tests as the package can't use pytest + +------------------------------------------------------------------- +Wed Nov 13 15:01:47 UTC 2019 - pgajdos@suse.com + +- initial version 1.1.0 [SLE-7686] + diff --git a/python-mailman-hyperkitty.spec b/python-mailman-hyperkitty.spec new file mode 100644 index 0000000..c8ab1e3 --- /dev/null +++ b/python-mailman-hyperkitty.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-mailman-hyperkitty +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# 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 +%{?sle15_python_module_pythons} +%endif +%global mypython %pythons +%global mypython_sitelib %{expand:%%{%{mypython}_sitelib}} + +Name: python-mailman-hyperkitty +Version: 1.2.1 +Release: 0 +Summary: Mailman archiver plugin for HyperKitty +License: GPL-3.0-only +URL: https://gitlab.com/mailman/mailman-hyperkitty/ +Source: https://files.pythonhosted.org/packages/source/m/mailman-hyperkitty/mailman-hyperkitty-%{version}.tar.gz +# https://gitlab.com/mailman/mailman-hyperkitty/-/issues/28 +Patch0: python-mailman-hyperkitty-fix-archiver-test.patch +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: (mailman3 >= 3.3.5 with %{mypython}-mailman3) +BuildRequires: %{python_module nose2} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module zope.interface} +# /SECTION + +%description +Mailman archiver plugin for HyperKitty + +%package -n %{mypython}-mailman-hyperkitty +Summary: Mailman archiver plugin for HyperKitty +Requires: %{mypython}-requests +Requires: %{mypython}-zope.interface +Requires: (mailman3 >= 3.3.5 with %{mypython}-mailman3) + +%description -n %{mypython}-mailman-hyperkitty +Mailman archiver plugin for HyperKitty + +%prep +%autosetup -n mailman-hyperkitty-%{version} -p1 + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m nose2 -v + +%files -n %{mypython}-mailman-hyperkitty +%doc README.rst mailman-hyperkitty.cfg +%license LICENSE.txt +%{mypython_sitelib}/mailman_hyperkitty +%{mypython_sitelib}/mailman_hyperkitty-%{version}.dist-info + +%changelog From 6bf0231f34d85c6e0c85feb17f504fbf7da93cd64e7350f20cd9896d56bbd8b2 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}}