3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without 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}
15 Group: Development/Languages/Python
16 #Source0Download: https://pypi.org/simple/kombu/
17 Source0: https://files.pythonhosted.org/packages/source/k/kombu/%{module}-%{version}.tar.gz
18 # Source0-md5: 759b31d97fc11c4cb16f6d293723e85e
19 URL: https://pypi.org/project/kombu/
21 BuildRequires: python-modules >= 1:2.7
22 BuildRequires: python-setuptools >= 1:20.6.7
24 BuildRequires: python-Pyro4
25 BuildRequires: python-amqp >= 2.6.0
26 BuildRequires: python-botocore
27 BuildRequires: python-case >= 1.5.2
28 BuildRequires: python-importlib_metadata >= 0.18
29 BuildRequires: python-nose
30 BuildRequires: python-pytest
31 BuildRequires: python-pytz
35 BuildRequires: python3-modules >= 1:3.5
36 BuildRequires: python3-setuptools >= 1:20.6.7
38 BuildRequires: python3-Pyro4
39 BuildRequires: python3-amqp >= 2.6.0
40 BuildRequires: python3-amqp < 2.7
41 BuildRequires: python3-botocore
42 BuildRequires: python3-case >= 1.5.2
43 %if "%{py3_ver}" < "3.8"
44 BuildRequires: python3-importlib_metadata >= 0.18
46 BuildRequires: python3-nose
49 BuildRequires: rpm-pythonprov
50 BuildRequires: rpmbuild(macros) >= 1.714
52 BuildRequires: python-amqp
53 BuildRequires: python-sphinx_celery
54 BuildRequires: python-sphinxcontrib-issuetracker
55 BuildRequires: sphinx-pdg-2
57 Requires: python-modules >= 1:2.7
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 The aim of Kombu is to make messaging in Python as easy as possible by
63 providing an idiomatic high-level interface for the AMQ protocol, and
64 also provide proven and tested solutions to common messaging problems.
66 %description -l pl.UTF-8
67 Celem Kombu jest jak największe ułatwienie wymiany komunikatów w
68 Pythonie poprzez dostarczenie idomatycznego, wysokopoziomowego
69 interfejsu do protokołu AMQ oraz sprawdzonych rozwiązań powszechnych
70 problemów związanych z komunikowaniem.
72 %package -n python3-%{module}
73 Summary: Messaging library for Python
74 Summary(pl.UTF-8): Biblioteka komunikatów dla Pythona
75 Group: Libraries/Python
76 Requires: python3-modules >= 1:3.5
78 %description -n python3-%{module}
79 The aim of Kombu is to make messaging in Python as easy as possible by
80 providing an idiomatic high-level interface for the AMQ protocol, and
81 also provide proven and tested solutions to common messaging problems.
83 %description -n python3-%{module} -l pl.UTF-8
84 Celem Kombu jest jak największe ułatwienie wymiany komunikatów w
85 Pythonie poprzez dostarczenie idomatycznego, wysokopoziomowego
86 interfejsu do protokołu AMQ oraz sprawdzonych rozwiązań powszechnych
87 problemów związanych z komunikowaniem.
90 Summary: API documentation for kombu module
91 Summary(pl.UTF-8): Dokumentacja API modułu kombu
93 Obsoletes: python3-kombu-apidocs < 5
96 API documentation for kombu module.
98 %description apidocs -l pl.UTF-8
99 Dokumentacja API modułu kombu.
102 %setup -q -n %{module}-%{version}
109 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
110 PYTEST_PLUGINS="case.pytest" \
111 %{__python} -m pytest t/unit
119 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
120 PYTEST_PLUGINS="case.pytest" \
121 %{__python3} -m pytest t/unit
126 %{__make} -C docs html \
127 SPHINXBUILD=sphinx-build-2
131 rm -rf $RPM_BUILD_ROOT
144 rm -rf $RPM_BUILD_ROOT
148 %defattr(644,root,root,755)
149 %doc AUTHORS FAQ LICENSE README.rst THANKS TODO
150 %{py_sitescriptdir}/%{module}
151 %{py_sitescriptdir}/%{module}-*.egg-info
155 %files -n python3-%{module}
156 %defattr(644,root,root,755)
157 %doc AUTHORS FAQ LICENSE README.rst THANKS TODO
158 %{py3_sitescriptdir}/%{module}
159 %{py3_sitescriptdir}/%{module}-*.egg-info
164 %defattr(644,root,root,755)
165 %doc docs/_build/html/{_modules,_static,reference,userguide,*.html,*.js}