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 ###############################
56 %__spec_check_pre exit 0
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:4.0:Base
211 %define _repository ia32
215 ### from Tizen:4.0:Base
220 ################################################################################
221 # OBS Project config for Tizen:4.0:Base
226 # vim: set syntax=spec:
227 ################################################################################
229 Patterntype: rpm-md comps
230 Release: <CI_CNT>.<B_CNT>
232 Support: build-compare build-mkbaselibs
233 # Support: rpmlint-mini rpmlint-tizen
235 ############################# conflicts resolution #############################
244 Prefer: mono-winforms
245 Prefer: mono-data-sqlite
247 # Set a preference for ambiguous libs to use *-64bit libs
248 # *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
249 # But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
250 # e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
251 # Owner : Jiyoung Yun (jy910.yun@samsung.com)
252 Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
254 ############################# base definition ###############################
261 %__spec_check_pre exit 0
264 %_default_patch_fuzz 2
266 %_binary_payload w5T.xzdio
270 ############################# build config #####################################
272 %define gcc_version 62
277 ########## targets ##########
280 Target: i686-tizen-linux
284 Target: armv7hl-tizen-linux
288 Target: armv7l-tizen-linux
292 Target: aarch64-tizen-linux
295 ########## cross build ##########
297 %define build_hostarch x86_64
299 %build_hostarch x86_64
302 %ifarch %arm armv7l aarch64
304 # cross build support for the build hosts
305 Preinstall: qemu-linux-user-%{build_hostarch}-cross
306 Runscripts: qemu-linux-user-%{build_hostarch}-cross
307 Keep: qemu-linux-user-%{build_hostarch}-cross
311 Preinstall: qemu-accel-%{build_hostarch}-armv7l
312 Runscripts: qemu-accel-%{build_hostarch}-armv7l
313 Preinstall: libmount libblkid libuuid
317 Preinstall: qemu-accel-%{build_hostarch}-aarch64
318 Runscripts: qemu-accel-%{build_hostarch}-aarch64
319 Preinstall: libmount libblkid libuuid
322 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
323 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
325 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
326 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
328 ########## exports for different architectures ##########
330 ExportFilter: \.armv7l\.rpm$ armv7l
331 ExportFilter: \.aarch64\.rpm$ aarch64
332 ExportFilter: \.i586\.rpm$ i586
333 ExportFilter: \.x86_64\.rpm$ x86_64
335 ########## buildroot config ##########
337 Preinstall: setup filesystem
340 Preinstall: bash bzip2 coreutils diffutils grep rpm
341 Preinstall: glibc libacl libattr
344 Preinstall: libpopt sed tar zlib
345 Preinstall: libncurses libreadline
346 Preinstall: libelf libbz2
348 Preinstall: nss nspr libfreebl3 libsoftokn3
351 Preinstall: smack libsmack libxml2 libmagic libmagic-data
352 Preinstall: libsqlite
353 #Preinstall: rpm-security-plugin
354 Preinstall: util-linux util-linux-su
356 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
358 Required: binutils gcc glibc rpm-build libtool
361 Support: glibc-locale
364 Support: cpio findutils
365 Support: file findutils zlib bzip2
366 Support: gzip hostname net-tools
367 Support: make patch sed gawk tar grep coreutils pkg-config
371 Support: which elfutils
372 Support: update-alternatives
373 Support: libstdc++-devel
379 Keep: libstdc++-devel
380 Keep: cpp gcc libstdc++
382 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
383 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
384 Keep: make gmp libcap groff cpio
385 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
386 Keep: kernel-headers perl-libs perl
387 Keep: pkgconfig glib2 tizen-rpm-config
388 Keep: libmpc libmpfr libppl libgmp libppl_c
389 Keep: libcloog libppl libgmpxx
390 Keep: nss-softokn-freebl libmagic libmagic-data
392 Keep: update-alternatives
399 Substitute: gettext gettext-tools
402 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
403 Substitute: libgcc_s1-32bit libgcc-32bit
405 Substitute: glibc-devel-32bit
408 ########## compilation flags ##########
409 %define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
411 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
412 Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
413 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
414 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
415 ### from Tizen:4.0:Unified
416 %define _repository emulator
420 %distribution Tizen:4.0:Unified / emulator
421 %_project Tizen:4.0:Unified
423 ### from Tizen:4.0:Unified
425 %_repository emulator
428 ################################################################################
429 # OBS Project config for Tizen:4.0:Unified
431 # vim: set syntax=spec:
432 ################################################################################
434 ############################# conflicts resolution #############################
436 FileProvides: /usr/sbin/groupadd shadow-utils
437 Prefer: bluetooth-tools-no-firmware
439 ############################# profile definition ###############################
441 %define _with_tizen 1
443 # For classifying debug/release mode
445 %tizen_build_devel_mode 1
448 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
451 %release_name Tizen4/Unified
453 %tizen_version_major 4
454 %tizen_version_minor 0
455 %tizen_version_patch 0
457 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
458 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
459 %tizen %tizen_version
464 %__spec_check_pre exit 0
467 %_default_patch_fuzz 2
470 ########## mesa activation / coregl ##########
477 Substitute: mesa-devel pkgconfig(glesv2)
478 Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
479 Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
481 Prefer: coregl coregl-devel
482 Prefer: libwayland-egl libwayland-egl-devel
484 ########## WAYLAND #########
486 %define _with_wayland 1
491 ########## RDP flag ##########
493 # enable/disable RDP (remote desktop protocol) for wayland
494 # flag: _with_rdp, used in repositories
495 # Affects: weston, freerdp
496 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
498 ############################# target repositories #############################
500 %if "%_repository" == "standard"
503 Substitute: mesa-libGLESv2 coregl
504 Substitute: mesa-libEGL coregl
513 ############################# emulator repositories ############################
515 %if "%_repository" == "emulator"
518 Prefer: emulator-yagl emulator-yagl-devel
520 %define _with_emulator 1
527 ############################# misc config flags ################################
528 ########## USAGE ##########
530 # IMPORTANT: please follow the following rules when playing with flags
531 # ********************************************************************
533 # In spec file, call %bcond_with macro at the beginning and test with %with:
534 # -------------------------
535 # | %bcond_with myfeature
537 # | %if %{with myfeature}
541 # -------------------------
543 # To activate an option, use:
544 # -------------------------
545 # | %define _with_myfeature 1
547 # | %_with_myfeature 1
549 # -------------------------
551 # To disable an option, DON'T set the values to 0, as the option would still be defined
552 # but simply comment the lines: this will undefine the option.
553 # -------------------------
554 # | #%define _with_myfeature 1
556 # | #%_with_myfeature 1
558 # -------------------------
560 # More information here:
561 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
564 ########## flags ##########
566 # Activate introspection
567 # This is needed on GuPNP to build Rygel correctly in IVI
568 # Impacts potentially packages that use gobject-introspection
569 # Owner: Mikko <mikko.ylinen@intel.com>
572 %_with_introspection 1
575 ############################# other config #####################################
576 # derived from Tizen:4.0:Base
577 ################################################################################