[CentOS] Building packages using RPMBUILD

Sun Dec 19 00:49:42 UTC 2010
R P Herrold <herrold at centos.org>

On Sat, 18 Dec 2010, Keith Roberts wrote:

>> gpg --import-key yourkey.asc

> Thanks for your reply Tim. It still does not work though.

> [rpmbuilder at karsites qps]$ gpg --import
> Fedora6-GPG-public-key.asc

> [rpmbuilder at karsites qps]$ rpm -K qps-1.9.18.6-1.fc6.src.rpm
> qps-1.9.18.6-1.fc6.src.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK
> (MISSING KEYS: GPG#1ac70ce6)

Different issue in play here -- rpm (and also perhaps rpmbuild 
if a --rebuild is used) needs the key in the rpm database to 
consult

Probably as root you want:

 	# rpm --import Fedora6-GPG-public-key.asc

and then that objection will be silenced

-- Russ herrold