File gpg-offline.macros of Package gpg-offline

#
# RPM macros for gpg-offline.
#
# (c) 2012 SUSE LINUX
# Author: Stanislav Brabec <sbrabec@suse.cz>
#
# Usage:
#
# Preamble:
# Requires: gpg-offline
#
# %prep
# %gpg_verify %{S:1}
#  or
# %gpg_verify -n keyring_name_without_suffix %{S:1}
# %gpg_verify -d directory_for_searching_of_the_keyring -n keyring_name_without_suffix %{S:1}
# %gpg_verify -f full_keyring_name_with_path %{S:1}
# Note: %{S:1} is the signature, not the tarball.
#

%gpg_verify(dnf) \
gpg-offline --directory="%{-d:%{-d*}}%{!-d:%{_sourcedir}}" --package="%{-n:%{-n*}}%{!-n:%{name}}""%{-f: %{-f*}}" --verify %{**}\
%nil