2 Summary: Geofence Server for Tizen
5 Group: Location/Service
7 Source0: %{name}-%{version}.tar.gz
8 Source1: geofence-server.service
10 %if "%{?profile}" == "tv"
11 ExcludeArch: %{arm} %ix86 x86_64
14 Requires(post): sqlite
15 Requires(post): lbs-server
17 BuildRequires: pkgconfig(glib-2.0)
18 BuildRequires: pkgconfig(network)
19 BuildRequires: pkgconfig(vconf)
20 BuildRequires: pkgconfig(dlog)
21 BuildRequires: pkgconfig(geofence-dbus)
22 BuildRequires: pkgconfig(gio-unix-2.0)
23 BuildRequires: pkgconfig(sqlite3)
24 BuildRequires: pkgconfig(db-util)
25 BuildRequires: pkgconfig(alarm-service)
26 BuildRequires: pkgconfig(deviced)
27 BuildRequires: pkgconfig(vconf)
28 BuildRequires: pkgconfig(vconf-internal-keys)
29 BuildRequires: pkgconfig(capi-system-info)
30 BuildRequires: pkgconfig(capi-appfw-app-manager)
31 BuildRequires: pkgconfig(capi-location-manager)
32 BuildRequires: pkgconfig(capi-network-wifi)
33 BuildRequires: pkgconfig(capi-network-bluetooth)
34 BuildRequires: pkgconfig(libcore-context-manager)
35 BuildRequires: pkgconfig(capi-geofence-manager)
36 BuildRequires: pkgconfig(libtzplatform-config)
37 BuildRequires: capi-geofence-manager-plugin-devel
40 Geofence Server for Tizen
48 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
49 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
50 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
52 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
53 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
54 -DLIB_DIR=%{_libdir} -DSYSCONF_DIR=%{_sysconfdir} \
62 mkdir -p %{buildroot}%{_unitdir_user}/default.target.wants
63 install -m 644 %{SOURCE1} %{buildroot}%{_unitdir_user}/geofence-server.service
64 ln -s ../geofence-server.service %{buildroot}%{_unitdir_user}/default.target.wants/geofence-server.service
71 %postun -p /sbin/ldconfig
74 %manifest geofence-server.manifest
75 %defattr(-,root,root,-)
76 /usr/bin/geofence-server
78 /usr/share/dbus-1/services/org.tizen.lbs.Providers.GeofenceServer.service
79 %config %{_sysconfdir}/dbus-1/session.d/geofence-server.conf
81 %{_unitdir_user}/geofence-server.service
82 %{_unitdir_user}/default.target.wants/geofence-server.service
85 %package -n location-geofence-server
86 Summary: Geofence Server for Tizen
87 Group: Development/Libraries
88 Requires: %{name} = %{version}-%{release}
90 %description -n location-geofence-server
91 Geofence Server for Tizen
93 %post -n location-geofence-server
96 %postun -n location-geofence-server
99 %files -n location-geofence-server
100 %manifest location-geofence-server.manifest
101 %{_libdir}/geofence/module/libgeofence.so*