From Fedora Project Wiki

Revision as of 20:23, 5 March 2014 by Volter (talk | contribs)

Is there any way to filter from Provides and Requires everything included in a file? I have to generate this at the end of %install.

The instructions provided for EPEL don't work, at least for EPEL5. Something like this (from Marcela Maslanova) would be better:

# Filter unwanted Requires:
cat << \EOF > %{name}-req
%{__perl_requires} $* |\
  sed -e '/perl(the)$/d'

%define __perl_requires %{_builddir}/perl-ldap-%{version}/%{name}-req
chmod +x %{__perl_requires}

--Verdurin 10:09, 18 March 2011 (UTC)

Please note RPM 4.9 allows new filtering style that takes precedence over the %filter_* style. E.g. Perl packages already use it. Ppisar

There are some formatting problems in:

$ rpm -qp foo-1.0-1.x86_64.rpm  
foo = 1.0-1.fc19
foo(x86-64) = 1.0-1.fc19