Move Font set/get api to appfw
[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.1.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(alarm-service)
23 BuildRequires:  pkgconfig(appsvc)
24 BuildRequires:  pkgconfig(aul)
25 BuildRequires:  pkgconfig(bundle)
26 BuildRequires:  pkgconfig(chromium)
27 BuildRequires:  pkgconfig(dbus-1)
28 BuildRequires:  pkgconfig(dbus-glib-1)
29 BuildRequires:  pkgconfig(devman)
30 BuildRequires:  pkgconfig(dlog)
31 BuildRequires:  pkgconfig(dukgenerator)
32 BuildRequires:  pkgconfig(ecore)
33 BuildRequires:  pkgconfig(glib-2.0)
34 BuildRequires:  pkgconfig(heynoti)
35 BuildRequires:  pkgconfig(icu-i18n)
36 BuildRequires:  pkgconfig(libcurl)
37 BuildRequires:  pkgconfig(libpcre)
38 BuildRequires:  pkgconfig(libssl)
39 BuildRequires:  pkgconfig(libsoup-2.4)
40 BuildRequires:  pkgconfig(libwbxml2)
41 BuildRequires:  pkgconfig(message-port)
42 BuildRequires:  pkgconfig(minizip)
43 BuildRequires:  pkgconfig(notification)
44 BuildRequires:  pkgconfig(openssl)
45 BuildRequires:  pkgconfig(pkgmgr)
46 BuildRequires:  pkgconfig(pkgmgr-info)
47 BuildRequires:  pkgconfig(pmapi)
48 BuildRequires:  pkgconfig(libprivilege-control)
49 BuildRequires:  pkgconfig(sqlite3)
50 BuildRequires:  pkgconfig(uuid)
51 BuildRequires:  pkgconfig(vconf)
52 BuildRequires:  pkgconfig(zlib)
53 BuildRequires:  pkgconfig(haptic)
54 BuildRequires:  pkgconfig(x11)
55 BuildRequires:  privacy-manager-client-devel
56 BuildRequires:  boost-devel
57 BuildRequires:  gettext-tools
58
59 # runtime requires
60 Requires: capi-appfw-app-manager  
61 Requires: capi-appfw-application  
62 Requires: capi-appfw-package-manager
63 Requires: capi-content-mime-type
64 Requires: capi-network-serial
65 Requires: capi-system-runtime-info
66 Requires: chromium
67 Requires: message-port
68 Requires: osp-env-config
69 Requires: sqlite
70
71 Provides:   libosp-appfw.so.1
72
73 Requires(post): /sbin/ldconfig  
74 Requires(post): coreutils
75 Requires(postun): /sbin/ldconfig
76
77 %description
78 The App Framework library of OSP
79
80 %package devel
81 Summary:    The App Framework library of OSP (Development)
82 Group:      TO_BE/FILLED_IN
83 Requires:   %{name} = %{version}-%{release}
84 Requires: boost-devel
85 Requires: pkgconfig(pkgmgr-info)
86 Requires: pkgconfig(capi-appfw-app-manager)
87
88 %description devel
89 The  App Framework library of OSP (DEV)
90
91 %package internal-devel
92 Summary:    osp app framework internel (Internal)
93 Group:      TO_BE/FILLED_IN
94 Requires:   %{name} = %{version}-%{release}
95 Requires: pkgconfig(capi-appfw-app-manager)
96
97 %description internal-devel
98 The App Framework library of OSP (Internal-DEV)
99
100 %package debug
101 Summary:    The App Framework library of OSP (Development)
102 Group:      TO_BE/FILLED_IN
103 Requires:   %{name} = %{version}-%{release}
104
105 %description debug
106 The App Framework library of OSP (DEV)
107
108 %prep
109 %setup -q
110
111 %build
112 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
113 %ifarch %{ix86}
114 CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=x86
115 %else
116 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_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=arm
117 %endif
118
119 # Call make instruction with smp support
120 make %{?jobs:-j%jobs}
121
122 %install
123 rm -rf %{buildroot}
124 mkdir -p %{buildroot}/usr/share/license
125 cp %{_builddir}/%{name}-%{version}/LICENSE.Flora  %{buildroot}/usr/share/license/%{name}
126 cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2  %{buildroot}/usr/share/license/%{name}
127
128 %make_install
129
130 %post
131 /bin/rm -f /etc/ld.so.cache
132 /sbin/ldconfig
133
134 mkdir -p /opt/usr/share/.osp-compat/share/AppControl
135 mkdir -p /opt/usr/share/.osp-compat/share2
136 mkdir -p /opt/usr/share/certs/rootcert
137 mkdir -p /opt/usr/share/certs/usercert/key
138 mkdir -p /opt/usr/etc
139 mkdir -p /opt/usr/media/Images
140 mkdir -p /opt/usr/media/Others
141 mkdir -p /opt/usr/media/Sounds
142 mkdir -p /opt/usr/media/Videos
143 mkdir -p /opt/usr/media/Camera
144
145
146 mkdir -p /tmp/osp
147
148 if [ -f /usr/lib/rpm-plugins/msm.so ]
149 then
150         chsmack -a "osp::compat" /opt/usr/share/.osp-compat/share/AppControl
151         chsmack -t /opt/usr/share/.osp-compat/share/AppControl
152         chsmack -a "osp::root-certs" /opt/usr/share/certs/rootcert
153         chsmack -t /opt/usr/share/certs/rootcert
154         chsmack -a "osp::root-certs" /opt/usr/share/certs/rootcert
155         chsmack -t /opt/usr/share/certs/rootcert
156         chsmack -a "osp::user-certs" /opt/usr/share/certs/usercert
157         chsmack -t /opt/usr/share/certs/usercert
158         chsmack -a "osp::user-certs" /opt/usr/share/certs/usercert/key
159         chsmack -t /opt/usr/share/certs/usercert/key
160         chsmack -a "*" /opt/usr/media/*
161         chsmack -t /opt/usr/media/*
162         chsmack -a "*" /tmp/osp
163         chsmack -t /tmp/osp
164 fi
165
166 chmod -R 707 /opt/usr/share/.osp-compat/share/AppControl
167 chmod -R 705 /opt/usr/share/certs
168 chmod -R 700 /opt/usr/share/certs/usercert/key
169 chmod -R 777 /opt/usr/media
170 chmod -R 777 /tmp/osp
171
172 chown -R 5000:5000 /opt/usr/media
173
174 %postun -p /sbin/ldconfig
175
176 %files
177 %manifest osp-appfw.manifest
178 /usr/share/license/%{name}
179 /etc/*
180 /opt/usr/share/.osp-compat/share/*
181 /opt/usr/etc/*
182 /usr/share/osp/.*
183 /usr/share/locale/*
184 /usr/etc/*
185 %{_libdir}/osp/libosp-appfw.so*
186 %{_libdir}/osp-server/libosp-appfw-server.so*
187
188 %files devel
189 %{_includedir}/osp/*.h
190 %{_includedir}/osp/*.hpp
191 %{_libdir}/pkgconfig/osp-appfw.pc
192
193 %files internal-devel
194 %{_includedir}/osp/app/*
195 %{_includedir}/osp/base/*
196 %{_includedir}/osp/io/*
197 %{_includedir}/osp/locales/*
198 %{_includedir}/osp/security/*
199 %{_includedir}/osp/system/*
200 %{_includedir}/osp/text/*
201 %{_includedir}/osp/server/*
202 %{_libdir}/pkgconfig/osp-appfw-server.pc
203
204 %files debug
205 %{_libdir}/osp/debug/libosp-appfw.so*
206 %{_libdir}/osp-server/debug/libosp-appfw-server.so*
207