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} \
64 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
72 mkdir -p %{buildroot}%{_datadir}/gcov/obj
73 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
76 %post -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
81 %manifest %{name}.manifest
83 %{_libdir}/libcapi-location-manager.so.*
84 %{_bindir}/location_test
87 %{_includedir}/location/*.h
88 %{_libdir}/pkgconfig/*.pc
89 %{_libdir}/libcapi-location-manager.so
93 %{_datadir}/gcov/obj/*