Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package keylime for openSUSE:Factory checked 
in at 2025-08-22 17:46:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/keylime (Old)
 and      /work/SRC/openSUSE:Factory/.keylime.new.29662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "keylime"

Fri Aug 22 17:46:58 2025 rev:49 rq:1300747 version:7.12.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/keylime/keylime.changes  2025-08-13 
16:23:53.275912013 +0200
+++ /work/SRC/openSUSE:Factory/.keylime.new.29662/keylime.changes       
2025-08-22 17:47:17.114704725 +0200
@@ -1,0 +2,5 @@
+Thu Aug 21 09:20:06 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives on SLE-16-based and newer systems
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ keylime.spec ++++++
--- /var/tmp/diff_new_pack.dvFtnS/_old  2025-08-22 17:47:18.154747530 +0200
+++ /var/tmp/diff_new_pack.dvFtnS/_new  2025-08-22 17:47:18.158747695 +0200
@@ -1,6 +1,7 @@
 #
 # spec file for package keylime
 #
+# Copyright (c) 2025 SUSE LLC
 # Copyright (c) 2025 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
@@ -24,6 +25,11 @@
   %define _distconfdir   %{_sysconfdir}
   %define _config_norepl %config(noreplace)
 %endif
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 %{?sle15_python_module_pythons}
 Name:           keylime
 Version:        7.12.1
@@ -67,10 +73,15 @@
 Requires:       tpm2-0-tss
 Requires:       tpm2.0-abrmd
 Requires:       tpm2.0-tools
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
 Conflicts:      rust-keylime
 BuildArch:      noarch
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 %python_subpackages
 
 %description
@@ -197,6 +208,19 @@
 # %%check
 # %%pyunittest -v
 
+%pre
+%python_libalternatives_reset_alternative %{srcname}_attest
+%python_libalternatives_reset_alternative %{srcname}_ca
+%python_libalternatives_reset_alternative %{srcname}_convert_runtime_policy
+%python_libalternatives_reset_alternative %{srcname}_create_policy
+%python_libalternatives_reset_alternative %{srcname}-policy
+%python_libalternatives_reset_alternative %{srcname}_registrar
+%python_libalternatives_reset_alternative %{srcname}_sign_runtime_policy
+%python_libalternatives_reset_alternative %{srcname}_tenant
+%python_libalternatives_reset_alternative %{srcname}_upgrade_config
+%python_libalternatives_reset_alternative %{srcname}_userdata_encrypt
+%python_libalternatives_reset_alternative %{srcname}_verifier
+
 %post
 %python_install_alternative %{srcname}_attest
 %python_install_alternative %{srcname}_ca

Reply via email to