summaryrefslogtreecommitdiffstats
path: root/python/python-django-mailman3.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python/python-django-mailman3.spec')
-rw-r--r--python/python-django-mailman3.spec61
1 files changed, 61 insertions, 0 deletions
diff --git a/python/python-django-mailman3.spec b/python/python-django-mailman3.spec
new file mode 100644
index 0000000..c75576a
--- /dev/null
+++ b/python/python-django-mailman3.spec
@@ -0,0 +1,61 @@
+%global srcname django-mailman3
+
+Name: python-%{srcname}
+Version: 1.3.7
+Release: %autorelease
+Summary: Django library to help interaction with Mailman
+License: GPLv3+
+URL: https://gitlab.com/mailman/django-mailman3
+Source0: %{pypi_source %{srcname}}
+Patch0: %{srcname}-localdeps.patch
+
+BuildArch: noarch
+
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+
+%global _description %{expand:
+This package contains libraries and templates for Django-based interfaces
+interacting with Mailman.
+
+To use this application, add django_mailman3 to the INSTALLED_APPS list in your
+Django server’s settings file.}
+
+%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
+%pyproject_buildrequires -t
+
+
+%build
+%pyproject_wheel
+
+
+%install
+%pyproject_install
+%pyproject_save_files django_mailman3
+
+
+%check
+# Tests want to be run locally
+PYTHONPATH=.:${PYTHONPATH} %tox
+
+
+%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
+%license COPYING.txt
+%doc README.rst
+
+
+%changelog
+%autochangelog