diff --git a/python-more-itertools.spec b/python-more-itertools.spec new file mode 100644 index 0000000000000000000000000000000000000000..4459f51703902fa404ee68b30d046c556485b5a7 --- /dev/null +++ b/python-more-itertools.spec @@ -0,0 +1,63 @@ +%define anolis_release 1 + +%bcond_with tests + +Name: python-more-itertools +Version: 9.1.1 +Release: %{anolis_release}%{dist} + +Summary: More routines for operating on Python iterables, beyond itertools +License: MIT +URL: https://github.com/erikrose/more-itertools +Source0: https://github.com/more-itertools/more-itertools/archive/refs/tags/v%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pip +BuildRequires: python3dist(flit-core) +BuildRequires: python3dist(tomli) + +%global _description %{expand: +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 %_description + +%package -n python3-more-itertools +Summary: %{summary} + +%description -n python3-more-itertools %_description + +%package -n python3-more-itertools-doc +Summary: Documentation files for python3-more-itertools +Requires: python3-more-itertools = %{EVR} +BuildArch: noarch + +%description -n python3-more-itertools-doc +The python3-more-itertools-doc package contains documentation files for python3-more-itertools. + +%prep +%autosetup -p1 -n more-itertools-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files more_itertools + +%if %{with tests} +%check +%tox +%endif + +%files -n python3-more-itertools -f %pyproject_files + +%files -n python3-more-itertools-doc +%doc README.rst + +%changelog +* Wed Mar 29 2023 yuanhui - 9.1.1-1 +- Init package from upstream diff --git a/v9.1.1.tar.gz b/v9.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..582b9fed1fe78b68f6f4fe757f842a90e5f67ccd Binary files /dev/null and b/v9.1.1.tar.gz differ