diff --git a/python-celery.changes b/python-celery.changes index 81389cb..780237c 100644 --- a/python-celery.changes +++ b/python-celery.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 25 11:54:05 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jun 16 06:12:16 UTC 2025 - Steve Kowalik diff --git a/python-celery.spec b/python-celery.spec index fd7121e..7d1af04 100644 --- a/python-celery.spec +++ b/python-celery.spec @@ -26,21 +26,24 @@ %bcond_with test %endif %bcond_with ringdisabled +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-celery%{psuffix} Version: 5.5.3 Release: 0 Summary: Distributed Task Queue module for Python License: BSD-3-Clause -URL: http://celeryproject.org +URL: https://celeryproject.org Source: https://files.pythonhosted.org/packages/source/c/celery/celery-%{version}.tar.gz Patch0: move-pytest-configuration-to-conftest.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: netcfg BuildRequires: python-rpm-macros +Requires: alts Requires: python-billiard >= 4.1.0 Requires: python-click >= 8.0.3 Requires: python-click-didyoumean >= 0.0.3 @@ -51,8 +54,6 @@ Requires: python-kombu >= 5.5 Requires: python-python-dateutil Requires: python-tzdata Requires: python-vine >= 5.0.0 -Requires(post): update-alternatives -Requires(postun): update-alternatives Recommends: python-cryptography Recommends: python-curses Suggests: python-eventlet @@ -81,7 +82,6 @@ BuildRequires: %{python_module pytest >= 4.5.0} BuildRequires: %{python_module pytest-click} BuildRequires: %{python_module pytest-subtests} BuildRequires: %{python_module redis} - %if %{with ringdisabled} ExclusiveArch: do-not-build %endif @@ -122,11 +122,8 @@ scheduling as well. %endif %if !%{with test} -%post -%python_install_alternative celery - -%postun -%python_uninstall_alternative celery +%pre +%python_libalternatives_reset_alternative celery %files %{python_files} %{python_sitelib}/celery