From Fedora Project Wiki
(some loose notes on using alternatives, to be submitted as an update to Packaging Guidelines) |
(restructure a bit) |
||
Line 1: | Line 1: | ||
[[Category:PackagingDrafts]] | [[Category:PackagingDrafts]] | ||
== Using %ghost == | |||
<pre> | <pre> | ||
%files | %files | ||
Line 9: | Line 9: | ||
</pre> | </pre> | ||
Pros: | |||
* allows globs and generated file lists | |||
Cons: | |||
* duplicates in %files are forbidden by [[Packaging/Guidelines#Duplicate_Files|FPG]]. | |||
== Using Provides: == | |||
<pre> | <pre> | ||
Provides: %{_bindir}/foo | Provides: %{_bindir}/foo | ||
</pre> | </pre> | ||
Pros: | Pros: |
Revision as of 17:30, 17 February 2009
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