forked from pool/python-mailman-hyperkitty
- restrict to primary python3 flavor due to mailman OBS-URL: https://build.opensuse.org/request/show/890328 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman-hyperkitty?expand=0&rev=7
77 lines
2.6 KiB
RPMSpec
77 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-mailman-hyperkitty
|
|
#
|
|
# Copyright (c) 2021 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
# mailman is built only for primary python3 flavor
|
|
%define pythons python3
|
|
Name: python-mailman-hyperkitty
|
|
Version: 1.1.0
|
|
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/commit/84e05811fb71aa105fd85fd14399bff813ed744d
|
|
Patch0: python-mailman-hyperkitty-reflect-changes-in-mailman-core.patch
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-mailman
|
|
Requires: python-requests
|
|
Requires: python-setuptools
|
|
Requires: python-zope.interface
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module mailman}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module nose2}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module zope.interface}
|
|
# /SECTION
|
|
%if 0%{python3_version_nodots} == 38
|
|
# help in replacing any previously installed multiflavor package back to the primary python3 package
|
|
Provides: python38-mailman-hyperkitty = %{version}-%{release}
|
|
Obsoletes: python38-mailman-hyperkitty < %{version}-%{release}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Mailman archiver plugin for HyperKitty
|
|
|
|
%prep
|
|
%setup -q -n mailman-hyperkitty-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m nose2 -v
|
|
|
|
%files %{python_files}
|
|
%doc README.rst mailman-hyperkitty.cfg
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|