Mailinglist Archive: opensuse-packaging (202 mails)

< Previous Next >
Re: [opensuse-packaging] Rpm-4.9.0 is in Factory
At Thu, 19 May 2011 12:51:36 +0200,
Michael Schroeder wrote:

This means for you, that rpm will no longer use the %__find_provides
and %__find_requires macros. Some packages redefined those
macros to be able to filter the generated dependencies.
This will no longer work in rpm-4.9.0. Instead, support for
dependency filtering was added to rpm. You can now use

%define %__requires_exclude_from ^/foo.*bar

to tell rpm to ignore files matching the regexp when generating
requires (the $RPM_BUILD_ROOT is already stripped).

You can use

%define %__requires_exclude libfoo.*

to remove a generated dependency. The same is possible for
%__provides_ and %__supplements_.

Looks good and much saner, yeah.

But how one can handle the filtering for different distro versions in
a single spec file? Using %if %suse_version blah?


To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups