14
0

Accepting request 520036 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/520036
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-memcached?expand=0&rev=14
This commit is contained in:
2017-09-04 10:33:38 +00:00
committed by Git OBS Bridge
4 changed files with 50 additions and 25 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3b689a135afb2fdb6da2298d5213780f43a3f210cf8c960d50b252acb3f62902
size 22620

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2775829cb54b9e4c5b3bbd8028680f0c0ab695db154b9c46f0f074ff97540eb6
size 30562

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Aug 24 13:52:44 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Tue Nov 15 13:13:46 UTC 2016 - dmueller@suse.com
- update to 1.58:
* Fixing a performance regression in v1.54 in Python 2, using cPickle again.
* Support for "stats slabs".
* Pin Six version to >= 1.4
* setup.py build process pulls version from memcached.py
* delete() and delete_multi() now default the "time" argument to None,
since the protocol doesn't allow a time in some implementations.
Patch by oremj #27
-------------------------------------------------------------------
Tue Oct 6 11:21:23 UTC 2015 - mcihar@suse.cz
@@ -129,3 +146,4 @@ Fri Nov 26 23.00.00 UTC 2010 - stian@viskjer.net
- python-memcached 1.45
* Initial specfile based on Fedora's v1.43-6

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-memcached
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,33 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%bcond_with test
Name: python-python-memcached
Version: 1.57
Version: 1.58
Release: 0
Url: http://www.tummy.com/Community/software/python-memcached/
Summary: Pure python memcached client
License: Python-2.0
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/p/python-memcached/python-memcached-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-setuptools
BuildRequires: python-six
Requires: python-six
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
Url: http://www.tummy.com/Community/software/python-memcached/
Source: https://files.pythonhosted.org/packages/source/p/python-memcached/python-memcached-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module nose}
BuildRequires: memcached
%endif
Provides: python-memcached = %{version}
Obsoletes: python-memcached < %{version}
Requires: memcached
Requires: python-six
BuildArch: noarch
%ifpython2
Provides: %{oldpython}-memcached = %{version}
Obsoletes: %{oldpython}-memcached < %{version}
%endif
%python_subpackages
%description
This package was originally written by Evan Martin of Danga.
@@ -52,17 +57,19 @@ for more information.
%setup -q -n python-memcached-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%if %{with test}
%check
nosetests
%python_expand nosetests-%{$python_bin_suffix}
%endif
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.md
%doc README.md PSF.LICENSE
%{python_sitelib}/*
%changelog