Optional %files support - (A or B or C)
Dmitry Mikhirev
mikhirev at gmail.com
Thu Oct 21 14:39:22 UTC 2021
>Alas that just moves the problem elsewhere, it doesn’t solve the
>problem.
>
>What I’m looking for, like conditional dependencies, is for the
>ability to say “include files A, B or C, whichever is present”. The
>details and complexity of what distro has what layout then becomes
>irrelevant.
You can generate a list of installed files in the end of %install
find <...> > files.list
and then pass it to %files with -f option:
%files -f files.list
instead of hardcoding paths that may change.
--
Regards,
Dmitry Mikhirev
More information about the Rpm-list
mailing list