1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: The Locations library of OSP
8 Group: System/Libraries
9 License: Apache License, Version 2
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(alarm-service)
13 BuildRequires: pkgconfig(capi-location-manager)
14 BuildRequires: pkgconfig(osp-appfw)
15 BuildRequires: pkgconfig(osp-uifw)
16 BuildRequires: osp-appfw-internal-devel
17 BuildRequires: osp-uifw-internal-devel
23 Provides: libosp-locations.so.1
26 The Locations library of OSP
29 Summary: The Locations library of OSP (Development)
30 Group: TO_BE/FILLED_IN
31 Requires: %{name} = %{version}-%{release}
34 The Locations library of OSP (DEV)
36 %package internal-devel
37 Summary: The Locations library of OSP (Internal Development)
38 Group: TO_BE/FILLED_IN
39 Requires: %{name} = %{version}-%{release}
41 %description internal-devel
42 The Locations library of OSP (Internal-DEV)
45 Summary: The Locations library of OSP (Debug)
46 Group: TO_BE/FILLED_IN
47 Requires: %{name} = %{version}-%{release}
50 The Locations library of OSP (DEV)
56 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
58 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86
60 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_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm
63 # Call make instruction with smp support
68 mkdir -p %{buildroot}/usr/share/license
69 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
73 %post -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
78 %manifest osp-location.manifest
79 /usr/share/license/%{name}
83 %{_includedir}/osp/*.h
84 %{_libdir}/pkgconfig/osp-locations.pc
89 %{_libdir}/osp/debug/*.so*