Re: multiple architectures and subpackages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux