Re: Optional %files support - (A or B or C)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


>Alas that just moves the problem elsewhere, it doesn’t solve the
>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

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.

	Dmitry Mikhirev
Rpm-list mailing list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux