summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2022-07-07 17:07:52 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2022-07-07 17:11:28 +0900
commit71f0dd41c5809b8bd29029eaf85460c3911f23a7 (patch)
treeca3282db3799fd354a800f184ac9938da9333b3e
parent9a78f2745472142daab5d2d76117117c438b32b5 (diff)
downloadhttp-71f0dd41c5809b8bd29029eaf85460c3911f23a7.tar.gz
http-71f0dd41c5809b8bd29029eaf85460c3911f23a7.tar.bz2
http-71f0dd41c5809b8bd29029eaf85460c3911f23a7.zip
usr/share/gcov/obj/{name}/{name}-{version}/[gcov files] Change-Id: Iaed156c94675af41b87ceba72bccbb051fa3d6f8
-rw-r--r--packaging/capi-network-http.spec7
1 files 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