teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame macros.rpmsign-sequoia

Michal Domonkos 8317a6
#==============================================================================
Michal Domonkos 8317a6
# ---- Sequoia signature macros.
Michal Domonkos 8317a6
#	The signature to use and the location of configuration files for
Michal Domonkos 8317a6
#	signing packages with Sequoia.
Michal Domonkos 8317a6
#
Panu Matilainen 338159
#	To enable signing with sequoia-sq, just copy this file to /etc/rpm:
Panu Matilainen 338159
#	cp /usr/share/doc/rpm/macros.rpmsign-sequoia /etc/rpm/
Panu Matilainen 338159
#
Michal Domonkos 8317a6
# Unlike GnuPG, Sequoia doesn't support specifying the signer key by
Michal Domonkos 8317a6
# email or name match, you need to supply the hex fingerprint (or keyid)
Michal Domonkos 8317a6
#%_gpg_name
Michal Domonkos 8317a6
#%_gpg_path
Michal Domonkos 8317a6
Michal Domonkos 8317a6
%__gpg	/usr/bin/sq
Michal Domonkos 8317a6
Michal Domonkos 8317a6
#	Macro(s) to hold the arguments passed to Sequoia for package
Michal Domonkos 8317a6
#	signing.  Expansion result is parsed by popt, so be sure to use
Michal Domonkos 8317a6
#	%{shescape} where needed.
Michal Domonkos 8317a6
#
Michal Domonkos 8317a6
Michal Domonkos 8317a6
%__gpg_sign_cmd %{__gpg} %{__gpg} sign \
Michal Domonkos 8317a6
	%{?_gpg_sign_cmd_extra_args} \
Michal Domonkos 8317a6
        %{?_gpg_name:--signer-key %{_gpg_name}} \
Panu Matilainen 4783f4
        --binary --detached --output %{shescape:%{?__signature_filename}} \
Michal Domonkos 8317a6
        %{?__plaintext_filename:-- %{shescape:%{__plaintext_filename}}}
Michal Domonkos 8317a6