summaryrefslogtreecommitdiff
path: root/packaging/osp-locations.spec
blob: 7d433f878d717611d2cfdc19e89df0fcebf5c8f0 (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
Name:           osp-locations
Version:        1.2.2.1
Release:        2
License:        Apache-2.0
Summary:        The Locations library of OSP
Group:          Location/Libraries
Source0:        %{name}-%{version}.tar.gz
Source1001:     %{name}.manifest
BuildRequires:  cmake
BuildRequires:  osp-appfw-internal-devel
BuildRequires:  osp-uifw-internal-devel
BuildRequires:  pkgconfig(alarm-service)
BuildRequires:  pkgconfig(capi-location-manager)
BuildRequires:  pkgconfig(osp-appfw)
BuildRequires:  pkgconfig(osp-uifw)

# runtime requires
Requires:       osp-appfw
Requires:       osp-uifw

%description
The Locations library of OSP

%package devel
Summary:        The Locations library of OSP (Development)
Requires:       %{name} = %{version}

%description devel
The Locations library of OSP (DEV)

%package internal-devel
Summary:        The Locations library of OSP (Internal Development)
Requires:       %{name} = %{version}

%description internal-devel
The Locations library of OSP (Internal-DEV)

%prep
%setup -q
cp %{SOURCE1001} .

%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 . -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86
%else
CXXFLAGS="-D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" %cmake . -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm
%endif

make %{?_smp_mflags}

%install
%make_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%manifest osp-location.manifest
%license LICENSE.APLv2
%{_libdir}/osp/*.so*

%files devel
%{_includedir}/osp/*.h
%{_libdir}/pkgconfig/osp-locations.pc