Update: Gcov automation 33/275933/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061007 accepted/tizen/7.0/unified/hotfix/20221116.104642 accepted/tizen/8.0/unified/20231005.092655 accepted/tizen/unified/20220609.132804 submit/tizen/20220607.120854 tizen_7.0_m2_release
authorShivam Verma <s01.verma@samsung.com>
Tue, 7 Jun 2022 04:40:19 +0000 (10:10 +0530)
committerShivam Verma <s01.verma@samsung.com>
Tue, 7 Jun 2022 04:40:19 +0000 (10:10 +0530)
Change-Id: Id377fefdce783e4b4ee94dc481091284ceff2e52
Signed-off-by: Shivam Verma <s01.verma@samsung.com>
packaging/capi-geofence-manager.spec

index 08bc5c7..0ba335f 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-geofence-manager
 Summary:    A Geofence Manager library in Tizen Native API
-Version:    0.3.5
+Version:    0.3.6
 Release:    1
 Group:      Location/Libraries
 License:    Apache-2.0
@@ -54,17 +54,15 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} \
 
 make %{?jobs:-j%jobs}
-%if 0%{?gcov:1}
-mkdir -p gcov-obj
-find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
 %install
 rm -rf %{buildroot}
 %make_install
 
 %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 -p /sbin/ldconfig