Skip to content

Instantly share code, notes, and snippets.

@OldCrowEW
Forked from hnakamur/.rpmmacros
Created November 13, 2018 18:26
Show Gist options
  • Save OldCrowEW/0129f82f5864defc502cb66988952052 to your computer and use it in GitHub Desktop.
Save OldCrowEW/0129f82f5864defc502cb66988952052 to your computer and use it in GitHub Desktop.
rpm sign
# The original settings confirmed by running: rpm --showrc
# -14: __gpg %{_bindir}/gpg2
# -14: __gpg_check_password_cmd %{__gpg}
# gpg --batch --no-verbose --passphrase-fd 3 -u "%{_gpg_name}" -so -
#
# -14: __gpg_sign_cmd %{__gpg}
# gpg --batch --no-verbose --no-armor --passphrase-fd 3
# %{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}}
# --no-secmem-warning
# -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}
%_gpg_name [email protected]
%__gpg_check_password_cmd /bin/true
%__gpg_sign_cmd %{__gpg} \
gpg --batch --no-verbose --no-armor \
--passphrase-file /home/admin/rpmsign-work/passphrase \
%{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}} \
--no-secmem-warning \
-u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment