1
0
forked from pool/python-Django

Accepting request 1044061 from devel:languages:python:django

- Recommends python-pymemcache instead of the deprecated
  python-python-memcached. This is the module used in Django since 3.2
  https://docs.djangoproject.com/en/3.2/releases/3.2/#pymemcache-support

OBS-URL: https://build.opensuse.org/request/show/1044061
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Django?expand=0&rev=95
This commit is contained in:
Dominique Leuenberger 2022-12-23 09:20:45 +00:00 committed by Git OBS Bridge
commit fd2c54f705
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Dec 21 09:39:56 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Recommends python-pymemcache instead of the deprecated
python-python-memcached. This is the module used in Django since 3.2
https://docs.djangoproject.com/en/3.2/releases/3.2/#pymemcache-support
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 6 13:30:53 UTC 2022 - Alberto Planas Dominguez <aplanas@suse.com> Tue Dec 6 13:30:53 UTC 2022 - Alberto Planas Dominguez <aplanas@suse.com>

View File

@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
%define skip_python36 1 %define skip_python36 1
# Selenium and memcached are not operational # Selenium and memcached are not operational
@ -69,7 +68,7 @@ Recommends: python-Jinja2 >= 2.9.2
Recommends: python-PyYAML Recommends: python-PyYAML
Recommends: python-geoip2 Recommends: python-geoip2
Recommends: python-pylibmc Recommends: python-pylibmc
Recommends: python-python-memcached >= 1.59 Recommends: python-pymemcache
Provides: python-django = %{version} Provides: python-django = %{version}
Obsoletes: python-django < %{version} Obsoletes: python-django < %{version}
Provides: python-South = %{version} Provides: python-South = %{version}
@ -77,7 +76,7 @@ Obsoletes: python-South < %{version}
BuildArch: noarch BuildArch: noarch
%if %{with memcached} %if %{with memcached}
BuildRequires: %{python_module pylibmc} BuildRequires: %{python_module pylibmc}
BuildRequires: %{python_module python-memcached >= 1.59} BuildRequires: %{python_module pymemcache}
%endif %endif
%if %{with selenium} %if %{with selenium}
# python-selenium is supported only on the Intel architecture. # python-selenium is supported only on the Intel architecture.
@ -104,8 +103,7 @@ echo "`grep -e '^[0-9a-f]\{32\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-
echo "`grep -e '^[0-9a-f]\{40\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-40` %{SOURCE0}" | sha1sum -c echo "`grep -e '^[0-9a-f]\{40\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-40` %{SOURCE0}" | sha1sum -c
echo "`grep -e '^[0-9a-f]\{64\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-64` %{SOURCE0}" | sha256sum -c echo "`grep -e '^[0-9a-f]\{64\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-64` %{SOURCE0}" | sha256sum -c
%setup -q -n Django-%{version} %autosetup -p1 -n Django-%{version}
%autopatch -p1
%build %build
%python_build %python_build