diff --git a/python-certomancer.changes b/python-certomancer.changes index 9ee7799..9a96d89 100644 --- a/python-certomancer.changes +++ b/python-certomancer.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 12 12:03:26 UTC 2025 - Daniel Garcia + +- Use libalternatives instead of update-alternatives +- Skip some failing tests + ------------------------------------------------------------------- Tue Sep 17 01:28:58 UTC 2024 - Steve Kowalik diff --git a/python-certomancer.spec b/python-certomancer.spec index 1e5eef8..d4b0a5f 100644 --- a/python-certomancer.spec +++ b/python-certomancer.spec @@ -1,7 +1,7 @@ # # spec file for package python-certomancer # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + Name: python-certomancer Version: 0.12.0 Release: 0 @@ -54,8 +60,13 @@ Suggests: python-python-pkcs11 >= 0.7.0 Suggests: python-pytz >= 2020.1 Suggests: python-freezegun >= 1.1.0 Suggests: python-pyhanko-certvalidator >= 0.23.0 +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else Requires(post): update-alternatives Requires(postun): update-alternatives +%endif BuildArch: noarch %python_subpackages @@ -74,7 +85,13 @@ PKI testing tool %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# Failing tests +donttest="test_mass_summon_explicit_config or test_mass_summon or test_summon_no_pem or test_summon_der_stdout" +%pytest -k "not ($donttest)" + +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative certomancer %post %python_install_alternative certomancer