]> git.pld-linux.org Git - packages/python3-kombu.git/blame - python3-kombu.spec
rebuild with tests and docs
[packages/python3-kombu.git] / python3-kombu.spec
CommitLineData
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 7Summary: Messaging library for Python
aae8302a 8Summary(pl.UTF-8): Biblioteka komunikatów dla Pythona
e761070e
JB
9Name: python3-%{module}
10Version: 5.0.2
6ce61a5c 11Release: 4
e761070e 12License: BSD
be70ea90 13Group: Development/Languages/Python
aae8302a
JB
14#Source0Download: https://pypi.org/simple/kombu/
15Source0: https://files.pythonhosted.org/packages/source/k/kombu/%{module}-%{version}.tar.gz
e761070e 16# Source0-md5: 52192e631ac39a443fb1abeb52299f22
aae8302a 17URL: https://pypi.org/project/kombu/
e761070e 18BuildRequires: python3-modules >= 1:3.6
aae8302a 19BuildRequires: python3-setuptools >= 1:20.6.7
44562528 20%if %{with tests}
aae8302a 21BuildRequires: python3-Pyro4
e761070e
JB
22BuildRequires: python3-amqp >= 5.0.0
23BuildRequires: python3-amqp < 6.0.0
aae8302a
JB
24BuildRequires: python3-botocore
25BuildRequires: python3-case >= 1.5.2
26%if "%{py3_ver}" < "3.8"
27BuildRequires: python3-importlib_metadata >= 0.18
28%endif
e761070e
JB
29BuildRequires: python3-pytest
30BuildRequires: python3-pytz
65a38e1a 31%endif
aae8302a
JB
32BuildRequires: rpm-pythonprov
33BuildRequires: rpmbuild(macros) >= 1.714
34%if %{with doc}
e761070e
JB
35BuildRequires: python3-amqp
36BuildRequires: python3-sphinx_celery
37BuildRequires: sphinx-pdg-3
44562528 38%endif
e761070e 39Requires: python3-modules >= 1:3.6
be70ea90 40BuildArch: noarch
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43%description
333ebabd 44The aim of Kombu is to make messaging in Python as easy as possible by
44562528 45providing an idiomatic high-level interface for the AMQ protocol, and
333ebabd 46also provide proven and tested solutions to common messaging problems.
be70ea90 47
aae8302a
JB
48%description -l pl.UTF-8
49Celem Kombu jest jak największe ułatwienie wymiany komunikatów w
50Pythonie poprzez dostarczenie idomatycznego, wysokopoziomowego
51interfejsu do protokołu AMQ oraz sprawdzonych rozwiązań powszechnych
52problemów związanych z komunikowaniem.
53
44562528 54%package apidocs
aae8302a
JB
55Summary: API documentation for kombu module
56Summary(pl.UTF-8): Dokumentacja API modułu kombu
44562528
JK
57Group: Documentation
58
59%description apidocs
aae8302a 60API documentation for kombu module.
44562528
JK
61
62%description apidocs -l pl.UTF-8
aae8302a 63Dokumentacja 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}
72PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
73PYTEST_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
83rm -rf $RPM_BUILD_ROOT
44562528 84
d357e5f5 85%py3_install
be70ea90 86
87%clean
88rm -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
This page took 0.126024 seconds and 4 git commands to generate.