rpm: correct AutoRequires filtering on recent Fedora

Recent Fedora releases (F17 and newer) do not need the
__requires_exclude macro for filtering automatically generated Requires
for <xlator>.so files anymore. It is already sufficient to filter each
<xlator>.so from the Provides.

This prevents the following (harmless) warning from being printed during
build:

    Ignoring invalid regex -P ^(?!lib).*.so.*$

Upstream-bug: 972465
This commit is contained in:
Niels de Vos 2013-07-03 15:08:09 +02:00
parent 2ad0eed616
commit 97713d90b5

View File

@ -227,8 +227,8 @@ Provides: %{name}-core = %{version}-%{release}
%global __filter_from_req %{?__filter_from_req} | %{__grep} -v -P '^(?!lib).*\.so.*$'
%filter_setup
%else
# modern rpm and current Fedora
%global __requires_exclude -P ^(?!lib).*\.so.*$
# modern rpm and current Fedora do not generate requires if the provides
# are filtered
%global __provides_exclude_from ^%{_libdir}/glusterfs/%{version}/.*$
%endif
@ -1438,6 +1438,9 @@ fi
%endif
%changelog
* Wed Jul 3 2013 Niels de Vos <devos@fedoraproject.org>
- correct AutoRequires filtering on recent Fedora (#972465)
* Fri Jun 28 2013 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.4.0-0.8.beta4
- prerelease 3.4.0beta4 for oVirt/vdsm dependencies in Fedora19