In previous lives I have seen the use of rpm-sign.exp files use to handle
this. Something like:
#!/usr/bin/expect -f
### rpm-sign.exp -- Sign RPMs by sending the passphrase.
spawn rpm --define "_gpg_name xxx" --addsign {*}$argv
expect -exact "Enter pass phrase: "
send -- "Secret passphrase\
I am trying to sign our RPM packages built on Jenkins. However it fails,
probably because it asks for the passphrase.
gpg: signing failed: Inappropriate ioctl for device
error: gpg exec failed (2)
Sometimes it works for a little while when I have signed manually in the
console.
When I sign manu