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-content-mime-type)
14 BuildRequires: pkgconfig(capi-network-serial)
15 BuildRequires: pkgconfig(capi-system-device)
16 BuildRequires: pkgconfig(capi-system-info)
17 BuildRequires: pkgconfig(capi-system-power)
18 BuildRequires: pkgconfig(capi-system-runtime-info)
19 BuildRequires: pkgconfig(capi-system-system-settings)
20 BuildRequires: pkgconfig(capi-network-bluetooth)
21 BuildRequires: pkgconfig(capi-telephony-sim)
22 BuildRequires: pkgconfig(capi-network-tethering)
23 BuildRequires: pkgconfig(capi-network-wifi)
24 BuildRequires: pkgconfig(capi-network-wifi-direct)
25 BuildRequires: pkgconfig(wifi-direct)
26 BuildRequires: pkgconfig(capi-media-sound-manager)
27 BuildRequires: pkgconfig(capi-system-media-key)
28 BuildRequires: pkgconfig(sysman)
29 BuildRequires: pkgconfig(tapi)
30 BuildRequires: pkgconfig(alarm-service)
31 BuildRequires: pkgconfig(appsvc)
32 BuildRequires: pkgconfig(aul)
33 BuildRequires: pkgconfig(bundle)
34 BuildRequires: pkgconfig(chromium)
35 BuildRequires: pkgconfig(dbus-1)
36 BuildRequires: pkgconfig(dbus-glib-1)
37 BuildRequires: pkgconfig(devman)
38 BuildRequires: pkgconfig(dlog)
39 BuildRequires: pkgconfig(dukgenerator)
40 BuildRequires: pkgconfig(ecore)
41 BuildRequires: pkgconfig(glib-2.0)
42 BuildRequires: pkgconfig(heynoti)
43 BuildRequires: pkgconfig(elementary)
44 BuildRequires: pkgconfig(eina)
45 BuildRequires: pkgconfig(evas)
46 BuildRequires: pkgconfig(edje)
47 BuildRequires: pkgconfig(eet)
48 BuildRequires: pkgconfig(edbus)
49 BuildRequires: pkgconfig(efreet)
50 BuildRequires: pkgconfig(ethumb)
51 BuildRequires: pkgconfig(icu-i18n)
52 BuildRequires: pkgconfig(libpcre)
53 BuildRequires: pkgconfig(libssl)
54 BuildRequires: pkgconfig(libsoup-2.4)
55 BuildRequires: pkgconfig(libxml-2.0)
56 BuildRequires: pkgconfig(message-port)
57 BuildRequires: pkgconfig(minizip)
58 BuildRequires: pkgconfig(notification)
59 BuildRequires: pkgconfig(openssl)
60 BuildRequires: pkgconfig(pkgmgr)
61 BuildRequires: pkgconfig(pkgmgr-info)
62 BuildRequires: pkgconfig(pmapi)
63 BuildRequires: pkgconfig(libprivilege-control)
64 BuildRequires: pkgconfig(sqlite3)
65 BuildRequires: pkgconfig(uuid)
66 BuildRequires: pkgconfig(vconf)
67 BuildRequires: pkgconfig(zlib)
68 BuildRequires: pkgconfig(haptic)
69 BuildRequires: pkgconfig(x11)
70 BuildRequires: privacy-manager-client-devel
71 BuildRequires: capi-security-privilege-manager-devel
72 BuildRequires: boost-devel
73 BuildRequires: gettext-tools
74 BuildRequires: pkgconfig(security-server)
78 Requires: capi-appfw-application
79 Requires: capi-appfw-package-manager
80 Requires: capi-content-mime-type
81 Requires: capi-network-serial
82 Requires: capi-system-runtime-info
83 Requires: capi-security-privilege-manager
85 Requires: message-port
86 Requires: osp-env-config
89 Provides: libosp-appfw.so.1, libosp-newlib.so.1
91 Requires(post): /sbin/ldconfig
92 Requires(post): coreutils
93 Requires(postun): /sbin/ldconfig
96 The App Framework library of OSP
99 Summary: The App Framework library of OSP (Development)
100 Group: TO_BE/FILLED_IN
101 Requires: %{name} = %{version}-%{release}
102 Requires: boost-devel
103 Requires: pkgconfig(pkgmgr-info)
106 The App Framework library of OSP (DEV)
108 %package internal-devel
109 Summary: osp app framework internel (Internal)
110 Group: TO_BE/FILLED_IN
111 Requires: %{name} = %{version}-%{release}
113 %description internal-devel
114 The App Framework library of OSP (Internal-DEV)
117 Summary: The App Framework library of OSP (Development)
118 Group: TO_BE/FILLED_IN
119 Requires: %{name} = %{version}-%{release}
122 The App Framework library of OSP (DEV)
128 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
130 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
132 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
135 # Call make instruction with smp support
136 make %{?jobs:-j%jobs}
140 mkdir -p %{buildroot}/usr/share/license
141 cp %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/%{name}
142 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
147 /bin/rm -f /etc/ld.so.cache
150 mkdir -p /opt/usr/share/.osp-compat/share/AppControl
151 mkdir -p /opt/usr/share/.osp-compat/share2
152 mkdir -p /opt/usr/etc
153 mkdir -p /opt/usr/media/Images
154 mkdir -p /opt/usr/media/Others
155 mkdir -p /opt/usr/media/Sounds
156 mkdir -p /opt/usr/media/Videos
157 mkdir -p /opt/usr/media/Camera
162 chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
163 chmod -R 777 /opt/usr/media
164 chmod -R 777 /tmp/osp
166 chown -R 5000:5000 /opt/usr/media
167 locale -a > /opt/usr/etc/clocale.list
168 chmod 444 /opt/usr/etc/clocale.list
170 %postun -p /sbin/ldconfig
173 %manifest osp-appfw.manifest
174 /usr/share/license/%{name}
176 /opt/usr/share/.osp-compat/share/*
180 %{_libdir}/osp/libosp-appfw.so*
181 %{_libdir}/osp/libosp-newlib.so*
182 %{_libdir}/osp-server/libosp-appfw-server.so*
183 %{_libdir}/osp-server/libosp-system-server.so*
186 %{_includedir}/osp/*.h
187 %{_includedir}/osp/*.hpp
188 %{_libdir}/pkgconfig/osp-appfw.pc
190 %files internal-devel
191 %{_includedir}/osp/app/*
192 %{_includedir}/osp/base/*
193 %{_includedir}/osp/io/*
194 %{_includedir}/osp/locales/*
195 %{_includedir}/osp/security/*
196 %{_includedir}/osp/system/*
197 %{_includedir}/osp/text/*
198 %{_includedir}/osp/server/*
199 %{_includedir}/osp/system-server/*
200 %{_libdir}/pkgconfig/osp-appfw-server.pc
201 %{_libdir}/pkgconfig/osp-system-server.pc
204 %{_libdir}/osp/debug/libosp-appfw.so*
205 %{_libdir}/osp/debug/libosp-newlib.so*
206 %{_libdir}/osp-server/debug/libosp-appfw-server.so*
207 %{_libdir}/osp-server/debug/libosp-system-server.so*