1 %define _project Tizen:Mobile
4 %define _repository arm-x11
7 %vendor obs://build.tizen.org/Tizen:Mobile
10 %distribution Tizen:Mobile / arm-x11
11 %_project Tizen:Mobile
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-accel-aarch64-cross-aarch64
214 Runscripts: qemu-accel-aarch64-cross-aarch64
215 Preinstall: libmount libblkid libuuid
218 ########## exports for different architectures ##########
220 ExportFilter: ^qemu-linux-user.*\..*\.rpm$ . armv7l armv7hl aarch64
222 ExportFilter: ^qemu-accel-armv7hl.*\..*\.rpm$ . armv7hl
223 ExportFilter: ^qemu-accel-armv7l.*\..*\.rpm$ . armv7l
224 ExportFilter: ^qemu-accel-aarch64.*\..*\.rpm$ . aarch64
226 ExportFilter: \.armv7l\.rpm$ armv7l
227 ExportFilter: \.aarch64\.rpm$ aarch64
228 ExportFilter: \.x86_64\.rpm$ x86_64
230 ########## buildroot config ##########
232 Preinstall: setup filesystem
235 Preinstall: bash bzip2 coreutils diffutils grep rpm
236 Preinstall: glibc libacl libattr
238 Preinstall: libgcc_s1
239 Preinstall: libpopt sed tar zlib
240 Preinstall: libncurses libreadline
241 Preinstall: libelf libbz2
243 Preinstall: nss nspr libfreebl3 libsoftokn3
246 Preinstall: smack libsmack libxml2 libmagic libmagic-data
247 Preinstall: libsqlite
248 Preinstall: rpm-security-plugin
249 Preinstall: util-linux
251 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux
253 Required: binutils gcc glibc rpm-build libtool
255 Support: glibc-locale
258 Support: cpio findutils
259 Support: file findutils zlib bzip2
260 Support: gzip hostname net-tools
261 Support: make patch sed gawk tar grep coreutils pkg-config
265 Support: which elfutils
266 Support: update-alternatives
268 # FIXME: TO REMOVE (? comes from IVI)
271 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
272 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
273 Keep: cpp gcc libstdc++
275 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
276 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
277 Keep: make gmp libcap groff cpio
278 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
279 Keep: kernel-headers perl-libs perl
280 Keep: pkgconfig glib2 tizen-rpm-config
281 Keep: libmpc libmpfr libppl libgmp libppl_c
282 Keep: libcloog libppl libgmpxx
283 Keep: nss-softokn-freebl libmagic libmagic-data
285 Keep: update-alternatives
286 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
287 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
289 Substitute: gettext gettext-tools
292 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
294 Substitute: glibc-devel-32bit
297 ########## compilation flags ##########
298 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__
299 Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat -Wformat-security -fmessage-length=0