Name: gps-manager Summary: GPS Manager for Tizen Version: 0.1.6 Release: 1 Group: Location/Geolocation License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1001: packaging/gps-manager.manifest BuildRequires: cmake BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(geoclue) BuildRequires: pkgconfig(network) BuildRequires: pkgconfig(tapi) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(heynoti) BuildRequires: pkgconfig(sysman) BuildRequires: pkgconfig(msg-service) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(pmapi) BuildRequires: pkgconfig(location) %description GPS Manager for Tizen %package -n location-gps-manager Summary: GPS Manager for Tizen Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description -n location-gps-manager libslp-location module for gps-manager %package -n gps-manager-plugin-devel Summary: GPS Manager for Tizen (development files) Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description -n gps-manager-plugin-devel GPS Manager for Tizen (development files) %prep %setup -q %ifarch %{arm} %define GPS_ENABLER --enable-gps %define ARCH armel %else %define GPS_ENABLER --enable-gps %define ARCH x86 %endif ./autogen.sh CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" ./configure \ --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} \ %{GPS_ENABLER} %build cp %{SOURCE1001} . make %{?_smp_mflags} %install %make_install %post #GPS Indicator value vconftool set -t int memory/gps/state 0 -i vconftool set -t int memory/wps/state 0 -i #GPS_SETTING vconftool set -t int db/location/gps/Operation "1" -f vconftool set -t int db/location/gps/Starting "0" -f vconftool set -t int db/location/gps/Session "1" -f #SUPL_SETTING vconftool set -t string db/location/supl/Server "your.supl-server.com" -f vconftool set -t int db/location/supl/Port "7275" -f vconftool set -t int db/location/supl/SslEnabled "1" -f #NMEA_SETTING vconftool set -t int db/location/nmea/LoggingEnabled "0" -f #REPLAY_SETTING vconftool set -t string db/location/replay/FileName "nmea_replay.log" -f %ifarch %arm vconftool set -t int db/location/replay/ReplayEnabled "0" -f vconftool set -t int db/location/replay/ReplayMode "1" -f %else vconftool set -t int db/location/replay/ReplayEnabled "1" -f vconftool set -t int db/location/replay/ReplayMode "0" -f %endif vconftool set -t double db/location/replay/ManualLatitude "0.0" -f vconftool set -t double db/location/replay/ManualLongitude "0.0" -f vconftool set -t double db/location/replay/ManualAltitude "0.0" -f %postun -p /sbin/ldconfig %files %manifest gps-manager.manifest %{_libexecdir}/gps-manager %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.GpsManager.service %{_datadir}/geoclue-providers/gps-manager.provider %{_sysconfdir}/dbus-1/system.d/Geoclue.conf %{_sysconfdir}/rc.d/init.d/gps-manager %{_sysconfdir}/rc.d/rc3.d/S90gps-manager %{_sysconfdir}/rc.d/rc5.d/S90gps-manager %files -n location-gps-manager %manifest gps-manager.manifest %{_libdir}/location/module/libgps.so* %files -n gps-manager-plugin-devel %manifest gps-manager.manifest %{_libdir}/pkgconfig/gps-manager-plugin.pc %{_includedir}/gps-manager-plugin/*.h