3 # - consider init script / systemd job (uid/gid celery 274 used to be used)
4 # NOTE: this must not be included and enabled by default in the default
5 # package! Real-life deployments will mostly be application-specific.
8 %bcond_with doc # Sphinx documentation (too much dependencies to be worth the trouble)
9 %bcond_with tests # run tests (broken)
12 Summary: Celery - Distributed Task Query
13 Summary(pl.UTF-8): Celery - rozproszona kolejka zadań
14 Name: python3-%{module}
18 Group: Development/Languages/Python
19 Source0: https://files.pythonhosted.org/packages/source/c/celery/%{module}-%{version}.tar.gz
20 # Source0-md5: a8193028841349fbc7c88e3b67ce608c
21 Patch0: pytz_dependency.patch
22 URL: http://celeryproject.org/
24 BuildRequires: python3-billiard >= 3.6.3.0
25 BuildRequires: python3-billiard < 4
26 BuildRequires: python3-boto3 >= 1.9.178
27 BuildRequires: python3-case >= 1.3.1
28 BuildRequires: python3-click >= 7.0
29 BuildRequires: python3-click < 8
30 BuildRequires: python3-click-didyoumean >= 0.0.3
31 BuildRequires: python3-click-plugins >= 1.1.1
32 BuildRequires: python3-click-repl >= 0.1.6
33 BuildRequires: python3-kombu >= 5.0.0
34 BuildRequires: python3-kombu < 6
35 BuildRequires: python3-moto >= 1.3.7
36 BuildRequires: python3-pytest >= 6.0
37 BuildRequires: python3-pytest-celery
38 BuildRequires: python3-pytest-subtests
39 BuildRequires: python3-pytest-timeout >= 1.4.2
40 BuildRequires: python3-pytz >= 2016.7
41 BuildRequires: python3-vine >= 5.0.0
42 BuildRequires: python3-vine < 6
44 BuildRequires: python3-setuptools
45 BuildRequires: rpm-pythonprov
46 BuildRequires: rpmbuild(macros) >= 1.714
47 BuildRequires: sed >= 4.0
49 BuildRequires: python3-billiard
50 BuildRequires: python3-kombu >= 5.0.0
51 BuildRequires: python3-pytz >= 2016.7
52 BuildRequires: python3-sphinx_celery >= 2.0.0
53 BuildRequires: python3-sphinx_click >= 2.5.0
54 BuildRequires: python3-sphinx_testing >= 0.7.2
55 BuildRequires: sphinx-pdg-3 >= 3.0.0
58 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 Celery is an asynchronous task queue/job queue based on distributed
62 message passing. It is focused on real-time operation, but supports
65 %description -l pl.UTF-8
66 Celery to asynchroniczna kolejka zadań oparta na rozproszonym
67 przekazywaniu komunikatów. Skupia się na działaniu w czasie
68 rzeczywistym, ale obsługuje też szeregowanie.
71 Summary: Celery - Distributed Task Query
72 Summary(pl.UTF-8): Celery - rozproszona kolejka zadań
73 Group: Development/Languages/Python
74 Requires: python3-%{module} = %{version}
76 %description -n celery
77 Celery is an asynchronous task queue/job queue based on distributed
78 message passing. It is focused on real-time operation, but supports
81 %description -n celery -l pl.UTF-8
82 Celery to asynchroniczna kolejka zadań oparta na rozproszonym
83 przekazywaniu komunikatów. Skupia się na działaniu w czasie
84 rzeczywistym, ale obsługuje też szeregowanie.
87 Summary: API documentation for Celery
88 Summary(pl.UTF-8): Dokumentacja API Celery
92 API documentation for Celery.
94 %description apidocs -l pl.UTF-8
95 Dokumentacja API Celery.
98 %setup -q -n %{module}-%{version}
103 %py3_build %{?with_tests:test}
106 %{__make} -C docs html \
107 SPHINXBUILD=sphinx-build-3
113 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
114 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
115 find $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version} -name '*.py' \
116 | xargs %{__sed} -i '1s|^#!.*python\b|#!%{__python3}|'
119 rm -rf $RPM_BUILD_ROOT
122 %defattr(644,root,root,755)
123 %doc CONTRIBUTORS.txt Changelog.rst LICENSE README.rst TODO extra/{generic-init.d,supervisord,systemd}
124 %{py3_sitescriptdir}/celery
125 %{py3_sitescriptdir}/celery-%{version}-py*.egg-info
126 %{_examplesdir}/%{name}-%{version}
129 %defattr(644,root,root,755)
130 # TODO: extra/{bash-completion,zsh-completion}
131 %attr(755,root,root) %{_bindir}/celery
135 %defattr(644,root,root,755)
136 %doc docs/_build/html/{_images,_modules,_static,django,getting-started,history,internals,reference,tutorials,userguide,*.html,*.js}