2016-08-07 14:17:06 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-jaraco.itertools
|
|
|
|
#
|
2021-11-08 12:05:35 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2016-08-07 14:17:06 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-02-27 09:26:14 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-08-07 14:17:06 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-07-05 13:46:50 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-09 16:00:37 +01:00
|
|
|
%define skip_python2 1
|
2016-08-07 14:17:06 +02:00
|
|
|
Name: python-jaraco.itertools
|
2020-03-09 16:00:37 +01:00
|
|
|
Version: 5.0.0
|
2016-08-07 14:17:06 +02:00
|
|
|
Release: 0
|
2017-07-05 13:46:50 +02:00
|
|
|
Summary: Tools to work with iterables
|
2016-08-07 14:17:06 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-04-05 13:27:24 +02:00
|
|
|
URL: https://github.com/jaraco/jaraco.itertools
|
2016-08-07 14:17:06 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.itertools/jaraco.itertools-%{version}.tar.gz
|
2017-07-05 13:46:50 +02:00
|
|
|
BuildRequires: %{python_module inflect}
|
2019-02-27 09:26:14 +01:00
|
|
|
BuildRequires: %{python_module jaraco.base >= 6.1}
|
|
|
|
BuildRequires: %{python_module more-itertools >= 4.0.0}
|
2017-07-05 13:46:50 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-02-27 09:26:14 +01:00
|
|
|
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-11-08 12:05:35 +01:00
|
|
|
BuildRequires: %{python_module six}
|
2019-02-27 09:26:14 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2016-08-07 14:17:06 +02:00
|
|
|
Requires: python-inflect
|
2019-02-27 09:26:14 +01:00
|
|
|
Requires: python-jaraco.base >= 6.1
|
|
|
|
Requires: python-more-itertools >= 4.0.0
|
2016-08-07 14:17:06 +02:00
|
|
|
BuildArch: noarch
|
2017-07-05 13:46:50 +02:00
|
|
|
%python_subpackages
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
jaraco.itertools Tools for working with iterables.
|
|
|
|
Complements itertools and more_itertools.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n jaraco.itertools-%{version}
|
2019-02-27 09:26:14 +01:00
|
|
|
sed -i 's/--flake8//' pytest.ini
|
2020-03-09 16:00:37 +01:00
|
|
|
sed -i 's/--black --cov//' pytest.ini
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%build
|
2017-07-05 13:46:50 +02:00
|
|
|
%python_build
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-05 13:46:50 +02:00
|
|
|
%python_install
|
2019-02-27 09:26:14 +01:00
|
|
|
|
|
|
|
%{python_expand rm -f %{buildroot}%{$python_sitelib}/jaraco/__init__.py* \
|
|
|
|
%{buildroot}%{$python_sitelib}/jaraco/__pycache__/__init__.*
|
|
|
|
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/jaraco/
|
|
|
|
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/jaraco/
|
2017-11-13 19:48:49 +01:00
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%check
|
2019-04-05 13:27:24 +02:00
|
|
|
%pytest
|
2016-08-07 14:17:06 +02:00
|
|
|
|
2017-07-05 13:46:50 +02:00
|
|
|
%files %{python_files}
|
2019-02-27 09:26:14 +01:00
|
|
|
%license LICENSE
|
2016-08-07 14:17:06 +02:00
|
|
|
%doc docs/*.rst README.rst CHANGES.rst
|
2017-11-13 19:48:49 +01:00
|
|
|
%{python_sitelib}/jaraco.itertools-%{version}-py*.egg-info
|
|
|
|
%{python_sitelib}/jaraco/itertools.py*
|
|
|
|
%pycache_only %{python_sitelib}/jaraco/__pycache__/itertools*.py*
|
2016-08-07 14:17:06 +02:00
|
|
|
|
|
|
|
%changelog
|