diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-08 13:08:56 -0800 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-08 13:08:56 -0800 |
| commit | 83a1dcd327aface62d6dda422370439386816b46 (patch) | |
| tree | 537bd58bae2b104d523a5862146d0acee474d2c9 /python/python-django-mailman3.spec | |
| parent | b39244ce00c4a229a03b8ac4c0284f5f47631878 (diff) | |
| download | specs-83a1dcd327aface62d6dda422370439386816b46.tar.gz specs-83a1dcd327aface62d6dda422370439386816b46.tar.xz specs-83a1dcd327aface62d6dda422370439386816b46.zip | |
+ django-mailman3
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'python/python-django-mailman3.spec')
| -rw-r--r-- | python/python-django-mailman3.spec | 61 |
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 |
