blob: 61863a1dbc513633bee07631109a49d1d405ad7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
Name: libslp-location
Summary: Location Based Service
Version: 0.9.5
Release: 1
Group: Framework/Location
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/vconftool
Requires(postun): /sbin/ldconfig
BuildRequires: cmake
BuildRequires: model-build-features
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(capi-appfw-app-manager)
BuildRequires: pkgconfig(capi-appfw-package-manager)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(privacy-manager-client)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(lbs-dbus)
%description
Location Based Service Libraries
%package devel
Summary: Location Based Service (Development files)
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Location Based Service Development Package
%prep
%setup -q -n %{name}-%{version}
%build
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
# Call make instruction with smp support
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
%clean
rm -rf %{buildroot}
%post
/sbin/ldconfig
vconftool set -t int memory/location/last/gps/Timestamp "0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/gps/Latitude "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/gps/Longitude "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/gps/Altitude "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/gps/HorAccuracy "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/gps/VerAccuracy "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/gps/Speed "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/gps/Direction "0.0" -i -f -s location_fw::client
vconftool set -t int memory/location/last/wps/Timestamp "0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/wps/Latitude "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/wps/Longitude "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/wps/Altitude "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/wps/HorAccuracy "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/wps/Speed "0.0" -i -f -s location_fw::client
vconftool set -t double memory/location/last/wps/Direction "0.0" -i -f -s location_fw::client
vconftool set -t int db/location/last/gps/LocTimestamp "0" -f -s location_fw::client
vconftool set -t int db/location/last/wps/LocTimestamp "0" -f -s location_fw::client
vconftool set -t string db/location/last/gps/Location "0.0;0.0;0.0;0.0;0.0;0.0;0.0;" -f -s location_fw::client
vconftool set -t string db/location/last/wps/Location "0.0;0.0;0.0;0.0;0.0;0.0;" -f -s location_fw::client
vconftool set -t int db/location/setting/Usemylocation "1" -g 6514 -f -s location_fw::vconf
vconftool set -t int db/location/setting/GpsEnabled "1" -g 6514 -f -s location_fw::vconf
vconftool set -t int db/location/setting/AgpsEnabled "0" -g 6514 -f -s location_fw::vconf
vconftool set -t int db/location/setting/GpsPopup "1" -g 6514 -f -s system::vconf_network
%if 0%{?model_build_feature_location_position_wps}
vconftool set -t int db/location/setting/NetworkEnabled "1" -g 6514 -f -s location_fw::vconf
%else
vconftool set -t int db/location/setting/NetworkEnabled "0" -g 6514 -f -s location_fw::vconf
%endif
%postun -p /sbin/ldconfig
%files
%manifest libslp-location.manifest
%{_libdir}/lib*.so*
%files devel
%{_includedir}/location/*.h
%{_libdir}/pkgconfig/*.pc
|