[2.2] Add Unshareable marker in String
[platform/framework/native/appfw.git] / packaging / osp-appfw.spec
1 %define debug_package %{nil}
2 %define __strip /bin/true
3
4 Name:       osp-appfw
5 Summary:    The App Framework library of OSP 
6 Version:    1.2.2.0
7 Release:    1
8 Group:      TO_BE/FILLED_IN
9 License:    Apache License, Version 2.0 or Flora
10 Source0:    %{name}-%{version}.tar.gz
11 BuildRequires:  cmake
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)
62
63 # runtime requires
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
70 Requires: chromium
71 Requires: message-port
72 Requires: osp-env-config
73 Requires: sqlite
74
75 Provides:   libosp-appfw.so.1
76
77 Requires(post): /sbin/ldconfig  
78 Requires(post): coreutils
79 Requires(postun): /sbin/ldconfig
80
81 %description
82 The App Framework library of OSP
83
84 %package devel
85 Summary:    The App Framework library of OSP (Development)
86 Group:      TO_BE/FILLED_IN
87 Requires:   %{name} = %{version}-%{release}
88 Requires: boost-devel
89 Requires: pkgconfig(pkgmgr-info)
90 Requires: pkgconfig(capi-appfw-app-manager)
91
92 %description devel
93 The  App Framework library of OSP (DEV)
94
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)
100
101 %description internal-devel
102 The App Framework library of OSP (Internal-DEV)
103
104 %package debug
105 Summary:    The App Framework library of OSP (Development)
106 Group:      TO_BE/FILLED_IN
107 Requires:   %{name} = %{version}-%{release}
108
109 %description debug
110 The App Framework library of OSP (DEV)
111
112 %prep
113 %setup -q
114
115 %build
116 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
117 %ifarch %{ix86}
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
119 %else
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
121 %endif
122
123 # Call make instruction with smp support
124 make %{?jobs:-j%jobs}
125
126 %install
127 rm -rf %{buildroot}
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}
131
132 %make_install
133
134 %post
135 /bin/rm -f /etc/ld.so.cache
136 /sbin/ldconfig
137
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
146
147
148 mkdir -p /tmp/osp
149
150 chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
151 chmod -R 777 /opt/usr/media
152 chmod -R 777 /tmp/osp
153
154 chown -R 5000:5000 /opt/usr/media
155 locale -a > /opt/usr/etc/clocale.list
156 chmod 444 /opt/usr/etc/clocale.list
157
158 %postun -p /sbin/ldconfig
159
160 %files
161 %manifest osp-appfw.manifest
162 /usr/share/license/%{name}
163 /etc/*
164 /opt/usr/share/.osp-compat/share/*
165 /opt/usr/etc/*
166 /usr/share/osp/.*
167 /usr/share/locale/*
168 /usr/etc/*
169 %{_libdir}/osp/libosp-appfw.so*
170 %{_libdir}/osp-server/libosp-appfw-server.so*
171 %{_libdir}/osp-server/libosp-system-server.so*
172
173 %files devel
174 %{_includedir}/osp/*.h
175 %{_includedir}/osp/*.hpp
176 %{_libdir}/pkgconfig/osp-appfw.pc
177
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
189
190 %files debug
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*
194