]>
Commit | Line | Data |
---|---|---|
1d04920a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # Sphinx documentation | |
4 | %bcond_without tests # unit tests | |
1d04920a JB |
5 | |
6 | Summary: More routines for operating on iterables, beyond itertools | |
7 | Summary(pl.UTF-8): Uzupełniające itertools dodatkowe funkcje do operowania na zmiennych iterowalnych | |
afeb0c93 JB |
8 | Name: python3-more_itertools |
9 | Version: 7.2.0 | |
1d04920a JB |
10 | Release: 1 |
11 | License: MIT | |
12 | Group: Libraries/Python | |
13 | #Source0Download: https://pypi.org/simple/more_itertools/ | |
14 | Source0: https://files.pythonhosted.org/packages/source/m/more_itertools/more-itertools-%{version}.tar.gz | |
afeb0c93 | 15 | # Source0-md5: f647bfd27243a7bebe53b5ddb6a3b1c4 |
1d04920a | 16 | URL: https://github.com/erikrose/more-itertools |
48249ae4 | 17 | BuildRequires: python3-modules >= 1:3.4 |
1d04920a | 18 | BuildRequires: python3-setuptools |
afeb0c93 JB |
19 | BuildRequires: rpm-pythonprov |
20 | BuildRequires: rpmbuild(macros) >= 1.714 | |
1d04920a JB |
21 | %if %{with doc} |
22 | BuildRequires: python3-sphinx_rtd_theme | |
23 | BuildRequires: sphinx-pdg-3 | |
24 | %endif | |
afeb0c93 | 25 | Requires: python3-modules >= 1:3.4 |
1d04920a JB |
26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Python's itertools library is a gem - you can compose elegant | |
31 | solutions for a variety of problems with the functions it provides. In | |
32 | more-itertools we collect additional building blocks, recipes, and | |
33 | routines for working with Python iterables. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Biblioteka Pythona itertools to skarb - przy użyciu udostępnianych | |
37 | funkcji można komponować eleganckie rozwiązania różnych problemów. | |
38 | W pakiecie more-itertools zebrane są dodatkowe elementy konstrukcyjne, | |
39 | przepisy i procedury do pracy z pythonowymi zmiennymi iterowalnymi. | |
40 | ||
1d04920a JB |
41 | %package apidocs |
42 | Summary: API documentation for Python more-itertools module | |
43 | Summary(pl.UTF-8): Dokumentacja API modułu Pythona more-itertools | |
44 | Group: Documentation | |
45 | ||
46 | %description apidocs | |
47 | API documentation for Python more-itertools module. | |
48 | ||
49 | %description apidocs -l pl.UTF-8 | |
50 | Dokumentacja API modułu Pythona more-itertools. | |
51 | ||
52 | %prep | |
53 | %setup -q -n more-itertools-%{version} | |
54 | ||
55 | %build | |
1d04920a | 56 | %py3_build %{?with_tests:test} |
1d04920a JB |
57 | |
58 | %if %{with doc} | |
59 | %{__make} -C docs html \ | |
60 | SPHINXBUILD=sphinx-build-3 | |
61 | %endif | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
1d04920a | 66 | %py3_install |
1d04920a JB |
67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
1d04920a JB |
71 | %files |
72 | %defattr(644,root,root,755) | |
73 | %doc LICENSE README.rst | |
1d04920a JB |
74 | %{py3_sitescriptdir}/more_itertools |
75 | %{py3_sitescriptdir}/more_itertools-%{version}-py*.egg-info | |
1d04920a JB |
76 | |
77 | %if %{with doc} | |
78 | %files apidocs | |
79 | %defattr(644,root,root,755) | |
80 | %doc docs/_build/html/{_modules,_static,*.html,*.js} | |
81 | %endif |