diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/python-mailmanclient.spec | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/python/python-mailmanclient.spec b/python/python-mailmanclient.spec new file mode 100644 index 0000000..473959c --- /dev/null +++ b/python/python-mailmanclient.spec @@ -0,0 +1,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 %{srcname} + + +%if %{with tests} +%check +%tox +%endif + + +%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} +%license COPYING.LESSER +%doc README.rst + + +%changelog +%autochangelog |
