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:
parent
d13562cd38
commit
6985d50ffe
@ -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
|
Tue Nov 15 12:35:46 UTC 2016 - dmueller@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-redis
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-redis
|
Name: python-redis
|
||||||
Version: 2.10.5
|
Version: 2.10.5
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -25,14 +26,14 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://pypi.io/packages/source/r/redis/redis-%{version}.tar.gz
|
Source: https://pypi.io/packages/source/r/redis/redis-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-py
|
BuildRequires: %{python_module py}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-py
|
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
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Python interface to the Redis key-value store.
|
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}
|
%setup -q -n redis-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
%files %python_files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES LICENSE README.rst
|
%doc CHANGES LICENSE README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user