summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2013-06-12 09:55:26 +0200
committerAnand Avati <avati@redhat.com>2013-06-13 16:29:13 -0700
commit4ec4ae08c346c3e75c013bbf0529b3d7dd9a60c0 (patch)
tree2696f8dae29edf01ac225298ff6505441a3794ec /glusterfs.spec.in
parentcede8eb3d0007dcd6eb8929d5031ff25be955ed6 (diff)
downloadglusterfs-4ec4ae08c346c3e75c013bbf0529b3d7dd9a60c0.tar.gz
glusterfs-4ec4ae08c346c3e75c013bbf0529b3d7dd9a60c0.tar.xz
glusterfs-4ec4ae08c346c3e75c013bbf0529b3d7dd9a60c0.zip
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.*$ BUG: 972465 Change-Id: Icc36f421d283ddb993c8f31e0dfdaa4f27135bb7 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/5203 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index f795444da6..ffd8071b53 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -130,8 +130,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