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 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
32 %release_name Tizen3/Mobile
34 %tizen_version_major 3
35 %tizen_version_minor 0
36 %tizen_version_patch 0
38 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
39 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
48 %_default_patch_fuzz 2
51 ############################# display system ###################################
53 ########## display system selection ##########
55 # selection of the display system
56 # this selection is done for each repository
59 # |----------------------------------------------------
60 # | wayland | x | meaning
61 # |----------------------------------------------------
62 # | | 1 | pure X11 platform(no wayland)
63 # | 1 | | pure wayland platform (no X11)
64 # | 1 | 1 | wayland but X compatibility
65 # | | | no X and no wayland
66 # |----------------------------------------------------
68 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
70 ########## RDP flag ##########
72 # enable/disable RDP (remote desktop protocol) for wayland
73 # flag: _with_rdp, used in repositories
74 # Affects: weston, freerdp
75 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
77 ########## mesa activation ##########
84 %ifarch %arm armv7l %{aarch64}
85 Substitute: mesa-devel pkgconfig(glesv2)
86 #FIXME Substitute: pkgconfig(egl)
89 ############################# wayland repositories #############################
91 %if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland"
93 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
94 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
96 %define _with_wayland 1
106 ############################# X11 repositories #################################
108 %if "%_repository" == "atom-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11"
109 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
110 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
120 ############################# emulator repositories ############################
122 %if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
124 Prefer: mesa-libGLESv2
125 Prefer: libwayland-egl
129 Prefer: emulator-yagl
131 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
132 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
134 %define _with_wayland 1
135 %define _with_emulator 1
144 ############################# misc config flags ################################
146 # This build macro controls the libdlog output. If enabled,
147 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
148 # logger FIFO. Affects: dlog.
149 # Owner: Mikko <mikko.ylinen@intel.com>
151 %_with_dlog_to_systemd_journal 1
154 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
155 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
156 # Then homescreen is supposed to deal with those notifications and display relevant popups.
157 # Affects: bluetooth-frwk
158 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
160 %_with_bluetooth_frwk_libnotification 1
163 # This build macro controls whether the OS uses
164 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
165 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
166 # Owner: Arron Wang <arron.wang@intel.com>
171 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
172 # this -> Tizen Mobile is compiled with this option.
173 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
174 # FIXME: Why this extra define in the obs config ?
175 %define _with_pulseaudio_samsung_policy 1
177 %_with_pulseaudio_samsung_policy 1
180 # Activate introspection
181 # This is needed on GuPNP to build Rygel correctly in IVI
182 # Impacts potentially packages that use gobject-introspection
183 # Owner: Mikko <mikko.ylinen@intel.com>
185 %_with_introspection 1
188 ############################# build config #####################################
190 %define gcc_version 49
195 ########## targets ##########
198 Target: i686-tizen-linux
202 Target: armv7hl-tizen-linux
206 Target: armv7l-tizen-linux
210 Target: aarch64-tizen-linux
213 ########## cross build ##########/ex
217 # cross build support for the build hosts
218 Preinstall: qemu-linux-user-cross-arm
219 Keep: qemu-linux-user-cross-arm
223 Preinstall: qemu-accel-armv7hl
224 Runscripts: qemu-accel-armv7hl
225 Preinstall: libmount libblkid libuuid
229 Preinstall: qemu-accel-armv7l-cross-arm
230 Runscripts: qemu-accel-armv7l-cross-arm
231 Preinstall: libmount libblkid libuuid
236 Preinstall: qemu-linux-user-cross-arm
237 Keep: qemu-linux-user-cross-arm
238 Preinstall: qemu-accel-aarch64-cross-aarch64
239 Runscripts: qemu-accel-aarch64-cross-aarch64
240 Preinstall: libmount libblkid libuuid
243 ########## exports for different architectures ##########
245 ExportFilter: \.armv7l\.rpm$ armv7l
246 ExportFilter: \.aarch64\.rpm$ aarch64
247 ExportFilter: \.x86_64\.rpm$ x86_64
249 ########## buildroot config ##########
251 Preinstall: setup filesystem
254 Preinstall: bash bzip2 coreutils diffutils grep rpm
255 Preinstall: glibc libacl libattr
257 Preinstall: libgcc_s1
258 Preinstall: libpopt sed tar zlib
259 Preinstall: libncurses libreadline
260 Preinstall: libelf libbz2
262 Preinstall: nss nspr libfreebl3 libsoftokn3
265 Preinstall: smack libsmack libxml2 libmagic libmagic-data
266 Preinstall: libsqlite
267 #Preinstall: rpm-security-plugin
268 Preinstall: util-linux
270 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux
272 Required: binutils gcc glibc rpm-build libtool
274 Support: glibc-locale
277 Support: cpio findutils
278 Support: file findutils zlib bzip2
279 Support: gzip hostname net-tools
280 Support: make patch sed gawk tar grep coreutils pkg-config
284 Support: which elfutils
285 Support: update-alternatives
287 # FIXME: TO REMOVE (? comes from IVI)
290 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
291 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
292 Keep: cpp gcc libstdc++
294 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
295 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
296 Keep: make gmp libcap groff cpio
297 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
298 Keep: kernel-headers perl-libs perl
299 Keep: pkgconfig glib2 tizen-rpm-config
300 Keep: libmpc libmpfr libppl libgmp libppl_c
301 Keep: libcloog libppl libgmpxx
302 Keep: nss-softokn-freebl libmagic libmagic-data
304 Keep: update-alternatives
305 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
306 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
308 Substitute: gettext gettext-tools
311 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
313 Substitute: glibc-devel-32bit
316 ########## compilation flags ##########
317 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__
318 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
319 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
320 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