[packages/python-sortedcontainers] - new

qboosh qboosh at pld-linux.org
Sat Feb 1 21:02:54 CET 2020


commit 22860be943c1c55287b782ba0b7fceb4c392d707
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 1 21:03:04 2020 +0100

    - new

 python-sortedcontainers.spec | 102 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)
---
diff --git a/python-sortedcontainers.spec b/python-sortedcontainers.spec
new file mode 100644
index 0000000..9a6362b
--- /dev/null
+++ b/python-sortedcontainers.spec
@@ -0,0 +1,102 @@
+#
+# Conditional build:
+%bcond_with	tests	# tests (tox based)
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Sorted Containers - Sorted List, Sorted Dict, Sorted Set
+Summary(pl.UTF-8):	Posortowane kontenery - lista, słownik, zbiór
+Name:		python-sortedcontainers
+Version:	2.1.0
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/sortedcontainers/
+Source0:	https://files.pythonhosted.org/packages/source/s/sortedcontainers/sortedcontainers-%{version}.tar.gz
+# Source0-md5:	41a4a1eaf7b85e6b3beb14cfb160bc27
+URL:		https://pypi.org/project/sortedcontainers/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-tox
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-tox
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sorted Containers is an Apache2 licensed sorted collections library,
+written in pure-Python, and fast as C-extensions.
+
+%description -l pl.UTF-8
+Sorted Containers to wydana na licencji Apache2 biblioteka sortowanych
+kolekcji, napisana w czystym Pythonie, szybka jak rozszerzenia w C.
+
+%package -n python3-sortedcontainers
+Summary:	Sorted Containers - Sorted List, Sorted Dict, Sorted Set
+Summary(pl.UTF-8):	Posortowane kontenery - lista, słownik, zbiór
+Group:		Libraries/Python
+Requires:	python3-modules
+
+%description -n python3-sortedcontainers
+Sorted Containers is an Apache2 licensed sorted collections library,
+written in pure-Python, and fast as C-extensions.
+
+%description -n python3-sortedcontainers -l pl.UTF-8
+Sorted Containers to wydana na licencji Apache2 biblioteka sortowanych
+kolekcji, napisana w czystym Pythonie, szybka jak rozszerzenia w C.
+
+%prep
+%setup -q -n sortedcontainers-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%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}/sortedcontainers
+%{py_sitescriptdir}/sortedcontainers-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-sortedcontainers
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/sortedcontainers
+%{py3_sitescriptdir}/sortedcontainers-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sortedcontainers.git/commitdiff/22860be943c1c55287b782ba0b7fceb4c392d707



More information about the pld-cvs-commit mailing list