diff --git a/python-redis.changes b/python-redis.changes index 96a4adb..9133580 100644 --- a/python-redis.changes +++ b/python-redis.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 28 19:38:32 UTC 2017 - benoit.monin@gmx.fr + +- convert the package to singlespec + ------------------------------------------------------------------- Tue Nov 15 12:35:46 UTC 2016 - dmueller@suse.com diff --git a/python-redis.spec b/python-redis.spec index f506dc1..8ac7d28 100644 --- a/python-redis.spec +++ b/python-redis.spec @@ -1,7 +1,7 @@ # # spec file for package python-redis # -# 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-redis Version: 2.10.5 Release: 0 @@ -25,14 +26,14 @@ License: MIT Group: Development/Languages/Python Source: https://pypi.io/packages/source/r/redis/redis-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-py +BuildRequires: %{python_module devel} +BuildRequires: %{python_module py} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-py -%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 -%endif + +%python_subpackages %description The Python interface to the Redis key-value store. @@ -41,12 +42,13 @@ The Python interface to the Redis key-value store. %setup -q -n redis-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files +%files %python_files %defattr(-,root,root,-) %doc CHANGES LICENSE README.rst %{python_sitelib}/*