1 ################################################################################
2 # OBS Project config for Tizen:Mobile
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 mobile
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/Mobile
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" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland"
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" == "atom-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11"
114 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
115 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
125 ############################# emulator repositories ############################
127 %if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
129 Prefer: mesa-libGLESv2
130 Prefer: libwayland-egl
134 Prefer: emulator-yagl
136 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
137 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
139 %define _with_wayland 1
140 %define _with_emulator 1
149 ############################# misc config flags ################################
151 # This build macro controls the libdlog output. If enabled,
152 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
153 # logger FIFO. Affects: dlog.
154 # Owner: Mikko <mikko.ylinen@intel.com>
156 %_with_dlog_to_systemd_journal 1
159 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
160 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
161 # Then homescreen is supposed to deal with those notifications and display relevant popups.
162 # Affects: bluetooth-frwk
163 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
165 %_with_bluetooth_frwk_libnotification 1
168 # This build macro controls whether the OS uses
169 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
170 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
171 # Owner: Arron Wang <arron.wang@intel.com>
176 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
177 # this -> Tizen Mobile is compiled with this option.
178 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
179 # FIXME: Why this extra define in the obs config ?
180 %define _with_pulseaudio_samsung_policy 1
182 %_with_pulseaudio_samsung_policy 1
185 # Activate introspection
186 # This is needed on GuPNP to build Rygel correctly in IVI
187 # Impacts potentially packages that use gobject-introspection
188 # Owner: Mikko <mikko.ylinen@intel.com>
190 %_with_introspection 1
193 ############################# build config #####################################
195 %define gcc_version 49
200 ########## targets ##########
203 Target: i686-tizen-linux
207 Target: armv7hl-tizen-linux
211 Target: armv7l-tizen-linux
215 Target: aarch64-tizen-linux
218 ########## cross build ##########/ex
222 # cross build support for the build hosts
223 Preinstall: qemu-linux-user-cross-arm
224 Keep: qemu-linux-user-cross-arm
228 Preinstall: qemu-accel-armv7hl
229 Runscripts: qemu-accel-armv7hl
230 Preinstall: libmount libblkid libuuid
234 Preinstall: qemu-accel-armv7l-cross-arm
235 Runscripts: qemu-accel-armv7l-cross-arm
236 Preinstall: libmount libblkid libuuid
241 Preinstall: qemu-linux-user-cross-arm
242 Keep: qemu-linux-user-cross-arm
243 Preinstall: qemu-accel-aarch64-cross-aarch64
244 Runscripts: qemu-accel-aarch64-cross-aarch64
245 Preinstall: libmount libblkid libuuid
248 ########## exports for different architectures ##########
250 ExportFilter: \.armv7l\.rpm$ armv7l
251 ExportFilter: \.aarch64\.rpm$ aarch64
252 ExportFilter: \.x86_64\.rpm$ x86_64
254 ########## buildroot config ##########
256 Preinstall: setup filesystem
259 Preinstall: bash bzip2 coreutils diffutils grep rpm
260 Preinstall: glibc libacl libattr
262 Preinstall: libgcc_s1
263 Preinstall: libpopt sed tar zlib
264 Preinstall: libncurses libreadline
265 Preinstall: libelf libbz2
267 Preinstall: nss nspr libfreebl3 libsoftokn3
270 Preinstall: smack libsmack libxml2 libmagic libmagic-data
271 Preinstall: libsqlite
272 #Preinstall: rpm-security-plugin
273 Preinstall: util-linux
275 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols
277 Required: binutils gcc glibc rpm-build libtool
279 Support: glibc-locale
282 Support: cpio findutils
283 Support: file findutils zlib bzip2
284 Support: gzip hostname net-tools
285 Support: make patch sed gawk tar grep coreutils pkg-config
289 Support: which elfutils
290 Support: update-alternatives
293 # Support: python-accel-armv7l-cross-arm
296 # Support: python-accel-aarch64-cross-aarch64
299 # FIXME: TO REMOVE (? comes from IVI)
302 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
303 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
304 Keep: cpp gcc libstdc++
306 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
307 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
308 Keep: make gmp libcap groff cpio
309 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
310 Keep: kernel-headers perl-libs perl
311 Keep: pkgconfig glib2 tizen-rpm-config
312 Keep: libmpc libmpfr libppl libgmp libppl_c
313 Keep: libcloog libppl libgmpxx
314 Keep: nss-softokn-freebl libmagic libmagic-data
316 Keep: update-alternatives
317 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
318 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
320 Substitute: gettext gettext-tools
323 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
325 Substitute: glibc-devel-32bit
328 ########## compilation flags ##########
329 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__
330 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
331 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
332 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