1 ################################################################################
2 # OBS Project config for Tizen:TV
5 # Joonsub Lee (joon-sub.lee@samsung.com)
6 # Hyunggi Lee (hyunggi.lee@samsung.com)
8 # vim: set syntax=spec:
9 ################################################################################
11 Patterntype: rpm-md comps
12 Release: <CI_CNT>.<B_CNT>
14 Support: build-compare build-mkbaselibs
15 Support: rpmlint-mini rpmlint-tizen
17 ############################# conflicts resolution #############################
19 FileProvides: /usr/sbin/groupadd pwdutils
24 ############################# profile definition ###############################
29 # For classifying debug/release mode
31 %tizen_build_devel_mode 1
34 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
38 %release_name Tizen3/TV
40 %tizen_version_major 3
41 %tizen_version_minor 0
42 %tizen_version_patch 0
44 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
45 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
54 %_default_patch_fuzz 2
57 ############################# display system ###################################
59 ########## display system selection ##########
61 # selection of the display system
62 # this selection is done for each repository
65 # |----------------------------------------------------
66 # | wayland | x | meaning
67 # |----------------------------------------------------
68 # | | 1 | pure X11 platform(no wayland)
69 # | 1 | | pure wayland platform (no X11)
70 # | 1 | 1 | wayland but X compatibility
71 # | | | no X and no wayland
72 # |----------------------------------------------------
74 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
76 ########## RDP flag ##########
78 # enable/disable RDP (remote desktop protocol) for wayland
79 # flag: _with_rdp, used in repositories
80 # Affects: weston, freerdp
81 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
83 ########## mesa activation ##########
90 %ifarch %arm armv7l aarch64
91 Substitute: mesa-devel pkgconfig(glesv2)
92 #FIXME Substitute: pkgconfig(egl)
95 ########## coregl ##########
97 Prefer: coregl coregl-devel
98 Prefer: libwayland-egl libwayland-egl-devel
99 Substitute: mesa-libGLESv2 coregl
100 Substitute: mesa-libEGL coregl
103 ###################### Activate KDBUS ######################
104 # This configuration flag enables the support of KDBUS
106 %if "%_repository" == "arm-wayland"
108 %define _with_kdbus 1
116 ############################# wayland repositories #############################
118 %if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"|| "%_repository" == "arm"|| "%_repository" == "arm64" || "%_repository" == "arm64-wayland" || "%_repository" == "wayland" || "%_repository" == "standard"
120 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
121 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
123 %define _with_wayland 1
133 ############################# X11 repositories #################################
135 %if "%_repository" == "ia32-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11" || "%_repository" == "x11"
137 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
138 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
148 ############################# X+Wayland repositories ###########################
150 %if "%_repository" == "ia32-xwayland" || "%_repository" == "x86_64-xwayland" || "%_repository" == "arm-xwayland" || "%_repository" == "arm64-xwayland" || "%_repository" == "xwayland"
152 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
153 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
155 %define _with_wayland 1
165 ############################# emulator repositories ############################
167 %if "%_repository" == "emulator32-x11"
169 Prefer: mesa-libGLESv2
173 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
174 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
177 %define _with_emulator 1
186 %if "%_repository" == "emulator32-wayland"
188 Substitute: mesa-libGLESv2 coregl
189 Substitute: mesa-libEGL coregl
190 Substitute: mesa-devel pkgconfig(glesv2)
192 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
193 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
196 Prefer: libwayland-egl
197 Prefer: libwayland-egl-devel
198 Prefer: emulator-yagl emulator-yagl-devel
201 %define _with_wayland 1
202 %define _with_emulator 1
211 ############################# misc config flags ################################
213 # This build macro controls the libdlog output. If enabled,
214 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
215 # logger FIFO. Affects: dlog.
216 # Owner: Mikko <mikko.ylinen@intel.com>
218 %_with_dlog_to_systemd_journal 1
221 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
222 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
223 # Then homescreen is supposed to deal with those notifications and display relevant popups.
224 # Affects: bluetooth-frwk
225 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
227 %_with_bluetooth_frwk_libnotification 1
230 # This build macro controls whether the OS uses
231 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
232 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
233 # Owner: Arron Wang <arron.wang@intel.com>
238 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
239 # this -> Tizen Mobile is compiled with this option.
240 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
241 # FIXME: Why this extra define in the obs config ?
242 %define _with_pulseaudio_samsung_policy 1
244 %_with_pulseaudio_samsung_policy 1
247 # Activate introspection
248 # This is needed on GuPNP to build Rygel correctly in IVI
249 # Impacts potentially packages that use gobject-introspection
250 # Owner: Mikko <mikko.ylinen@intel.com>
252 %_with_introspection 1
255 ############################# build config #####################################
257 %define gcc_version 49
262 ########## targets ##########
265 Target: i686-tizen-linux
269 Target: armv7hl-tizen-linux
273 Target: armv7l-tizen-linux
277 Target: aarch64-tizen-linux
280 ########## cross build ##########
284 # cross build support for the build hosts
285 Preinstall: qemu-linux-user-cross-arm
286 Keep: qemu-linux-user-cross-arm
290 Preinstall: qemu-accel-armv7hl
291 Runscripts: qemu-accel-armv7hl
292 Preinstall: libmount libblkid libuuid
296 Preinstall: qemu-accel-armv7l-cross-arm
297 Runscripts: qemu-accel-armv7l-cross-arm
298 Preinstall: libmount libblkid libuuid
303 Preinstall: qemu-linux-user-cross-arm
304 Keep: qemu-linux-user-cross-arm
305 Preinstall: qemu-accel-aarch64-cross-aarch64
306 Runscripts: qemu-accel-aarch64-cross-aarch64
307 Preinstall: libmount libblkid libuuid
310 ########## exports for different architectures ##########
312 ExportFilter: \.armv7l\.rpm$ armv7l
313 ExportFilter: \.aarch64\.rpm$ aarch64
314 ExportFilter: \.x86_64\.rpm$ x86_64
316 ########## buildroot config ##########
318 Preinstall: setup filesystem
321 Preinstall: bash bzip2 coreutils diffutils grep rpm
322 Preinstall: glibc libacl libattr
324 Preinstall: libgcc_s1
325 Preinstall: libpopt sed tar zlib
326 Preinstall: libncurses libreadline
327 Preinstall: libelf libbz2
329 Preinstall: nss nspr libfreebl3 libsoftokn3
332 Preinstall: smack libsmack libxml2 libmagic libmagic-data
333 Preinstall: libsqlite
334 #Preinstall: rpm-security-plugin
335 Preinstall: util-linux
337 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
339 Required: binutils gcc glibc rpm-build libtool
341 Support: glibc-locale
344 Support: cpio findutils
345 Support: file findutils zlib bzip2
346 Support: gzip hostname net-tools
347 Support: make patch sed gawk tar grep coreutils pkg-config
351 Support: which elfutils
352 Support: update-alternatives
355 # Support: python-accel-armv7l-cross-arm
358 # Support: python-accel-aarch64-cross-aarch64
361 # FIXME: TO REMOVE (? comes from IVI)
364 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
365 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
366 Keep: cpp gcc libstdc++
368 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
369 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
370 Keep: make gmp libcap groff cpio
371 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
372 Keep: kernel-headers perl-libs perl
373 Keep: pkgconfig glib2 tizen-rpm-config
374 Keep: libmpc libmpfr libppl libgmp libppl_c
375 Keep: libcloog libppl libgmpxx
376 Keep: nss-softokn-freebl libmagic libmagic-data
378 Keep: update-alternatives
379 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
380 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
382 Substitute: gettext gettext-tools
385 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
387 Substitute: glibc-devel-32bit
390 ########## compilation flags ##########
392 #%__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
394 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
395 Optflags: i686 -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 -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
397 #generic arm platform
398 #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 -Wp,-D__SOFTFP__
400 #activate neon FPU instructions set (crosswalk build)
401 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 -Wp,-D__SOFTFP__
403 Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat -Wformat-security -fmessage-length=0 -march=armv8-a+fp+simd+crc+crypto