1 Substitute: python-accel-armv7l-cross-arm python-accel-armv7l
2 Substitute: python-accel-aarch64-cross-aarch64 python-accel-aarch64
3 ################################################################################
4 # OBS Project config for Tizen:Mobile
7 # Joonsub Lee <joon-sub.lee@samsung.com>
9 # vim: set syntax=spec:
10 ################################################################################
12 Patterntype: rpm-md comps
13 Release: <CI_CNT>.<B_CNT>
15 Support: build-compare build-mkbaselibs
16 Support: rpmlint-mini rpmlint-tizen
18 ############################# conflicts resolution #############################
20 FileProvides: /usr/sbin/groupadd pwdutils
25 ############################# profile definition ###############################
27 %define profile mobile
30 # For classifying debug/release mode
32 %tizen_build_devel_mode 1
35 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
39 %release_name Tizen3/Mobile
41 %tizen_version_major 3
42 %tizen_version_minor 0
43 %tizen_version_patch 0
45 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
46 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
55 %_default_patch_fuzz 2
58 ############################# display system ###################################
60 ########## display system selection ##########
62 # selection of the display system
63 # this selection is done for each repository
66 # |----------------------------------------------------
67 # | wayland | x | meaning
68 # |----------------------------------------------------
69 # | | 1 | pure X11 platform(no wayland)
70 # | 1 | | pure wayland platform (no X11)
71 # | 1 | 1 | wayland but X compatibility
72 # | | | no X and no wayland
73 # |----------------------------------------------------
75 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
77 ########## RDP flag ##########
79 # enable/disable RDP (remote desktop protocol) for wayland
80 # flag: _with_rdp, used in repositories
81 # Affects: weston, freerdp
82 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
84 ########## mesa activation ##########
91 %ifarch %arm armv7l aarch64
92 Substitute: mesa-devel pkgconfig(glesv2)
93 #FIXME Substitute: pkgconfig(egl)
96 ########## coregl ##########
98 Prefer: coregl coregl-devel
99 Prefer: libwayland-egl libwayland-egl-devel
100 Substitute: mesa-libGLESv2 coregl
101 Substitute: mesa-libEGL coregl
104 ###################### Activate KDBUS ######################
105 # This configuration flag enables the support of KDBUS
107 #%if "%_repository" == "arm64-wayland"
109 #%define _with_kdbus 1
117 ###################### Activate Dbus Policy ######################
119 # Owner : hyotaek.shim@samsung.com
120 # This configuration flag enables the support of Cynara-based Dbus Policy
121 %if "%_repository" == "target-TM1"
123 %define _with_dbuspolicy 1
131 ############################# wayland repositories #############################
133 %if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "target-TM1"
135 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
136 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
138 %define _with_wayland 1
148 ############################# emulator repositories ############################
150 %if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
152 Substitute: mesa-devel pkgconfig(glesv2)
154 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
155 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
158 Prefer: coregl coregl-devel
159 Prefer: emulator-yagl emulator-yagl-devel
161 %define _with_wayland 1
162 %define _with_emulator 1
171 %if "%_repository" == "target-TM1"
174 %tizen_target_name TM1
179 ############################# misc config flags ################################
181 # This build macro controls the libdlog output. If enabled,
182 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
183 # logger FIFO. Affects: dlog.
184 # Owner: Mikko <mikko.ylinen@intel.com>
186 %_with_dlog_to_systemd_journal 1
189 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
190 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
191 # Then homescreen is supposed to deal with those notifications and display relevant popups.
192 # Affects: bluetooth-frwk
193 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
195 %_with_bluetooth_frwk_libnotification 1
198 # This build macro controls whether the OS uses
199 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
200 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
201 # Owner: Arron Wang <arron.wang@intel.com>
206 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
207 # this -> Tizen Mobile is compiled with this option.
208 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
209 # FIXME: Why this extra define in the obs config ?
210 %define _with_pulseaudio_samsung_policy 1
212 %_with_pulseaudio_samsung_policy 1
215 # Activate introspection
216 # This is needed on GuPNP to build Rygel correctly in IVI
217 # Impacts potentially packages that use gobject-introspection
218 # Owner: Mikko <mikko.ylinen@intel.com>
220 %_with_introspection 1
223 ############################# build config #####################################
225 %define gcc_version 49
230 ########## targets ##########
233 Target: i686-tizen-linux
237 Target: armv7hl-tizen-linux
241 Target: armv7l-tizen-linux
245 Target: aarch64-tizen-linux
248 ########## cross build ##########
250 %ifarch %arm armv7l aarch64
252 # cross build support for the build hosts
253 Preinstall: qemu-linux-user-cross
254 Runscripts: qemu-linux-user-cross
255 Keep: qemu-linux-user-cross
259 Preinstall: qemu-accel-armv7l
260 Runscripts: qemu-accel-armv7l
261 Preinstall: libmount libblkid libuuid
265 Preinstall: qemu-accel-aarch64
266 Runscripts: qemu-accel-aarch64
267 Preinstall: libmount libblkid libuuid
270 ########## exports for different architectures ##########
272 ExportFilter: \.armv7l\.rpm$ armv7l
273 ExportFilter: \.aarch64\.rpm$ aarch64
274 ExportFilter: \.x86_64\.rpm$ x86_64
276 ########## buildroot config ##########
278 Preinstall: setup filesystem
281 Preinstall: bash bzip2 coreutils diffutils grep rpm
282 Preinstall: glibc libacl libattr
285 Preinstall: libpopt sed tar zlib
286 Preinstall: libncurses libreadline
287 Preinstall: libelf libbz2
289 Preinstall: nss nspr libfreebl3 libsoftokn3
292 Preinstall: smack libsmack libxml2 libmagic libmagic-data
293 Preinstall: libsqlite
294 #Preinstall: rpm-security-plugin
295 Preinstall: util-linux
297 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
299 Required: binutils gcc glibc rpm-build libtool
302 Support: glibc-locale
305 Support: cpio findutils
306 Support: file findutils zlib bzip2
307 Support: gzip hostname net-tools
308 Support: make patch sed gawk tar grep coreutils pkg-config
312 Support: which elfutils
313 Support: update-alternatives
314 Support: libstdc++-devel
320 Keep: libstdc++-devel
321 Keep: cpp gcc libstdc++
323 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
324 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
325 Keep: make gmp libcap groff cpio
326 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
327 Keep: kernel-headers perl-libs perl
328 Keep: pkgconfig glib2 tizen-rpm-config
329 Keep: libmpc libmpfr libppl libgmp libppl_c
330 Keep: libcloog libppl libgmpxx
331 Keep: nss-softokn-freebl libmagic libmagic-data
333 Keep: update-alternatives
340 Substitute: gettext gettext-tools
343 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
344 Substitute: libgcc_s1-32bit libgcc-32bit
346 Substitute: glibc-devel-32bit
349 ########## compilation flags ##########
350 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__
351 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 -mtune=cortex-a57.cortex-a53
352 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
353 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