summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangwan Kwon <sangwan.kwon@samsung.com>2022-06-09 15:33:50 +0900
committerSangwan Kwon <sangwan.kwon@samsung.com>2022-06-09 15:35:57 +0900
commit4dca046894a4396afdf276d134340a11b7640bed (patch)
treeea41736998bde14fb9c42c3cf3dcbd14261cea98
parent745cd79aa9468f24638f6909589ede7150fde7b6 (diff)
downloadcsr-framework-tizen_7.0_hotfix.tar.gz
csr-framework-tizen_7.0_hotfix.tar.bz2
csr-framework-tizen_7.0_hotfix.zip
Change-Id: Iae56871e012126d4511ac6612c9771294ced2bdd Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
-rw-r--r--packaging/csr-framework.spec11
1 files changed, 4 insertions, 7 deletions
diff --git a/packaging/csr-framework.spec b/packaging/csr-framework.spec
index 2ae1290..aaa517c 100644
--- a/packaging/csr-framework.spec
+++ b/packaging/csr-framework.spec
@@ -194,11 +194,6 @@ export LDFLAGS+=" -lgcov"
make %{?jobs:-j%jobs}
-%if 0%{?gcov:1}
-mkdir -p gcov-obj
-find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
-
%install
%make_install
%install_service sockets.target.wants %{service_name}-cs.socket
@@ -216,8 +211,10 @@ mkdir -p %{buildroot}%{engine_rw_working_dir}
%find_lang %{service_name}
%if 0%{?gcov:1}
-mkdir -p %{buildroot}%{_datadir}/gcov/obj/%{name}
-install -m 0644 gcov-obj/* %{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
%post