From Fedora Project Wiki
Why not
%files ... %ghost %{_bindir}/foo
? Because duplicates in %files are forbidden by FPG.
Provides: %{_bindir}/foo
seems to be the best option.
Pros:
- rpm -qf /usr/bin/foo works
- yum install /usr/bin/foo works
- repoquery --whatprovides /usr/bin/foo works
Cons:
- unwieldy with lots of alternativized files