1 %define _project Tizen:Unified
4 %define _repository standard
7 %vendor obs://private/Tizen:Unified
8 %_project Tizen:Unified
15 ################################################################################
16 # OBS Project config for Tizen:Base
21 # vim: set syntax=spec:
22 ################################################################################
24 Patterntype: rpm-md comps
25 Release: <CI_CNT>.<B_CNT>
27 Support: build-compare build-mkbaselibs
28 # Support: rpmlint-mini rpmlint-tizen
30 ############################# conflicts resolution #############################
40 Prefer: mono-data-sqlite
42 # Set a preference for ambiguous libs to use *-64bit libs
43 # *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
44 # But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
45 # e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
46 # Owner : Jiyoung Yun (jy910.yun@samsung.com)
47 Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
49 ############################# base definition ###############################
59 %_default_patch_fuzz 2
61 %_binary_payload w5T.xzdio
65 ############################# build config #####################################
67 %define gcc_version 62
72 ########## targets ##########
75 Target: i686-tizen-linux
79 Target: armv7hl-tizen-linux
83 Target: armv7l-tizen-linux
87 Target: aarch64-tizen-linux
90 ########## cross build ##########
92 %define build_hostarch x86_64
94 %build_hostarch x86_64
97 %ifarch %arm armv7l aarch64
99 # cross build support for the build hosts
100 Preinstall: qemu-linux-user-%{build_hostarch}-cross
101 Runscripts: qemu-linux-user-%{build_hostarch}-cross
102 Keep: qemu-linux-user-%{build_hostarch}-cross
106 Preinstall: qemu-accel-%{build_hostarch}-armv7l
107 Runscripts: qemu-accel-%{build_hostarch}-armv7l
108 Preinstall: libmount libblkid libuuid
112 Preinstall: qemu-accel-%{build_hostarch}-aarch64
113 Runscripts: qemu-accel-%{build_hostarch}-aarch64
114 Preinstall: libmount libblkid libuuid
117 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
118 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
120 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
121 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
123 ########## exports for different architectures ##########
125 ExportFilter: \.armv7l\.rpm$ armv7l
126 ExportFilter: \.aarch64\.rpm$ aarch64
127 ExportFilter: \.i586\.rpm$ i586
128 ExportFilter: \.x86_64\.rpm$ x86_64
130 ########## buildroot config ##########
132 Preinstall: setup filesystem
135 Preinstall: bash bzip2 coreutils diffutils grep rpm
136 Preinstall: glibc libacl libattr
139 Preinstall: libpopt sed tar zlib
140 Preinstall: libncurses libreadline
141 Preinstall: libelf libbz2
143 Preinstall: nss nspr libfreebl3 libsoftokn3
146 Preinstall: smack libsmack libxml2 libmagic libmagic-data
147 Preinstall: libsqlite
148 #Preinstall: rpm-security-plugin
149 Preinstall: util-linux util-linux-su
151 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
153 Required: binutils gcc glibc rpm-build libtool
156 Support: glibc-locale
159 Support: cpio findutils
160 Support: file findutils zlib bzip2
161 Support: gzip hostname net-tools
162 Support: make patch sed gawk tar grep coreutils pkg-config
166 Support: which elfutils
167 Support: update-alternatives
168 Support: libstdc++-devel
174 Keep: libstdc++-devel
175 Keep: cpp gcc libstdc++
177 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
178 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
179 Keep: make gmp libcap groff cpio
180 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
181 Keep: kernel-headers perl-libs perl
182 Keep: pkgconfig glib2 tizen-rpm-config
183 Keep: libmpc libmpfr libppl libgmp libppl_c
184 Keep: libcloog libppl libgmpxx
185 Keep: nss-softokn-freebl libmagic libmagic-data
187 Keep: update-alternatives
194 Substitute: gettext gettext-tools
197 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
198 Substitute: libgcc_s1-32bit libgcc-32bit
200 Substitute: glibc-devel-32bit
203 ########## compilation flags ##########
204 %define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
206 Optflags: armv7l %{__global_cflags} --param=ssp-buffer-size=4 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -mthumb -Wp,-D__SOFTFP__ -Wl,-O1 -Wl,--hash-style=gnu -Wa,-mimplicit-it=thumb
207 Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
208 Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m32 -march=i686 -mtune=i686 -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
209 Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer
210 ### from Tizen:Unified
211 %define _repository standard
215 %distribution Tizen:Unified
216 %_project Tizen:Unified
218 ### from Tizen:Unified
220 %_repository standard
223 ################################################################################
224 # OBS Project config for Tizen:Unified
226 # vim: set syntax=spec:
227 ################################################################################
229 ############################# conflicts resolution #############################
231 FileProvides: /usr/sbin/groupadd shadow-utils
232 Prefer: bluetooth-tools-no-firmware
234 ############################# profile definition ###############################
236 %define _with_tizen 1
238 # For classifying debug/release mode
240 %tizen_build_devel_mode 1
243 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
246 %release_name Tizen4/Unified
248 %tizen_version_major 4
249 %tizen_version_minor 0
250 %tizen_version_patch 0
252 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
253 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
254 %tizen %tizen_version
262 %_default_patch_fuzz 2
265 ########## mesa activation / coregl ##########
272 Substitute: mesa-devel pkgconfig(glesv2)
273 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
274 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
276 Prefer: coregl coregl-devel
277 Prefer: libwayland-egl libwayland-egl-devel
279 ########## WAYLAND #########
281 %define _with_wayland 1
286 ########## RDP flag ##########
288 # enable/disable RDP (remote desktop protocol) for wayland
289 # flag: _with_rdp, used in repositories
290 # Affects: weston, freerdp
291 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
293 ############################# target repositories #############################
295 %if "%_repository" == "standard"
298 Substitute: mesa-libGLESv2 coregl
299 Substitute: mesa-libEGL coregl
308 ############################# emulator repositories ############################
310 %if "%_repository" == "emulator"
313 Prefer: emulator-yagl emulator-yagl-devel
315 %define _with_emulator 1
322 ############################# misc config flags ################################
323 ########## USAGE ##########
325 # IMPORTANT: please follow the following rules when playing with flags
326 # ********************************************************************
328 # In spec file, call %bcond_with macro at the beginning and test with %with:
329 # -------------------------
330 # | %bcond_with myfeature
332 # | %if %{with myfeature}
336 # -------------------------
338 # To activate an option, use:
339 # -------------------------
340 # | %define _with_myfeature 1
342 # | %_with_myfeature 1
344 # -------------------------
346 # To disable an option, DON'T set the values to 0, as the option would still be defined
347 # but simply comment the lines: this will undefine the option.
348 # -------------------------
349 # | #%define _with_myfeature 1
351 # | #%_with_myfeature 1
353 # -------------------------
355 # More information here:
356 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
359 ########## flags ##########
361 # Activate introspection
362 # This is needed on GuPNP to build Rygel correctly in IVI
363 # Impacts potentially packages that use gobject-introspection
364 # Owner: Mikko <mikko.ylinen@intel.com>
367 %_with_introspection 1
370 ############################# other config #####################################
371 # derived from Tizen:Base
372 ################################################################################