2 Summary: The App Framework library of OSP
6 License: Apache-2.0 or Flora
7 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: pkgconfig(capi-appfw-application)
10 BuildRequires: pkgconfig(capi-content-mime-type)
11 BuildRequires: pkgconfig(capi-network-serial)
12 BuildRequires: pkgconfig(capi-system-device)
13 BuildRequires: pkgconfig(capi-system-info)
14 BuildRequires: pkgconfig(capi-system-power)
15 BuildRequires: pkgconfig(capi-system-runtime-info)
16 BuildRequires: pkgconfig(capi-system-system-settings)
17 BuildRequires: pkgconfig(capi-network-bluetooth)
18 BuildRequires: pkgconfig(capi-telephony-sim)
19 BuildRequires: pkgconfig(capi-network-tethering)
20 BuildRequires: pkgconfig(capi-network-wifi)
21 BuildRequires: pkgconfig(capi-network-wifi-direct)
22 BuildRequires: pkgconfig(wifi-direct)
23 BuildRequires: pkgconfig(capi-media-sound-manager)
24 BuildRequires: pkgconfig(capi-system-media-key)
25 BuildRequires: pkgconfig(sysman)
26 BuildRequires: pkgconfig(tapi)
27 BuildRequires: pkgconfig(alarm-service)
28 BuildRequires: pkgconfig(appsvc)
29 BuildRequires: pkgconfig(aul)
30 BuildRequires: pkgconfig(bundle)
31 BuildRequires: pkgconfig(chromium)
32 BuildRequires: pkgconfig(dbus-1)
33 BuildRequires: pkgconfig(dbus-glib-1)
34 BuildRequires: pkgconfig(devman)
35 BuildRequires: pkgconfig(dlog)
36 BuildRequires: pkgconfig(dukgenerator)
37 BuildRequires: pkgconfig(ecore)
38 BuildRequires: pkgconfig(glib-2.0)
39 BuildRequires: pkgconfig(elementary)
40 BuildRequires: pkgconfig(eina)
41 BuildRequires: pkgconfig(evas)
42 BuildRequires: pkgconfig(edje)
43 BuildRequires: pkgconfig(eet)
44 BuildRequires: pkgconfig(edbus)
45 BuildRequires: pkgconfig(efreet)
46 BuildRequires: pkgconfig(ethumb)
47 BuildRequires: pkgconfig(icu-i18n)
48 BuildRequires: pkgconfig(iniparser)
49 BuildRequires: pkgconfig(libpcre)
50 BuildRequires: pkgconfig(libssl)
51 BuildRequires: pkgconfig(libsoup-2.4)
52 BuildRequires: pkgconfig(libxml-2.0)
53 BuildRequires: pkgconfig(message-port)
54 BuildRequires: pkgconfig(minizip)
55 BuildRequires: pkgconfig(notification)
56 BuildRequires: pkgconfig(openssl)
57 BuildRequires: pkgconfig(pkgmgr)
58 BuildRequires: pkgconfig(pkgmgr-info)
59 BuildRequires: pkgconfig(pmapi)
60 BuildRequires: pkgconfig(libprivilege-control)
61 BuildRequires: pkgconfig(sqlite3)
62 BuildRequires: pkgconfig(uuid)
63 BuildRequires: pkgconfig(vconf)
64 BuildRequires: pkgconfig(zlib)
65 BuildRequires: pkgconfig(haptic)
66 BuildRequires: pkgconfig(x11)
67 BuildRequires: privacy-manager-client-devel
68 BuildRequires: capi-security-privilege-manager-devel
69 BuildRequires: boost-devel
70 BuildRequires: gettext-tools
71 BuildRequires: pkgconfig(security-server)
72 BuildRequires: pkgconfig(badge)
73 BuildRequires: pkgconfig(appinfo) >= 0.1.0
76 Requires: capi-appfw-application
77 Requires: capi-appfw-package-manager
78 Requires: capi-content-mime-type
79 Requires: capi-network-serial
80 Requires: capi-system-runtime-info
81 Requires: capi-security-privilege-manager
83 Requires: message-port
84 Requires: osp-env-config >= 1.2.2.1
88 Provides: libosp-appfw.so.1
90 Requires(post): /sbin/ldconfig
91 Requires(post): coreutils
92 Requires(postun): /sbin/ldconfig
95 The App Framework library of OSP
98 Summary: The App Framework library of OSP (Development)
99 Group: TO_BE/FILLED_IN
100 Requires: %{name} = %{version}-%{release}
101 Requires: boost-devel
102 Requires: pkgconfig(pkgmgr-info)
105 The App Framework library of OSP (DEV)
107 %package internal-devel
108 Summary: osp app framework internel (Internal)
109 Group: TO_BE/FILLED_IN
110 Requires: %{name} = %{version}-%{release}
111 Requires: %{name}-devel
113 %description internal-devel
114 The App Framework library of OSP (Internal-DEV)
120 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
124 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_"
126 CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_"
130 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_"
133 %if 0%{?tizen_build_binary_release_type_eng}
134 CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
137 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH}
139 # Call make instruction with smp support
140 #make %{?jobs:-j%jobs}
147 mkdir -p %{buildroot}/usr/share/license
148 cp %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/%{name}
149 cat %{_builddir}/%{name}-%{version}/LICENSE.APLv2 >> %{buildroot}/usr/share/license/%{name}
154 /bin/rm -f /etc/ld.so.cache
157 mkdir -p /opt/usr/share/.osp-compat/share/AppControl
158 mkdir -p /opt/usr/share/.osp-compat/share2
159 mkdir -p /opt/usr/etc
160 mkdir -p /opt/usr/media/Images
161 mkdir -p /opt/usr/media/Others
162 mkdir -p /opt/usr/media/Sounds
163 mkdir -p /opt/usr/media/Videos
164 mkdir -p /opt/usr/media/Camera
169 chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
170 chmod -R 777 /opt/usr/media
171 chmod -R 777 /tmp/osp
173 chown -R 5000:5000 /opt/usr/media
174 locale -a > /opt/usr/etc/clocale.list
175 chmod 444 /opt/usr/etc/clocale.list
177 %postun -p /sbin/ldconfig
180 %manifest osp-appfw.manifest
181 /usr/share/license/%{name}
183 %config /opt/usr/etc/*
186 %{_libdir}/osp/libosp-appfw.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
194 %files internal-devel
195 %{_includedir}/osp/app/*
196 %{_includedir}/osp/base/*
197 %{_includedir}/osp/io/*
198 %{_includedir}/osp/locales/*
199 %{_includedir}/osp/security/*
200 %{_includedir}/osp/system/*
201 %{_includedir}/osp/text/*
202 %{_includedir}/osp/server/*
203 %{_includedir}/osp/system-server/*
204 %{_libdir}/pkgconfig/osp-appfw.pc
205 %{_libdir}/pkgconfig/osp-appfw-server.pc
206 %{_libdir}/pkgconfig/osp-system-server.pc