From Fedora Project Wiki

< PackagingDrafts

Revision as of 00:17, 15 January 2009 by Rathann (talk | contribs) (some loose notes on using alternatives, to be submitted as an update to Packaging Guidelines)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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