Re: Sourcing one spec from another permissible?

2011-10-18 Thread Richard Shaw
On Tue, Oct 18, 2011 at 1:06 AM, Kevin Kofler wrote: > Instead of trying to come up with clever hacks, please look at how existing > kernel modules are packaged in RPM Fusion. They always have 2 SRPMs, by > design, a -common package with the userspace parts (if there's no userspace > code at all,

Re: Sourcing one spec from another permissible?

2011-10-17 Thread Kevin Kofler
Richard Shaw wrote: > Yeah, it's a hack, but it works pretty well. Now the kernel module > SRPM will be available as part of the build results. Anyone have a > better idea? Instead of trying to come up with clever hacks, please look at how existing kernel modules are packaged in RPM Fusion. They

Re: Sourcing one spec from another permissible?

2011-10-17 Thread Richard Shaw
Ok, I've dug a little deeper and I think there needs to be two separate packages. The reason for this is that the kernel module needs to be rebuilt on every kernel install/update. The current Makefile has a target to create a SRPM for the kernel module. I think I can do something along these lines

Re: Sourcing one spec from another permissible?

2011-10-17 Thread Richard Shaw
On Mon, Oct 17, 2011 at 10:04 AM, Toshio Kuratomi wrote: > On Mon, Oct 17, 2011 at 09:27:38AM -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 so

Re: Sourcing one spec from another permissible?

2011-10-17 Thread Richard Shaw
On Mon, Oct 17, 2011 at 9:57 AM, Nicolas Chauvet wrote: > 2011/10/17 Richard Shaw : >> Is it technically possible to "source in" an spec from within a spec? > > If that really worth it, I would create a package dropping several > macros into /etc/rpm. > Then I could reuse them in the two different

Re: Sourcing one spec from another permissible?

2011-10-17 Thread Toshio Kuratomi
On Mon, Oct 17, 2011 at 09:27:38AM -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 > utilitie

Re: Sourcing one spec from another permissible?

2011-10-17 Thread Nicolas Chauvet
2011/10/17 Richard Shaw : > 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 on

Re: Sourcing one spec from another permissible?

2011-10-17 Thread Richard Shaw
On Mon, Oct 17, 2011 at 9:46 AM, Stephen Gallagher wrote: > 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 p

Re: Sourcing one spec from another permissible?

2011-10-17 Thread Stephen Gallagher
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{

Sourcing one spec from another permissible?

2011-10-17 Thread Richard Shaw
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)