1 %define debug_package %{nil}
2 %define __strip /bin/true
5 Summary: The App Framework library of OSP
9 License: Apache-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(iniparser)
53 BuildRequires: pkgconfig(libpcre)
54 BuildRequires: pkgconfig(libssl)
55 BuildRequires: pkgconfig(libsoup-2.4)
56 BuildRequires: pkgconfig(libxml-2.0)
57 BuildRequires: pkgconfig(message-port)
58 BuildRequires: pkgconfig(minizip)
59 BuildRequires: pkgconfig(notification)
60 BuildRequires: pkgconfig(openssl)
61 BuildRequires: pkgconfig(pkgmgr)
62 BuildRequires: pkgconfig(pkgmgr-info)
63 BuildRequires: pkgconfig(pmapi)
64 BuildRequires: pkgconfig(libprivilege-control)
65 BuildRequires: pkgconfig(sqlite3)
66 BuildRequires: pkgconfig(uuid)
67 BuildRequires: pkgconfig(vconf)
68 BuildRequires: pkgconfig(zlib)
69 BuildRequires: pkgconfig(haptic)
70 BuildRequires: pkgconfig(x11)
71 BuildRequires: privacy-manager-client-devel
72 BuildRequires: capi-security-privilege-manager-devel
73 BuildRequires: boost-devel
74 BuildRequires: gettext-tools
75 BuildRequires: pkgconfig(security-server)
76 BuildRequires: pkgconfig(badge)
77 BuildRequires: pkgconfig(appinfo) >= 0.1.0
80 Requires: capi-appfw-application
81 Requires: capi-appfw-package-manager
82 Requires: capi-content-mime-type
83 Requires: capi-network-serial
84 Requires: capi-system-runtime-info
85 Requires: capi-security-privilege-manager
87 Requires: message-port
88 Requires: osp-env-config >= 1.2.2.1
92 Provides: libosp-appfw.so.1, libosp-newlib.so.1
94 Requires(post): /sbin/ldconfig
95 Requires(post): coreutils
96 Requires(postun): /sbin/ldconfig
99 The App Framework library of OSP
102 Summary: The App Framework library of OSP (Development)
103 Group: TO_BE/FILLED_IN
104 Requires: %{name} = %{version}-%{release}
105 Requires: boost-devel
106 Requires: pkgconfig(pkgmgr-info)
109 The App Framework library of OSP (DEV)
111 %package internal-devel
112 Summary: osp app framework internel (Internal)
113 Group: TO_BE/FILLED_IN
114 Requires: %{name} = %{version}-%{release}
116 %description internal-devel
117 The App Framework library of OSP (Internal-DEV)
120 Summary: The App Framework library of OSP (Development)
121 Group: TO_BE/FILLED_IN
122 Requires: %{name} = %{version}-%{release}
125 The App Framework library of OSP (DEV)
131 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
133 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
135 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
138 # Call make instruction with smp support
139 #make %{?jobs:-j%jobs}
146 mkdir -p %{buildroot}/usr/share/license
147 cp %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/%{name}
148 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
153 /bin/rm -f /etc/ld.so.cache
156 mkdir -p /opt/usr/share/.osp-compat/share/AppControl
157 mkdir -p /opt/usr/share/.osp-compat/share2
158 mkdir -p /opt/usr/etc
159 mkdir -p /opt/usr/media/Images
160 mkdir -p /opt/usr/media/Others
161 mkdir -p /opt/usr/media/Sounds
162 mkdir -p /opt/usr/media/Videos
163 mkdir -p /opt/usr/media/Camera
168 chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
169 chmod -R 777 /opt/usr/media
170 chmod -R 777 /tmp/osp
172 chown -R 5000:5000 /opt/usr/media
173 locale -a > /opt/usr/etc/clocale.list
174 chmod 444 /opt/usr/etc/clocale.list
176 %postun -p /sbin/ldconfig
179 %manifest osp-appfw.manifest
180 /usr/share/license/%{name}
182 %config /opt/usr/etc/*
185 %{_libdir}/osp/libosp-appfw.so*
186 %{_libdir}/osp/libosp-newlib.so*
187 %{_libdir}/osp-server/libosp-appfw-server.so*
188 %{_libdir}/osp-server/libosp-system-server.so*
191 %{_includedir}/osp/*.h
192 %{_includedir}/osp/*.hpp
193 %{_libdir}/pkgconfig/osp-appfw.pc
195 %files internal-devel
196 %{_includedir}/osp/app/*
197 %{_includedir}/osp/base/*
198 %{_includedir}/osp/io/*
199 %{_includedir}/osp/locales/*
200 %{_includedir}/osp/security/*
201 %{_includedir}/osp/system/*
202 %{_includedir}/osp/text/*
203 %{_includedir}/osp/server/*
204 %{_includedir}/osp/system-server/*
205 %{_libdir}/pkgconfig/osp-appfw-server.pc
206 %{_libdir}/pkgconfig/osp-system-server.pc
209 %{_libdir}/osp/debug/libosp-appfw.so*
210 %{_libdir}/osp/debug/libosp-newlib.so*
211 %{_libdir}/osp-server/debug/libosp-appfw-server.so*
212 %{_libdir}/osp-server/debug/libosp-system-server.so*