From 934ba5fff96ca6f35b778651026c098186ea7d29292789472d191b8266187950 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 6 Nov 2023 08:25:40 +0000 Subject: [PATCH] Accepting request 1123457 from home:darix:branches:devel:languages:python:mailman - make it easier to notice to keep buildrequires and runtime requires version limits in sync. This will also help us to notice early when the version of other libraries do not match the requires encoded in the source code. OBS-URL: https://build.opensuse.org/request/show/1123457 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-django-mailman3?expand=0&rev=31 --- python-django-mailman3.changes | 8 ++++++++ python-django-mailman3.spec | 21 +++++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/python-django-mailman3.changes b/python-django-mailman3.changes index 0e4e4ae..603e1f6 100644 --- a/python-django-mailman3.changes +++ b/python-django-mailman3.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Nov 6 00:11:01 UTC 2023 - Marcus Rueckert + +- make it easier to notice to keep buildrequires and runtime + requires version limits in sync. This will also help us to notice + early when the version of other libraries do not match the + requires encoded in the source code. + ------------------------------------------------------------------- Thu Nov 2 07:18:55 UTC 2023 - Andreas Schneider diff --git a/python-django-mailman3.spec b/python-django-mailman3.spec index 9a9276c..8f18d7f 100644 --- a/python-django-mailman3.spec +++ b/python-django-mailman3.spec @@ -15,6 +15,11 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%global django_min_version 3.2 +%global django_max_version 4.3 +%global mailmanclient_min_version 3.3.3 +%global django_allauth_min_version 0.56 +%global django_gravatar2_min_version 1.0.6 %{?sle15_python_module_pythons} %define modname django_mailman3 @@ -28,17 +33,17 @@ Source: https://files.pythonhosted.org/packages/source/d/django-mailman3 BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Django >= 1.11 -Requires: python-django-allauth >= 0.56 -Requires: python-django-gravatar2 >= 1.0.6 -Requires: python-mailmanclient +Requires: (python-Django >= %{django_min_version} with python-Django < %{django_max_version}) +Requires: python-django-allauth >= %{django_allauth_min_version} +Requires: python-django-gravatar2 >= %{django_gravatar2_min_version} +Requires: python-mailmanclient >= %{mailmanclient_min_version} Requires: python-pytz BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module Django >= 1.11} -BuildRequires: %{python_module django-allauth} -BuildRequires: %{python_module django-gravatar2 >= 1.0.6} -BuildRequires: %{python_module mailmanclient} +BuildRequires: %{python_module Django >= %{django_min_version}} +BuildRequires: %{python_module django-allauth >= %{django_allauth_min_version}} +BuildRequires: %{python_module django-gravatar2 >= %{django_gravatar2_min_version}} +BuildRequires: %{python_module mailmanclient >= %{mailmanclient_min_version}} BuildRequires: %{python_module pytest-django} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz}