14
0

Accepting request 1090234 from home:pgajdos

- run pyupgrade
- added patches
  https://github.com/linsomniac/python-memcached/pull/186
  + python-python-memcached-no-six.patch

OBS-URL: https://build.opensuse.org/request/show/1090234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-memcached?expand=0&rev=40
This commit is contained in:
2023-06-01 11:17:46 +00:00
committed by Git OBS Bridge
parent 6860f0eb56
commit 5649a713b2
3 changed files with 484 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-memcached
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,15 +25,15 @@ License: Python-2.0
Group: Development/Languages/Python
URL: https://github.com/linsomniac/python-memcached
Source: https://github.com/linsomniac/python-memcached/archive/%{version}.tar.gz
# https://github.com/linsomniac/python-memcached/pull/186
Patch0: python-python-memcached-no-six.patch
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: memcached
BuildRequires: python-rpm-macros
BuildRequires: util-linux
Requires: memcached
Requires: python-six
BuildArch: noarch
%ifpython2
Provides: %{oldpython}-memcached = %{version}
@@ -51,7 +51,7 @@ or more, possibly remote, memcached servers. Search google for memcached
for more information.
%prep
%setup -q -n python-memcached-%{version}
%autosetup -p1 -n python-memcached-%{version}
sed -i \
-e 's:#!%{_bindir}/env python::' \
memcache.py