3 %bcond_with tests # tests (tox based)
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Sorted Containers - Sorted List, Sorted Dict, Sorted Set
8 Summary(pl.UTF-8): Posortowane kontenery - lista, słownik, zbiór
9 Name: python-sortedcontainers
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/sortedcontainers/
15 Source0: https://files.pythonhosted.org/packages/source/s/sortedcontainers/sortedcontainers-%{version}.tar.gz
16 # Source0-md5: 50eeb6cb739568b590b28f9a3f445c78
17 URL: https://pypi.org/project/sortedcontainers/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
22 BuildRequires: python-tox
26 BuildRequires: python3-modules >= 1:3.2
27 BuildRequires: python3-setuptools
29 BuildRequires: python3-tox
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.714
34 Requires: python-modules >= 1:2.7
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Sorted Containers is an Apache2 licensed sorted collections library,
40 written in pure-Python, and fast as C-extensions.
42 %description -l pl.UTF-8
43 Sorted Containers to wydana na licencji Apache2 biblioteka sortowanych
44 kolekcji, napisana w czystym Pythonie, szybka jak rozszerzenia w C.
46 %package -n python3-sortedcontainers
47 Summary: Sorted Containers - Sorted List, Sorted Dict, Sorted Set
48 Summary(pl.UTF-8): Posortowane kontenery - lista, słownik, zbiór
49 Group: Libraries/Python
50 Requires: python3-modules >= 1:3.2
52 %description -n python3-sortedcontainers
53 Sorted Containers is an Apache2 licensed sorted collections library,
54 written in pure-Python, and fast as C-extensions.
56 %description -n python3-sortedcontainers -l pl.UTF-8
57 Sorted Containers to wydana na licencji Apache2 biblioteka sortowanych
58 kolekcji, napisana w czystym Pythonie, szybka jak rozszerzenia w C.
61 %setup -q -n sortedcontainers-%{version}
65 %py_build %{?with_tests:test}
69 %py3_build %{?with_tests:test}
73 rm -rf $RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
91 %doc LICENSE README.rst
92 %{py_sitescriptdir}/sortedcontainers
93 %{py_sitescriptdir}/sortedcontainers-%{version}-py*.egg-info
97 %files -n python3-sortedcontainers
98 %defattr(644,root,root,755)
99 %doc LICENSE README.rst
100 %{py3_sitescriptdir}/sortedcontainers
101 %{py3_sitescriptdir}/sortedcontainers-%{version}-py*.egg-info