Michael Jennings wrote:
On Monday, 31 January 2005, at 21:04:18 (-0500),
James Olin Oden wrote:
1.
rpmbuild --target=i386,i686,x86_64
Are you sure about that? I am pretty positive that each rpm
produced will have the same arch unless rpmbuild has recently
changed.
Try it and see. :) mezzanine has used this technique since...well, at
least since some point back when I was at VA (2000 or 2001).
Nice. It's new to me as well that you can do this. But the functionality
is perhaps not documented anywhere?
A couple of questions related to this:
1. Can I get the same effect via rpm tag setup or macro definitions?
I mean, can I do
BuildArch: i386,i686,x86_64
or similar in order to get multiple builds even when not using
--target? (I don't think BuildArch works that way, but a different
tag, perhaps? Or some kind of macro trickery?)
2. Is there any way to tell the build invocations apart, besides
testing the architecture? What I have in mind is something like
%if %_now_executing_build_script_for_the_first_target_listed
doSomething
%else
doSomethingElseEntirely
%endif
- Toralf
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list