3 %bcond_with doc # build doc (uses network)
4 %bcond_with tests # do perform tests
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
9 Summary: Messaging library for Python
10 Name: python-%{module}
14 Group: Development/Languages/Python
15 Source0: https://files.pythonhosted.org/packages/source/k/kombu/%{module}-%{version}.tar.gz
16 # Source0-md5: 15e43bdeacef6805a61e2cdee717f748
17 URL: http://pypi.python.org/pypi/kombu
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.710
21 BuildRequires: python-setuptools
23 BuildRequires: python-mock
24 BuildRequires: python-modules >= 1:2.7
25 BuildRequires: python-nose
28 BuildRequires: python-amqp
29 BuildRequires: python-django
30 BuildRequires: python-sphinxcontrib-issuetracker
31 BuildRequires: sphinx-pdg-2
35 BuildRequires: python3-setuptools
37 BuildRequires: python3-mock
38 BuildRequires: python3-nose
41 BuildRequires: python3-amqp
42 BuildRequires: python3-django
43 BuildRequires: python3-sphinxcontrib-issuetracker
44 BuildRequires: sphinx-pdg-3
47 Requires: python-amqp >= 1.4.7
48 Requires: python-anyjson >= 0.3.3
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 The aim of Kombu is to make messaging in Python as easy as possible by
54 providing an idiomatic high-level interface for the AMQ protocol, and
55 also provide proven and tested solutions to common messaging problems.
57 %package -n python3-%{module}
58 Summary: Messaging library for Python
59 Group: Libraries/Python
60 Requires: python3-modules
62 %description -n python3-%{module}
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.
68 Summary: %{module} API documentation
69 Summary(pl.UTF-8): Dokumentacja API %{module}
73 API documentation for %{module}.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API %{module}.
78 %package -n python3-%{module}-apidocs
79 Summary: %{module} API documentation
80 Summary(pl.UTF-8): Dokumentacja API %{module}
83 %description -n python3-%{module}-apidocs
84 API documentation for %{module}.
86 %description -n python3-%{module}-apidocs -l pl.UTF-8
87 Dokumentacja API %{module}.
90 %setup -q -n %{module}-%{version}
94 %py_build %{?with_tests:test}
98 PYTHONPATH=../build-2/lib %{__make} -j1 html SPHINXBUILD=sphinx-build-2
99 rm -rf .build/html/_sources
106 %py3_build %{?with_tests:test}
110 PYTHONPATH=../build-3/lib %{__make} -j1 html SPHINXBUILD=sphinx-build-3
111 rm -rf .build/html/_sources
118 rm -rf $RPM_BUILD_ROOT
131 rm -rf $RPM_BUILD_ROOT
135 %defattr(644,root,root,755)
136 %doc AUTHORS Changelog FAQ LICENSE README.rst THANKS TODO
137 %{py_sitescriptdir}/%{module}
138 %{py_sitescriptdir}/%{module}-*.egg-info
142 %defattr(644,root,root,755)
143 %doc docs/.build2/html/*
148 %files -n python3-%{module}
149 %defattr(644,root,root,755)
150 %doc AUTHORS Changelog FAQ LICENSE README.rst THANKS TODO
151 %{py3_sitescriptdir}/%{module}
152 %{py3_sitescriptdir}/%{module}-*.egg-info
155 %files -n python3-%{module}-apidocs
156 %defattr(644,root,root,755)
157 %doc docs/.build3/html/*