Hello community, here is the log from the commit of package python-redis for openSUSE:Factory checked in at 2017-07-06 00:01:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-redis (Old) and /work/SRC/openSUSE:Factory/.python-redis.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-redis" Thu Jul 6 00:01:26 2017 rev:14 rq:507111 version:2.10.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-redis/python-redis.changes 2016-12-08 00:30:20.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-redis.new/python-redis.changes 2017-07-06 00:01:32.985934186 +0200 @@ -1,0 +2,5 @@ +Wed Jun 28 19:38:32 UTC 2017 - benoit.mo...@gmx.fr + +- convert the package to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-redis.spec ++++++ --- /var/tmp/diff_new_pack.bqYug1/_old 2017-07-06 00:01:34.737687408 +0200 +++ /var/tmp/diff_new_pack.bqYug1/_new 2017-07-06 00:01:34.737687408 +0200 @@ -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 @@ 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 @@ %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}/*