Accepting request 506890 from home:benoit_monin:branches:devel:languages:python

convert the package to singlespec

OBS-URL: https://build.opensuse.org/request/show/506890
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=24
This commit is contained in:
Jan Matejek 2017-06-29 15:29:54 +00:00 committed by Git OBS Bridge
parent d13562cd38
commit 6985d50ffe
2 changed files with 17 additions and 10 deletions

View File

@ -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

View File

@ -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}/*