1 ################################################################################
2 # OBS Project config for Tizen:Base
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 #############################
26 Prefer: mono-data-sqlite
28 # Set a preference for ambiguous libs to use *-64bit libs
29 # *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
30 # But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
31 # e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
32 # Owner : Jiyoung Yun (jy910.yun@samsung.com)
33 # libopenssl11 : Dongsun Lee (ds73.lee@samsung.com)
34 Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl libopenssl11
36 ############################# base definition ###############################
38 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
41 %release_name Tizen6/Unified
43 %tizen_version_major 6
44 %tizen_version_minor 0
45 %tizen_version_patch 0
47 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
48 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
54 #### %__spec_check_pre exit 0
55 #### %run_check_section 0
58 %_default_patch_fuzz 2
60 %_binary_payload w5T.xzdio
64 ############################# build config #####################################
66 ########## targets ##########
69 Target: i686-tizen-linux
73 Target: armv7hl-tizen-linux
77 Target: armv7l-tizen-linux
81 Target: aarch64-tizen-linux
84 ########## cross build ##########
86 %define build_hostarch x86_64
88 %build_hostarch x86_64
91 %ifarch %arm armv7l aarch64
93 # cross build support for the build hosts
94 Preinstall: qemu-linux-user-%{build_hostarch}-cross
95 Runscripts: qemu-linux-user-%{build_hostarch}-cross
96 Keep: qemu-linux-user-%{build_hostarch}-cross
98 %qemu_user_space_build 1
103 Preinstall: qemu-accel-%{build_hostarch}-armv7l
104 Runscripts: qemu-accel-%{build_hostarch}-armv7l
105 Preinstall: libmount libblkid libuuid
109 Preinstall: qemu-accel-%{build_hostarch}-aarch64
110 Runscripts: qemu-accel-%{build_hostarch}-aarch64
111 Preinstall: libmount libblkid libuuid
114 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
115 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
117 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
118 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
120 ########## exports for different architectures ##########
122 ExportFilter: \.armv7l\.rpm$ armv7l
123 ExportFilter: \.aarch64\.rpm$ aarch64
124 ExportFilter: \.i586\.rpm$ i586
125 ExportFilter: \.x86_64\.rpm$ x86_64
127 ########## buildroot config ##########
129 Preinstall: setup filesystem
132 Preinstall: bash bzip2 coreutils diffutils grep rpm
133 Preinstall: glibc libacl libattr
136 Preinstall: libpopt sed tar zlib
137 Preinstall: libncurses libreadline
138 Preinstall: libelf libbz2
140 Preinstall: nss nspr libfreebl3 libsoftokn3
143 Preinstall: smack libsmack libxml2 libmagic libmagic-data
144 Preinstall: libsqlite
145 #Preinstall: rpm-security-plugin
146 Preinstall: util-linux util-linux-su
148 VMinstall: perl libmount libblkid libext2fs libuuid grep libpcre util-linux libsmartcols procps-ng
150 Required: binutils gcc glibc rpm-build libtool
153 Support: glibc-locale
156 Support: cpio findutils
157 Support: file findutils zlib bzip2
158 Support: gzip hostname net-tools
159 Support: make patch sed gawk tar grep coreutils pkg-config
163 Support: which elfutils
164 Support: update-alternatives
165 Support: libstdc++-devel
171 Keep: libstdc++-devel
172 Keep: cpp gcc libstdc++
174 Keep: binutils cpp libmagic-data file findutils gawk gcc gcc-c++
175 Keep: gdbm gzip libada libunwind glibc-devel libpcre xz-lzma-compat
176 Keep: make gmp libcap groff cpio
177 Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++
178 Keep: kernel-headers perl-libs perl
179 Keep: pkgconfig glib2 tizen-rpm-config
180 Keep: libmpc libmpfr libppl libgmp libppl_c
181 Keep: libcloog libppl libgmpxx
182 Keep: nss-softokn-freebl libmagic libmagic-data
184 Keep: update-alternatives
191 Substitute: gettext gettext-tools
194 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
195 Substitute: libgcc_s1-32bit libgcc-32bit
197 Substitute: glibc-devel-32bit
200 ########## compilation flags ##########
201 %define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -Wformat-security -fmessage-length=0 -frecord-gcc-switches -Wl,-z,relro,--as-needed
203 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
204 Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
205 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 -mstackrealign -Wl,-z,noseparate-code
206 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