]> git.pld-linux.org Git - packages/python3-more_itertools.git/commitdiff
- updated to 7.2.0 as python3-more_itertools.spec (python2 support dropped upstream) auto/th/python3-more_itertools-7.2.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 23 Oct 2019 18:46:18 +0000 (20:46 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 23 Oct 2019 18:46:18 +0000 (20:46 +0200)
python3-more_itertools.spec [moved from python-more_itertools.spec with 58% similarity]

similarity index 58%
rename from python-more_itertools.spec
rename to python3-more_itertools.spec
index 90f2858e20a729fcebbecf7c5a765855e33c1d0c..9fb4f5ae83ede7cfdcf454daa0f3c8252a4ccda4 100644 (file)
@@ -2,41 +2,30 @@
 # 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:       5.0.0
+Name:          python3-more_itertools
+Version:       7.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: f2ea58aa336ce6c13b7b225b3bbe305d
+# Source0-md5: f647bfd27243a7bebe53b5ddb6a3b1c4
 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.4
 BuildRequires: python3-setuptools
 %if %{with tests}
 BuildRequires: python3-six >= 1.0.0
 %endif
-%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with doc}
 BuildRequires: python3-sphinx_rtd_theme
 BuildRequires: sphinx-pdg-3
 %endif
-Requires:      python-modules >= 1:2.7
+Requires:      python3-modules >= 1:3.4
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -52,24 +41,6 @@ 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.4
-
-%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
@@ -85,13 +56,7 @@ Dokumentacja API modułu Pythona more-itertools.
 %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 \
@@ -101,34 +66,16 @@ Dokumentacja API modułu Pythona more-itertools.
 %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
This page took 0.117379 seconds and 4 git commands to generate.