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(capi-system-media-key)
23 BuildRequires: pkgconfig(capi-network-bluetooth)
24 BuildRequires: pkgconfig(tapi)
25 BuildRequires: pkgconfig(alarm-service)
26 BuildRequires: pkgconfig(appsvc)
27 BuildRequires: pkgconfig(aul)
28 BuildRequires: pkgconfig(bundle)
29 BuildRequires: pkgconfig(chromium)
30 BuildRequires: pkgconfig(dbus-1)
31 BuildRequires: pkgconfig(dbus-glib-1)
32 BuildRequires: pkgconfig(devman)
33 BuildRequires: pkgconfig(dlog)
34 BuildRequires: pkgconfig(dukgenerator)
35 BuildRequires: pkgconfig(ecore)
36 BuildRequires: pkgconfig(glib-2.0)
37 BuildRequires: pkgconfig(heynoti)
38 BuildRequires: pkgconfig(icu-i18n)
39 BuildRequires: pkgconfig(libcurl)
40 BuildRequires: pkgconfig(libpcre)
41 BuildRequires: pkgconfig(libssl)
42 BuildRequires: pkgconfig(libsoup-2.4)
43 BuildRequires: pkgconfig(libwbxml2)
44 BuildRequires: pkgconfig(message-port)
45 BuildRequires: pkgconfig(minizip)
46 BuildRequires: pkgconfig(notification)
47 BuildRequires: pkgconfig(openssl)
48 BuildRequires: pkgconfig(pkgmgr)
49 BuildRequires: pkgconfig(pkgmgr-info)
50 BuildRequires: pkgconfig(pmapi)
51 BuildRequires: pkgconfig(libprivilege-control)
52 BuildRequires: pkgconfig(sqlite3)
53 BuildRequires: pkgconfig(uuid)
54 BuildRequires: pkgconfig(vconf)
55 BuildRequires: pkgconfig(zlib)
56 BuildRequires: pkgconfig(haptic)
57 BuildRequires: pkgconfig(x11)
58 BuildRequires: privacy-manager-client-devel
59 BuildRequires: boost-devel
60 BuildRequires: gettext-tools
61 BuildRequires: pkgconfig(security-server)
64 Requires: capi-appfw-app-manager
65 Requires: capi-appfw-application
66 Requires: capi-appfw-package-manager
67 Requires: capi-content-mime-type
68 Requires: capi-network-serial
69 Requires: capi-system-runtime-info
71 Requires: message-port
72 Requires: osp-env-config
75 Provides: libosp-appfw.so.1
77 Requires(post): /sbin/ldconfig
78 Requires(post): coreutils
79 Requires(postun): /sbin/ldconfig
82 The App Framework library of OSP
85 Summary: The App Framework library of OSP (Development)
86 Group: TO_BE/FILLED_IN
87 Requires: %{name} = %{version}-%{release}
89 Requires: pkgconfig(pkgmgr-info)
90 Requires: pkgconfig(capi-appfw-app-manager)
93 The App Framework library of OSP (DEV)
95 %package internal-devel
96 Summary: osp app framework internel (Internal)
97 Group: TO_BE/FILLED_IN
98 Requires: %{name} = %{version}-%{release}
99 Requires: pkgconfig(capi-appfw-app-manager)
101 %description internal-devel
102 The App Framework library of OSP (Internal-DEV)
105 Summary: The App Framework library of OSP (Development)
106 Group: TO_BE/FILLED_IN
107 Requires: %{name} = %{version}-%{release}
110 The App Framework library of OSP (DEV)
116 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
118 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
120 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
123 # Call make instruction with smp support
124 make %{?jobs:-j%jobs}
128 mkdir -p %{buildroot}/usr/share/license
129 cp %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/%{name}
130 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
135 /bin/rm -f /etc/ld.so.cache
138 mkdir -p /opt/usr/share/.osp-compat/share/AppControl
139 mkdir -p /opt/usr/share/.osp-compat/share2
140 mkdir -p /opt/usr/etc
141 mkdir -p /opt/usr/media/Images
142 mkdir -p /opt/usr/media/Others
143 mkdir -p /opt/usr/media/Sounds
144 mkdir -p /opt/usr/media/Videos
145 mkdir -p /opt/usr/media/Camera
150 chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
151 chmod -R 777 /opt/usr/media
152 chmod -R 777 /tmp/osp
154 chown -R 5000:5000 /opt/usr/media
155 locale -a > /opt/usr/etc/clocale.list
156 chmod 444 /opt/usr/etc/clocale.list
158 %postun -p /sbin/ldconfig
161 %manifest osp-appfw.manifest
162 /usr/share/license/%{name}
164 /opt/usr/share/.osp-compat/share/*
169 %{_libdir}/osp/libosp-appfw.so*
170 %{_libdir}/osp-server/libosp-appfw-server.so*
171 %{_libdir}/osp-server/libosp-system-server.so*
174 %{_includedir}/osp/*.h
175 %{_includedir}/osp/*.hpp
176 %{_libdir}/pkgconfig/osp-appfw.pc
178 %files internal-devel
179 %{_includedir}/osp/app/*
180 %{_includedir}/osp/base/*
181 %{_includedir}/osp/io/*
182 %{_includedir}/osp/locales/*
183 %{_includedir}/osp/security/*
184 %{_includedir}/osp/system/*
185 %{_includedir}/osp/text/*
186 %{_includedir}/osp/server/*
187 %{_libdir}/pkgconfig/osp-appfw-server.pc
188 %{_libdir}/pkgconfig/osp-system-server.pc
191 %{_libdir}/osp/debug/libosp-appfw.so*
192 %{_libdir}/osp-server/debug/libosp-appfw-server.so*
193 %{_libdir}/osp-server/debug/libosp-system-server.so*