1 ################################################################################
2 # OBS Project config for Tizen:Wearable
5 # Joonsub Lee <joon-sub.lee@samsung.com>
7 # vim: set syntax=spec:
8 ################################################################################
10 Patterntype: rpm-md comps
11 Release: <CI_CNT>.<B_CNT>
13 Support: build-compare build-mkbaselibs
14 Support: rpmlint-mini rpmlint-tizen
16 ############################# conflicts resolution #############################
18 FileProvides: /usr/sbin/groupadd pwdutils
23 ############################# profile definition ###############################
25 %define profile wearable
28 # For classifying debug/release mode
30 %tizen_build_devel_mode 1
33 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
37 %release_name Tizen3/Wearable
39 %tizen_version_major 3
40 %tizen_version_minor 0
41 %tizen_version_patch 0
43 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
44 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
53 %_default_patch_fuzz 2
56 ############################# display system ###################################
58 ########## display system selection ##########
60 # selection of the display system
61 # this selection is done for each repository
64 # |----------------------------------------------------
65 # | wayland | x | meaning
66 # |----------------------------------------------------
67 # | | 1 | pure X11 platform(no wayland)
68 # | 1 | | pure wayland platform (no X11)
69 # | 1 | 1 | wayland but X compatibility
70 # | | | no X and no wayland
71 # |----------------------------------------------------
73 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
75 ########## RDP flag ##########
77 # enable/disable RDP (remote desktop protocol) for wayland
78 # flag: _with_rdp, used in repositories
79 # Affects: weston, freerdp
80 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
82 ########## mesa activation ##########
89 %ifarch %arm armv7l aarch64
90 Substitute: mesa-devel pkgconfig(glesv2)
91 #FIXME Substitute: pkgconfig(egl)
94 ############################# wayland repositories #############################
96 %if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"|| "%_repository" == "arm"|| "%_repository" == "arm64" || "%_repository" == "arm64-wayland" || "%_repository" == "wayland" || "%_repository" == "standard"
98 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
99 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
101 %define _with_wayland 1
111 ############################# X11 repositories #################################
113 %if "%_repository" == "ia32-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11" || "%_repository" == "x11"
115 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
116 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
126 ############################# X+Wayland repositories ###########################
128 %if "%_repository" == "ia32-xwayland" || "%_repository" == "x86_64-xwayland" || "%_repository" == "arm-xwayland" || "%_repository" == "arm64-xwayland" || "%_repository" == "xwayland"
130 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
131 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
133 %define _with_wayland 1
143 ############################# emulator repositories ############################
145 %if "%_repository" == "emulator32-x11"
147 Prefer: mesa-libGLESv2
150 Prefer: emulator-yagl
152 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
153 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
156 %define _with_emulator 1
165 %if "%_repository" == "emulator32-wayland"
167 Prefer: mesa-libGLESv2
170 Prefer: emulator-yagl
172 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
173 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
175 %define _with_wayland 1
176 %define _with_emulator 1
185 ############################# misc config flags ################################
187 # This build macro controls the libdlog output. If enabled,
188 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
189 # logger FIFO. Affects: dlog.
190 # Owner: Mikko <mikko.ylinen@intel.com>
192 %_with_dlog_to_systemd_journal 1
195 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
196 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
197 # Then homescreen is supposed to deal with those notifications and display relevant popups.
198 # Affects: bluetooth-frwk
199 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
201 %_with_bluetooth_frwk_libnotification 1
204 # This build macro controls whether the OS uses
205 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
206 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
207 # Owner: Arron Wang <arron.wang@intel.com>
212 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
213 # this -> Tizen Mobile is compiled with this option.
214 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
215 # FIXME: Why this extra define in the obs config ?
216 %define _with_pulseaudio_samsung_policy 1
218 %_with_pulseaudio_samsung_policy 1
221 # Activate introspection
222 # This is needed on GuPNP to build Rygel correctly in IVI
223 # Impacts potentially packages that use gobject-introspection
224 # Owner: Mikko <mikko.ylinen@intel.com>
226 %_with_introspection 1
229 ############################# build config #####################################
231 %define gcc_version 49
236 ########## targets ##########
239 Target: i686-tizen-linux
243 Target: armv7hl-tizen-linux
247 Target: armv7l-tizen-linux
251 Target: aarch64-tizen-linux
254 ########## cross build ##########
258 # cross build support for the build hosts
259 Preinstall: qemu-linux-user-cross-arm
260 Keep: qemu-linux-user-cross-arm
264 Preinstall: qemu-accel-armv7hl
265 Runscripts: qemu-accel-armv7hl
266 Preinstall: libmount libblkid libuuid
270 Preinstall: qemu-accel-armv7l-cross-arm
271 Runscripts: qemu-accel-armv7l-cross-arm
272 Preinstall: libmount libblkid libuuid
277 Preinstall: qemu-linux-user-cross-arm
278 Keep: qemu-linux-user-cross-arm
279 Preinstall: qemu-accel-aarch64-cross-aarch64
280 Runscripts: qemu-accel-aarch64-cross-aarch64
281 Preinstall: libmount libblkid libuuid
284 ########## exports for different architectures ##########
286 ExportFilter: \.armv7l\.rpm$ armv7l
287 ExportFilter: \.aarch64\.rpm$ aarch64
288 ExportFilter: \.x86_64\.rpm$ x86_64
290 ########## buildroot config ##########
292 Preinstall: setup filesystem
295 Preinstall: bash bzip2 coreutils diffutils grep rpm
296 Preinstall: glibc libacl libattr
298 Preinstall: libgcc_s1
299 Preinstall: libpopt sed tar zlib
300 Preinstall: libncurses libreadline
301 Preinstall: libelf libbz2
303 Preinstall: nss nspr libfreebl3 libsoftokn3
306 Preinstall: smack libsmack libxml2 libmagic libmagic-data
307 Preinstall: libsqlite
308 #Preinstall: rpm-security-plugin
309 Preinstall: util-linux
311 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux
313 Required: binutils gcc glibc rpm-build libtool
315 Support: glibc-locale
318 Support: cpio findutils
319 Support: file findutils zlib bzip2
320 Support: gzip hostname net-tools
321 Support: make patch sed gawk tar grep coreutils pkg-config
325 Support: which elfutils
326 Support: update-alternatives
329 # Support: python-accel-armv7l-cross-arm
332 # Support: python-accel-aarch64-cross-aarch64
335 # FIXME: TO REMOVE (? comes from IVI)
338 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
339 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
340 Keep: cpp gcc libstdc++
342 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
343 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
344 Keep: make gmp libcap groff cpio
345 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
346 Keep: kernel-headers perl-libs perl
347 Keep: pkgconfig glib2 tizen-rpm-config
348 Keep: libmpc libmpfr libppl libgmp libppl_c
349 Keep: libcloog libppl libgmpxx
350 Keep: nss-softokn-freebl libmagic libmagic-data
352 Keep: update-alternatives
353 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
354 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
356 Substitute: gettext gettext-tools
359 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
361 Substitute: glibc-devel-32bit
364 ########## compilation flags ##########
366 #%__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
368 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
370 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
372 #generic arm platform
373 #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__
375 #activate neon FPU instructions set (crosswalk build)
376 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__
378 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