1 %define _project Tizen:4.0:Unified
3 ### from Tizen:4.0:Base
4 %define _repository x86_64
7 %vendor obs://private/Tizen:4.0:Unified
8 %_project Tizen:4.0:Unified
10 ### from Tizen:4.0:Base
15 ################################################################################
16 # OBS Project config for Tizen:4.0: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 ###############################
51 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
54 %release_name Tizen4/Unified
56 %tizen_version_major 4
57 %tizen_version_minor 0
58 %tizen_version_patch 0
60 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
61 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
67 %__spec_check_pre exit 0
70 %_default_patch_fuzz 2
72 %_binary_payload w5T.xzdio
76 ############################# build config #####################################
78 %define gcc_version 62
83 ########## targets ##########
86 Target: i686-tizen-linux
90 Target: armv7hl-tizen-linux
94 Target: armv7l-tizen-linux
98 Target: aarch64-tizen-linux
101 ########## cross build ##########
103 %define build_hostarch x86_64
105 %build_hostarch x86_64
108 %ifarch %arm armv7l aarch64
110 # cross build support for the build hosts
111 Preinstall: qemu-linux-user-%{build_hostarch}-cross
112 Runscripts: qemu-linux-user-%{build_hostarch}-cross
113 Keep: qemu-linux-user-%{build_hostarch}-cross
117 Preinstall: qemu-accel-%{build_hostarch}-armv7l
118 Runscripts: qemu-accel-%{build_hostarch}-armv7l
119 Preinstall: libmount libblkid libuuid
123 Preinstall: qemu-accel-%{build_hostarch}-aarch64
124 Runscripts: qemu-accel-%{build_hostarch}-aarch64
125 Preinstall: libmount libblkid libuuid
128 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
129 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
131 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
132 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
134 ########## exports for different architectures ##########
136 ExportFilter: \.armv7l\.rpm$ armv7l
137 ExportFilter: \.aarch64\.rpm$ aarch64
138 ExportFilter: \.i586\.rpm$ i586
139 ExportFilter: \.x86_64\.rpm$ x86_64
141 ########## buildroot config ##########
143 Preinstall: setup filesystem
146 Preinstall: bash bzip2 coreutils diffutils grep rpm
147 Preinstall: glibc libacl libattr
150 Preinstall: libpopt sed tar zlib
151 Preinstall: libncurses libreadline
152 Preinstall: libelf libbz2
154 Preinstall: nss nspr libfreebl3 libsoftokn3
157 Preinstall: smack libsmack libxml2 libmagic libmagic-data
158 Preinstall: libsqlite
159 #Preinstall: rpm-security-plugin
160 Preinstall: util-linux util-linux-su
162 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
164 Required: binutils gcc glibc rpm-build libtool
167 Support: glibc-locale
170 Support: cpio findutils
171 Support: file findutils zlib bzip2
172 Support: gzip hostname net-tools
173 Support: make patch sed gawk tar grep coreutils pkg-config
177 Support: which elfutils
178 Support: update-alternatives
179 Support: libstdc++-devel
185 Keep: libstdc++-devel
186 Keep: cpp gcc libstdc++
188 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
189 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
190 Keep: make gmp libcap groff cpio
191 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
192 Keep: kernel-headers perl-libs perl
193 Keep: pkgconfig glib2 tizen-rpm-config
194 Keep: libmpc libmpfr libppl libgmp libppl_c
195 Keep: libcloog libppl libgmpxx
196 Keep: nss-softokn-freebl libmagic libmagic-data
198 Keep: update-alternatives
205 Substitute: gettext gettext-tools
208 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
209 Substitute: libgcc_s1-32bit libgcc-32bit
211 Substitute: glibc-devel-32bit
214 ########## compilation flags ##########
215 %define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
217 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
218 Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
219 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
220 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
221 ### from Tizen:4.0:Base
222 %define _repository ia32
226 ### from Tizen:4.0:Base
231 ################################################################################
232 # OBS Project config for Tizen:4.0:Base
237 # vim: set syntax=spec:
238 ################################################################################
240 Patterntype: rpm-md comps
241 Release: <CI_CNT>.<B_CNT>
243 Support: build-compare build-mkbaselibs
244 # Support: rpmlint-mini rpmlint-tizen
246 ############################# conflicts resolution #############################
255 Prefer: mono-winforms
256 Prefer: mono-data-sqlite
258 # Set a preference for ambiguous libs to use *-64bit libs
259 # *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
260 # But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
261 # e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
262 # Owner : Jiyoung Yun (jy910.yun@samsung.com)
263 Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
265 ############################# base definition ###############################
267 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
270 %release_name Tizen4/Unified
272 %tizen_version_major 4
273 %tizen_version_minor 0
274 %tizen_version_patch 0
276 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
277 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
278 %tizen %tizen_version
283 %__spec_check_pre exit 0
286 %_default_patch_fuzz 2
288 %_binary_payload w5T.xzdio
292 ############################# build config #####################################
294 %define gcc_version 62
299 ########## targets ##########
302 Target: i686-tizen-linux
306 Target: armv7hl-tizen-linux
310 Target: armv7l-tizen-linux
314 Target: aarch64-tizen-linux
317 ########## cross build ##########
319 %define build_hostarch x86_64
321 %build_hostarch x86_64
324 %ifarch %arm armv7l aarch64
326 # cross build support for the build hosts
327 Preinstall: qemu-linux-user-%{build_hostarch}-cross
328 Runscripts: qemu-linux-user-%{build_hostarch}-cross
329 Keep: qemu-linux-user-%{build_hostarch}-cross
333 Preinstall: qemu-accel-%{build_hostarch}-armv7l
334 Runscripts: qemu-accel-%{build_hostarch}-armv7l
335 Preinstall: libmount libblkid libuuid
339 Preinstall: qemu-accel-%{build_hostarch}-aarch64
340 Runscripts: qemu-accel-%{build_hostarch}-aarch64
341 Preinstall: libmount libblkid libuuid
344 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
345 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
347 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
348 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
350 ########## exports for different architectures ##########
352 ExportFilter: \.armv7l\.rpm$ armv7l
353 ExportFilter: \.aarch64\.rpm$ aarch64
354 ExportFilter: \.i586\.rpm$ i586
355 ExportFilter: \.x86_64\.rpm$ x86_64
357 ########## buildroot config ##########
359 Preinstall: setup filesystem
362 Preinstall: bash bzip2 coreutils diffutils grep rpm
363 Preinstall: glibc libacl libattr
366 Preinstall: libpopt sed tar zlib
367 Preinstall: libncurses libreadline
368 Preinstall: libelf libbz2
370 Preinstall: nss nspr libfreebl3 libsoftokn3
373 Preinstall: smack libsmack libxml2 libmagic libmagic-data
374 Preinstall: libsqlite
375 #Preinstall: rpm-security-plugin
376 Preinstall: util-linux util-linux-su
378 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
380 Required: binutils gcc glibc rpm-build libtool
383 Support: glibc-locale
386 Support: cpio findutils
387 Support: file findutils zlib bzip2
388 Support: gzip hostname net-tools
389 Support: make patch sed gawk tar grep coreutils pkg-config
393 Support: which elfutils
394 Support: update-alternatives
395 Support: libstdc++-devel
401 Keep: libstdc++-devel
402 Keep: cpp gcc libstdc++
404 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
405 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
406 Keep: make gmp libcap groff cpio
407 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
408 Keep: kernel-headers perl-libs perl
409 Keep: pkgconfig glib2 tizen-rpm-config
410 Keep: libmpc libmpfr libppl libgmp libppl_c
411 Keep: libcloog libppl libgmpxx
412 Keep: nss-softokn-freebl libmagic libmagic-data
414 Keep: update-alternatives
421 Substitute: gettext gettext-tools
424 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
425 Substitute: libgcc_s1-32bit libgcc-32bit
427 Substitute: glibc-devel-32bit
430 ########## compilation flags ##########
431 %define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
433 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
434 Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
435 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
436 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
437 ### from Tizen:4.0:Unified
438 %define _repository emulator
442 %distribution Tizen:4.0:Unified / emulator
443 %_project Tizen:4.0:Unified
445 ### from Tizen:4.0:Unified
447 %_repository emulator
450 ################################################################################
451 # OBS Project config for Tizen:4.0:Unified
453 # vim: set syntax=spec:
454 ################################################################################
456 ############################# conflicts resolution #############################
458 FileProvides: /usr/sbin/groupadd shadow-utils
459 Prefer: bluetooth-tools-no-firmware
461 ############################# profile definition ###############################
463 %define _with_tizen 1
465 # For classifying debug/release mode
467 %tizen_build_devel_mode 1
470 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
473 %release_name Tizen4/Unified
475 %tizen_version_major 4
476 %tizen_version_minor 0
477 %tizen_version_patch 0
479 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
480 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
481 %tizen %tizen_version
486 %__spec_check_pre exit 0
489 %_default_patch_fuzz 2
492 ########## mesa activation / coregl ##########
499 Substitute: mesa-devel pkgconfig(glesv2)
500 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
501 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
503 Prefer: coregl coregl-devel
504 Prefer: libwayland-egl libwayland-egl-devel
506 ########## WAYLAND #########
508 %define _with_wayland 1
513 ########## RDP flag ##########
515 # enable/disable RDP (remote desktop protocol) for wayland
516 # flag: _with_rdp, used in repositories
517 # Affects: weston, freerdp
518 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
520 ############################# target repositories #############################
522 %if "%_repository" == "standard"
525 Substitute: mesa-libGLESv2 coregl
526 Substitute: mesa-libEGL coregl
535 ############################# emulator repositories ############################
537 %if "%_repository" == "emulator"
540 Prefer: emulator-yagl emulator-yagl-devel
542 %define _with_emulator 1
549 ############################# misc config flags ################################
550 ########## USAGE ##########
552 # IMPORTANT: please follow the following rules when playing with flags
553 # ********************************************************************
555 # In spec file, call %bcond_with macro at the beginning and test with %with:
556 # -------------------------
557 # | %bcond_with myfeature
559 # | %if %{with myfeature}
563 # -------------------------
565 # To activate an option, use:
566 # -------------------------
567 # | %define _with_myfeature 1
569 # | %_with_myfeature 1
571 # -------------------------
573 # To disable an option, DON'T set the values to 0, as the option would still be defined
574 # but simply comment the lines: this will undefine the option.
575 # -------------------------
576 # | #%define _with_myfeature 1
578 # | #%_with_myfeature 1
580 # -------------------------
582 # More information here:
583 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
586 ########## flags ##########
588 # Activate introspection
589 # This is needed on GuPNP to build Rygel correctly in IVI
590 # Impacts potentially packages that use gobject-introspection
591 # Owner: Mikko <mikko.ylinen@intel.com>
594 %_with_introspection 1
597 ############################# other config #####################################
598 # derived from Tizen:4.0:Base
599 ################################################################################