building conflicting packages from a single spec

Sérgio Basto sergio at serjux.com
Wed Nov 18 03:54:15 UTC 2015


On Qua, 2015-11-18 at 03:26 +0000, Pádraig Brady wrote:
> Is $subject possible?

Name:       VirtualBox
Conflicts:  %{name}-guest <= %{version}-%{release}

%package guest
Conflicts:  %{name} <= %{version}-%{release}

so you can't install VirtualBox and VirtualBox-guest at same time
because the packages Conflicts


> For example generating subpackages like:
>   %{name}-small-but-slow-binaries
>   %{name}-fast-but-big-binaries
> 
> I can %prep and %install into separate areas,
> though was then wondering how to adjust
> the buildroot for subpackages?

> Are any other techniques possible?
> I suppose I could manually set conflicts,
> and then move binaries post install,
> though what happens if mv is one of the
> binaries for example?
> 
> cheers,
> Pádraig.
-- 
Sérgio M. B.




More information about the devel mailing list