From Fedora Project Wiki

< PackagingDrafts

Revision as of 17:30, 17 February 2009 by Rathann (talk | contribs) (restructure a bit)


Using %ghost

%files
...
%ghost %{_bindir}/foo

Pros:

  • allows globs and generated file lists

Cons:

  • duplicates in %files are forbidden by FPG.

Using Provides:

Provides: %{_bindir}/foo

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