[CentOS] Building packages using RPMBUILD

Keith Roberts keith at karsites.net
Sun Dec 19 12:52:05 UTC 2010


On Sat, 18 Dec 2010, R P Herrold wrote:

> To: CentOS mailing list <centos at centos.org>
> From: R P Herrold <herrold at centos.org>
> Subject: [CentOS] Building packages using RPMBUILD
> 
> 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

I have rebuilt qps now Russ.

Here's a snippet of the rebuild output. The full output has 
been copied and pasted into *.src.rpm-rebuild.txt

[rpmbuilder at karsites qps]$ ls
Fedora6-GPG-public-key.asc  qps-1.9.18.6-1.fc6.src.rpm-rebuild.txt
qps-1.9.18.6-1.fc6.src.rpm
[rpmbuilder at karsites qps]$ rpmbuild --rebuild qps-1.9.18.6-1.fc6.src.rpm
Installing qps-1.9.18.6-1.fc6.src.rpm
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.71205
+ umask 022
+ cd /home/rpmbuilder/rpm-packages/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/rpmbuilder/rpm-packages/BUILD
+ rm -rf qps-1.9.18.6
+ /usr/bin/bzip2 -dc /home/rpmbuilder/rpm-packages/SOURCES/qps-1.9.18.6.tar.bz2
Wrote: /home/rpmbuilder/rpm-packages/RPMS/i386/qps-1.9.18.6-1.i386.rpm
Wrote: /home/rpmbuilder/rpm-packages/RPMS/i386/qps-debuginfo-1.9.18.6-1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.16535
+ umask 022
+ cd /home/rpmbuilder/rpm-packages/BUILD
+ cd qps-1.9.18.6
+ rm -rf /var/tmp/qps-1.9.18.6-1-root-rpmbuilder
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.16535
+ umask 022
+ cd /home/rpmbuilder/rpm-packages/BUILD
+ rm -rf qps-1.9.18.6
+ exit 0
[rpmbuilder at karsites qps]$

I shall test it works OK.

Kind Regards,

Keith

-- 
In theory, theory and practice are the same;
in practice they are not.

This email was sent from my laptop with Centos 5.5



More information about the CentOS mailing list