[packages/python3-jaraco.collections] - new

baggins baggins at pld-linux.org
Sat Mar 22 14:49:37 CET 2025


commit 60b5e18943aa3ffcd391958e694a7eea5270028e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Mar 22 15:05:03 2025 +0100

    - new

 python3-jaraco.collections.spec | 93 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 93 insertions(+)
---
diff --git a/python3-jaraco.collections.spec b/python3-jaraco.collections.spec
new file mode 100644
index 0000000..138c708
--- /dev/null
+++ b/python3-jaraco.collections.spec
@@ -0,0 +1,93 @@
+#
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_with	tests	# unit tests (missing in sdist)
+
+Summary:	Models and classes to supplement the stdlib ‘collections’ module
+Name:		python3-jaraco.collections
+Version:	5.1.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/jaraco.collections/
+Source0:	https://files.pythonhosted.org/packages/source/j/jaraco.collections/jaraco_collections-%{version}.tar.gz
+# Source0-md5:	33a136eb3dd4c36090270ea2d4d43e7c
+URL:		https://pypi.org/project/jaraco.collections/
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools >= 1:56
+BuildRequires:	python3-setuptools_scm >= 3.4.1
+BuildRequires:	python3-toml
+%if %{with tests}
+BuildRequires:	python3-pytest >= 6
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	python3-furo
+BuildRequires:	python3-jaraco.packaging >= 9
+BuildRequires:	python3-jaraco.tidelift
+BuildRequires:	python3-rst.linker >= 1.9
+BuildRequires:	sphinx-pdg-3 >= 3.5
+#BuildRequires:	sphinx-lint
+%endif
+Requires:	python3-jaraco
+Requires:	python3-modules >= 1:3.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Models and classes to supplement the stdlib ‘collections’ module.
+
+%package apidocs
+Summary:	API documentation for Python jaraco.collections module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona jaraco.collections
+Group:		Documentation
+
+%description apidocs
+API documentation for Python jaraco.collections module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona jaraco.collections.
+
+%prep
+%setup -q -n jaraco_collections-%{version}
+
+# stub for setuptools
+cat >setup.py <<EOF
+from setuptools import setup
+setup()
+EOF
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=... \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html docs docs/build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst NEWS.rst
+%{py3_sitescriptdir}/jaraco/collections
+%{py3_sitescriptdir}/jaraco.collections-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-jaraco.collections.git/commitdiff/60b5e18943aa3ffcd391958e694a7eea5270028e



More information about the pld-cvs-commit mailing list