1 Name: capi-location-manager
2 Summary: A Location Manager library in Tizen Native API
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(lbs-location)
12 BuildRequires: pkgconfig(capi-base-common)
13 BuildRequires: pkgconfig(capi-system-info)
14 BuildRequires: pkgconfig(vconf)
15 BuildRequires: pkgconfig(libtzplatform-config)
16 Requires(post): /sbin/ldconfig
17 Requires(postun): /sbin/ldconfig
24 A Location Manager library in Tizen Native API
28 Summary: A Location Manager library in Tizen Native API (Development)
29 Group: Location/Development
30 Requires: %{name} = %{version}-%{release}
33 A Location Manager library in Tizen Native API (Development)
35 #################################################
37 #################################################
40 Summary: Location Manager (gcov)
41 Group: Service Framework/Testing
43 gcov objects for coverage test
52 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
53 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
54 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
55 export LDFLAGS+=" -lgcov"
57 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
58 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \
59 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} -DTZ_SYS_BIN=%{TZ_SYS_BIN} \
68 builddir=$(basename $PWD)
69 gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
70 mkdir -p "$gcno_obj_dir"
71 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
74 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %manifest %{name}.manifest
81 %{_libdir}/libcapi-location-manager.so.*
82 %{_bindir}/location_test
85 %{_includedir}/location/*.h
86 %{_libdir}/pkgconfig/*.pc
87 %{_libdir}/libcapi-location-manager.so
91 %{_datadir}/gcov/obj/*