From 5f4b298eede09e70407de4e0f431af809d4bee54 Mon Sep 17 00:00:00 2001 From: Krishna Kant Jaju Date: Tue, 27 Dec 2022 09:42:14 +0530 Subject: Updated Coverage automation format Change-Id: Ic16b2c56b1384c289ebe5a321dcaf994c1d4f012 Signed-off-by: Krishna Kant Jaju --- packaging/sync-manager.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packaging/sync-manager.spec b/packaging/sync-manager.spec index eabb55d..f2f43ce 100644 --- a/packaging/sync-manager.spec +++ b/packaging/sync-manager.spec @@ -2,7 +2,7 @@ %global __provides_exclude_from ^.*\\.extension-calendar Name: sync-service -Version: 0.3.42 +Version: 0.3.43 Release: 1 License: Apache-2.0 Summary: Sync manager daemon @@ -92,16 +92,14 @@ cmake \ -DVERSION=%{version} make %{?jobs:-j%jobs} -%if 0%{?gcov:1} -mkdir -p gcov-obj -find . -name '*.gcno' -exec cp '{}' gcov-obj ';' -%endif %install %make_install %if 0%{?gcov:1} -mkdir -p %{buildroot}%{_datadir}/gcov/obj -install -m 0644 gcov-obj/* %{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 mkdir -p %{buildroot}%{_unitdir_user}/delayed.target.wants -- cgit v1.2.3