1 %define _project Tizen:Mobile
4 %define _repository x86_64-x11
7 %vendor obs://build.tizen.org/Tizen:Mobile
10 %distribution Tizen:Mobile / x86_64-x11
11 %_project Tizen:Mobile
15 %_repository x86_64-x11
18 ################################################################################
19 # OBS Project config for Tizen:Mobile
22 # Joonsub Lee <joon-sub.lee@samsung.com>
24 # vim: set syntax=spec:
25 ################################################################################
27 Patterntype: rpm-md comps
28 Release: <CI_CNT>.<B_CNT>
30 Support: build-compare build-mkbaselibs
31 Support: rpmlint-mini rpmlint-tizen
33 ############################# conflicts resolution #############################
35 FileProvides: /usr/sbin/groupadd pwdutils
40 ############################# profile definition ###############################
42 %define profile mobile
45 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
49 %release_name Tizen3/Mobile
51 %tizen_version_major 3
52 %tizen_version_minor 0
53 %tizen_version_patch 0
55 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
56 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
65 %_default_patch_fuzz 2
68 ############################# display system ###################################
70 ########## display system selection ##########
72 # selection of the display system
73 # this selection is done for each repository
76 # |----------------------------------------------------
77 # | wayland | x | meaning
78 # |----------------------------------------------------
79 # | | 1 | pure X11 platform(no wayland)
80 # | 1 | | pure wayland platform (no X11)
81 # | 1 | 1 | wayland but X compatibility
82 # | | | no X and no wayland
83 # |----------------------------------------------------
85 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
87 ########## RDP flag ##########
89 # enable/disable RDP (remote desktop protocol) for wayland
90 # flag: _with_rdp, used in repositories
91 # Affects: weston, freerdp
92 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
94 ########## mesa activation ##########
101 %ifarch %arm armv7l %{aarch64}
102 Substitute: mesa-devel pkgconfig(glesv2)
103 #FIXME Substitute: pkgconfig(egl)
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)
121 ############################# misc config flags ################################
123 # This build macro controls the libdlog output. If enabled,
124 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
125 # logger FIFO. Affects: dlog.
126 # Owner: Mikko <mikko.ylinen@intel.com>
128 %_with_dlog_to_systemd_journal 1
131 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
132 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
133 # Then homescreen is supposed to deal with those notifications and display relevant popups.
134 # Affects: bluetooth-frwk
135 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
137 %_with_bluetooth_frwk_libnotification 1
140 # This build macro controls whether the OS uses
141 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
142 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
143 # Owner: Arron Wang <arron.wang@intel.com>
148 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
149 # this -> Tizen Mobile is compiled with this option.
150 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
151 # FIXME: Why this extra define in the obs config ?
152 %define _with_pulseaudio_samsung_policy 1
154 %_with_pulseaudio_samsung_policy 1
157 # Activate introspection
158 # This is needed on GuPNP to build Rygel correctly in IVI
159 # Impacts potentially packages that use gobject-introspection
160 # Owner: Mikko <mikko.ylinen@intel.com>
162 %_with_introspection 1
165 ############################# build config #####################################
167 %define gcc_version 49
172 ########## targets ##########
175 Target: i686-tizen-linux
179 Target: armv7hl-tizen-linux
183 Target: armv7l-tizen-linux
187 Target: aarch64-tizen-linux
190 ########## cross build ##########/ex
194 # cross build support for the build hosts
195 Preinstall: qemu-linux-user-cross-arm
196 Keep: qemu-linux-user-cross-arm
200 Preinstall: qemu-accel-armv7hl
201 Runscripts: qemu-accel-armv7hl
202 Preinstall: libmount libblkid libuuid
206 Preinstall: qemu-accel-armv7l-cross-arm
207 Runscripts: qemu-accel-armv7l-cross-arm
208 Preinstall: libmount libblkid libuuid
213 Preinstall: qemu-linux-user-cross-arm
214 Keep: qemu-linux-user-cross-arm
215 Preinstall: qemu-accel-aarch64-cross-aarch64
216 Runscripts: qemu-accel-aarch64-cross-aarch64
217 Preinstall: libmount libblkid libuuid
220 ########## exports for different architectures ##########
222 ExportFilter: \.armv7l\.rpm$ armv7l
223 ExportFilter: \.aarch64\.rpm$ aarch64
224 ExportFilter: \.x86_64\.rpm$ x86_64
226 ########## buildroot config ##########
228 Preinstall: setup filesystem
231 Preinstall: bash bzip2 coreutils diffutils grep rpm
232 Preinstall: glibc libacl libattr
234 Preinstall: libgcc_s1
235 Preinstall: libpopt sed tar zlib
236 Preinstall: libncurses libreadline
237 Preinstall: libelf libbz2
239 Preinstall: nss nspr libfreebl3 libsoftokn3
242 Preinstall: smack libsmack libxml2 libmagic libmagic-data
243 Preinstall: libsqlite
244 Preinstall: rpm-security-plugin
245 Preinstall: util-linux
247 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux
249 Required: binutils gcc glibc rpm-build libtool
251 Support: glibc-locale
254 Support: cpio findutils
255 Support: file findutils zlib bzip2
256 Support: gzip hostname net-tools
257 Support: make patch sed gawk tar grep coreutils pkg-config
261 Support: which elfutils
262 Support: update-alternatives
264 # FIXME: TO REMOVE (? comes from IVI)
267 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
268 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
269 Keep: cpp gcc libstdc++
271 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
272 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
273 Keep: make gmp libcap groff cpio
274 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
275 Keep: kernel-headers perl-libs perl
276 Keep: pkgconfig glib2 tizen-rpm-config
277 Keep: libmpc libmpfr libppl libgmp libppl_c
278 Keep: libcloog libppl libgmpxx
279 Keep: nss-softokn-freebl libmagic libmagic-data
281 Keep: update-alternatives
282 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
283 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
285 Substitute: gettext gettext-tools
288 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
290 Substitute: glibc-devel-32bit
293 ########## compilation flags ##########
294 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__
295 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