1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: osp locations library
8 Group: System/Libraries
9 License: TO_BE/FILLED_IN
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(capi-location-manager)
13 BuildRequires: pkgconfig(osp-appfw)
14 BuildRequires: pkgconfig(osp-uifw)
15 BuildRequires: osp-appfw-internal-devel
16 BuildRequires: osp-uifw-internal-devel
26 Summary: osp locations library (Development)
27 Group: TO_BE/FILLED_IN
28 Requires: %{name} = %{version}-%{release}
31 osp locations library (DEV)
33 %package internal-devel
34 Summary: osp locations library (Internal)
35 Group: TO_BE/FILLED_IN
36 Requires: %{name} = %{version}-%{release}
38 %description internal-devel
39 osp locations library (Internal-DEV)
42 Summary: osp locations library (Development)
43 Group: TO_BE/FILLED_IN
44 Requires: %{name} = %{version}-%{release}
47 osp locations library (DEV)
53 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
55 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
57 CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
60 # Call make instruction with smp support
65 mkdir -p %{buildroot}/usr/share/license
66 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
70 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
75 /usr/share/license/%{name}
79 %{_includedir}/osp/*.h
80 %{_libdir}/pkgconfig/osp-locations.pc
85 %{_libdir}/osp/debug/*.so*