summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2022-06-08 14:44:06 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2022-06-08 14:44:06 +0900
commitadd328b06e622f936b82dd6ea637150d39465b9e (patch)
treedc37dd7813254472bcd8be817b3108e8559a38ba
parent18105f4e00343d464e75a138942247831d34c6e7 (diff)
downloadlibslp-db-util-add328b06e622f936b82dd6ea637150d39465b9e.tar.gz
libslp-db-util-add328b06e622f936b82dd6ea637150d39465b9e.tar.bz2
libslp-db-util-add328b06e622f936b82dd6ea637150d39465b9e.zip
- Apply of tree type gcov structure Change-Id: I0f073d6f0a2698275a1d06a8191802c4c5daa0ab
-rw-r--r--packaging/libslp-db-util.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/packaging/libslp-db-util.spec b/packaging/libslp-db-util.spec
index 9149014..a5273ac 100644
--- a/packaging/libslp-db-util.spec
+++ b/packaging/libslp-db-util.spec
@@ -57,9 +57,10 @@ make %{?_smp_mflags}
%make_install
%if 0%{?gcov:1}
-find .. -name '*.gcno' | tar cf %{name}-gcov.tar -T -
-install -d -m 755 %{buildroot}%{_datadir}/gcov/obj/%{name}
-tar xf %{name}-gcov.tar -C %{buildroot}%{_datadir}/gcov/obj/%{name}
+builddir=$(basename $PWD)
+gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
+mkdir -p "$gcno_obj_dir"
+find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
%endif
%check