]>
Commit | Line | Data |
---|---|---|
44562528 JK |
1 | # |
2 | # Conditional build: | |
aae8302a JB |
3 | %bcond_without doc # Sphinx documentation |
4 | %bcond_without tests # unit tests | |
44562528 | 5 | |
be70ea90 | 6 | %define module kombu |
44562528 | 7 | Summary: Messaging library for Python |
aae8302a | 8 | Summary(pl.UTF-8): Biblioteka komunikatów dla Pythona |
e761070e JB |
9 | Name: python3-%{module} |
10 | Version: 5.0.2 | |
6ce61a5c | 11 | Release: 4 |
e761070e | 12 | License: BSD |
be70ea90 | 13 | Group: Development/Languages/Python |
aae8302a JB |
14 | #Source0Download: https://pypi.org/simple/kombu/ |
15 | Source0: https://files.pythonhosted.org/packages/source/k/kombu/%{module}-%{version}.tar.gz | |
e761070e | 16 | # Source0-md5: 52192e631ac39a443fb1abeb52299f22 |
aae8302a | 17 | URL: https://pypi.org/project/kombu/ |
e761070e | 18 | BuildRequires: python3-modules >= 1:3.6 |
aae8302a | 19 | BuildRequires: python3-setuptools >= 1:20.6.7 |
44562528 | 20 | %if %{with tests} |
aae8302a | 21 | BuildRequires: python3-Pyro4 |
e761070e JB |
22 | BuildRequires: python3-amqp >= 5.0.0 |
23 | BuildRequires: python3-amqp < 6.0.0 | |
aae8302a JB |
24 | BuildRequires: python3-botocore |
25 | BuildRequires: python3-case >= 1.5.2 | |
26 | %if "%{py3_ver}" < "3.8" | |
27 | BuildRequires: python3-importlib_metadata >= 0.18 | |
28 | %endif | |
e761070e JB |
29 | BuildRequires: python3-pytest |
30 | BuildRequires: python3-pytz | |
65a38e1a | 31 | %endif |
aae8302a JB |
32 | BuildRequires: rpm-pythonprov |
33 | BuildRequires: rpmbuild(macros) >= 1.714 | |
34 | %if %{with doc} | |
e761070e JB |
35 | BuildRequires: python3-amqp |
36 | BuildRequires: python3-sphinx_celery | |
37 | BuildRequires: sphinx-pdg-3 | |
44562528 | 38 | %endif |
e761070e | 39 | Requires: python3-modules >= 1:3.6 |
be70ea90 | 40 | BuildArch: noarch |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
333ebabd | 44 | The aim of Kombu is to make messaging in Python as easy as possible by |
44562528 | 45 | providing an idiomatic high-level interface for the AMQ protocol, and |
333ebabd | 46 | also provide proven and tested solutions to common messaging problems. |
be70ea90 | 47 | |
aae8302a JB |
48 | %description -l pl.UTF-8 |
49 | Celem Kombu jest jak największe ułatwienie wymiany komunikatów w | |
50 | Pythonie poprzez dostarczenie idomatycznego, wysokopoziomowego | |
51 | interfejsu do protokołu AMQ oraz sprawdzonych rozwiązań powszechnych | |
52 | problemów związanych z komunikowaniem. | |
53 | ||
44562528 | 54 | %package apidocs |
aae8302a JB |
55 | Summary: API documentation for kombu module |
56 | Summary(pl.UTF-8): Dokumentacja API modułu kombu | |
44562528 JK |
57 | Group: Documentation |
58 | ||
59 | %description apidocs | |
aae8302a | 60 | API documentation for kombu module. |
44562528 JK |
61 | |
62 | %description apidocs -l pl.UTF-8 | |
aae8302a | 63 | Dokumentacja API modułu kombu. |
65a38e1a | 64 | |
be70ea90 | 65 | %prep |
66 | %setup -q -n %{module}-%{version} | |
67 | ||
68 | %build | |
aae8302a | 69 | %py3_build |
65a38e1a | 70 | |
aae8302a JB |
71 | %if %{with tests} |
72 | PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ | |
73 | PYTEST_PLUGINS="case.pytest" \ | |
74 | %{__python3} -m pytest t/unit | |
65a38e1a | 75 | %endif |
be70ea90 | 76 | |
aae8302a JB |
77 | %if %{with doc} |
78 | %{__make} -C docs html \ | |
e761070e | 79 | SPHINXBUILD=sphinx-build-3 |
aae8302a JB |
80 | %endif |
81 | ||
be70ea90 | 82 | %install |
83 | rm -rf $RPM_BUILD_ROOT | |
44562528 | 84 | |
d357e5f5 | 85 | %py3_install |
be70ea90 | 86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
be70ea90 | 90 | %files |
14a88007 | 91 | %defattr(644,root,root,755) |
4f09112b | 92 | %doc AUTHORS FAQ LICENSE README.rst THANKS TODO |
44562528 JK |
93 | %{py3_sitescriptdir}/%{module} |
94 | %{py3_sitescriptdir}/%{module}-*.egg-info | |
95 | ||
96 | %if %{with doc} | |
aae8302a | 97 | %files apidocs |
44562528 | 98 | %defattr(644,root,root,755) |
aae8302a | 99 | %doc docs/_build/html/{_modules,_static,reference,userguide,*.html,*.js} |
14a88007 | 100 | %endif |