summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:48:44 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:48:44 +0900
commit8844d894be764f9924fea5a9415f9203b97c02a3 (patch)
tree0fac7e9a9cc7c490cafb95f53c4ae863402833c8 /packaging
parenta1587a945a0ed4e72ad4fffd3de37ed6e6ccc2d6 (diff)
downloadlibslp-location-8844d894be764f9924fea5a9415f9203b97c02a3.tar.gz
libslp-location-8844d894be764f9924fea5a9415f9203b97c02a3.tar.bz2
libslp-location-8844d894be764f9924fea5a9415f9203b97c02a3.zip
Tizen 2.1 base
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/libslp-location.spec94
1 files changed, 94 insertions, 0 deletions
diff --git a/packaging/libslp-location.spec b/packaging/libslp-location.spec
new file mode 100755
index 0000000..98dee06
--- /dev/null
+++ b/packaging/libslp-location.spec
@@ -0,0 +1,94 @@
+Name: libslp-location
+Summary: Location Based Service
+Version: 0.4.4
+Release: 1
+Group: System/Libraries
+License: Apache Licensc, Version 2.0
+Source0: %{name}-%{version}.tar.gz
+Requires(post): /sbin/ldconfig
+Requires(post): /usr/bin/vconftool
+Requires(postun): /sbin/ldconfig
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gconf-2.0)
+BuildRequires: pkgconfig(dbus-glib-1)
+BuildRequires: pkgconfig(gmodule-2.0)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(location-appman)
+BuildRequires: pkgconfig(json-glib-1.0)
+
+
+%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
+
+./autogen.sh
+./configure --prefix=%{_prefix} --enable-dlog --enable-debug
+
+# Call make instruction with smp support
+make %{?jobs:-j%jobs}
+
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post
+/sbin/ldconfig
+vconftool set -t int db/location/last/gps/Timestamp "0" -f
+vconftool set -t double db/location/last/gps/Latitude "0.0" -f
+vconftool set -t double db/location/last/gps/Longitude "0.0" -f
+vconftool set -t double db/location/last/gps/Altitude "0.0" -f
+vconftool set -t double db/location/last/gps/HorAccuracy "0.0" -f
+vconftool set -t double db/location/last/gps/VerAccuracy "0.0" -f
+vconftool set -t double db/location/last/gps/Speed "0.0" -f
+vconftool set -t double db/location/last/gps/Direction "0.0" -f
+vconftool set -t int db/location/last/wps/Timestamp "0" -f
+vconftool set -t double db/location/last/wps/Latitude "0.0" -f
+vconftool set -t double db/location/last/wps/Longitude "0.0" -f
+vconftool set -t double db/location/last/wps/Altitude "0.0" -f
+vconftool set -t double db/location/last/wps/HorAccuracy "0.0" -f
+vconftool set -t double db/location/last/wps/Speed "0.0" -f
+vconftool set -t double db/location/last/wps/Direction "0.0" -f
+vconftool set -t int db/location/last/cps/Timestamp "0" -f
+vconftool set -t double db/location/last/cps/Latitude "0.0" -f
+vconftool set -t double db/location/last/cps/Longitude "0.0" -f
+vconftool set -t double db/location/last/cps/Altitude "0.0" -f
+vconftool set -t double db/location/last/cps/HorAccuracy "0.0" -f
+vconftool set -t int db/location/setting/GpsEnabled "0" -g 6514 -f
+vconftool set -t int db/location/setting/AgpsEnabled "0" -g 6514 -f
+vconftool set -t int db/location/setting/NetworkEnabled "0" -g 6514 -f
+vconftool set -t int db/location/setting/SensorEnabled "0" -g 6514 -f
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%manifest libslp-location.manifest
+%{_libdir}/lib*.so*
+
+
+%files devel
+%{_includedir}/location/*.h
+%{_libdir}/pkgconfig/*.pc