PDA

View Full Version : how to query ".src.rpm" package hardware platform



jiawj
18th November 2004, 08:03 AM
if I wanna run rpm --rebuild xxx.src.rpm, example:
rpm --rebuild kernel-2.4.21-9.EL.src.rpm --target=i686
bu if not declaim --target=i686 parameter, then only compiled i386 by default.
my question is: how to know a src.rpm package what support hardware platform, how to query it ?
rpm -qpi kernel-2.4.21-9.EL.src.rpm


[root@img SRPMS]# rpm -qpi kernel-2.4.21-9.EL.src.rpm
warning: kernel-2.4.21-9.EL.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Name : kernel Relocations: (not relocatable)
Version : 2.4.21 Vendor: Red Hat, Inc.
Release : 9.EL Build Date: Fri 09 Jan 2004 06:08:35 AM CST
Install Date: (not installed) Build Host: cure81.devel.redhat.com
Group : System Environment/Kernel Source RPM: (none)
Size : 60775663 License: GPLv2
Signature : DSA/SHA1, Sun 11 Jan 2004 12:48:42 PM CST, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary : The Linux kernel (the core of the Linux operating system).
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of the Red
Hat Enterprise Linux operating system. The kernel handles the basic
functions of the operating system: memory allocation, process allocation,
device input and output, etc.


above is not include hardware platform message .

any help to great thanks.

SuperNu
18th November 2004, 09:40 PM
There are default options in a configuration file in /etc (not sure where at the moment) which tell the rpmbuild command to use specific compiler options. This is where the hardware architecture is set to i386.

--SN

jiawj
19th November 2004, 03:47 AM
thx, I think the compiler options located in .spec file that released by run: rpm2cpio kernel-2.4.21-9.EL.src.rpm | cpio -idm.
but how to check out the %{_target_platform} options without extract rpm package.