1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: The App Framework library of OSP
9 License: Apache License, Version 2.0 or Flora
10 Source0: %{name}-%{version}.tar.gz
12 BuildRequires: pkgconfig(capi-appfw-application)
13 BuildRequires: pkgconfig(capi-appfw-app-manager)
14 BuildRequires: pkgconfig(capi-appfw-package-manager)
15 BuildRequires: pkgconfig(capi-content-mime-type)
16 BuildRequires: pkgconfig(capi-network-serial)
17 BuildRequires: pkgconfig(capi-system-device)
18 BuildRequires: pkgconfig(capi-system-info)
19 BuildRequires: pkgconfig(capi-system-power)
20 BuildRequires: pkgconfig(capi-system-runtime-info)
21 BuildRequires: pkgconfig(capi-system-system-settings)
22 BuildRequires: pkgconfig(alarm-service)
23 BuildRequires: pkgconfig(appsvc)
24 BuildRequires: pkgconfig(aul)
25 BuildRequires: pkgconfig(bundle)
26 BuildRequires: pkgconfig(chromium)
27 BuildRequires: pkgconfig(dbus-1)
28 BuildRequires: pkgconfig(dbus-glib-1)
29 BuildRequires: pkgconfig(devman)
30 BuildRequires: pkgconfig(dlog)
31 BuildRequires: pkgconfig(dukgenerator)
32 BuildRequires: pkgconfig(ecore)
33 BuildRequires: pkgconfig(glib-2.0)
34 BuildRequires: pkgconfig(heynoti)
35 BuildRequires: pkgconfig(icu-i18n)
36 BuildRequires: pkgconfig(libcurl)
37 BuildRequires: pkgconfig(libpcre)
38 BuildRequires: pkgconfig(libssl)
39 BuildRequires: pkgconfig(libsoup-2.4)
40 BuildRequires: pkgconfig(libwbxml2)
41 BuildRequires: pkgconfig(message-port)
42 BuildRequires: pkgconfig(minizip)
43 BuildRequires: pkgconfig(notification)
44 BuildRequires: pkgconfig(openssl)
45 BuildRequires: pkgconfig(pkgmgr)
46 BuildRequires: pkgconfig(pkgmgr-info)
47 BuildRequires: pkgconfig(pmapi)
48 BuildRequires: pkgconfig(libprivilege-control)
49 BuildRequires: pkgconfig(sqlite3)
50 BuildRequires: pkgconfig(uuid)
51 BuildRequires: pkgconfig(vconf)
52 BuildRequires: pkgconfig(zlib)
53 BuildRequires: pkgconfig(haptic)
54 BuildRequires: pkgconfig(x11)
55 BuildRequires: privacy-manager-client-devel
56 BuildRequires: boost-devel
57 BuildRequires: gettext-tools
60 Requires: capi-appfw-app-manager
61 Requires: capi-appfw-application
62 Requires: capi-appfw-package-manager
63 Requires: capi-content-mime-type
64 Requires: capi-network-serial
65 Requires: capi-system-runtime-info
67 Requires: message-port
68 Requires: osp-env-config
71 Provides: libosp-appfw.so.1
73 Requires(post): /sbin/ldconfig
74 Requires(post): coreutils
75 Requires(postun): /sbin/ldconfig
78 The App Framework library of OSP
81 Summary: The App Framework library of OSP (Development)
82 Group: TO_BE/FILLED_IN
83 Requires: %{name} = %{version}-%{release}
85 Requires: pkgconfig(pkgmgr-info)
86 Requires: pkgconfig(capi-appfw-app-manager)
89 The App Framework library of OSP (DEV)
91 %package internal-devel
92 Summary: osp app framework internel (Internal)
93 Group: TO_BE/FILLED_IN
94 Requires: %{name} = %{version}-%{release}
95 Requires: pkgconfig(capi-appfw-app-manager)
97 %description internal-devel
98 The App Framework library of OSP (Internal-DEV)
101 Summary: The App Framework library of OSP (Development)
102 Group: TO_BE/FILLED_IN
103 Requires: %{name} = %{version}-%{release}
106 The App Framework library of OSP (DEV)
112 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
114 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86
116 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} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm
119 # Call make instruction with smp support
120 make %{?jobs:-j%jobs}
124 mkdir -p %{buildroot}/usr/share/license
125 cp %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/%{name}
126 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
131 /bin/rm -f /etc/ld.so.cache
134 mkdir -p /opt/usr/share/.osp-compat/share/AppControl
135 mkdir -p /opt/usr/share/.osp-compat/share2
136 mkdir -p /opt/usr/share/certs/rootcert
137 mkdir -p /opt/usr/share/certs/usercert/key
138 mkdir -p /opt/usr/etc
139 mkdir -p /opt/usr/media/Images
140 mkdir -p /opt/usr/media/Others
141 mkdir -p /opt/usr/media/Sounds
142 mkdir -p /opt/usr/media/Videos
143 mkdir -p /opt/usr/media/Camera
148 if [ -f /usr/lib/rpm-plugins/msm.so ]
150 chsmack -a "osp::compat" /opt/usr/share/.osp-compat/share/AppControl
151 chsmack -t /opt/usr/share/.osp-compat/share/AppControl
152 chsmack -a "osp::root-certs" /opt/usr/share/certs/rootcert
153 chsmack -t /opt/usr/share/certs/rootcert
154 chsmack -a "osp::root-certs" /opt/usr/share/certs/rootcert
155 chsmack -t /opt/usr/share/certs/rootcert
156 chsmack -a "osp::user-certs" /opt/usr/share/certs/usercert
157 chsmack -t /opt/usr/share/certs/usercert
158 chsmack -a "osp::user-certs" /opt/usr/share/certs/usercert/key
159 chsmack -t /opt/usr/share/certs/usercert/key
160 chsmack -a "*" /opt/usr/media/*
161 chsmack -t /opt/usr/media/*
162 chsmack -a "*" /tmp/osp
166 chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
167 chmod -R 705 /opt/usr/share/certs
168 chmod -R 700 /opt/usr/share/certs/usercert/key
169 chmod -R 777 /opt/usr/media
170 chmod -R 777 /tmp/osp
172 chown -R 5000:5000 /opt/usr/media
174 %postun -p /sbin/ldconfig
177 %manifest osp-appfw.manifest
178 /usr/share/license/%{name}
180 /opt/usr/share/.osp-compat/share/*
185 %{_libdir}/osp/libosp-appfw.so*
186 %{_libdir}/osp-server/libosp-appfw-server.so*
189 %{_includedir}/osp/*.h
190 %{_includedir}/osp/*.hpp
191 %{_libdir}/pkgconfig/osp-appfw.pc
193 %files internal-devel
194 %{_includedir}/osp/app/*
195 %{_includedir}/osp/base/*
196 %{_includedir}/osp/io/*
197 %{_includedir}/osp/locales/*
198 %{_includedir}/osp/security/*
199 %{_includedir}/osp/system/*
200 %{_includedir}/osp/text/*
201 %{_includedir}/osp/server/*
202 %{_libdir}/pkgconfig/osp-appfw-server.pc
205 %{_libdir}/osp/debug/libosp-appfw.so*
206 %{_libdir}/osp-server/debug/libosp-appfw-server.so*