blob: 5b9e7e390de07a498a07edcea21a714178c21230 (
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
Name: osp-app-service
Summary: osp application service
Version: 1.2.2.1
Release: 5
Group: System/Libraries
License: Apache-2.0 or Flora
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: hash-signer
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(chromium)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(alarm-service)
BuildRequires: pkgconfig(capi-messaging-messages)
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(osp-appfw)
BuildRequires: pkgconfig(osp-shell-core)
BuildRequires: pkgconfig(sysman)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(eet)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(efreet)
BuildRequires: pkgconfig(ethumb)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(calendar-service2)
BuildRequires: pkgconfig(osp-appfw-server)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(capi-system-runtime-info)
BuildRequires: pkgconfig(capi-network-wifi)
BuildRequires: pkgconfig(pmapi)
BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(capi-telephony-sim)
BuildRequires: pkgconfig(capi-telephony-network-info)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(capi-network-tethering)
BuildRequires: pkgconfig(haptic)
BuildRequires: pkgconfig(ail)
BuildRequires: pkgconfig(sysman)
BuildRequires: pkgconfig(capi-network-wifi-direct)
BuildRequires: pkgconfig(libwbxml2)
# runtime requires
Requires: osp-appfw
Requires: osp-installer
Requires: capi-system-device
Requires: capi-system-info
Requires: capi-messaging-messages
Requires: sysman
Requires: capi-system-device
Requires: aul
Requires(post): coreutils
Requires(post): /usr/bin/vconftool
Requires(post): ss-server
Requires(preun): /usr/bin/systemctl
Requires(post): /usr/bin/systemctl
%description
osp application service
%prep
%setup -q
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %{ix86}
ARCH=x86
CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_"
%if 0%{?simulator}
CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_"
%endif
%else
ARCH=arm
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_"
%endif
%if 0%{?tizen_build_binary_release_type_eng}
CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
%endif
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH}
# 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.Flora %{buildroot}/usr/share/license/%{name}
cat %{_builddir}/%{name}-%{version}/LICENSE.APLv2 >> %{buildroot}/usr/share/license/%{name}
%make_install
%define tizen_sign 1
%define tizen_sign_base /usr/apps/aospd00043
%define tizen_sign_level platform
%define tizen_author_sign 1
%define tizen_dist_sign 1
%preun
if [ $1 == 0 ]; then
systemctl stop boot-osp.service
fi
%post
#/bin/rm -f /etc/ld.so.cache
#/sbin/ldconfig
/bin/rm -fr /opt/apps/aospd00043
mkdir -p /usr/apps/aospd00043/lib
/usr/etc/package-manager/backend/tpk -i /usr/apps/aospd00043
vconftool -f set -t int memory/appservice/status -1 -i -u 5000
if [ ! -f /var/run/memory/appservice/mmc ]
then
vconftool set -t int memory/appservice/mmc -1 -i -u 5000
fi
if [ -f %{_libdir}/rpm-plugins/msm.so ]
then
chsmack -a aospd00043 /usr/apps/aospd00043/lib
fi
systemctl daemon-reload
if [ $1 == 1 ]; then
systemctl restart boot-osp.service
fi
%files
%manifest osp-app-service.manifest
/usr/share/license/%{name}
/usr/apps/*
%config /usr/lib/tmpfiles.d/osp-app-service.conf
%config(noreplace) /opt/usr/etc/system_info_cache.ini
%{_libdir}/systemd/*
|