Sourcing one spec from another permissible?

Stephen Gallagher sgallagh at redhat.com
Mon Oct 17 14:46:44 UTC 2011


On Mon, 2011-10-17 at 09:27 -0500, Richard Shaw wrote:
> NOTE (just for Jon :): This is for RPM Fusion but the question is a
> technical one.
> 
> I'm looking at packaging zfs for Fedora (via RPM Fusion) and it has a
> single source package but contains two spec files. One for the
> utilities (zfs{,-devel,-dracut,-test}) and one for the kernel module
> (zfs-modules). The one for the kernel module is a mess of macros and
> I'd rather not keep it inline with the main spec that I've gotten nice
> and clean/readable.
> 
> The only other solution I know of is to create two SRPMS which use the
> same source, which I don't like. They may not use any common files so
> I guess I could split the source archive but that's not a very clean
> method either.
> 
> Is it technically possible to "source in" an spec from within a spec?
> 
> If so, is it permissible?
> 
> Thanks
> Richard

Why do you have two spec files at all? Wouldn't it be easiest just to
combine them into a single spec file producing subpackages for
everything?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20111017/59c8434f/attachment-0001.bin 


More information about the devel mailing list