883b7ef
%if 0%{?fedora}
883b7ef
%global with_python3 1
883b7ef
%endif
883b7ef
94493d5
%global srcname kombu
94493d5
94493d5
Name:           python-%{srcname}
23eca17
Version:        4.0.2
041e854
Release:        5%{?dist}
ceb4975
Epoch:          1
Fabian Affolter 8668e42
Summary:        An AMQP Messaging Framework for Python
94493d5
94493d5
# utils/functional.py contains a header that says Python
94493d5
License:        BSD and Python
1f59263
URL:            http://kombu.readthedocs.org/
1f59263
Source0:        https://github.com/celery/kombu/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
23eca17
acfaf15
# This can be removed in 4.0.3+
acfaf15
Patch0: qpid-transport-works-with-celery-4.patch
acfaf15
23eca17
BuildArch: noarch
94493d5
94493d5
BuildRequires:  python2-devel
94493d5
BuildRequires:  python-setuptools
94493d5
BuildRequires:  python-nose
94493d5
BuildRequires:  python-anyjson
Matthias Runge f6dce75
1f59263
BuildRequires:  python-nose-cover3
1f59263
BuildRequires:  python-coverage
1f59263
BuildRequires:  python-mock
1f59263
BuildRequires:  python-simplejson
1f59263
BuildRequires:  PyYAML
1f59263
BuildRequires:  python-msgpack
1f59263
BuildRequires:  python-amqp
1f59263
BuildRequires:  python-pymongo
77753d9
94493d5
# For documentation
94493d5
#BuildRequires:  pymongo python-sphinx
94493d5
#This causes tests error, needs fixing upstream. Incompatible with python > 2.7
94493d5
#BuildRequires:  python-couchdb
94493d5
94493d5
%description
94493d5
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
94493d5
for message orientation, queuing, routing, reliability and security.
94493d5
94493d5
One of the most popular implementations of AMQP is RabbitMQ.
94493d5
94493d5
The aim of Kombu is to make messaging in Python as easy as possible by
94493d5
providing an idiomatic high-level interface for the AMQP protocol, and
94493d5
also provide proven and tested solutions to common messaging problems.
94493d5
1f59263
%package -n python2-%{srcname}
1f59263
Summary:        %{sum}
94f74e1
Requires:       python-amqp >= 2.1.4
1f59263
Requires:       python-anyjson >= 0.3.3
6b8f7b0
Requires:       python2-vine
23eca17
23eca17
# test requirements
23eca17
BuildRequires:  python2-pytest
23eca17
BuildRequires:  python2-pytest-cov
94f74e1
BuildRequires:  python2-vine
94f74e1
BuildRequires:  python2-case
94f74e1
BuildRequires:  pytz
1f59263
%{?python_provide:%python_provide python2-%{srcname}}
Matthias Runge f6dce75
1f59263
%description -n python2-%{srcname}
1f59263
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
1f59263
for message orientation, queuing, routing, reliability and security.
72235f4
1f59263
One of the most popular implementations of AMQP is RabbitMQ.
72235f4
1f59263
The aim of Kombu is to make messaging in Python as easy as possible by
1f59263
providing an idiomatic high-level interface for the AMQP protocol, and
1f59263
also provide proven and tested solutions to common messaging problems.
72235f4
1f59263
%if 0%{?with_python3}
1f59263
%package -n python3-%{srcname}
1f59263
Summary:        %{summary}
94f74e1
Requires:       python3-amqp >= 2.1.4
1f59263
Requires:       python3-anyjson
6b8f7b0
Requires:       python3-vine
6b8f7b0
23eca17
BuildRequires:  python3-devel
23eca17
BuildRequires:  python3-setuptools
23eca17
BuildRequires:  python3-mock
23eca17
BuildRequires:  python3-nose-cover3
23eca17
BuildRequires:  python3-coverage
23eca17
BuildRequires:  python3-anyjson
23eca17
BuildRequires:  python3-amqp
23eca17
BuildRequires:  python3-pymongo
23eca17
BuildRequires:  python3-nose
94f74e1
BuildRequires:  python3-vine
94f74e1
BuildRequires:  python3-case
94f74e1
BuildRequires:  python3-pytz
1f59263
%{?python_provide:%python_provide python3-%{srcname}}
Matthias Runge f6dce75
1f59263
%description -n python3-%{srcname}
Matthias Runge f6dce75
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
Matthias Runge f6dce75
for message orientation, queuing, routing, reliability and security.
Matthias Runge f6dce75
Matthias Runge f6dce75
One of the most popular implementations of AMQP is RabbitMQ.
Matthias Runge f6dce75
Matthias Runge f6dce75
The aim of Kombu is to make messaging in Python as easy as possible by
Matthias Runge f6dce75
providing an idiomatic high-level interface for the AMQP protocol, and
Matthias Runge f6dce75
also provide proven and tested solutions to common messaging problems.
1f59263
%endif
Matthias Runge f6dce75
94493d5
%prep
acfaf15
%autosetup -n %{srcname}-%{version} -p1
Matthias Runge f6dce75
94493d5
%build
1f59263
%py2_build
883b7ef
%if 0%{?with_python3}
1f59263
%py3_build
1f59263
%endif
Matthias Runge f6dce75
94493d5
%install
1f59263
%py2_install
94493d5
883b7ef
%if 0%{?with_python3}
1f59263
%py3_install
883b7ef
%endif
94493d5
23eca17
%check
23eca17
# test requires python-vine, which is not packaged yet
041e854
# py.test -xv --cov=kombu --cov-report=xml --no-cov-on-fail
23eca17
1f59263
%files -n python2-%{srcname}
1f59263
%doc AUTHORS Changelog FAQ READ* THANKS TODO examples/
1f59263
%license LICENSE
e1543f5
%{python2_sitelib}/%{srcname}
99f4f1f
%{python2_sitelib}/%{srcname}*.egg-info
94493d5
18049f9
%if 0%{?with_python3}
1f59263
%files -n python3-%{srcname}
1f59263
%doc AUTHORS Changelog FAQ READ* THANKS TODO examples/
1f59263
%license LICENSE
e1543f5
%{python3_sitelib}/%{srcname}
e1543f5
%{python3_sitelib}/kombu-%{version}-py%{python3_version}.egg-info
18049f9
%endif
Matthias Runge f6dce75
94493d5
%changelog
041e854
* Fri Mar 24 2017 Matthias Runge <mrunge@redhat.com> - 1:4.0.2-5
041e854
- disable checks temporarily, until they are fixed
041e854
acfaf15
* Sun Feb 26 2017 Brian Bouterse <bmbouter@redhat.com> - 1:4.0.2-4
acfaf15
- Adds upstream patch for 699 preventing the Qpid transport from working with Celery 4
acfaf15
7d1be7d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.0.2-3
7d1be7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7d1be7d
e896ef3
* Wed Jan 04 2017 Matthias Runge <mrunge@redhat.com> - 1:4.0.2-2
6b8f7b0
- add requires: python[23]-vine (rhbz#1409908)
6b8f7b0
23eca17
* Tue Dec 27 2016 Matthias Runge <mrunge@redhat.com> - 1:4.0.2-1
23eca17
- fixed FTBFS, upgraded to 4.0.2 (rhbz#1314754)
23eca17
7edf5ec
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1:4.0.0-8
7edf5ec
- Rebuild for Python 3.6
7edf5ec
1f59263
* Wed Nov 16 2016 Fabian Affolter <mail@fabian-affolter.ch> - 1:4.0.0-1
1f59263
- Update to latest upstream version 4.0.0 (rhbz#1314754)
1f59263
13c43c4
* Fri Aug 05 2016 Brian Bouterse <bmbouter@redhat.com> - 1:3.0.33-7
13c43c4
- Adds additional patch for 577 which prevents leaking file descriptors in Qpid transport
13c43c4
9d82ed8
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.33-6
9d82ed8
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9d82ed8
1b42356
* Wed Apr 06 2016 Brian Bouterse <bmbouter@redhat.com> - 1:3.0.33-5
1b42356
- Adds patch to fix upstream issue 577
1b42356
f9af88c
* Tue Feb 23 2016 Brian Bouterse <bmbouter@redhat.com> - 1:3.0.33-4
f9af88c
- Adds patch to fix upstream issue 569
f9af88c
- Adds patch to fix upstream issue 571
f9af88c
d46ab6d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.0.33-3
d46ab6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d46ab6d
27f258f
* Wed Jan 27 2016 Brian Bouterse <bmbouter@redhat.com> - 1:3.0.33-2
27f258f
- Adds patch to fix upstream issue 563 (rhbz#1300811)
27f258f
f0f42f9
* Wed Jan 20 2016 Brian Bouterse <bmbouter@redhat.com> - 1:3.0.33-1
f0f42f9
- Update to latest upstream version 3.0.33 (rhbz#1297116)
f0f42f9
813a02b
* Tue Dec 22 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1:3.0.32-1
813a02b
- Upstream 3.0.32 (RHBZ#1289079)
813a02b
- Fix python3 guards
813a02b
- Bugfix for debug log flooding and redis transport
813a02b
e1543f5
* Wed Dec 02 2015 Matthias Runge <mrunge@redhat.com> - 1:3.0.29-5
72235f4
- add requires: python3-anyjson
72235f4
- minor spec cleanup
72235f4
4dbdbab
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
4dbdbab
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
4dbdbab
f568c3c
* Mon Nov  9 2015 Toshio Kuratomi <toshio@fedoraproject.org> - - 3.0.29-2
f568c3c
- Make it so the python3 subpackage doesn't drag in python2
f568c3c
Fabian Affolter 8875331
* Wed Oct 28 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1:3.0.29-1
Fabian Affolter 8875331
- Update to latest upstream version 3.0.29 (rhbz#1275450)
Fabian Affolter 8875331
Fabian Affolter 9adfb72
* Thu Oct 15 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1:3.0.28-1
Fabian Affolter 9adfb72
- Update to latest upstream version 3.0.28 (rhbz#1270505)
Fabian Affolter 9adfb72
21a0b56
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.26-2
21a0b56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
21a0b56
Fabian Affolter 8668e42
* Thu May 07 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1:3.0.26-1
Fabian Affolter 8668e42
- Update to latest upstream version 3.0.26 (rhbz#1214720)
Fabian Affolter 8668e42
Fabian Affolter 293f18b
* Fri Nov 21 2014 Fabian Affolter <mail@fabian-affolter.ch> - 1:3.0.24-1
Fabian Affolter 293f18b
- Update to latest upstream version 3.0.24 (rhbz#1166402)
Fabian Affolter 293f18b
Fabian Affolter d330810
* Thu Sep 18 2014 Fabian Affolter <mail@fabian-affolter.ch> - 1:3.0.23-1
Fabian Affolter d330810
- Update to latest upstream version 3.0.23 (rhbz#1142995)
Fabian Affolter d330810
Fabian Affolter fee8436
* Sun Sep 14 2014 Fabian Affolter <mail@fabian-affolter.ch> - 1:3.0.22-1
Fabian Affolter 2aa2d75
- Update to latest upstream version 3.0.22 (rhbz#1118674)
Fabian Affolter 2aa2d75
883b7ef
* Tue Jul 15 2014 Rahul Sundaram <sundaram@fedoraproject.org> - 1:3.0.21-2
883b7ef
- reintroduce adjusted conditions for EPEL
883b7ef
- fix permission for a test script
883b7ef
f86e906
* Sun Jul 13 2014 Rahul Sundaram <sundaram@fedoraproject.org> - 1:3.0.21-1
f86e906
- update to 3.0.21
f86e906
- drop conditionals in spec
f86e906
Fabian Affolter 287a327
* Thu Jul 03 2014 Fabian Affolter <mail@fabian-affolter.ch> - 1:3.0.20-1
Fabian Affolter 287a327
- Update to latest upstream version 3.0.20 (rhbz#1114337)
Fabian Affolter 287a327
527e00a
* Mon Jun 23 2014 Fabian Affolter <mail@fabian-affolter.ch> - 1:3.0.19-1
527e00a
- Update to latest upstream version 3.0.19 (rhbz#1095266)
527e00a
9c728f2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.15-4
9c728f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9c728f2
925b146
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.15-3
925b146
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
925b146
b5bc200
* Mon May 05 2014 Matthias Runge <mrunge@redhat.com> - 3.0.15-2
b5bc200
- fix broken build
b5bc200
- have files listed only once
b5bc200
8e895ed
* Thu Apr 17 2014 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.15-1
8e895ed
- Update to latest upstream version 3.0.15 (rhbz#1072265)
8e895ed
8903785
* Wed Mar 26 2014 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.14-1
8903785
- update to 3.0.14 (rhbz#1072265)
8903785
f144c0a
* Wed Feb 26 2014 Matthias Runge <mrunge@redhat.com> - 3.0.12-1
f144c0a
- update to 3.0.12 (rhbz#1052424)
f144c0a
ceb4975
* Wed Jan 08 2014 Matthias Runge <mrunge@redhat.com> - 3.0.8-2
527e00a
- Remove requirements patch, bump epoch to be upgradeable
ceb4975
a4a74c7
* Wed Jan 08 2014 Matthias Runge <mrunge@redhat.com> - 3.0.8-1
527e00a
- Update to 3.0.8 (rhbz#1037549)
a4a74c7
5b8fd90
* Fri Nov 22 2013 Matthias Runge <mrunge@redhat.com> - 3.0.6-1
527e00a
- Update to 3.0.6 and enable tests for py3 as well 
5b8fd90
29bcc62
* Sun Nov 17 2013 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.5-1
29bcc62
- Updated to latest upstream version 3.0.5 (rhbz#1024916)
29bcc62
94f6006
* Sat Nov 16 2013 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.4-1
527e00a
- Update to latest upstream version 3.0.4 (rhbz#1024916)
94f6006
8839db1
* Fri Nov 15 2013 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.3-1
527e00a
- Update to latest upstream version 3.0.3 (rhbz#1024916)
8839db1
281b2cc
* Sun Nov 03 2013 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.2-1
527e00a
- Updatd to latest upstream version 3.0.2 (rhbz#1024916)
3b7ad41
29a2286
* Mon Oct 28 2013 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.1-1
527e00a
- Update to latest upstream version 3.0.1 (rhbz#1019148)
29a2286
77753d9
* Mon Oct 14 2013 Matthias Runge <mrunge@redhat.com> - 2.5.15-2
527e00a
- Enable tests for python2
77753d9
b3d2736
* Mon Oct 14 2013 Matthias Runge <mrunge@redhat.com> - 2.5.15-1
527e00a
- Update to 2.5.15 (rhbz#1016271)
b3d2736
ed56d8e
* Sun Aug 25 2013 Fabian Affolter <mail@fabian-affolter.ch> - 2.5.14-1
527e00a
- Update to latest upstream version 2.5.14 (rhbz#1000696)
ed56d8e
ed56d8e
* Wed Aug 21 2013 Matthias Runge <mrunge@redhat.com> - 2.5.13-1
527e00a
- Update to latest upstream version 2.5.13 (rhbz#998104)
0d669e0
46afeb0
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.12-2
46afeb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
46afeb0
4520b57
* Sat Jun 29 2013 Fabian Affolter <mail@fabian-affolter.ch> - 2.5.12-1
527e00a
- Update to latest upstream version 2.5.12
4520b57
33c8b21
* Mon Jun 24 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 2.5.10-2
527e00a
- Add requires on python-amqp/python3-amqp. resolves rhbz#974684
527e00a
- Fix rpmlint warnings about macro in comments
33c8b21
6a7fb18
* Sun Apr 21 2013 Fabian Affolter <mail@fabian-affolter.ch> - 2.5.10-1
527e00a
- Update to latest upstream version 2.5.10
6a7fb18
237006d
* Sat Mar 23 2013 Fabian Affolter <mail@fabian-affolter.ch> - 2.5.8-1
527e00a
- Update to latest upstream version 2.5.8
237006d
4970ef7
* Sat Mar 09 2013 Fabian Affolter <mail@fabian-affolter.ch> - 2.5.7-1
527e00a
- Update to latest upstream version 2.5.7
4970ef7
c499b80
* Mon Feb 11 2013 Fabian Affolter <mail@fabian-affolter.ch> - 2.5.6-1
527e00a
- Update to latest upstream version 2.5.6
c499b80
ab3b9c5
* Sat Feb 09 2013 Fabian Affolter <mail@fabian-affolter.ch> - 2.5.5-1
527e00a
- Update to latest upstream version 2.5.5
ab3b9c5
5443416
* Thu Dec 13 2012 Matthias Runge <mrunge@redhat.com> - 2.5.4-1
237006d
- Update to upstream version 2.5.4 (rhbz#886001)
5443416
5f3084f
* Tue Dec 04 2012 Matthias Runge <mrunge@redhat.com> - 2.5.3-1
237006d
- Update to latest upstream version 2.5.3
5f3084f
757abb7
* Mon Nov 26 2012 Matthias Runge <mrunge@redhat.com> - 2.4.10-1
237006d
- Update to latest upstream version 2.4.10
757abb7
16cdfab
* Tue Nov 06 2012 Matthias Runge <mrunge@redhat.com> - 2.4.8-1
527e00a
- Update to new upstream version 2.4.8
16cdfab
3633a06
* Thu Sep 20 2012 Matthias Runge <mrunge@redhat.com> - 2.4.7-1
237006d
- Update to new upstream version 2.4.7
bc05190
Matthias Runge 0895191
* Sun Aug 26 2012 Matthias Runge <mrunge@matthias-runge.de> - 2.4.3-1
237006d
- Update to new upstream version 2.4.3
Matthias Runge 0895191
Matthias Runge 7e82271
* Thu Aug 23 2012 Matthias Runge <mrunge@matthias-runge.de> - 2.4.0-1
527e00a
- Update to new upstream version 2.4.0
Matthias Runge 7e82271
0d669e0
* Fri Aug 03 2012 Matthias Runge <mrunge@matthias-runge.de> - 2.3.2-1
527e00a
- Update to version 2.3.2
527e00a
- Enable tests
527e00a
- Require python2 and/or python3
Matthias Runge f6dce75
ae3ef25
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
ae3ef25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ae3ef25
540e0a6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
540e0a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
540e0a6
94493d5
* Fri Jul 15 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.1.3-1
527e00a
- Initial spec
527e00a
- Derived from the one written by Fabian Affolter
527e00a
- Spec patch from Lakshmi Narasimhan
94493d5