applying new badge API
[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.1
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-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)
75 BuildRequires:  badge
76
77 # runtime requires
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
84 Requires: chromium
85 Requires: message-port
86 Requires: osp-env-config
87 Requires: sqlite
88
89 Provides:   libosp-appfw.so.1, libosp-newlib.so.1
90
91 Requires(post): /sbin/ldconfig
92 Requires(post): coreutils
93 Requires(postun): /sbin/ldconfig
94
95 %description
96 The App Framework library of OSP
97
98 %package devel
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)
104
105 %description devel
106 The  App Framework library of OSP (DEV)
107
108 %package internal-devel
109 Summary:    osp app framework internel (Internal)
110 Group:      TO_BE/FILLED_IN
111 Requires:   %{name} = %{version}-%{release}
112
113 %description internal-devel
114 The App Framework library of OSP (Internal-DEV)
115
116 %package debug
117 Summary:    The App Framework library of OSP (Development)
118 Group:      TO_BE/FILLED_IN
119 Requires:   %{name} = %{version}-%{release}
120
121 %description debug
122 The App Framework library of OSP (DEV)
123
124 %prep
125 %setup -q
126
127 %build
128 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
129 %ifarch %{ix86}
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
131 %else
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
133 %endif
134
135 # Call make instruction with smp support
136 make %{?jobs:-j%jobs}
137
138 %install
139 rm -rf %{buildroot}
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}
143
144 %make_install
145
146 %post
147 /bin/rm -f /etc/ld.so.cache
148 /sbin/ldconfig
149
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
158
159
160 mkdir -p /tmp/osp
161
162 chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
163 chmod -R 777 /opt/usr/media
164 chmod -R 777 /tmp/osp
165
166 chown -R 5000:5000 /opt/usr/media
167 locale -a > /opt/usr/etc/clocale.list
168 chmod 444 /opt/usr/etc/clocale.list
169
170 %postun -p /sbin/ldconfig
171
172 %files
173 %manifest osp-appfw.manifest
174 /usr/share/license/%{name}
175 /etc/*
176 /opt/usr/share/.osp-compat/share/*
177 /opt/usr/etc/*
178 /usr/share/locale/*
179 /usr/etc/*
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*
184
185 %files devel
186 %{_includedir}/osp/*.h
187 %{_includedir}/osp/*.hpp
188 %{_libdir}/pkgconfig/osp-appfw.pc
189
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
202
203 %files debug
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*