forked from pool/python-jaraco.itertools
Accepting request 508204 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/508204 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.itertools?expand=0&rev=2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-jaraco.itertools
|
||||
#
|
||||
# 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,28 +16,31 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-jaraco.itertools
|
||||
Version: 1.7.1
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
Summary: jaraco.itertools Tools for working with iterables
|
||||
Summary: Tools to work with iterables
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/jaraco/jaraco.itertools
|
||||
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.itertools/jaraco.itertools-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module inflect}
|
||||
BuildRequires: %{python_module more-itertools}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-inflect
|
||||
BuildRequires: python-more-itertools
|
||||
BuildRequires: python-pytest
|
||||
BuildRequires: python-pytest-runner
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-setuptools_scm
|
||||
BuildRequires: python-six
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-inflect
|
||||
Requires: python-more-itertools
|
||||
Requires: python-six
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
jaraco.itertools Tools for working with iterables.
|
||||
@@ -46,18 +49,19 @@ Complements itertools and more_itertools.
|
||||
%prep
|
||||
%setup -q -n jaraco.itertools-%{version}
|
||||
sed -i -e "s/'pytest_runner'/'pytest-runner'/" setup.py
|
||||
rm -rf jaraco.itertools.egg-info
|
||||
|
||||
%build
|
||||
python2 setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes %{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
python2 setup.py test
|
||||
%python_exec setup.py test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc docs/*.rst README.rst CHANGES.rst
|
||||
%{python_sitelib}/*
|
||||
|
Reference in New Issue
Block a user