gpg --armor --export bruno@mondorescue.org > RPM-GPG-KEY
rpm --import RPM-GPG-KEY
rpmmacros:
%_signature gpg
%_gpg_name FIXME@example.org
rpm --resign pkg

#!/usr/bin/expect -f
# wrapper to make rpm --sign be non-interactive
# passwd is 1st arg, file to sign is 2nd
#send_user =AB$argv0 [lrange $argv 0 2]\n"=20
#set files [lrange $argv 1 $argc ]

set password [lindex $argv 0]
set files [lrange $argv 1 1 ]
spawn rpm --addsign $files
expect "Enter pass phrase:"
send -- "$password\r"
expect eof

echo "xxxxxxxx" | setsid rpm --addsign /users/bruno/mondo/svn/build/RPMS/x86_64/mindi-1.2.5-1.mdv2007.1.x86_64.rpm
