blob: b6678c0445c8d0ac03857672ece7cbf7beb082b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
%define debug_package %{nil}
%define __strip /bin/true
Name: osp-locations
Summary: The Locations library of OSP
Version: 1.2.2.0
Release: 2
Group: System/Libraries
License: Apache License, Version 2
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(alarm-service)
BuildRequires: pkgconfig(capi-location-manager)
BuildRequires: pkgconfig(osp-appfw)
BuildRequires: pkgconfig(osp-uifw)
BuildRequires: osp-appfw-internal-devel
BuildRequires: osp-uifw-internal-devel
# runtime requires
Requires: osp-appfw
Requires: osp-uifw
Provides: libosp-locations.so.1
%description
The Locations library of OSP
%package devel
Summary: The Locations library of OSP (Development)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description devel
The Locations library of OSP (DEV)
%package internal-devel
Summary: The Locations library of OSP (Internal Development)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description internal-devel
The Locations library of OSP (Internal-DEV)
%package debug
Summary: The Locations library of OSP (Debug)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description debug
The Locations library of OSP (DEV)
%prep
%setup -q
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %{ix86}
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
%else
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
%endif
# Call make instruction with smp support
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/license
cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest osp-location.manifest
/usr/share/license/%{name}
%{_libdir}/osp/*.so*
%files devel
%{_includedir}/osp/*.h
%{_libdir}/pkgconfig/osp-locations.pc
%files internal-devel
%files debug
%{_libdir}/osp/debug/*.so*
|