On Wed, Dec 2, 2020 at 3:27 PM Matthew Miller <mattdm(a)fedoraproject.org> wrote:
On Wed, Dec 02, 2020 at 02:11:50PM -0500, Neal Gompa wrote:
> Each subpackage can have virtual Provides+Conflicts to indicate one
> *must* be installed:
>
> Provides: cracklib-dictionaries
> Conflicts: cracklib-dictionaries
>
> Then cracklib itself can do the following:
>
> Requires: cracklib-dictionaries
> Suggests: cracklib-dicts-10k-worst
>
> And cracklib-dicts-full (replacing old cracklib-dicts) would do the following:
>
> Obsoletes: cracklib-dicts < %{version}-%{release}
> Provides: cracklib-dictionaries
> Conflicts: cracklib-dictionaries
Is there a way for subpackages to actually contain different files with the
same path/name?
Yes. You can declare each (sub)package to do something like so:
%package -n cracklib-dicts-full
RemovePathPostfixes: .dicts-full
...
%install
install -pm 0644 sourcefile
%{buildroot}/path/to/location/cracklib-dicts.dict.dicts-full
...
%files -n cracklib-dicts-full
/path/to/location/cracklib-dicts.dict.dicts-full
The end result will have cracklib-dicts-full containing
/path/to/location/cracklib-dicts.dict
--
真実はいつも一つ!/ Always, there's only one truth!