3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
5 %bcond_without python2 # CPython 2.x module
6 %bcond_with python3 # CPython 3.x module
9 Summary: Messaging library for Python
10 Summary(pl.UTF-8): Biblioteka komunikatów dla Pythona
11 Name: python-%{module}
12 # keep 4.x here for python2 support
16 Group: Development/Languages/Python
17 #Source0Download: https://pypi.org/simple/kombu/
18 Source0: https://files.pythonhosted.org/packages/source/k/kombu/%{module}-%{version}.tar.gz
19 # Source0-md5: 759b31d97fc11c4cb16f6d293723e85e
20 URL: https://pypi.org/project/kombu/
22 BuildRequires: python-modules >= 1:2.7
23 BuildRequires: python-setuptools >= 1:20.6.7
25 BuildRequires: python-Pyro4
26 BuildRequires: python-amqp >= 2.6.0
27 BuildRequires: python-botocore
28 BuildRequires: python-case >= 1.5.2
29 BuildRequires: python-importlib_metadata >= 0.18
30 BuildRequires: python-nose
31 BuildRequires: python-pytest
32 BuildRequires: python-pytz
36 BuildRequires: python3-modules >= 1:3.5
37 BuildRequires: python3-setuptools >= 1:20.6.7
39 BuildRequires: python3-Pyro4
40 BuildRequires: python3-amqp >= 2.6.0
41 BuildRequires: python3-amqp < 2.7
42 BuildRequires: python3-botocore
43 BuildRequires: python3-case >= 1.5.2
44 %if "%{py3_ver}" < "3.8"
45 BuildRequires: python3-importlib_metadata >= 0.18
47 BuildRequires: python3-nose
50 BuildRequires: rpm-pythonprov
51 BuildRequires: rpmbuild(macros) >= 1.714
53 BuildRequires: python-amqp
54 BuildRequires: python-sphinx_celery
55 BuildRequires: python-sphinxcontrib-issuetracker
56 BuildRequires: sphinx-pdg-2
58 Requires: python-modules >= 1:2.7
60 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63 The aim of Kombu is to make messaging in Python as easy as possible by
64 providing an idiomatic high-level interface for the AMQ protocol, and
65 also provide proven and tested solutions to common messaging problems.
67 %description -l pl.UTF-8
68 Celem Kombu jest jak największe ułatwienie wymiany komunikatów w
69 Pythonie poprzez dostarczenie idomatycznego, wysokopoziomowego
70 interfejsu do protokołu AMQ oraz sprawdzonych rozwiązań powszechnych
71 problemów związanych z komunikowaniem.
73 %package -n python3-%{module}
74 Summary: Messaging library for Python
75 Summary(pl.UTF-8): Biblioteka komunikatów dla Pythona
76 Group: Libraries/Python
77 Requires: python3-modules >= 1:3.5
79 %description -n python3-%{module}
80 The aim of Kombu is to make messaging in Python as easy as possible by
81 providing an idiomatic high-level interface for the AMQ protocol, and
82 also provide proven and tested solutions to common messaging problems.
84 %description -n python3-%{module} -l pl.UTF-8
85 Celem Kombu jest jak największe ułatwienie wymiany komunikatów w
86 Pythonie poprzez dostarczenie idomatycznego, wysokopoziomowego
87 interfejsu do protokołu AMQ oraz sprawdzonych rozwiązań powszechnych
88 problemów związanych z komunikowaniem.
91 Summary: API documentation for kombu module
92 Summary(pl.UTF-8): Dokumentacja API modułu kombu
94 Obsoletes: python3-kombu-apidocs < 5
97 API documentation for kombu module.
99 %description apidocs -l pl.UTF-8
100 Dokumentacja API modułu kombu.
103 %setup -q -n %{module}-%{version}
110 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
111 PYTEST_PLUGINS="case.pytest" \
112 %{__python} -m pytest t/unit
120 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
121 PYTEST_PLUGINS="case.pytest" \
122 %{__python3} -m pytest t/unit
127 %{__make} -C docs html \
128 SPHINXBUILD=sphinx-build-2
132 rm -rf $RPM_BUILD_ROOT
145 rm -rf $RPM_BUILD_ROOT
149 %defattr(644,root,root,755)
150 %doc AUTHORS FAQ LICENSE README.rst THANKS TODO
151 %{py_sitescriptdir}/%{module}
152 %{py_sitescriptdir}/%{module}-*.egg-info
156 %files -n python3-%{module}
157 %defattr(644,root,root,755)
158 %doc AUTHORS FAQ LICENSE README.rst THANKS TODO
159 %{py3_sitescriptdir}/%{module}
160 %{py3_sitescriptdir}/%{module}-*.egg-info
165 %defattr(644,root,root,755)
166 %doc docs/_build/html/{_modules,_static,reference,userguide,*.html,*.js}