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 ############################# X11 repositories #################################
91 %if "%_repository" == "atom-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11"
92 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
93 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
104 ############################# misc config flags ################################
106 # This build macro controls the libdlog output. If enabled,
107 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
108 # logger FIFO. Affects: dlog.
109 # Owner: Mikko <mikko.ylinen@intel.com>
111 %_with_dlog_to_systemd_journal 1
114 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
115 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
116 # Then homescreen is supposed to deal with those notifications and display relevant popups.
117 # Affects: bluetooth-frwk
118 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
120 %_with_bluetooth_frwk_libnotification 1
123 # This build macro controls whether the OS uses
124 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
125 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
126 # Owner: Arron Wang <arron.wang@intel.com>
131 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
132 # this -> Tizen Mobile is compiled with this option.
133 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
134 # FIXME: Why this extra define in the obs config ?
135 %define _with_pulseaudio_samsung_policy 1
137 %_with_pulseaudio_samsung_policy 1
140 # Activate introspection
141 # This is needed on GuPNP to build Rygel correctly in IVI
142 # Impacts potentially packages that use gobject-introspection
143 # Owner: Mikko <mikko.ylinen@intel.com>
145 %_with_introspection 1
148 ############################# build config #####################################
150 %define gcc_version 49
155 ########## targets ##########
158 Target: i686-tizen-linux
162 Target: armv7hl-tizen-linux
166 Target: armv7l-tizen-linux
170 Target: aarch64-tizen-linux
173 ########## cross build ##########/ex
177 # cross build support for the build hosts
178 Preinstall: qemu-linux-user-cross-arm
179 Keep: qemu-linux-user-cross-arm
183 Preinstall: qemu-accel-armv7hl
184 Runscripts: qemu-accel-armv7hl
185 Preinstall: libmount libblkid libuuid
189 Preinstall: qemu-accel-armv7l-cross-arm
190 Runscripts: qemu-accel-armv7l-cross-arm
191 Preinstall: libmount libblkid libuuid
196 Preinstall: qemu-accel-aarch64-cross-aarch64
197 Runscripts: qemu-accel-aarch64-cross-aarch64
198 Preinstall: libmount libblkid libuuid
201 ########## exports for different architectures ##########
203 ExportFilter: \.armv7l\.rpm$ armv7l
204 ExportFilter: \.aarch64\.rpm$ aarch64
205 ExportFilter: \.x86_64\.rpm$ x86_64
207 ########## buildroot config ##########
209 Preinstall: setup filesystem
212 Preinstall: bash bzip2 coreutils diffutils grep rpm
213 Preinstall: glibc libacl libattr
215 Preinstall: libgcc_s1
216 Preinstall: libpopt sed tar zlib
217 Preinstall: libncurses libreadline
218 Preinstall: libelf libbz2
220 Preinstall: nss nspr libfreebl3 libsoftokn3
223 Preinstall: smack libsmack libxml2 libmagic libmagic-data
224 Preinstall: libsqlite
225 Preinstall: rpm-security-plugin
226 Preinstall: util-linux
228 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux
230 Required: binutils gcc glibc rpm-build libtool
232 Support: glibc-locale
235 Support: cpio findutils
236 Support: file findutils zlib bzip2
237 Support: gzip hostname net-tools
238 Support: make patch sed gawk tar grep coreutils pkg-config
242 Support: which elfutils
243 Support: update-alternatives
245 # FIXME: TO REMOVE (? comes from IVI)
248 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
249 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
250 Keep: cpp gcc libstdc++
252 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
253 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
254 Keep: make gmp libcap groff cpio
255 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
256 Keep: kernel-headers perl-libs perl
257 Keep: pkgconfig glib2 tizen-rpm-config
258 Keep: libmpc libmpfr libppl libgmp libppl_c
259 Keep: libcloog libppl libgmpxx
260 Keep: nss-softokn-freebl libmagic libmagic-data
262 Keep: update-alternatives
263 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
264 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
266 Substitute: gettext gettext-tools
269 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
271 Substitute: glibc-devel-32bit
274 ########## compilation flags ##########
275 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__
276 Optflags: aarch64 -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat -Wformat-security -fmessage-length=0