9ab81b74275b00112f1c6f867533b768ace75fdb
[platform/framework/native/appfw.git] / packaging / osp-appfw.spec
1 Name:           osp-appfw
2 Version:        1.2.2.1
3 Release:        1
4 License:        Apache-2.0 or Flora
5 Summary:        The App Framework library of OSP
6 Url:            https://review.tizen.org/git/?p=platform/framework/native/appfw.git;a=summary
7 Group:          Application Framework/Libraries
8 Source0:        %{name}-%{version}.tar.gz
9 Source1001:     osp-appfw.manifest
10 BuildRequires:  boost-devel
11 BuildRequires:  capi-security-privilege-manager-devel
12 BuildRequires:  cmake
13 BuildRequires:  gettext-tools
14 BuildRequires:  privacy-manager-client-devel
15 BuildRequires:  pkgconfig(alarm-service)
16 BuildRequires:  pkgconfig(appinfo) >= 0.1.0
17 BuildRequires:  pkgconfig(appsvc)
18 BuildRequires:  pkgconfig(aul)
19 BuildRequires:  pkgconfig(badge)
20 BuildRequires:  pkgconfig(bundle)
21 BuildRequires:  pkgconfig(capi-appfw-app-manager)
22 BuildRequires:  pkgconfig(capi-appfw-application)
23 BuildRequires:  pkgconfig(capi-appfw-package-manager)
24 BuildRequires:  pkgconfig(capi-content-mime-type)
25 BuildRequires:  pkgconfig(capi-media-sound-manager)
26 BuildRequires:  pkgconfig(capi-network-bluetooth)
27 BuildRequires:  pkgconfig(capi-network-serial)
28 BuildRequires:  pkgconfig(capi-network-tethering)
29 BuildRequires:  pkgconfig(capi-network-wifi)
30 BuildRequires:  pkgconfig(capi-network-wifi-direct)
31 BuildRequires:  pkgconfig(capi-system-device)
32 BuildRequires:  pkgconfig(capi-system-info)
33 BuildRequires:  pkgconfig(capi-system-media-key)
34 BuildRequires:  pkgconfig(capi-system-power)
35 BuildRequires:  pkgconfig(capi-system-runtime-info)
36 BuildRequires:  pkgconfig(capi-system-system-settings)
37 BuildRequires:  pkgconfig(capi-telephony-sim)
38 BuildRequires:  pkgconfig(chromium)
39 BuildRequires:  pkgconfig(dbus-1)
40 BuildRequires:  pkgconfig(dbus-glib-1)
41 BuildRequires:  pkgconfig(devman)
42 BuildRequires:  pkgconfig(dlog)
43 BuildRequires:  pkgconfig(dukgenerator)
44 BuildRequires:  pkgconfig(ecore)
45 BuildRequires:  pkgconfig(edbus)
46 BuildRequires:  pkgconfig(edje)
47 BuildRequires:  pkgconfig(eet)
48 BuildRequires:  pkgconfig(efreet)
49 BuildRequires:  pkgconfig(eina)
50 BuildRequires:  pkgconfig(elementary)
51 BuildRequires:  pkgconfig(ethumb)
52 BuildRequires:  pkgconfig(evas)
53 BuildRequires:  pkgconfig(glib-2.0)
54 BuildRequires:  pkgconfig(haptic)
55 BuildRequires:  pkgconfig(icu-i18n)
56 BuildRequires:  pkgconfig(iniparser)
57 BuildRequires:  pkgconfig(libpcre)
58 BuildRequires:  pkgconfig(libprivilege-control)
59 BuildRequires:  pkgconfig(libsoup-2.4)
60 BuildRequires:  pkgconfig(libssl)
61 BuildRequires:  pkgconfig(libxml-2.0)
62 BuildRequires:  pkgconfig(message-port)
63 BuildRequires:  pkgconfig(minizip)
64 BuildRequires:  pkgconfig(notification)
65 BuildRequires:  pkgconfig(openssl)
66 BuildRequires:  pkgconfig(pkgmgr)
67 BuildRequires:  pkgconfig(pkgmgr-info)
68 BuildRequires:  pkgconfig(pmapi)
69 BuildRequires:  pkgconfig(security-server)
70 BuildRequires:  pkgconfig(sqlite3)
71 BuildRequires:  pkgconfig(sysman)
72 BuildRequires:  pkgconfig(tapi)
73 BuildRequires:  pkgconfig(uuid)
74 BuildRequires:  pkgconfig(vconf)
75 BuildRequires:  pkgconfig(wifi-direct)
76 BuildRequires:  pkgconfig(x11)
77 BuildRequires:  pkgconfig(zlib)
78
79 # runtime requires
80 Requires:       capi-appfw-app-manager
81 Requires:       capi-appfw-application
82 Requires:       capi-appfw-package-manager
83 Requires:       capi-content-mime-type
84 Requires:       capi-network-serial
85 Requires:       capi-security-privilege-manager
86 Requires:       capi-system-runtime-info
87 Requires:       chromium
88 Requires:       message-port
89 Requires:       osp-env-config >= 1.2.2.1
90 Requires:       sqlite
91
92 Requires(post):         /sbin/ldconfig
93 Requires(post):         coreutils
94 Requires(postun):       /sbin/ldconfig
95
96 %description
97 The App Framework library of OSP
98
99 %package devel
100 Summary:        The App Framework library of OSP (Development)
101 Requires:       %{name} = %{version}
102 Requires:       boost-devel
103 Requires:       pkgconfig(capi-appfw-app-manager)
104 Requires:       pkgconfig(pkgmgr-info)
105
106 %description devel
107 The     App Framework library of OSP (DEV)
108
109 %package internal-devel
110 Summary:        OSP app framework internel (Internal)
111 Requires:       %{name} = %{version}
112 Requires:       %{name}-devel
113
114 %description internal-devel
115 The App Framework library of OSP (Internal-DEV)
116
117 %prep
118 %setup -q
119 cp %{SOURCE1001} .
120
121 %build
122 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
123
124 %ifarch %{ix86}
125         ARCH=x86
126         CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_"
127         %if 0%{?simulator}
128                 CXXFLAGS="$CXXFLAGS -D_OSP_EMUL_"
129         %endif
130 %else
131         ARCH=arm
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_OSP_ARMEL_"
133 %endif
134
135 %if 0%{?tizen_build_binary_release_type_eng}
136         CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
137 %endif
138
139 %cmake . -DOBS=1 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DARCH=${ARCH}
140
141 make %{?_smp_mflags}
142
143 %install
144 %make_install
145
146 %find_lang osp
147 %post
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
171 %postun -p /sbin/ldconfig
172
173 %files -f osp.lang
174
175 %manifest %{name}.manifest
176 %license LICENSE.APLv2 LICENSE.Flora
177 %config %{_sysconfdir}/*
178 %config /opt/usr/etc/*
179 /usr/share/locale/*
180 %config %{_prefix}/etc/*
181 %{_libdir}/osp/libosp-appfw.so*
182 %{_libdir}/osp-server/libosp-appfw-server.so*
183 %{_libdir}/osp-server/libosp-system-server.so*
184
185 %files devel
186 %manifest %{name}.manifest
187 %{_includedir}/osp/*.h
188 %{_includedir}/osp/*.hpp
189
190 %files internal-devel
191 %manifest %{name}.manifest
192 %{_includedir}/osp/app/*
193 %{_includedir}/osp/base/*
194 %{_includedir}/osp/io/*
195 %{_includedir}/osp/locales/*
196 %{_includedir}/osp/security/*
197 %{_includedir}/osp/system/*
198 %{_includedir}/osp/text/*
199 %{_includedir}/osp/server/*
200 %{_includedir}/osp/system-server/*
201 %{_libdir}/pkgconfig/osp-appfw.pc
202 %{_libdir}/pkgconfig/osp-appfw-server.pc
203 %{_libdir}/pkgconfig/osp-system-server.pc