diff --git a/macros.fedora-misc b/macros.fedora-misc index 83e455a..467a2fd 100644 --- a/macros.fedora-misc +++ b/macros.fedora-misc @@ -43,4 +43,19 @@ fedora.writevars(macrofile,rpmvars) } # gpgverify verifies signed sources. There is documentation in the script. -%gpgverify %{_rpmconfigdir}/redhat/gpgverify +%gpgverify(k:s:d:) %{lua: +local script = rpm.expand("%{_rpmconfigdir}/redhat/gpgverify ") +local keyring = rpm.expand("%{-k*}") +local signature = rpm.expand("%{-s*}") +local data = rpm.expand("%{-d*}") +print(script) +if keyring ~= "" then + print(rpm.expand("--keyring '%{SOURCE" .. keyring .. "}' ")) +end +if signature ~= "" then + print(rpm.expand("--signature '%{SOURCE" .. signature .. "}' ")) +end +if data ~= "" then + print(rpm.expand("--data '%{SOURCE" .. data .. "}' ")) +end +}