[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How do I generate noarch/i386 from one .src.rpm
- From: Jeff Johnson <n3npq jbj gmail com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: How do I generate noarch/i386 from one .src.rpm
- Date: Fri, 28 Apr 2006 15:36:13 -0400
On Apr 28, 2006, at 3:08 PM, Dimi Paun wrote:
Hi folks,
I have a basic foo-1.0.src.rpm, and I need to be able to generate
a bunch of noarch packages (Java stuff), and one .i386.rpm for some
native support libs.
I use BuildArch: noarch, but this results in _all_ subpackages
to be noarch, I can't force one of them to be i386 :(
Question is, can this be done cleanly?
All depends on what you mean by "cleanly". You -- and you alone --
know that.
Meanwhile, rpm has only a single build, there ain't no such thing as
a sub-package build.
One statically valued arch per build, please, is/was a perfectly
sensible design rule.
You can of course hack up your foo.spec file to do
%ifarch noarch
<recipe for building a noarch package>
%else
<recipe for building the rest>
%endif
and then invoke
rpmbuild -ba --target=i386,noarch
to generate both noarch and non-noarch packages from a single foo.spec.
Just as easy to split into 2 packages imho.
73 de Jeff
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]