diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2022-07-07 17:07:52 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2022-07-07 17:11:28 +0900 |
commit | 71f0dd41c5809b8bd29029eaf85460c3911f23a7 (patch) | |
tree | ca3282db3799fd354a800f184ac9938da9333b3e | |
parent | 9a78f2745472142daab5d2d76117117c438b32b5 (diff) | |
download | http-71f0dd41c5809b8bd29029eaf85460c3911f23a7.tar.gz http-71f0dd41c5809b8bd29029eaf85460c3911f23a7.tar.bz2 http-71f0dd41c5809b8bd29029eaf85460c3911f23a7.zip |
Change gcov data pathtizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220708.043045accepted/tizen/unified/20220711.173902accepted/tizen/8.0/unified/20231005.092700accepted/tizen/7.0/unified/hotfix/20221116.104646accepted/tizen/7.0/unified/20221110.062114tizen_7.0_hotfixtizen_7.0accepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
usr/share/gcov/obj/{name}/{name}-{version}/[gcov files]
Change-Id: Iaed156c94675af41b87ceba72bccbb051fa3d6f8
-rw-r--r-- | packaging/capi-network-http.spec | 7 |
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 |