[packages/python3-ordered-set] Initial.
arekm
arekm at pld-linux.org
Wed Mar 2 08:19:20 CET 2022
commit 9e2059eeecdf44f29bfa39b5093154ef1e60f4e3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Mar 2 08:16:42 2022 +0100
Initial.
python3-ordered-set.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
---
diff --git a/python3-ordered-set.spec b/python3-ordered-set.spec
new file mode 100644
index 0000000..4888073
--- /dev/null
+++ b/python3-ordered-set.spec
@@ -0,0 +1,58 @@
+# Conditional build:
+%bcond_with tests # unit tests
+
+%define module ordered-set
+Summary: A mutable set that remembers the order of its entries
+Name: python3-%{module}
+Version: 4.1.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: 2a9ba8d1a962c26f9a4fbe246b62ee77
+URL: https://github.com/seperman/ordered-set
+BuildRequires: python3-modules >= 1:3.2
+#BuildRequires: python3-setuptools
+%if %{with tests}
+#BuildRequires: python3-
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.2
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+An OrderedSet is a mutable data structure that is a hybrid of a list
+and a set. It remembers the order of its entries, and every entry has
+an index number that can be looked up.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%dir %{py3_sitescriptdir}/ordered_set
+%{py3_sitescriptdir}/ordered_set/*.py
+%{py3_sitescriptdir}/ordered_set/__pycache__
+%{py3_sitescriptdir}/ordered_set-%{version}-py*.egg-info
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-ordered-set.git/commitdiff/9e2059eeecdf44f29bfa39b5093154ef1e60f4e3
More information about the pld-cvs-commit
mailing list