diff --git a/python-alembic.changes b/python-alembic.changes index 292cd1c..49b8d40 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Aug 11 12:43:03 UTC 2025 - Markéta Machová + +- Make the libalternatives transition conditional + +------------------------------------------------------------------- +Mon Jun 16 12:19:22 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Fri Apr 4 09:43:05 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-alembic.spec b/python-alembic.spec index 4f1deaf..2a6eb2b 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -16,6 +16,11 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-alembic Version: 1.15.2 @@ -41,9 +46,14 @@ BuildRequires: python-rpm-macros Requires: python-Mako Requires: python-SQLAlchemy >= 2.0.0 Requires: python-typing-extensions >= 4 +BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else Requires(post): update-alternatives Requires(postun): update-alternatives -BuildArch: noarch +%endif %if 0%{?python_version_nodots} < 39 Requires: python-importlib-metadata Requires: python-importlib-resources @@ -77,6 +87,9 @@ offers the following functionality: %check %pytest -n auto +%pre +%python_libalternatives_reset_alternative alembic + %post %python_install_alternative alembic