2019-11-14 11:45:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-mailman-hyperkitty
|
|
|
|
#
|
2024-02-29 09:05:00 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-11-14 11:45:56 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-03-01 20:21:37 +00:00
|
|
|
# Always only build one flavor: primary python for TW, python311 from the SLE15 python module for 15.x
|
2022-07-04 18:09:21 +00:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2024-03-01 20:21:37 +00:00
|
|
|
%define pythons python3
|
2022-07-04 18:09:21 +00:00
|
|
|
%else
|
2023-06-27 08:02:31 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2022-07-04 18:09:21 +00:00
|
|
|
%endif
|
2024-03-01 20:21:37 +00:00
|
|
|
%global mypython %pythons
|
|
|
|
%global mypython_sitelib %{expand:%%{%{mypython}_sitelib}}
|
|
|
|
|
2019-11-14 11:45:56 +00:00
|
|
|
Name: python-mailman-hyperkitty
|
2023-06-27 08:02:31 +00:00
|
|
|
Version: 1.2.1
|
2019-11-14 11:45:56 +00:00
|
|
|
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
|
2022-05-26 14:49:03 +00:00
|
|
|
# https://gitlab.com/mailman/mailman-hyperkitty/-/issues/28
|
2023-06-27 08:02:31 +00:00
|
|
|
Patch0: python-mailman-hyperkitty-fix-archiver-test.patch
|
2024-03-01 20:21:37 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-11-14 11:45:56 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-03-01 20:21:37 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-11-14 11:45:56 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
2024-03-01 20:21:37 +00:00
|
|
|
BuildRequires: (mailman3 >= 3.3.5 with %{mypython}-mailman3)
|
2019-11-14 12:37:01 +00:00
|
|
|
BuildRequires: %{python_module nose2}
|
2019-11-14 11:45:56 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module zope.interface}
|
|
|
|
# /SECTION
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mailman archiver plugin for HyperKitty
|
|
|
|
|
2024-03-01 20:21:37 +00:00
|
|
|
%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
|
|
|
|
|
2019-11-14 11:45:56 +00:00
|
|
|
%prep
|
2021-11-18 13:03:17 +00:00
|
|
|
%autosetup -n mailman-hyperkitty-%{version} -p1
|
2019-11-14 11:45:56 +00:00
|
|
|
|
|
|
|
%build
|
2024-03-01 20:21:37 +00:00
|
|
|
%pyproject_wheel
|
2019-11-14 11:45:56 +00:00
|
|
|
|
|
|
|
%install
|
2024-03-01 20:21:37 +00:00
|
|
|
%pyproject_install
|
2019-11-14 11:45:56 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2019-11-14 12:37:01 +00:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m nose2 -v
|
2019-11-14 11:45:56 +00:00
|
|
|
|
2024-03-01 20:21:37 +00:00
|
|
|
%files -n %{mypython}-mailman-hyperkitty
|
2019-11-27 14:29:33 +00:00
|
|
|
%doc README.rst mailman-hyperkitty.cfg
|
2019-11-14 11:45:56 +00:00
|
|
|
%license LICENSE.txt
|
2024-03-01 20:21:37 +00:00
|
|
|
%{mypython_sitelib}/mailman_hyperkitty
|
|
|
|
%{mypython_sitelib}/mailman_hyperkitty-%{version}.dist-info
|
2019-11-14 11:45:56 +00:00
|
|
|
|
|
|
|
%changelog
|