[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: multiple architectures and subpackages
- From: Jeff Johnson <n3npq jbj gmail com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: multiple architectures and subpackages
- Date: Tue, 26 Sep 2006 17:56:34 -0400
On Sep 26, 2006, at 5:09 PM, Andrei Kazarov wrote:
Hi Jeff,
Thanks for the clarification.
However I still have a question:
... there's no way to produce sub-packages with a different arch
from a build.
Well you can do some sick things with
BuildArch: i386 noarch
and
%ifarch noarch
...
%else
...
%endif
Assuming I'm on i386 platform, how do I make both .i386.rpm
and .noarch.rpm from a spec file like above? In other words, how do
I instruct rpmbuild to build for 'noarch' platform? Some docs tell
that there is --buildarch option, however rpmbuild on my system
(RHEL4) does not have it, but something like "--target=CPU-VENDOR-
OS override target platform" instead.
The --target option will take multiple, comma separated, CPU-VENDOR-
OS strings.
I stiil suggest that the simple shell loop
for A in i386 noarch
do
rpm build -ba --target $A foo.spec
done
is easier to understand and more reliable process.
In general, I'm having difficulties in finding the complete and up-
to-dated RPM manual for my system. Does anyone have a hint?
Isn't everyone having difficulties? ;-)
"Maximum RPM" is online at http://wraptastic.org. and "The Red Hat
RPM Guide" is somewhere on redhat.com, and
then there's the Guru Labs tutorial and ...
73 de Jeff
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]