Accepting request 1154171 from devel:languages:python:mailman

OBS-URL: https://build.opensuse.org/request/show/1154171
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-mailman3?expand=0&rev=14
This commit is contained in:
Ana Guerrero 2024-03-04 20:24:42 +00:00 committed by Git OBS Bridge
commit 48d2c3d920
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 29 21:07:54 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Build PEP517 wheel
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 6 00:11:01 UTC 2023 - Marcus Rueckert <mrueckert@suse.de> Mon Nov 6 00:11:01 UTC 2023 - Marcus Rueckert <mrueckert@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-django-mailman3 # spec file for package python-django-mailman3
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%global django_min_version 3.2 %global django_min_version 3.2
%global django_max_version 4.3 %global django_max_version 4.3
%global mailmanclient_min_version 3.3.3 %global mailmanclient_min_version 3.3.3
@ -33,20 +34,22 @@ Source: https://files.pythonhosted.org/packages/source/d/django-mailman3
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: (python-Django >= %{django_min_version} with python-Django < %{django_max_version})
Requires: python-django-allauth >= %{django_allauth_min_version} Requires: python-django-allauth >= %{django_allauth_min_version}
Requires: python-django-gravatar2 >= %{django_gravatar2_min_version} Requires: python-django-gravatar2 >= %{django_gravatar2_min_version}
Requires: python-mailmanclient >= %{mailmanclient_min_version} Requires: python-mailmanclient >= %{mailmanclient_min_version}
Requires: python-pytz Requires: python-pytz
Requires: (python-Django >= %{django_min_version} with python-Django < %{django_max_version})
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module Django >= %{django_min_version}} BuildRequires: %{python_module Django >= %{django_min_version}}
BuildRequires: %{python_module django-allauth >= %{django_allauth_min_version}} BuildRequires: %{python_module django-allauth >= %{django_allauth_min_version}}
BuildRequires: %{python_module django-gravatar2 >= %{django_gravatar2_min_version}} BuildRequires: %{python_module django-gravatar2 >= %{django_gravatar2_min_version}}
BuildRequires: %{python_module mailmanclient >= %{mailmanclient_min_version}} BuildRequires: %{python_module mailmanclient >= %{mailmanclient_min_version}}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-django} BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz} BuildRequires: %{python_module pytz}
BuildRequires: %{python_module wheel}
# /SECTION # /SECTION
%python_subpackages %python_subpackages
@ -57,10 +60,10 @@ Django library to help interaction with Mailman.
%autosetup -p1 -n django-mailman3-%{version} %autosetup -p1 -n django-mailman3-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@ -70,7 +73,7 @@ export PYTHONPATH="$(pwd)"
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license COPYING.txt %license COPYING.txt
%{python_sitelib}/%{modname}-%{version}*-info %{python_sitelib}/%{modname}-%{version}.dist-info
%{python_sitelib}/%{modname} %{python_sitelib}/%{modname}
%changelog %changelog