[Rpm-maint] [patch] noarch subpackages
Michal Marek
mmarek at suse.cz
Thu Mar 27 12:54:41 UTC 2008
Hi,
I'm wondering - doesn't RPM support creating anyarch + noarch
subpackages in one build simply because it has never had the feature in
first place and no-one implemented it so far (for backwards
compatibility reasons perhaps)? Or are there good reasons not to allow this?
A wrote a short patch that allows creating noarch subpackages in a
backwards-compatible way: The spec file can define a
%_noarch_subpackages macro containing a space-separated list of
subpackages that should be noarch. E.g.
%define _noarch_subpackages %name-doc %name-examples
makes the doc and examples subpackages noarch. Such spec file will still
build fine with any rpm version, it'll just duplicate examples and
documentation for every architecture.
Comments?
Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noarch_packages.patch
Type: text/x-patch
Size: 2316 bytes
Desc: not available
Url : http://lists.rpm.org/pipermail/rpm-maint/attachments/20080327/50257237/attachment-0001.bin
More information about the Rpm-maint
mailing list