From aa719ad579f4ea9ba9d720e07905ca6c43b649cf Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Thu, 7 Jul 2022 17:36:16 +0900 Subject: [PATCH] Change gcov data path usr/share/gcov/obj/{name}/{name}-{version}/[gcov files] Change-Id: I7c69864e3d770cf1f4a9a45e894b0d6144529dce --- packaging/capi-web-url-download.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packaging/capi-web-url-download.spec b/packaging/capi-web-url-download.spec index d406f65..522b94d 100755 --- a/packaging/capi-web-url-download.spec +++ b/packaging/capi-web-url-download.spec @@ -56,9 +56,10 @@ make %{?jobs:-j%jobs} %make_install %if 0%{?gcov:1} -find .. -name '*.gcno' | tar cf %{name}-gcov.tar -T - -install -d -m 755 %{buildroot}%{_datadir}/gcov/obj -tar xf %{name}-gcov.tar -C %{buildroot}%{_datadir}/gcov/obj +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 -- 2.7.4