Switched to gpgverify.
This commit is contained in:
parent
0de11a88e0
commit
87fcedbced
1 changed files with 3 additions and 11 deletions
14
anet.spec
14
anet.spec
|
|
@ -16,6 +16,8 @@ Patch2: anet-0.3.3-no_IPv6_multicast_test.patch
|
|||
BuildRequires: gcc-gnat fedora-gnat-project-common make asciidoc ahven-devel
|
||||
BuildRequires: gprbuild
|
||||
BuildRequires: gnupg2
|
||||
# gpgverify was introduced in redhat-rpm-config 129.
|
||||
BuildRequires: redhat-rpm-config >= 129
|
||||
# Build only on architectures where GPRbuild is available:
|
||||
ExclusiveArch: %{GPRbuild_arches}
|
||||
|
||||
|
|
@ -52,17 +54,7 @@ för att utveckla program som använder Anet.
|
|||
|
||||
|
||||
%prep
|
||||
# Decode the ASCII armor on the keyring.
|
||||
gpg2 --homedir=nonexistent/dir --yes --output=keyring.gpg --dearmor %{SOURCE3}
|
||||
# Verify the signature using the decoded keyring.
|
||||
gpgv2 --homedir=nonexistent/dir --keyring=./keyring.gpg %{SOURCE2} %{SOURCE0}
|
||||
# (--homedir isn't actually necessary. --dearmor processes only the input file,
|
||||
# and if --keyring is used and contains a slash, then gpgv2 uses only that
|
||||
# keyring. Thus neither command will look for a default keyring, but --homedir
|
||||
# makes extra double sure that no default keyring will be touched in case
|
||||
# another version of GPG works differently.)
|
||||
rm keyring.gpg
|
||||
|
||||
%{gpgverify} --keyring='%{SOURCE3}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
|
||||
%setup -q -n libanet-%{version}
|
||||
%patch1 -p 1
|
||||
%patch2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue