diff options
author | Arnstein Ressem <aressem@yahooinc.com> | 2022-04-21 18:44:50 +0200 |
---|---|---|
committer | Arnstein Ressem <aressem@yahooinc.com> | 2022-04-21 18:44:50 +0200 |
commit | 40215369df5ad513df027650ef6a3dbd3ff0ebb0 (patch) | |
tree | 55a31adee0a66356f7b7000616a31c5017ec9166 /dist | |
parent | 9753948560485faf82092ca858384f4dacd6c453 (diff) |
Make it possible to collect source files for debugsource package even when we copy from an install tree outside _topdir.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/vespa.spec | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec index 104e78e9303..61d983e5162 100644 --- a/dist/vespa.spec +++ b/dist/vespa.spec @@ -538,7 +538,11 @@ nearest neighbor search used for low-level benchmarking. %prep %if 0%{?installdir:1} +%if 0%{?source_base:1} +%setup -q +%else %setup -c -D -T +%endif %else %setup -q %if ( 0%{?el8} || 0%{?fc34} ) && %{_vespa_llvm_version} < 13 @@ -603,6 +607,9 @@ rm -rf %{buildroot} %if 0%{?installdir:1} cp -r %{installdir} %{buildroot} +%if 0%{?source_base:1} +find %{buildroot} -iname '*.so' -print0 | xargs --no-run-if-empty -0 -n1 /usr/lib/rpm/debugedit -b %{source_base} -d %{_builddir}/%{name}-%{version} +%endif %else make install DESTDIR=%{buildroot} cp client/go/bin/vespa %{buildroot}%{_prefix}/bin/vespa |