From 6ec31ceb14a8fe5c258f1e2ea8bc10a378f3c2b510b0ce9200537590bacfd775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 May 2020 07:35:09 +0000 Subject: [PATCH] Accepting request 809577 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809577 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery?expand=0&rev=130 --- python-celery.changes | 5 +++++ python-celery.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-celery.changes b/python-celery.changes index bc63d8e..9365b4c 100644 --- a/python-celery.changes +++ b/python-celery.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:36:39 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Thu May 14 09:55:53 UTC 2020 - Tomáš Chvátal diff --git a/python-celery.spec b/python-celery.spec index 7a2f5ba..7497826 100644 --- a/python-celery.spec +++ b/python-celery.spec @@ -42,6 +42,8 @@ Requires: python-billiard >= 3.6.1 Requires: python-kombu >= 4.6.7 Requires: python-pytz >= 2016.7 Requires: python-vine >= 1.3.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-curses Recommends: python-pyOpenSSL Suggests: python-eventlet @@ -91,6 +93,7 @@ sed -i -e 's:==:>=:g' requirements/*.txt %install %if !%{with test} %python_install +%python_clone -a %{buildroot}%{_bindir}/celery %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -101,11 +104,17 @@ sed -i -e 's:==:>=:g' requirements/*.txt %endif %if !%{with test} +%post +%python_install_alternative celery + +%postun +%python_uninstall_alternative celery + %files %{python_files} %{python_sitelib}/* %license LICENSE %doc README.rst TODO -%python3_only %{_bindir}/celery* +%python_alternative %{_bindir}/celery %endif %changelog