diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-06-08 14:44:06 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-06-08 14:44:06 +0900 |
commit | add328b06e622f936b82dd6ea637150d39465b9e (patch) | |
tree | dc37dd7813254472bcd8be817b3108e8559a38ba | |
parent | 18105f4e00343d464e75a138942247831d34c6e7 (diff) | |
download | libslp-db-util-add328b06e622f936b82dd6ea637150d39465b9e.tar.gz libslp-db-util-add328b06e622f936b82dd6ea637150d39465b9e.tar.bz2 libslp-db-util-add328b06e622f936b82dd6ea637150d39465b9e.zip |
feat: Apply new gcov featuresubmit/tizen/20220608.061608accepted/tizen/unified/20220609.132759
- Apply of tree type gcov structure
Change-Id: I0f073d6f0a2698275a1d06a8191802c4c5daa0ab
-rw-r--r-- | packaging/libslp-db-util.spec | 7 |
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 |