1 ################################################################################
2 # OBS Project config for Tizen:Wearable
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 wearable
28 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
32 %release_name Tizen3/Wearable
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" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"|| "%_repository" == "arm"|| "%_repository" == "arm64" || "%_repository" == "arm64-wayland" || "%_repository" == "wayland" || "%_repository" == "standard"
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" == "ia32-x11" || "%_repository" == "x86_64-x11" || "%_repository" == "arm-x11" || "%_repository" == "arm64-x11" || "%_repository" == "x11"
110 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
111 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
121 ############################# X+Wayland repositories ###########################
123 %if "%_repository" == "ia32-xwayland" || "%_repository" == "x86_64-xwayland" || "%_repository" == "arm-xwayland" || "%_repository" == "arm64-xwayland" || "%_repository" == "xwayland"
125 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2) pkgconfig(gl)
126 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1_cm) pkgconfig(gl)
128 %define _with_wayland 1
138 ############################# emulator repositories ############################
140 %if "%_repository" == "emulator32-x11"
142 Prefer: mesa-libGLESv2
146 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
147 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
150 %define _with_emulator 1
159 ############################# misc config flags ################################
161 # This build macro controls the libdlog output. If enabled,
162 # libdlog writes to Systemd Journal. If disabled, libdlog writes to kernel Android
163 # logger FIFO. Affects: dlog.
164 # Owner: Mikko <mikko.ylinen@intel.com>
166 %_with_dlog_to_systemd_journal 1
169 # Macro used to handle bluetooth popups without syspopup/bt-syspopup which needs OSP .
170 # In IVI, this macro permits to address bluetooth notifications (using C API) to notification-service daemon.
171 # Then homescreen is supposed to deal with those notifications and display relevant popups.
172 # Affects: bluetooth-frwk
173 # Owner: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
175 %_with_bluetooth_frwk_libnotification 1
178 # This build macro controls whether the OS uses
179 # legacy nfc-manager or neard enabled nfc-manager-neard. If enabled,
180 # nfc-manager-neard is used. Affects: nfc CAPI, emulator-plugin-nfc
181 # Owner: Arron Wang <arron.wang@intel.com>
186 # Uses mobile-specific Samsung patches for PulseAudio. Tizen Mobile needs
187 # this -> Tizen Mobile is compiled with this option.
188 # Owner: Ismo Puustinen <ismo.puustinen@intel.com>
189 # FIXME: Why this extra define in the obs config ?
190 %define _with_pulseaudio_samsung_policy 1
192 %_with_pulseaudio_samsung_policy 1
195 # Activate introspection
196 # This is needed on GuPNP to build Rygel correctly in IVI
197 # Impacts potentially packages that use gobject-introspection
198 # Owner: Mikko <mikko.ylinen@intel.com>
200 %_with_introspection 1
203 ############################# build config #####################################
205 %define gcc_version 49
210 ########## targets ##########
213 Target: i686-tizen-linux
217 Target: armv7hl-tizen-linux
221 Target: armv7l-tizen-linux
225 Target: aarch64-tizen-linux
228 ########## cross build ##########
232 # cross build support for the build hosts
233 Preinstall: qemu-linux-user-cross-arm
234 Keep: qemu-linux-user-cross-arm
238 Preinstall: qemu-accel-armv7hl
239 Runscripts: qemu-accel-armv7hl
240 Preinstall: libmount libblkid libuuid
244 Preinstall: qemu-accel-armv7l-cross-arm
245 Runscripts: qemu-accel-armv7l-cross-arm
246 Preinstall: libmount libblkid libuuid
251 Preinstall: qemu-linux-user-cross-arm
252 Keep: qemu-linux-user-cross-arm
253 Preinstall: qemu-accel-aarch64-cross-aarch64
254 Runscripts: qemu-accel-aarch64-cross-aarch64
255 Preinstall: libmount libblkid libuuid
258 ########## exports for different architectures ##########
260 ExportFilter: \.armv7l\.rpm$ armv7l
261 ExportFilter: \.aarch64\.rpm$ aarch64
262 ExportFilter: \.x86_64\.rpm$ x86_64
264 ########## buildroot config ##########
266 Preinstall: setup filesystem
269 Preinstall: bash bzip2 coreutils diffutils grep rpm
270 Preinstall: glibc libacl libattr
272 Preinstall: libgcc_s1
273 Preinstall: libpopt sed tar zlib
274 Preinstall: libncurses libreadline
275 Preinstall: libelf libbz2
277 Preinstall: nss nspr libfreebl3 libsoftokn3
280 Preinstall: smack libsmack libxml2 libmagic libmagic-data
281 Preinstall: libsqlite
282 #Preinstall: rpm-security-plugin
283 Preinstall: util-linux
285 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux
287 Required: binutils gcc glibc rpm-build libtool
289 Support: glibc-locale
292 Support: cpio findutils
293 Support: file findutils zlib bzip2
294 Support: gzip hostname net-tools
295 Support: make patch sed gawk tar grep coreutils pkg-config
299 Support: which elfutils
300 Support: update-alternatives
302 # FIXME: TO REMOVE (? comes from IVI)
305 Keep: cpp%{gcc_version} gcc%{gcc_version} gcc%{gcc_version}-ada libstdc++%{gcc_version}
306 Keep: libstdc++%{gcc_version}-devel gcc%{gcc_version}-c++
307 Keep: cpp gcc libstdc++
309 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
310 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
311 Keep: make gmp libcap groff cpio
312 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
313 Keep: kernel-headers perl-libs perl
314 Keep: pkgconfig glib2 tizen-rpm-config
315 Keep: libmpc libmpfr libppl libgmp libppl_c
316 Keep: libcloog libppl libgmpxx
317 Keep: nss-softokn-freebl libmagic libmagic-data
319 Keep: update-alternatives
320 Prefer: libstdc++%{gcc_version} libgcc%{gcc_version}
321 Prefer: libstdc++%{gcc_version}-32bit libstdc++%{gcc_version}-64bit
323 Substitute: gettext gettext-tools
326 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
328 Substitute: glibc-devel-32bit
331 ########## compilation flags ##########
333 #%__global_cflags -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security
335 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
337 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
339 #generic arm platform
340 #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=vfpv3 -mfloat-abi=softfp -Wp,-D__SOFTFP__
342 #activate neon FPU instructions set (crosswalk build)
343 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__
345 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