rpm build from src file
Posted
by danielrutledge
on Server Fault
See other posts from Server Fault
or by danielrutledge
Published on 2010-03-24T04:37:40Z
Indexed on
2010/03/24
4:43 UTC
Read the original article
Hit count: 658
Hi all, I'm trying to build from a *.src.rpm file on FC 12 in such a way that the files are distributed a across my system as they would with a normal binary build (in this case, *.h files end up in /usr/include). When I ran rpmbuild, the headers weren't present. Here's my rpmbuild command:
[root@localhost sphirewalld]# rpm -ivv /home/dan/Downloads/gtest-1.3.0-2.20090601svn257.fc12.src.rpm
============== /home/dan/Downloads/gtest-1.3.0-2.20090601svn257.fc12.src.rpm
Expected size: 489395 = lead(96)+sigs(180)+pad(4)+data(489115)
Actual size: 489395
loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
couldn't find any keys in /var/lib/rpm/pubkeys/*.key
loading keyring from rpmdb
opening db environment /var/lib/rpm/Packages cdb:mpool:joinenv
opening db index /var/lib/rpm/Packages rdonly mode=0x0
locked db index /var/lib/rpm/Packages
opening db index /var/lib/rpm/Name rdonly mode=0x0
read h# 931 Header sanity check: OK
added key gpg-pubkey-57bbccba-4a6f97af to keyring
read h# 1327 Header sanity check: OK
added key gpg-pubkey-7fac5991-4615767f to keyring
read h# 1420 Header sanity check: OK
added key gpg-pubkey-16ca1a56-4a100959 to keyring
read h# 1896 Header sanity check: OK
added key gpg-pubkey-a3a882c1-4a1009ef to keyring
Using legacy gpg-pubkey(s) from rpmdb
/home/dan/Downloads/gtest-1.3.0-2.20090601svn257.fc12.src.rpm: Header SHA1 digest: OK (3e98ed9b1631395d417e00f35c83ebe588ea9d3b)
added source package [0]
found 1 source and 0 binary packages
Expected size: 489395 = lead(96)+sigs(180)+pad(4)+data(489115)
Actual size: 489395
InstallSourcePackage at: psm.c:232: Header SHA1 digest: OK (3e98ed9b1631395d417e00f35c83ebe588ea9d3b)
gtest-1.3.0-2.20090601svn257.fc12
========== Directories not explicitly included in package:
0 /root/rpmbuild/SOURCES/
1 /root/rpmbuild/SPECS/
==========
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
fini 100664 1 ( 0, 0) 478034 /root/rpmbuild/SOURCES/gtest-1.3.0.tar.bz2;4ba93ce1 unknown
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
fini 100644 1 ( 0, 0) 30505 /root/rpmbuild/SOURCES/gtest-svnr257.patch;4ba93ce1 unknown
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
fini 100644 1 ( 0, 0) 2732 /root/rpmbuild/SPECS/gtest.spec;4ba93ce1 unknown
GZDIO: 63 reads, 511788 total bytes in 0.005930 secs
closed db index /var/lib/rpm/Name
closed db index /var/lib/rpm/Packages
closed db environment /var/lib/rpm/Packages
Thanks for your help.
© Server Fault or respective owner