RPM

Comment 1 for bug 638628

Revision history for this message
In , Mark (mark-redhat-bugs) wrote :

The patch will add the ability to specify per file dependencies.

The dependencies are attributes that are specified on each line of the
%files section.

They are in addition to any automatic dependencies that are generated,
setting AutoReqProv: no in the package will cause the manual per-file
dependencies to be ignored.

The three new attributes are:

%fconflicts(...)
%fprovides(...)
%frequires(...)

The rules for what can be placed inside of each attribute is the same
as the preample: Conflicts, Provides, and Requires.

More then one attribute is allowed.

Example:

%files
%fprovides(my_foo_lib) %fprovides (your_foo_lib) /lib/libfoo.so.1
%frequires(my_foo_lib your_bar_lib) /bin/bar
%fconflicts(foobar <= 1:1-1) /bin/foobar