From 15338c0d3f4c2872f274755363e9dd7870be9d24 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Wed, 8 Dec 2021 15:30:25 -0800 Subject: + django-postorius Signed-off-by: Michel Alexandre Salim --- python/python-django-postorius.spec | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 python/python-django-postorius.spec (limited to 'python/python-django-postorius.spec') diff --git a/python/python-django-postorius.spec b/python/python-django-postorius.spec new file mode 100644 index 0000000..ee2e191 --- /dev/null +++ b/python/python-django-postorius.spec @@ -0,0 +1,70 @@ +# mailman3's TestableMaster can't be used outside of a +# source checkout? +%bcond_with tests + +%global srcname postorius + +Name: python-django-%{srcname} +Version: 1.3.6 +Release: %autorelease +Summary: Web UI for GNU Mailman +License: GPLv3+ +URL: https://gitlab.com/mailman/postorius +Source0: %{pypi_source %{srcname}} +# don't check out modules from git +Patch0: %{srcname}-tox-localdeps.patch +# use PEP503 normalized dependencies +Patch1: %{srcname}-pep503.patch + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools + +%global _description %{expand: +The Postorius Django app provides a web user interface to access GNU Mailman.} + +%description %{_description} + + +%package -n python%{python3_pkgversion}-django-%{srcname} +Summary: %{summary} + +%description -n python%{python3_pkgversion}-django-%{srcname} %{_description} + + +%prep +%autosetup -p1 -n %{srcname}-%{version} + + +%generate_buildrequires +%if %{with tests} +%pyproject_buildrequires -t +%else +%pyproject_buildrequires +%endif + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files %{srcname} + + +%if %{with tests} +%check +PYTHONPATH=$(pwd)/src:${PYTHONPATH} \ +%tox +%endif + + +%files -n python%{python3_pkgversion}-django-%{srcname} -f %{pyproject_files} +%license COPYING +%doc README.rst + + +%changelog +%autochangelog -- cgit