[packages/python-more_itertools] - new

qboosh qboosh at pld-linux.org
Mon Jul 16 19:10:54 CEST 2018


commit 1d04920a5ea0da95ad260515dd3d7cb911d28b42
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 16 19:12:39 2018 +0200

    - new

 python-more_itertools.spec | 137 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 137 insertions(+)
---
diff --git a/python-more_itertools.spec b/python-more_itertools.spec
new file mode 100644
index 0000000..4258066
--- /dev/null
+++ b/python-more_itertools.spec
@@ -0,0 +1,137 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	More routines for operating on iterables, beyond itertools
+Summary(pl.UTF-8):	Uzupełniające itertools dodatkowe funkcje do operowania na zmiennych iterowalnych
+Name:		python-more_itertools
+Version:	4.2.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/more_itertools/
+Source0:	https://files.pythonhosted.org/packages/source/m/more_itertools/more-itertools-%{version}.tar.gz
+# Source0-md5:	5629c955d17df328ec534989f0649369
+URL:		https://github.com/erikrose/more-itertools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-six >= 1.0.0
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-six >= 1.0.0
+%endif
+%endif
+%if %{with doc}
+BuildRequires:	python3-sphinx_rtd_theme
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python's itertools library is a gem - you can compose elegant
+solutions for a variety of problems with the functions it provides. In
+more-itertools we collect additional building blocks, recipes, and
+routines for working with Python iterables.
+
+%description -l pl.UTF-8
+Biblioteka Pythona itertools to skarb - przy użyciu udostępnianych
+funkcji można komponować eleganckie rozwiązania różnych problemów.
+W pakiecie more-itertools zebrane są dodatkowe elementy konstrukcyjne,
+przepisy i procedury do pracy z pythonowymi zmiennymi iterowalnymi.
+
+%package -n python3-more_itertools
+Summary:	More routines for operating on iterables, beyond itertools
+Summary(pl.UTF-8):	Uzupełniające itertools dodatkowe funkcje do operowania na zmiennych iterowalnych
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-more_itertools
+Python's itertools library is a gem - you can compose elegant
+solutions for a variety of problems with the functions it provides. In
+more-itertools we collect additional building blocks, recipes, and
+routines for working with Python iterables.
+
+%description -n python3-more_itertools -l pl.UTF-8
+Biblioteka Pythona itertools to skarb - przy użyciu udostępnianych
+funkcji można komponować eleganckie rozwiązania różnych problemów.
+W pakiecie more-itertools zebrane są dodatkowe elementy konstrukcyjne,
+przepisy i procedury do pracy z pythonowymi zmiennymi iterowalnymi.
+
+%package apidocs
+Summary:	API documentation for Python more-itertools module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona more-itertools
+Group:		Documentation
+
+%description apidocs
+API documentation for Python more-itertools module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona more-itertools.
+
+%prep
+%setup -q -n more-itertools-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py_sitescriptdir}/more_itertools
+%{py_sitescriptdir}/more_itertools-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-more_itertools
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/more_itertools
+%{py3_sitescriptdir}/more_itertools-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_modules,_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-more_itertools.git/commitdiff/1d04920a5ea0da95ad260515dd3d7cb911d28b42



More information about the pld-cvs-commit mailing list