14
0

Accepting request 508198 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/508198
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-more-itertools?expand=0&rev=2
This commit is contained in:
2017-07-05 11:46:31 +00:00
committed by Git OBS Bridge
parent b069d87882
commit af5a3eddd8
4 changed files with 129 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-more-itertools
#
# Copyright (c) 2014 SUSE LINUX Products 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,23 +16,23 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-more-itertools
Version: 2.2
Version: 3.2.0
Release: 0
Summary: More routines for operating on iterables, beyond itertools
License: MIT
Group: Development/Languages/Python
Url: https://github.com/erikrose/more-itertools
Source: https://pypi.python.org/packages/source/m/more-itertools/more-itertools-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-setuptools
Source: https://files.pythonhosted.org/packages/source/m/more-itertools/more-itertools-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
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
I love itertools; it's one of the most beautiful, composable standard libs.
@@ -47,20 +47,22 @@ documentation. Enjoy! Any additions are welcome; just file a pull request.
%prep
%setup -q -n more-itertools-%{version}
rm -rf more_itertools.egg-info
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_exec %fdupes -s %{buildroot}%{$python_sitelib}
%check
python setup.py test
%python_exec setup.py test
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}//more_itertools/
%{python_sitelib}//more_itertools-%{version}-py*.egg-info
%{python_sitelib}/more_itertools/
%{python_sitelib}/more_itertools-%{version}-py%{python_version}.egg-info
%changelog