|
|
5aa0d12 |
%if 0%{?fedora} > 12
|
|
|
c09b9b3 |
%global with_python3 1
|
|
Matthias Runge |
7bc85d6 |
%else
|
|
Matthias Runge |
7bc85d6 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
|
b80c947 |
%endif
|
|
|
b80c947 |
|
|
|
b80c947 |
Name: python-celery
|
|
|
1a56492 |
Version: 3.0.19
|
|
|
48d595a |
Release: 6%{?dist}
|
|
|
b80c947 |
Summary: Distributed Task Queue
|
|
|
b80c947 |
|
|
|
b80c947 |
Group: Development/Languages
|
|
|
b80c947 |
License: BSD
|
|
|
b80c947 |
URL: http://celeryproject.org
|
|
|
66b6650 |
Source0: http://pypi.python.org/packages/source/c/celery/celery-%{version}.tar.gz
|
|
|
b80c947 |
|
|
|
b80c947 |
BuildArch: noarch
|
|
Matthias Runge |
7bc85d6 |
BuildRequires: python2-devel
|
|
|
b80c947 |
BuildRequires: python-setuptools
|
|
|
48d595a |
Requires: python-setuptools
|
|
|
b80c947 |
Requires: python-anyjson
|
|
|
b80c947 |
Requires: python-dateutil
|
|
|
5aa0d12 |
Requires: python-kombu >= 1:2.5.15, python-kombu < 1:3.0
|
|
|
b80c947 |
Requires: pyparsing
|
|
|
5aa0d12 |
Requires: python-billiard >= 1:2.7.3.34, python-billiard < 1:3.0
|
|
|
27ce3f0 |
Requires: python-amqp
|
|
|
b80c947 |
%if ! (0%{?fedora} > 13 || 0%{?rhel} > 6)
|
|
|
b80c947 |
Requires: python-importlib
|
|
|
b80c947 |
%endif
|
|
|
b80c947 |
%if ! (0%{?fedora} > 13 || 0%{?rhel} > 5)
|
|
|
b80c947 |
Requires: python-uuid
|
|
|
b80c947 |
%endif
|
|
|
8e02d33 |
# for tests
|
|
|
43d92a7 |
#BuildRequires: python-kombu >= 2.5.10
|
|
|
8e02d33 |
#BuildRequires: python-unittest2
|
|
|
8e02d33 |
#BuildRequires: python-nose
|
|
|
8e02d33 |
#BuildRequires: python-nose-cover3
|
|
|
8e02d33 |
#BuildRequires: python-mock
|
|
|
b80c947 |
|
|
Matthias Runge |
7bc85d6 |
%if 0%{?with_python3}
|
|
Matthias Runge |
7bc85d6 |
BuildRequires: python3-devel
|
|
Matthias Runge |
7bc85d6 |
BuildRequires: python3-setuptools
|
|
|
f37809a |
#BuildRequires: python3-billiard
|
|
|
8e02d33 |
#BuildRequires: python3-dateutil
|
|
|
8e02d33 |
#BuildRequires: python3-pytz
|
|
|
8e02d33 |
#BuildRequires: python3-kombu
|
|
|
8e02d33 |
|
|
|
8e02d33 |
# tests:
|
|
|
8e02d33 |
#BuildRequires: python3-nose
|
|
|
8e02d33 |
#BuildRequires: python3-nose-cover3
|
|
|
8e02d33 |
#BuildRequires: python3-mock
|
|
Matthias Runge |
7bc85d6 |
%endif # if with_python3
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
|
|
|
b80c947 |
%description
|
|
|
b80c947 |
An open source asynchronous task queue/job queue based on
|
|
|
b80c947 |
distributed message passing. It is focused on real-time
|
|
|
b80c947 |
operation, but supports scheduling as well.
|
|
|
b80c947 |
|
|
|
b80c947 |
The execution units, called tasks, are executed concurrently
|
|
|
b80c947 |
on one or more worker nodes using multiprocessing, Eventlet
|
|
|
b80c947 |
or gevent. Tasks can execute asynchronously (in the background)
|
|
|
b80c947 |
or synchronously (wait until ready).
|
|
|
b80c947 |
|
|
|
b80c947 |
Celery is used in production systems to process millions of
|
|
|
b80c947 |
tasks a day.
|
|
|
b80c947 |
|
|
|
b80c947 |
Celery is written in Python, but the protocol can be implemented
|
|
|
b80c947 |
in any language. It can also operate with other languages using
|
|
|
b80c947 |
webhooks.
|
|
|
b80c947 |
|
|
|
b80c947 |
The recommended message broker is RabbitMQ, but limited support
|
|
|
b80c947 |
for Redis, Beanstalk, MongoDB, CouchDB and databases
|
|
|
b80c947 |
(using SQLAlchemy or the Django ORM) is also available.
|
|
|
b80c947 |
|
|
Matthias Runge |
7bc85d6 |
%if 0%{?with_python3}
|
|
Matthias Runge |
7bc85d6 |
%package -n python3-celery
|
|
Matthias Runge |
7bc85d6 |
Summary: Distributed Task Queue
|
|
Matthias Runge |
7bc85d6 |
Group: Development/Languages
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
Requires: python3
|
|
|
5aa0d12 |
Requires: python3-kombu >= 1:2.5.15
|
|
|
48d595a |
Requires: python3-setuptools
|
|
|
e18ff7d |
Requires: python3-pytz
|
|
|
e18ff7d |
Requires: python3-dateutil
|
|
|
5aa0d12 |
Requires: python3-billiard >= 1:2.7.3.34, python3-billiard < 1:3.0
|
|
|
43d92a7 |
Requires: python3-amqp
|
|
Matthias Runge |
7bc85d6 |
%description -n python3-celery
|
|
Matthias Runge |
7bc85d6 |
An open source asynchronous task queue/job queue based on
|
|
Matthias Runge |
7bc85d6 |
distributed message passing. It is focused on real-time
|
|
Matthias Runge |
7bc85d6 |
operation, but supports scheduling as well.
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
The execution units, called tasks, are executed concurrently
|
|
Matthias Runge |
7bc85d6 |
on one or more worker nodes using multiprocessing, Eventlet
|
|
Matthias Runge |
7bc85d6 |
or gevent. Tasks can execute asynchronously (in the background)
|
|
Matthias Runge |
7bc85d6 |
or synchronously (wait until ready).
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
Celery is used in production systems to process millions of
|
|
Matthias Runge |
7bc85d6 |
tasks a day.
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
Celery is written in Python, but the protocol can be implemented
|
|
Matthias Runge |
7bc85d6 |
in any language. It can also operate with other languages using
|
|
Matthias Runge |
7bc85d6 |
webhooks.
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
The recommended message broker is RabbitMQ, but limited support
|
|
Matthias Runge |
7bc85d6 |
for Redis, Beanstalk, MongoDB, CouchDB and databases
|
|
Matthias Runge |
7bc85d6 |
(using SQLAlchemy or the Django ORM) is also available.
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
%endif # with_python3
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
|
|
|
b80c947 |
%prep
|
|
|
b80c947 |
%setup -q -n celery-%{version}
|
|
|
b80c947 |
for script in celery/bin/camqadm.py celery/bin/celerybeat.py celery/bin/celeryd.py; do
|
|
|
b80c947 |
%{__sed} -i.orig -e 1d ${script}
|
|
|
b80c947 |
touch -r ${script}.orig ${script}
|
|
|
b80c947 |
%{__rm} ${script}.orig
|
|
|
b80c947 |
chmod a-x ${script}
|
|
|
b80c947 |
done
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
%if 0%{?with_python3}
|
|
Matthias Runge |
7bc85d6 |
cp -a . %{py3dir}
|
|
Matthias Runge |
7bc85d6 |
%endif
|
|
Matthias Runge |
7bc85d6 |
|
|
|
b80c947 |
|
|
|
b80c947 |
%build
|
|
|
b80c947 |
%{__python} setup.py build
|
|
Matthias Runge |
7bc85d6 |
%if 0%{?with_python3}
|
|
Matthias Runge |
7bc85d6 |
pushd %{py3dir}
|
|
Matthias Runge |
7bc85d6 |
%{__python3} setup.py build
|
|
Matthias Runge |
7bc85d6 |
popd
|
|
Matthias Runge |
7bc85d6 |
%endif # with_python3
|
|
|
b80c947 |
|
|
|
b80c947 |
|
|
|
b80c947 |
%install
|
|
Matthias Runge |
7bc85d6 |
%if 0%{?with_python3}
|
|
Matthias Runge |
7bc85d6 |
pushd %{py3dir}
|
|
Matthias Runge |
7bc85d6 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
e18ff7d |
# rename py3 binary
|
|
|
e18ff7d |
for i in camqadm celerybeat celeryctl celeryd celeryd-multi celeryev celery; do
|
|
|
e18ff7d |
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/py3-$i
|
|
|
e18ff7d |
done
|
|
Matthias Runge |
7bc85d6 |
popd
|
|
Matthias Runge |
7bc85d6 |
%endif # with_python3
|
|
|
e18ff7d |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
Matthias Runge |
7bc85d6 |
|
|
Matthias Runge |
7bc85d6 |
# checks are currently failing
|
|
Matthias Runge |
7bc85d6 |
#%check
|
|
Matthias Runge |
7bc85d6 |
#%{__python} setup.py test
|
|
Matthias Runge |
7bc85d6 |
#
|
|
Matthias Runge |
7bc85d6 |
#%if 0%{?with_python3}
|
|
Matthias Runge |
7bc85d6 |
#pushd %{py3dir}
|
|
Matthias Runge |
7bc85d6 |
#%{__python3} setup.py test
|
|
Matthias Runge |
7bc85d6 |
#popd
|
|
Matthias Runge |
7bc85d6 |
#%endif # with_python3
|
|
|
b80c947 |
|
|
|
b80c947 |
|
|
|
b80c947 |
|
|
|
b80c947 |
%files
|
|
Matthias Runge |
7bc85d6 |
%doc LICENSE README.rst TODO CONTRIBUTORS.txt docs examples
|
|
|
b80c947 |
%{python_sitelib}/*
|
|
|
e18ff7d |
%{_bindir}/camqadm
|
|
|
e18ff7d |
%{_bindir}/celery
|
|
|
e18ff7d |
%{_bindir}/celerybeat
|
|
|
e18ff7d |
%{_bindir}/celeryctl
|
|
|
e18ff7d |
%{_bindir}/celeryd
|
|
|
e18ff7d |
%{_bindir}/celeryd-multi
|
|
|
e18ff7d |
%{_bindir}/celeryev
|
|
|
b80c947 |
|
|
Matthias Runge |
7bc85d6 |
%if 0%{?with_python3}
|
|
Matthias Runge |
7bc85d6 |
%files -n python3-celery
|
|
|
c09b9b3 |
%doc LICENSE README.rst TODO CONTRIBUTORS.txt docs examples
|
|
|
e18ff7d |
%{_bindir}/py3-camqadm
|
|
|
e18ff7d |
%{_bindir}/py3-celery
|
|
|
e18ff7d |
%{_bindir}/py3-celerybeat
|
|
|
e18ff7d |
%{_bindir}/py3-celeryctl
|
|
|
e18ff7d |
%{_bindir}/py3-celeryd
|
|
|
e18ff7d |
%{_bindir}/py3-celeryd-multi
|
|
|
e18ff7d |
%{_bindir}/py3-celeryev
|
|
Matthias Runge |
7bc85d6 |
%{python3_sitelib}/*
|
|
Matthias Runge |
7bc85d6 |
%endif # with_python3
|
|
Matthias Runge |
7bc85d6 |
|
|
|
b80c947 |
|
|
|
b80c947 |
%changelog
|
|
|
48d595a |
* Fri Jan 10 2014 Matthias Runge <mrunge@redhat.com> - 3.0.19-6
|
|
|
48d595a |
- add runtime req python-setuptools (rhbz#1051176)
|
|
|
48d595a |
|
|
|
5aa0d12 |
* Wed Jan 08 2014 Matthias Runge <mrunge@redhat.com> - 3.0.19-5
|
|
|
5aa0d12 |
- add more explicit requirements (rhbz#1029067)
|
|
|
5aa0d12 |
|
|
|
d396c11 |
* Fri Sep 27 2013 Matthias Runge <mrunge@redhat.com> - 3.0.19-4
|
|
|
27ce3f0 |
- add python-amqp to deps
|
|
|
43d92a7 |
- add requirement python-amqp
|
|
|
e18ff7d |
- fix requirements: python3-kombu, python3-pytz, python3-dateutil and billiard
|
|
|
43d92a7 |
- separate binaries for py3 and py (fixes rhbz#1000750)
|
|
|
43d92a7 |
|
|
|
4439ed1 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.19-2
|
|
|
4439ed1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
4439ed1 |
|
|
|
1a56492 |
* Tue Apr 23 2013 Matthias Runge <mrunge@redhat.com> - 3.0.19-1
|
|
|
1a56492 |
- update to celery-3.0.19 (rhbz#919560)
|
|
|
1a56492 |
|
|
|
e18ff7d |
* Fri Feb 15 2013 Matthias Runge <mrunge@redhat.com> - 3.0.15-1
|
|
|
09df348 |
- update to celery-3.0.15 (rhbz#909919)
|
|
|
09df348 |
|
|
|
e72d0a0 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.13-2
|
|
|
e72d0a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e72d0a0 |
|
|
|
8e02d33 |
* Thu Jan 17 2013 Matthias Runge <mrunge@redhat.com> - 3.0.13-1
|
|
|
8e02d33 |
- update to upstream version 3.0.13 (rhbz#892923)
|
|
|
8e02d33 |
|
|
|
341288f |
* Wed Nov 14 2012 Matthias Runge <mrunge@redhat.com> - 3.0.12-1
|
|
|
f37809a |
- update to upstream version 3.0.12
|
|
|
f37809a |
|
|
|
c09b9b3 |
* Tue Oct 16 2012 Matthias Runge <mrunge@redhat.com> - 3.0.11-1
|
|
|
c09b9b3 |
- update to upstream version 3.0.11
|
|
|
c09b9b3 |
|
|
|
c09b9b3 |
* Sun Aug 26 2012 Matthias Runge <mrunge@matthias-runge.de> - 3.0.7-1
|
|
|
c09b9b3 |
- update to upstream version 3.0.7
|
|
|
c09b9b3 |
|
|
|
c09b9b3 |
* Thu Aug 23 2012 Matthias Runge <mrunge@matthias-runge.de> - 3.0.6-1
|
|
|
c09b9b3 |
- update to upstream version 3.0.6
|
|
|
c09b9b3 |
|
|
Matthias Runge |
7bc85d6 |
* Fri Aug 03 2012 Matthias Runge <mrunge@matthias-runge.de> - 3.0.5-1
|
|
Matthias Runge |
7bc85d6 |
- update to version 3.0.5
|
|
Matthias Runge |
7bc85d6 |
- enable python3 support
|
|
Matthias Runge |
7bc85d6 |
|
|
|
e3ffffc |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.8-3
|
|
|
e3ffffc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
e3ffffc |
|
|
|
971c450 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.8-2
|
|
|
971c450 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
971c450 |
|
|
|
66b6650 |
* Mon Nov 28 2011 Andrew Colin Kissa <andrew@topdog.za.net> - 2.2.8-1
|
|
|
66b6650 |
- Security FIX CELERYSA-0001
|
|
|
66b6650 |
|
|
|
b80c947 |
* Fri Jul 15 2011 Andrew Colin Kissa <andrew@topdog.za.net> - 2.2.7-3
|
|
|
b80c947 |
- Fix rpmlint errors
|
|
|
b80c947 |
- Fix dependencies
|
|
|
b80c947 |
|
|
|
b80c947 |
* Sat Jun 25 2011 Andrew Colin Kissa <andrew@topdog.za.net> 2.2.7-2
|
|
|
b80c947 |
- Update for RHEL6
|
|
|
b80c947 |
|
|
|
b80c947 |
* Tue Jun 21 2011 Andrew Colin Kissa <andrew@topdog.za.net> 2.2.7-1
|
|
|
b80c947 |
- Initial package
|