summaryrefslogtreecommitdiffstats
path: root/dist/vespa.spec
diff options
context:
space:
mode:
Diffstat (limited to 'dist/vespa.spec')
-rw-r--r--dist/vespa.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec
index 56463477cd4..8fed193214a 100644
--- a/dist/vespa.spec
+++ b/dist/vespa.spec
@@ -620,7 +620,7 @@ rm -rf %{buildroot}
%if 0%{?installdir:1}
cp -r %{installdir} %{buildroot}
%if 0%{?source_base:1} && ! (0%{?amzn2} || 0%{?el7})
-find %{buildroot} -iname '*.so' -print0 | xargs --no-run-if-empty -0 -n1 /usr/lib/rpm/debugedit -b %{source_base} -d %{_builddir}/%{name}-%{version}
+find %{buildroot} -exec file {} \; | grep ': ELF ' | cut -d: -f1 | xargs --no-run-if-empty -n1 /usr/lib/rpm/debugedit -b %{source_base} -d %{_builddir}/%{name}-%{version}
%endif
%else
make install DESTDIR=%{buildroot}