3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: When they're not builtins, they're boltons
8 Summary(pl.UTF-8): To, co nie jest wbudowane, jest w boltons
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/boltons/
15 Source0: https://files.pythonhosted.org/packages/source/b/boltons/boltons-%{version}.tar.gz
16 # Source0-md5: c7a17577f80a5c3316b8cb61b79d09c9
17 URL: https://pypi.org/project/boltons/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
22 BuildRequires: python-pytest
26 BuildRequires: python3-modules >= 1:3.4
27 BuildRequires: python3-setuptools
29 BuildRequires: python3-pytest
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 Functionality that should be in the standard library. Like builtins,
42 %description -l pl.UTF-8
43 Funkcjonalność, która powinna być w bibliotece standardowej, Podobnie
44 jak builtins, ale to są Boltons.
46 %package -n python3-boltons
47 Summary: When they're not builtins, they're boltons
48 Summary(pl.UTF-8): To, co nie jest wbudowane, jest w boltons
49 Group: Libraries/Python
50 Requires: python3-modules >= 1:3.4
52 %description -n python3-boltons
53 Functionality that should be in the standard library. Like builtins,
56 %description -n python3-boltons -l pl.UTF-8
57 Funkcjonalność, która powinna być w bibliotece standardowej, Podobnie
58 jak builtins, ale to są Boltons.
61 %setup -q -n boltons-%{version}
68 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
69 %{__python} -m pytest --doctest-modules boltons
77 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
78 %{__python3} -m pytest --doctest-modules boltons
83 rm -rf $RPM_BUILD_ROOT
96 rm -rf $RPM_BUILD_ROOT
100 %defattr(644,root,root,755)
101 %doc CHANGELOG.md LICENSE README.md TODO.rst
102 %{py_sitescriptdir}/boltons
103 %{py_sitescriptdir}/boltons-%{version}-py*.egg-info
107 %files -n python3-boltons
108 %defattr(644,root,root,755)
109 %doc CHANGELOG.md LICENSE README.md TODO.rst
110 %{py3_sitescriptdir}/boltons
111 %{py3_sitescriptdir}/boltons-%{version}-py*.egg-info