diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 481736b..41f8266 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 10 13:17:31 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Thu Mar 6 10:05:55 UTC 2025 - Markéta Machová diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 3a8dd8f..bc58450 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -24,6 +24,7 @@ %bcond_without complete_tests %endif %bcond_with ringdisabled +%bcond_without libalternatives %if "%{flavor}" == "test" %define psuffix -test %bcond_without test @@ -52,13 +53,13 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-attrs >= 19.2.0 Requires: (python-exceptiongroup >= 1.0.0 if python-base < 3.11) Requires: (python-sortedcontainers >= 2.1.0 with python-sortedcontainers < 3.0) -Requires(post): update-alternatives -Requires(preun): update-alternatives BuildArch: noarch # SECTION requires_extra Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8) @@ -138,11 +139,8 @@ sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_g %python_clone -a %{buildroot}%{_bindir}/hypothesis %endif -%post -%python_install_alternative hypothesis - -%postun -%python_uninstall_alternative hypothesis +%pre +%python_libalternatives_reset_alternative hypothesis %check %if %{with test}