Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-hypothesis for openSUSE:Factory checked in at 2025-08-22 17:46:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hypothesis (Old) and /work/SRC/openSUSE:Factory/.python-hypothesis.new.29662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hypothesis" Fri Aug 22 17:46:52 2025 rev:86 rq:1300719 version:6.127.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hypothesis/python-hypothesis.changes 2025-07-10 23:15:21.557315973 +0200 +++ /work/SRC/openSUSE:Factory/.python-hypothesis.new.29662/python-hypothesis.changes 2025-08-22 17:46:59.945998098 +0200 @@ -1,0 +2,5 @@ +Thu Aug 21 08:32:53 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-hypothesis.spec ++++++ --- /var/tmp/diff_new_pack.gwH5OZ/_old 2025-08-22 17:47:01.786073831 +0200 +++ /var/tmp/diff_new_pack.gwH5OZ/_new 2025-08-22 17:47:01.806074654 +0200 @@ -23,8 +23,12 @@ %else %bcond_without complete_tests %endif -%bcond_with ringdisabled +%if 0%{?suse_version} > 1500 %bcond_without libalternatives +%else +%bcond_with libalternatives +%endif +%bcond_with ringdisabled %if "%{flavor}" == "test" %define psuffix -test %bcond_without test @@ -53,14 +57,19 @@ 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) BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif # SECTION requires_extra Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8) # consuming packages need to declare these optional dependencies explicitly @@ -139,6 +148,12 @@ %python_clone -a %{buildroot}%{_bindir}/hypothesis %endif +%post +%python_install_alternative hypothesis + +%postun +%python_uninstall_alternative hypothesis + %pre %python_libalternatives_reset_alternative hypothesis