[packages/python3-toolz] - python-toolz.spec updated to 0.11.2 for python 3.5+
qboosh
qboosh at pld-linux.org
Sat Mar 5 14:05:33 CET 2022
commit 99f1f7bd35171ece464bcdf93f986f52f680dbe7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 5 14:07:30 2022 +0100
- python-toolz.spec updated to 0.11.2 for python 3.5+
python-toolz.spec | 114 -----------------------------------------------------
python3-toolz.spec | 59 +++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 114 deletions(-)
---
diff --git a/python-toolz.spec b/python-toolz.spec
deleted file mode 100644
index 9be8a1c..0000000
--- a/python-toolz.spec
+++ /dev/null
@@ -1,114 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: List processing tools and functional utilities
-Summary(pl.UTF-8): Narzędzia do przetwarzania list oraz funkcyjne
-Name: python-toolz
-# keep 0.10.x here for python2 support
-Version: 0.10.0
-Release: 1
-License: BSD
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/toolz/
-Source0: https://files.pythonhosted.org/packages/source/t/toolz/toolz-%{version}.tar.gz
-# Source0-md5: 3cb4317dbaff18b5a9201b69e57692a6
-URL: https://pypi.org/project/toolz/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-pytest
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-A set of utility functions for iterators, functions, and dictionaries.
-
-%description -l pl.UTF-8
-Zbiór funkcji narzędziowych do iteratorów, funkcji i słowników.
-
-%package -n python3-toolz
-Summary: List processing tools and functional utilities
-Summary(pl.UTF-8): Narzędzia do przetwarzania list oraz funkcyjne
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-toolz
-A set of utility functions for iterators, functions, and dictionaries.
-
-%description -n python3-toolz -l pl.UTF-8
-Zbiór funkcji narzędziowych do iteratorów, funkcji i słowników.
-
-%prep
-%setup -q -n toolz-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest toolz/tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest toolz/tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/toolz/tests
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/toolz/tests
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE.txt README.rst
-%{py_sitescriptdir}/tlz
-%{py_sitescriptdir}/toolz
-%{py_sitescriptdir}/toolz-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-toolz
-%defattr(644,root,root,755)
-%doc LICENSE.txt README.rst
-%{py3_sitescriptdir}/tlz
-%{py3_sitescriptdir}/toolz
-%{py3_sitescriptdir}/toolz-%{version}-py*.egg-info
-%endif
diff --git a/python3-toolz.spec b/python3-toolz.spec
new file mode 100644
index 0000000..755c3cc
--- /dev/null
+++ b/python3-toolz.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: List processing tools and functional utilities
+Summary(pl.UTF-8): Narzędzia do przetwarzania list oraz funkcyjne
+Name: python3-toolz
+Version: 0.11.2
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/toolz/
+Source0: https://files.pythonhosted.org/packages/source/t/toolz/toolz-%{version}.tar.gz
+# Source0-md5: 6326604f5ed1bc84fa4538b6ab37ad5d
+URL: https://pypi.org/project/toolz/
+BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.5
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A set of utility functions for iterators, functions, and dictionaries.
+
+%description -l pl.UTF-8
+Zbiór funkcji narzędziowych do iteratorów, funkcji i słowników.
+
+%prep
+%setup -q -n toolz-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest toolz/tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/toolz/tests
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.md LICENSE.txt README.rst
+%{py3_sitescriptdir}/tlz
+%{py3_sitescriptdir}/toolz
+%{py3_sitescriptdir}/toolz-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-toolz.git/commitdiff/99f1f7bd35171ece464bcdf93f986f52f680dbe7
More information about the pld-cvs-commit
mailing list