summaryrefslogtreecommitdiffstats
path: root/python/python-mailmanclient.spec
blob: 48329a72d8adc8985adb095acbec3a10d9749826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# tests depend on a git checkout of mailman server
%bcond_with tests

%global srcname mailmanclient

Name:           python-%{srcname}
Version:        3.3.3
Release:        %autorelease
Summary:        Python bindings for Mailman REST API
License:        LGPLv3+
URL:            http://www.list.org/
Source0:        %{pypi_source %{srcname}}

BuildArch:      noarch

BuildRequires:  python%{python3_pkgversion}-devel
BuildRequires:  python%{python3_pkgversion}-setuptools


%global _description %{expand:
The mailmanclient library provides official Python bindings for the GNU Mailman
3 REST API.}

%description %{_description}


%package -n python%{python3_pkgversion}-%{srcname}
Summary:        %{summary}

%description -n python%{python3_pkgversion}-%{srcname} %{_description}


%prep
%autosetup -p1 -n %{srcname}-%{version}


%generate_buildrequires
%if %{with tests}
%pyproject_buildrequires -t -x testing
%else
%pyproject_buildrequires
%endif


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files django_mailman3


%if %{with tests}
%check
%tox
%endif


%files -n  python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
%license COPYING.LESSER
%doc README.rst


%changelog
%autochangelog