3 %bcond_without tests # do not perform "make test"
5 %define module django-celery
6 Summary: django-celery provides Celery intergration for Django
11 Group: Development/Languages
12 Source0: http://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz
13 # Source0-md5: 4cfaa8e1ae3741ecd85a9cfe4af5e4dc
14 URL: http://code.google.com/p/django-celery/
15 BuildRequires: python-modules
16 BuildRequires: python-setuptools
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.710
19 BuildRequires: sed >= 4.0
20 Requires: python-celery >= %{version}
21 Requires: python-django
22 Requires: python-django-picklefield
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Provides Celery integration for Django; Using Django ORM and cache
28 backend for storing results, autodiscovery of task modules for
29 applications listed in INSTALLED_APPS, and more.
32 %setup -q -n %{module}-%{version}
38 rm -rf $RPM_BUILD_ROOT
40 --root $RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
45 rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc AUTHORS LICENSE README docs
53 %attr(755,root,root)%{_bindir}/djcelerymon
54 %{py_sitescriptdir}/djcelery
55 %if "%{py_ver}" > "2.4"
56 %{py_sitescriptdir}/django_celery-%{version}-*.egg-info