diff --git a/python-python-memcached.changes b/python-python-memcached.changes index e4aa168..8d67940 100644 --- a/python-python-memcached.changes +++ b/python-python-memcached.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 @@ -141,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 + diff --git a/python-python-memcached.spec b/python-python-memcached.spec index cfa8b79..f6ee1b1 100644 --- a/python-python-memcached.spec +++ b/python-python-memcached.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-memcached # -# Copyright (c) 2016 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.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,14 +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 -%files +%if %{with test} +%check +%python_expand nosetests-%{$python_bin_suffix} +%endif + +%files %{python_files} %defattr(-,root,root,-) -%doc README.md +%doc README.md PSF.LICENSE %{python_sitelib}/* %changelog