Backport %gpgverify API simplification

Allow EPEL packages to use the simpler %gpgverify API which is available
in Fedora.  This incorporates the changes made to redhat-rpm-config in
the following commits:

    3490049 (Simplify the API of %gpgverify, 2019-07-25)
    4d93255 (Fix the simple API of %gpgverify, 2019-11-01)
epel9
Todd Zullinger 4 years ago
parent 2962b79e1a
commit 03f860c6a3

@ -1,6 +1,6 @@
Name: epel-rpm-macros
Version: 8
Release: 19
Release: 20
Summary: Extra Packages for Enterprise Linux RPM macros
Group: System Environment/Base
@ -85,6 +85,9 @@ install -Dpm 755 %{SOURCE24} \
%changelog
* Sat May 01 2021 Todd Zullinger <tmz@pobox.com> - 8-20
- Backport %%gpgverify API simplification
* Tue Dec 22 2020 Miro Hrončok <mhroncok@redhat.com> - 8-19
- Define %%python_disable_dependency_generator

@ -87,7 +87,22 @@
%{nil}
# gpgverify verifies signed sources. There is documentation in the script.
%gpgverify %{_rpmconfigdir}/gpgverify
%gpgverify(k:s:d:) %{lua:
local script = rpm.expand("%{_rpmconfigdir}/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
}
# qt5 macro removed from RHEL8 but needed to ensure qtwebengine, and
# it's dependencies build on supported arches.

Loading…
Cancel
Save