Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5052572bf0 |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 21 08:32:53 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 10 13:17:31 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 6 10:05:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Thu Mar 6 10:05:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,11 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_without complete_tests
|
%bcond_without complete_tests
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%bcond_with ringdisabled
|
%bcond_with ringdisabled
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
@@ -57,9 +62,14 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-attrs >= 19.2.0
|
Requires: python-attrs >= 19.2.0
|
||||||
Requires: (python-exceptiongroup >= 1.0.0 if python-base < 3.11)
|
Requires: (python-exceptiongroup >= 1.0.0 if python-base < 3.11)
|
||||||
Requires: (python-sortedcontainers >= 2.1.0 with python-sortedcontainers < 3.0)
|
Requires: (python-sortedcontainers >= 2.1.0 with python-sortedcontainers < 3.0)
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(preun): update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
# SECTION requires_extra
|
# SECTION requires_extra
|
||||||
Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8)
|
Recommends: (python-importlib_metadata >= 3.6 if python-base < 3.8)
|
||||||
# consuming packages need to declare these optional dependencies explicitly
|
# consuming packages need to declare these optional dependencies explicitly
|
||||||
@@ -144,6 +154,9 @@ sed -i 's/assert (arr == 0.0)/assert np.asarray(arr == 0.0)/' tests/numpy/test_g
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative hypothesis
|
%python_uninstall_alternative hypothesis
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative hypothesis
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
# theses tests try to write into global python_sitelib
|
# theses tests try to write into global python_sitelib
|
||||||
|
|||||||
Reference in New Issue
Block a user