From 71f0dd41c5809b8bd29029eaf85460c3911f23a7 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Thu, 7 Jul 2022 17:07:52 +0900 Subject: Change gcov data path usr/share/gcov/obj/{name}/{name}-{version}/[gcov files] Change-Id: Iaed156c94675af41b87ceba72bccbb051fa3d6f8 --- packaging/capi-network-http.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packaging/capi-network-http.spec b/packaging/capi-network-http.spec index fe09d63..a900f96 100644 --- a/packaging/capi-network-http.spec +++ b/packaging/capi-network-http.spec @@ -60,9 +60,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 -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' ! -path '*/tools/*' -exec cp --parents '{}' "$gcno_obj_dir" ';' %endif %check -- cgit v1.2.3