1 ################################################################################
2 # OBS Project config for Tizen:Common
5 # Stephane Desneux <stephane.desneux@open.eurogiciel.org>
6 # Ronan Le Martret <ronan.lemartret@open.eurogiciel.org>
7 # Jose Bollo <jose.bollo@open.eurogiciel.org>
9 # Git mirror for OBS config: review.tizen.org:scm/meta/build-config / branch tizen_common
11 # vim: set syntax=spec:
12 ################################################################################
14 Patterntype: rpm-md comps
15 Release: <CI_CNT>.<B_CNT>
17 Support: build-compare build-mkbaselibs
18 Support: rpmlint-mini rpmlint-tizen
20 %global aarch64 aarch64 arm64 armv8
26 ############################# conflicts resolution #############################
28 FileProvides: /usr/sbin/groupadd pwdutils
33 ############################# profile definition ###############################
35 %define profile common
49 %_default_patch_fuzz 2
52 ############################# display system ###################################
54 ########## display system selection ##########
56 # selection of the display system
57 # this selection is done for each repository
60 # |----------------------------------------------------
61 # | wayland | x | meaning
62 # |----------------------------------------------------
63 # | 0 | 1 | pure X11 platform(no wayland)
64 # | 1 | 0 | pure wayland platform (no X11)
65 # | 1 | 1 | wayland but X compatibility
66 # | 0 | 0 | no X and no wayland
67 # |----------------------------------------------------
69 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
71 ########## RDP flag ##########
73 # enable/disable RDP (remote desktop protocol) for wayland
74 # flag: _with_rdp, used in repositories
75 # Affects: weston, freerdp
76 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
78 ########## mesa activation ##########
85 %ifarch %arm armv7l %{aarch64}
86 Substitute: mesa-devel pkgconfig(glesv2)
87 #FIXME Substitute: pkgconfig(egl)
90 ############################# wayland repositories #############################
92 %if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"|| "%_repository" == "arm"|| "%_repository" == "arm64" || "%_repository" == "arm64-wayland" || "%_repository" == "wayland" || "%_repository" == "standard"
94 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
95 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
97 %define _with_wayland 1
107 ############################# X11 repositories #################################
109 %if "%_repository" == "ia32-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11" || "%_repository" == "x11"
111 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
112 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
122 ############################# X+Wayland repositories ###########################
124 %if "%_repository" == "ia32-xwayland" || "%_repository" == "x86_64-xwayland" || "%_repository" == "arm-xwayland" || "%_repository" == "arm64-xwayland" || "%_repository" == "xwayland"
126 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
127 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
129 %define _with_wayland 1
139 ############################# emulator repositories ############################
141 %if "%_repository" == "emulator32-wayland"
143 Prefer: mesa-libGLESv2
144 Prefer: libwayland-egl
148 Prefer: emulator-yagl
150 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
151 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
153 %define _with_wayland 1
154 %define _with_emulator 1
163 ############################# misc config flags ################################
165 # This build macro controls the libdlog output. If enabled,
166 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
167 # logger FIFO. Affects: dlog.
168 # Owner: Mikko <mikko.ylinen@intel.com>
170 %_with_dlog_to_systemd_journal 1
173 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
174 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
175 # Then homescreen is supposed to deal with those notifications and display relevant popups.
176 # Affects: bluetooth-frwk
177 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
179 %_with_bluetooth_frwk_libnotification 1
182 # This build macro controls whether the OS uses
183 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
184 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
185 # Owner: Arron Wang <arron.wang@intel.com>
190 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
191 # this -> Tizen Mobile is compiled with this option.
192 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
193 # FIXME: Why this extra define in the obs config ?
194 %define _with_pulseaudio_samsung_policy 1
196 %_with_pulseaudio_samsung_policy 1
199 # Activate introspection
200 # This is needed on GuPNP to build Rygel correctly in IVI
201 # Impacts potentially packages that use gobject-introspection
202 # Owner: Mikko <mikko.ylinen@intel.com>
204 %_with_introspection 1
207 ############################# build config #####################################
209 %define gcc_version 48
211 ########## targets ##########
214 Target: i686-tizen-linux
218 Target: armv7hl-tizen-linux
222 Target: armv7l-tizen-linux
226 Target: aarch64-tizen-linux
229 ########## cross build ##########
233 # cross build support for the build hosts
234 Preinstall: qemu-linux-user-cross-arm
235 Keep: qemu-linux-user-cross-arm
239 Preinstall: qemu-accel-armv7hl
240 Runscripts: qemu-accel-armv7hl
241 Preinstall: libmount libblkid libuuid
245 Preinstall: qemu-accel-armv7l-cross-arm
246 Runscripts: qemu-accel-armv7l-cross-arm
247 Preinstall: libmount libblkid libuuid
251 Substitute: cross-aarch64-binutils binutils
252 Substitute: cross-aarch64-gcc48-icecream-backend gcc
253 Preinstall: setup filesystem
254 Preinstall: qemu-accel-aarch64-cross-arm
255 Runscripts: qemu-accel-aarch64-cross-arm setup filesystem
257 Preinstall: rpm rpm-build pam db4
258 Preinstall: libncurses libmpc libmpfr libgmp cloog-isl
261 #hack to start build without proper binfmt
262 Preinstall: !bbb-cross-arm
263 Ignore: bbb-cross-arm
266 #provides until we can build libs correctly
267 #FileProvides: libc.so.6 glibc
268 #FileProvides: libc.so.6(GLIBC_2.4) glibc
269 #FileProvides: libc.so.6(GLIBC_2.6) glibc
270 #FileProvides: libc.so.6(GLIBC_2.7) glibc
271 #FileProvides: libc.so.6(GLIBC_2.8) glibc
272 #FileProvides: libc.so.6(GLIBC_2.11) glibc
273 #FileProvides: libc.so.6(GLIBC_2.15) glibc
274 #FileProvides: libc.so.6(GLIBC_2.17) glibc
275 #FileProvides: ld-linux.so.3 glibc
276 #FileProvides: ld-linux.so.3(GLIBC_2.4) glibc
277 #FileProvides: ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) glibc
278 #FileProvides: ld-linux-aarch64.so.1()(64bit) glibc
279 #FileProvides: libdl.so.2 glibc
280 #FileProvides: libdl.so.2(GLIBC_2.4) glibc
281 #FileProvides: libcrypt.so.1 glibc
282 #FileProvides: libcrypt.so.1(GLIBC_2.4) glibc
283 #FileProvides: libm.so.6 glibc
284 #FileProvides: libm.so.6(GLIBC_2.4) glibc
285 #FileProvides: libpthread.so.0 glibc
286 #FileProvides: libpthread.so.0(GLIBC_2.4) glibc
287 #FileProvides: libacl.so.1 acl
288 #FileProvides: liblua.so.5.1 liblua
289 #FileProvides: liblzma.so.5 xz
290 #FileProvides: libpopt.so.0 popt
291 #FileProvides: libelf.so.1(ELFUTILS_1.0) libelf
292 #FileProvides: libnsl.so.1 glibc
293 #FileProvides: libnsl.so.1(GLIBC_2.4) glibc
294 #FileProvides: libutil.so.1 glibc
295 #FileProvides: libutil.so.1(GLIBC_2.4) glibc
296 #FileProvides: libpopt.so.0(LIBPOPT_0) popt
297 #FileProvides: libacl.so.1(ACL_1.0) acl
298 #FileProvides: libz.so.1(ZLIB_1.2.3.3) zlib
299 #FileProvides: libmagic.so.1 libmagic
300 #FileProvides: libgmp.so.10 libgmp
301 #FileProvides: libmpc.so.3 libmpc
302 #FileProvides: libmpfr.so.4 libmpfr
303 #FileProvides: libnspr4.so nspr
304 #FileProvides: libplc4.so nspr
305 #FileProvides: libplds4.so nspr
306 #FileProvides: libsqlite3.so.0 sqlite
307 #FileProvides: libattr.so.1 attr
308 #FileProvides: libattr.so.1(ATTR_1.0) attr
309 #FileProvides: libsmack.so.1 smack
310 #FileProvides: libsmack.so.1(LIBSMACK_1.0) smack
311 #FileProvides: libxml2.so.2 libxml2
312 #FileProvides: libxml2.so.2(LIBXML2_2.4.30) libxml2
313 #FileProvides: libxml2.so.2(LIBXML2_2.5.0) libxml2
314 #FileProvides: libxml2.so.2(LIBXML2_2.6.0) libxml2
315 #FileProvides: librpm.so.3()(64bit) rpm
316 #FileProvides: librpmio.so.3()(64bit) rpm
319 ########## exports for different architectures ##########
321 ExportFilter: ^qemu-linux-user.*\..*\.rpm$ . armv7l armv7hl aarch64
323 ExportFilter: ^qemu-accel-armv7hl.*\..*\.rpm$ . armv7hl
324 ExportFilter: ^qemu-accel-armv7l.*\..*\.rpm$ . armv7l
325 ExportFilter: ^qemu-accel-aarch64.*\..*\.rpm$ . aarch64
327 ExportFilter: \.armv7l\.rpm$ armv7l
328 ExportFilter: \.aarch64\.rpm$ aarch64
329 ExportFilter: \.x86_64\.rpm$ x86_64
331 ########## buildroot config ##########
333 Preinstall: setup filesystem
336 Preinstall: bash bzip2 coreutils diffutils grep rpm
337 Preinstall: glibc libacl libattr
339 Preinstall: libgcc_s1
340 Preinstall: libpopt sed tar zlib
341 Preinstall: libncurses libreadline
342 Preinstall: libelf libbz2
344 Preinstall: nss nspr libfreebl3 libsoftokn3
347 Preinstall: smack libsmack libxml2 libmagic libmagic-data
348 Preinstall: libsqlite
349 Preinstall: rpm-security-plugin
351 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux
354 Support: cross-aarch64-binutils cross-aarch64-gcc48-icecream-backend
356 Required: binutils gcc glibc rpm-build libtool
358 Support: glibc-locale
361 Support: cpio findutils
362 Support: file findutils zlib bzip2
363 Support: gzip hostname net-tools
364 Support: make patch sed gawk tar grep coreutils pkg-config
368 Support: which elfutils
369 Support: update-alternatives
371 # FIXME: TO REMOVE (? comes from IVI)
374 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
375 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
376 Keep: cpp gcc libstdc++
378 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
379 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
380 Keep: make gmp libcap groff cpio
381 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
382 Keep: kernel-headers perl-libs perl
383 Keep: pkgconfig glib2 tizen-rpm-config
384 Keep: libmpc libmpfr libppl libgmp libppl_c
385 Keep: libcloog libppl libgmpxx
386 Keep: nss-softokn-freebl libmagic libmagic-data
388 Keep: update-alternatives
389 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
390 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
392 Substitute: gettext gettext-tools
395 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
397 Substitute: glibc-devel-32bit
400 ########## compilation flags ##########
402 #%__global_cflags -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security
404 Optflags: x86_64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -fipa-cp-clone
406 #generic arm platform
407 #Optflags: armv7l -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D__SOFTFP__
409 #activate neon FPU instructions set (crosswalk build)
410 Optflags: armv7l -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__
412 Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat -Wformat-security -fmessage-length=0