1 # NOTE: 5.0.0 is the last version supporting python2; for later versions see python3-more_itertools.spec
4 %bcond_without doc # Sphinx documentation
5 %bcond_without tests # unit tests
6 %bcond_without python2 # CPython 2.x module
7 %bcond_with python3 # CPython 3.x module [see python3-more_itertools.spec instead]
9 Summary: More routines for operating on iterables, beyond itertools
10 Summary(pl.UTF-8): Uzupełniające itertools dodatkowe funkcje do operowania na zmiennych iterowalnych
11 Name: python-more_itertools
15 Group: Libraries/Python
16 #Source0Download: https://pypi.org/simple/more_itertools/
17 Source0: https://files.pythonhosted.org/packages/source/m/more_itertools/more-itertools-%{version}.tar.gz
18 # Source0-md5: f2ea58aa336ce6c13b7b225b3bbe305d
19 URL: https://github.com/erikrose/more-itertools
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.714
23 BuildRequires: python-modules >= 1:2.7
24 BuildRequires: python-setuptools
26 BuildRequires: python-six >= 1.0.0
30 BuildRequires: python3-modules >= 1:3.4
31 BuildRequires: python3-setuptools
33 BuildRequires: python3-six >= 1.0.0
37 BuildRequires: python3-sphinx_rtd_theme
38 BuildRequires: sphinx-pdg-3
40 Requires: python-modules >= 1:2.7
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 Python's itertools library is a gem - you can compose elegant
46 solutions for a variety of problems with the functions it provides. In
47 more-itertools we collect additional building blocks, recipes, and
48 routines for working with Python iterables.
50 %description -l pl.UTF-8
51 Biblioteka Pythona itertools to skarb - przy użyciu udostępnianych
52 funkcji można komponować eleganckie rozwiązania różnych problemów.
53 W pakiecie more-itertools zebrane są dodatkowe elementy konstrukcyjne,
54 przepisy i procedury do pracy z pythonowymi zmiennymi iterowalnymi.
56 %package -n python3-more_itertools
57 Summary: More routines for operating on iterables, beyond itertools
58 Summary(pl.UTF-8): Uzupełniające itertools dodatkowe funkcje do operowania na zmiennych iterowalnych
59 Group: Libraries/Python
60 Requires: python3-modules >= 1:3.4
62 %description -n python3-more_itertools
63 Python's itertools library is a gem - you can compose elegant
64 solutions for a variety of problems with the functions it provides. In
65 more-itertools we collect additional building blocks, recipes, and
66 routines for working with Python iterables.
68 %description -n python3-more_itertools -l pl.UTF-8
69 Biblioteka Pythona itertools to skarb - przy użyciu udostępnianych
70 funkcji można komponować eleganckie rozwiązania różnych problemów.
71 W pakiecie more-itertools zebrane są dodatkowe elementy konstrukcyjne,
72 przepisy i procedury do pracy z pythonowymi zmiennymi iterowalnymi.
75 Summary: API documentation for Python more-itertools module
76 Summary(pl.UTF-8): Dokumentacja API modułu Pythona more-itertools
80 API documentation for Python more-itertools module.
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API modułu Pythona more-itertools.
86 %setup -q -n more-itertools-%{version}
90 %py_build %{?with_tests:test}
94 %py3_build %{?with_tests:test}
98 %{__make} -C docs html \
99 SPHINXBUILD=sphinx-build-3
103 rm -rf $RPM_BUILD_ROOT
116 rm -rf $RPM_BUILD_ROOT
120 %defattr(644,root,root,755)
121 %doc LICENSE README.rst
122 %{py_sitescriptdir}/more_itertools
123 %{py_sitescriptdir}/more_itertools-%{version}-py*.egg-info
127 %files -n python3-more_itertools
128 %defattr(644,root,root,755)
129 %doc LICENSE README.rst
130 %{py3_sitescriptdir}/more_itertools
131 %{py3_sitescriptdir}/more_itertools-%{version}-py*.egg-info
136 %defattr(644,root,root,755)
137 %doc docs/_build/html/{_modules,_static,*.html,*.js}