Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package suse-build-key for openSUSE:Factory 
checked in at 2024-07-18 19:20:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/suse-build-key (Old)
 and      /work/SRC/openSUSE:Factory/.suse-build-key.new.17339 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "suse-build-key"

Thu Jul 18 19:20:15 2024 rev:44 rq:1188398 version:12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/suse-build-key/suse-build-key.changes    
2024-03-11 15:42:24.489148553 +0100
+++ /work/SRC/openSUSE:Factory/.suse-build-key.new.17339/suse-build-key.changes 
2024-07-18 19:20:21.908745231 +0200
@@ -1,0 +2,5 @@
+Thu Jul 18 12:13:36 UTC 2024 - Marcus Meissner <[email protected]>
+
+- also include the GPG key from the current build project
+
+-------------------------------------------------------------------

New:
----
  key2rpmname

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

Other differences:
------------------
++++++ suse-build-key.spec ++++++
--- /var/tmp/diff_new_pack.OcKumN/_old  2024-07-18 19:20:23.144794620 +0200
+++ /var/tmp/diff_new_pack.OcKumN/_new  2024-07-18 19:20:23.144794620 +0200
@@ -14,6 +14,8 @@
 
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
+# needspubkeyforbuild
+
 
 
 Name:           suse-build-key
@@ -25,6 +27,7 @@
 Version:        12.0
 Release:        0
 
+Source1000:     key2rpmname
 # pub  2048R/39DB7C82 2013-01-31 SuSE Package Signing Key <[email protected]>
 # The main package signing key.
 Source0:        gpg-pubkey-39db7c82-5f68629b.asc
@@ -123,6 +126,14 @@
         ;;
     esac
 done
+
+if [ -e "%_sourcedir/_pubkey" ]; then
+    name="$(sh %{SOURCE1000} %_sourcedir/_pubkey).asc"
+    if [ ! -e "%_sourcedir/$name" ]; then
+        install -D -m 644 %_sourcedir/_pubkey %{buildroot}%keydir/"$name"
+    fi
+fi
+
 %if 0%{?suse_version} &&  0%{?suse_version} < 1120
 install -m 755 %{SOURCE100} $RPM_BUILD_ROOT/usr/lib/rpm/gnupg
 %endif
@@ -144,14 +155,7 @@
 %if 0%{?suse_version} &&  0%{?suse_version} < 1120
 %attr(755,root,root) %{_prefix}/lib/rpm/gnupg/dumpsigs
 %endif
-%{keydir}/gpg-pubkey-50a3dd1c-50f35137.asc
-%{keydir}/gpg-pubkey-39db7c82-5f68629b.asc
-# SLES 11 key no longer added
-#{keydir}/gpg-pubkey-307e3d54-5aaa90a5.asc
-%{keydir}/gpg-pubkey-09d9ea69-645b99ce.asc
-%{keydir}/gpg-pubkey-3fa1d6ce-63c9481c.asc
-%{keydir}/gpg-pubkey-73f03759-626bd414.asc
-%{keydir}/gpg-pubkey-25db7ae0-645bae34.asc
+%{keydir}/gpg-pubkey-*.asc
 %{keydir}/suse_ptf_4096_key.asc
 %{keydir}/suse_ptf_key.asc
 %{containerkeydir}/suse-container-key.asc








++++++ key2rpmname ++++++
#!/bin/bash
function keyname() {
        for key in "$@"; do
                while read line; do
                        [ "${line:0:4}" = "pub:" ] || continue
                        IFS=: eval set -- "\$line"
                        keyid="${5:8}"
                        printf "gpg-pubkey-%s-%08x\n" "${keyid,,}" "$6"
                done < <(gpg --with-colons --import-options show-only --import 
2>/dev/null < "$key")
        done
}

keyname "$@"

Reply via email to