14
0
forked from pool/python-toolz

Accepting request 489200 from home:TheBlackCat:branches:devel:languages:python

- Update to 0.8.2
- Implement single-spec version

OBS-URL: https://build.opensuse.org/request/show/489200
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-toolz?expand=0&rev=9
This commit is contained in:
Todd R
2017-04-19 02:34:06 +00:00
committed by Git OBS Bridge
parent 19f70cf3e8
commit 19e2a436c5
4 changed files with 25 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-toolz
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,22 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-toolz
Version: 0.7.4
Version: 0.8.2
Release: 0
License: BSD-3-Clause
Summary: List processing tools and functional utilities for python
Url: http://github.com/pytoolz/toolz/
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/t/toolz/toolz-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
Source: https://files.pythonhosted.org/packages/source/t/toolz/toolz-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
A set of python utility functions for iterators, functions, and dictionaries.
@@ -39,14 +39,17 @@ A set of python utility functions for iterators, functions, and dictionaries.
%setup -q -n toolz-%{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 LICENSE.txt README.rst
%{python_sitelib}/toolz/
%{python_sitelib}/tlz/
%{python_sitelib}/toolz-%{version}-py*.egg-info/
%changelog