tizen-4.0-unified_20180418.2
[scm/meta/build-config.git] / 4.0 / unified / standard_build.conf
1 %define _project Tizen:4.0:Unified
2
3 ### from Tizen:4.0:Base
4 %define _repository x86_64
5
6 Macros:
7 %vendor obs://private/Tizen:4.0:Unified
8 %_project Tizen:4.0:Unified
9
10 ### from Tizen:4.0:Base
11
12 %_repository x86_64
13 :Macros
14
15 ################################################################################
16 # OBS Project config for Tizen:4.0:Base
17 #
18 # RE contacts:
19 #
20 #
21 # vim: set syntax=spec:
22 ################################################################################
23
24 Patterntype: rpm-md comps
25 Release: <CI_CNT>.<B_CNT>
26 Support: build
27 Support: build-compare build-mkbaselibs
28 # Support: rpmlint-mini rpmlint-tizen
29
30 ############################# conflicts resolution #############################
31
32 Prefer: util-linux
33 Prefer: mono-wcf
34 Prefer: monodoc
35 Prefer: mono-extras
36 Prefer: mono-web
37 Prefer: mono-data
38 Prefer: mono-mvc
39 Prefer: mono-winforms
40 Prefer: mono-data-sqlite
41
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
48
49 ############################# base definition ###############################
50
51 Macros:
52 %vendor tizen
53 %_vendor tizen
54 %_with_tizen 1
55
56 %__spec_check_pre exit 0
57 %run_check_section 0
58 %opensuse_bs 1
59 %_default_patch_fuzz   2
60
61 %_binary_payload w5T.xzdio
62 :Macros
63
64
65 ############################# build config #####################################
66
67 %define gcc_version 62
68 Macros:
69 %gcc_version 62
70 :Macros
71
72 ########## targets ##########
73
74 %ifarch i586
75 Target: i686-tizen-linux
76 %endif
77
78 %ifarch armv7hl
79 Target: armv7hl-tizen-linux
80 %endif
81
82 %ifarch armv7l
83 Target: armv7l-tizen-linux
84 %endif
85
86 %ifarch aarch64
87 Target: aarch64-tizen-linux
88 %endif
89
90 ########## cross build ##########
91
92 %define build_hostarch x86_64
93 Macros:
94 %build_hostarch x86_64
95 :Macros
96
97 %ifarch %arm armv7l aarch64
98 Hostarch: x86_64
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
103 %endif
104
105 %ifarch armv7l
106 Preinstall: qemu-accel-%{build_hostarch}-armv7l
107 Runscripts: qemu-accel-%{build_hostarch}-armv7l
108 Preinstall: libmount libblkid libuuid
109 %endif
110
111 %ifarch aarch64
112 Preinstall: qemu-accel-%{build_hostarch}-aarch64
113 Runscripts: qemu-accel-%{build_hostarch}-aarch64
114 Preinstall: libmount libblkid libuuid
115 %endif # aarch64
116
117 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
118 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
119
120 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
121 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
122
123 ########## exports for different architectures ##########
124
125 ExportFilter: \.armv7l\.rpm$ armv7l
126 ExportFilter: \.aarch64\.rpm$ aarch64
127 ExportFilter: \.i586\.rpm$ i586
128 ExportFilter: \.x86_64\.rpm$ x86_64
129
130 ########## buildroot config ##########
131
132 Preinstall: setup filesystem
133 RunScripts: setup
134
135 Preinstall: bash bzip2 coreutils diffutils grep rpm
136 Preinstall: glibc libacl libattr
137 Preinstall: libcap
138 Preinstall: libgcc
139 Preinstall: libpopt sed tar zlib
140 Preinstall: libncurses libreadline
141 Preinstall: libelf libbz2
142 Preinstall: liblzma
143 Preinstall: nss nspr libfreebl3 libsoftokn3
144 Preinstall: libmagic
145 Preinstall: liblua
146 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
147 Preinstall: libsqlite
148 #Preinstall: rpm-security-plugin
149 Preinstall: util-linux util-linux-su
150
151 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols procps-ng
152
153 Required: binutils gcc glibc rpm-build libtool
154 Required: gcc-c++
155
156 Support: glibc-locale
157 Support: perl
158 Support: hostname
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
163 Support: m4  tzdata
164 Support: util-linux
165 Support: less
166 Support: which  elfutils
167 Support: update-alternatives
168 Support: libstdc++-devel
169 Support: cpp
170 Support: libatomic
171 Support: libgomp
172 Support: libitm
173
174 Keep: libstdc++-devel
175 Keep: cpp gcc libstdc++
176 Keep: pam
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
186 Keep: setup
187 Keep: update-alternatives
188 Keep: cpp
189 Keep: gcc-c++
190 Keep: libatomic
191 Keep: libgomp
192 Keep: libitm
193
194 Substitute: gettext gettext-tools
195
196 %ifarch x86_64
197 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
198 Substitute: libgcc_s1-32bit libgcc-32bit
199 %else
200 Substitute: glibc-devel-32bit
201 %endif
202
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
205
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
212
213 Macros:
214
215 ### from Tizen:4.0:Base
216
217 %_repository ia32
218 :Macros
219
220 ################################################################################
221 # OBS Project config for Tizen:4.0:Base
222 #
223 # RE contacts:
224 #
225 #
226 # vim: set syntax=spec:
227 ################################################################################
228
229 Patterntype: rpm-md comps
230 Release: <CI_CNT>.<B_CNT>
231 Support: build
232 Support: build-compare build-mkbaselibs
233 # Support: rpmlint-mini rpmlint-tizen
234
235 ############################# conflicts resolution #############################
236
237 Prefer: util-linux
238 Prefer: mono-wcf
239 Prefer: monodoc
240 Prefer: mono-extras
241 Prefer: mono-web
242 Prefer: mono-data
243 Prefer: mono-mvc
244 Prefer: mono-winforms
245 Prefer: mono-data-sqlite
246
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
253
254 ############################# base definition ###############################
255
256 Macros:
257 %vendor tizen
258 %_vendor tizen
259 %_with_tizen 1
260
261 %__spec_check_pre exit 0
262 %run_check_section 0
263 %opensuse_bs 1
264 %_default_patch_fuzz   2
265
266 %_binary_payload w5T.xzdio
267 :Macros
268
269
270 ############################# build config #####################################
271
272 %define gcc_version 62
273 Macros:
274 %gcc_version 62
275 :Macros
276
277 ########## targets ##########
278
279 %ifarch i586
280 Target: i686-tizen-linux
281 %endif
282
283 %ifarch armv7hl
284 Target: armv7hl-tizen-linux
285 %endif
286
287 %ifarch armv7l
288 Target: armv7l-tizen-linux
289 %endif
290
291 %ifarch aarch64
292 Target: aarch64-tizen-linux
293 %endif
294
295 ########## cross build ##########
296
297 %define build_hostarch x86_64
298 Macros:
299 %build_hostarch x86_64
300 :Macros
301
302 %ifarch %arm armv7l aarch64
303 Hostarch: x86_64
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
308 %endif
309
310 %ifarch armv7l
311 Preinstall: qemu-accel-%{build_hostarch}-armv7l
312 Runscripts: qemu-accel-%{build_hostarch}-armv7l
313 Preinstall: libmount libblkid libuuid
314 %endif
315
316 %ifarch aarch64
317 Preinstall: qemu-accel-%{build_hostarch}-aarch64
318 Runscripts: qemu-accel-%{build_hostarch}-aarch64
319 Preinstall: libmount libblkid libuuid
320 %endif # aarch64
321
322 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
323 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
324
325 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
326 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
327
328 ########## exports for different architectures ##########
329
330 ExportFilter: \.armv7l\.rpm$ armv7l
331 ExportFilter: \.aarch64\.rpm$ aarch64
332 ExportFilter: \.i586\.rpm$ i586
333 ExportFilter: \.x86_64\.rpm$ x86_64
334
335 ########## buildroot config ##########
336
337 Preinstall: setup filesystem
338 RunScripts: setup
339
340 Preinstall: bash bzip2 coreutils diffutils grep rpm
341 Preinstall: glibc libacl libattr
342 Preinstall: libcap
343 Preinstall: libgcc
344 Preinstall: libpopt sed tar zlib
345 Preinstall: libncurses libreadline
346 Preinstall: libelf libbz2
347 Preinstall: liblzma
348 Preinstall: nss nspr libfreebl3 libsoftokn3
349 Preinstall: libmagic
350 Preinstall: liblua
351 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
352 Preinstall: libsqlite
353 #Preinstall: rpm-security-plugin
354 Preinstall: util-linux util-linux-su
355
356 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols procps-ng
357
358 Required: binutils gcc glibc rpm-build libtool
359 Required: gcc-c++
360
361 Support: glibc-locale
362 Support: perl
363 Support: hostname
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
368 Support: m4  tzdata
369 Support: util-linux
370 Support: less
371 Support: which  elfutils
372 Support: update-alternatives
373 Support: libstdc++-devel
374 Support: cpp
375 Support: libatomic
376 Support: libgomp
377 Support: libitm
378
379 Keep: libstdc++-devel
380 Keep: cpp gcc libstdc++
381 Keep: pam
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
391 Keep: setup
392 Keep: update-alternatives
393 Keep: cpp
394 Keep: gcc-c++
395 Keep: libatomic
396 Keep: libgomp
397 Keep: libitm
398
399 Substitute: gettext gettext-tools
400
401 %ifarch x86_64
402 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
403 Substitute: libgcc_s1-32bit libgcc-32bit
404 %else
405 Substitute: glibc-devel-32bit
406 %endif
407
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
410
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:Base
416 %define _repository arm64
417
418 Macros:
419
420 ### from Tizen:4.0:Base
421
422 %_repository arm64
423 :Macros
424
425 ################################################################################
426 # OBS Project config for Tizen:4.0:Base
427 #
428 # RE contacts:
429 #
430 #
431 # vim: set syntax=spec:
432 ################################################################################
433
434 Patterntype: rpm-md comps
435 Release: <CI_CNT>.<B_CNT>
436 Support: build
437 Support: build-compare build-mkbaselibs
438 # Support: rpmlint-mini rpmlint-tizen
439
440 ############################# conflicts resolution #############################
441
442 Prefer: util-linux
443 Prefer: mono-wcf
444 Prefer: monodoc
445 Prefer: mono-extras
446 Prefer: mono-web
447 Prefer: mono-data
448 Prefer: mono-mvc
449 Prefer: mono-winforms
450 Prefer: mono-data-sqlite
451
452 # Set a preference for ambiguous libs to use *-64bit libs
453 #     *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
454 #     But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
455 #     e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
456 #     Owner : Jiyoung Yun (jy910.yun@samsung.com)
457 Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
458
459 ############################# base definition ###############################
460
461 Macros:
462 %vendor tizen
463 %_vendor tizen
464 %_with_tizen 1
465
466 %__spec_check_pre exit 0
467 %run_check_section 0
468 %opensuse_bs 1
469 %_default_patch_fuzz   2
470
471 %_binary_payload w5T.xzdio
472 :Macros
473
474
475 ############################# build config #####################################
476
477 %define gcc_version 62
478 Macros:
479 %gcc_version 62
480 :Macros
481
482 ########## targets ##########
483
484 %ifarch i586
485 Target: i686-tizen-linux
486 %endif
487
488 %ifarch armv7hl
489 Target: armv7hl-tizen-linux
490 %endif
491
492 %ifarch armv7l
493 Target: armv7l-tizen-linux
494 %endif
495
496 %ifarch aarch64
497 Target: aarch64-tizen-linux
498 %endif
499
500 ########## cross build ##########
501
502 %define build_hostarch x86_64
503 Macros:
504 %build_hostarch x86_64
505 :Macros
506
507 %ifarch %arm armv7l aarch64
508 Hostarch: x86_64
509 # cross build support for the build hosts
510 Preinstall: qemu-linux-user-%{build_hostarch}-cross
511 Runscripts: qemu-linux-user-%{build_hostarch}-cross
512 Keep: qemu-linux-user-%{build_hostarch}-cross
513 %endif
514
515 %ifarch armv7l
516 Preinstall: qemu-accel-%{build_hostarch}-armv7l
517 Runscripts: qemu-accel-%{build_hostarch}-armv7l
518 Preinstall: libmount libblkid libuuid
519 %endif
520
521 %ifarch aarch64
522 Preinstall: qemu-accel-%{build_hostarch}-aarch64
523 Runscripts: qemu-accel-%{build_hostarch}-aarch64
524 Preinstall: libmount libblkid libuuid
525 %endif # aarch64
526
527 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
528 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
529
530 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
531 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
532
533 ########## exports for different architectures ##########
534
535 ExportFilter: \.armv7l\.rpm$ armv7l
536 ExportFilter: \.aarch64\.rpm$ aarch64
537 ExportFilter: \.i586\.rpm$ i586
538 ExportFilter: \.x86_64\.rpm$ x86_64
539
540 ########## buildroot config ##########
541
542 Preinstall: setup filesystem
543 RunScripts: setup
544
545 Preinstall: bash bzip2 coreutils diffutils grep rpm
546 Preinstall: glibc libacl libattr
547 Preinstall: libcap
548 Preinstall: libgcc
549 Preinstall: libpopt sed tar zlib
550 Preinstall: libncurses libreadline
551 Preinstall: libelf libbz2
552 Preinstall: liblzma
553 Preinstall: nss nspr libfreebl3 libsoftokn3
554 Preinstall: libmagic
555 Preinstall: liblua
556 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
557 Preinstall: libsqlite
558 #Preinstall: rpm-security-plugin
559 Preinstall: util-linux util-linux-su
560
561 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols procps-ng
562
563 Required: binutils gcc glibc rpm-build libtool
564 Required: gcc-c++
565
566 Support: glibc-locale
567 Support: perl
568 Support: hostname
569 Support: cpio findutils
570 Support: file findutils zlib bzip2
571 Support: gzip hostname net-tools
572 Support: make  patch sed  gawk tar grep coreutils pkg-config
573 Support: m4  tzdata
574 Support: util-linux
575 Support: less
576 Support: which  elfutils
577 Support: update-alternatives
578 Support: libstdc++-devel
579 Support: cpp
580 Support: libatomic
581 Support: libgomp
582 Support: libitm
583
584 Keep: libstdc++-devel
585 Keep: cpp gcc libstdc++
586 Keep: pam
587 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
588 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
589 Keep: make  gmp libcap groff cpio
590 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
591 Keep: kernel-headers  perl-libs perl
592 Keep: pkgconfig glib2 tizen-rpm-config
593 Keep: libmpc libmpfr libppl libgmp libppl_c
594 Keep: libcloog libppl libgmpxx
595 Keep: nss-softokn-freebl libmagic libmagic-data
596 Keep: setup
597 Keep: update-alternatives
598 Keep: cpp
599 Keep: gcc-c++
600 Keep: libatomic
601 Keep: libgomp
602 Keep: libitm
603
604 Substitute: gettext gettext-tools
605
606 %ifarch x86_64
607 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
608 Substitute: libgcc_s1-32bit libgcc-32bit
609 %else
610 Substitute: glibc-devel-32bit
611 %endif
612
613 ########## compilation flags ##########
614 %define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
615
616 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
617 Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
618 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
619 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
620 ### from Tizen:4.0:Base
621 %define _repository arm
622
623 Macros:
624
625 ### from Tizen:4.0:Base
626
627 %_repository arm
628 :Macros
629
630 ################################################################################
631 # OBS Project config for Tizen:4.0:Base
632 #
633 # RE contacts:
634 #
635 #
636 # vim: set syntax=spec:
637 ################################################################################
638
639 Patterntype: rpm-md comps
640 Release: <CI_CNT>.<B_CNT>
641 Support: build
642 Support: build-compare build-mkbaselibs
643 # Support: rpmlint-mini rpmlint-tizen
644
645 ############################# conflicts resolution #############################
646
647 Prefer: util-linux
648 Prefer: mono-wcf
649 Prefer: monodoc
650 Prefer: mono-extras
651 Prefer: mono-web
652 Prefer: mono-data
653 Prefer: mono-mvc
654 Prefer: mono-winforms
655 Prefer: mono-data-sqlite
656
657 # Set a preference for ambiguous libs to use *-64bit libs
658 #     *-64bit libs on 32bit build environment are required for .Net build (e.g., coreclr, corefx)
659 #     But when building 64bit target, they could make 'have choice' error with original libs in 64bit repository.
660 #     e.g., libstdc++ and libstdc++-64bit provides same libs. It's ambiguous to choose appropriate one.
661 #     Owner : Jiyoung Yun (jy910.yun@samsung.com)
662 Prefer: libgcc libstdc++ libunwind libuuid zlib libopenssl
663
664 ############################# base definition ###############################
665
666 Macros:
667 %vendor tizen
668 %_vendor tizen
669 %_with_tizen 1
670
671 %__spec_check_pre exit 0
672 %run_check_section 0
673 %opensuse_bs 1
674 %_default_patch_fuzz   2
675
676 %_binary_payload w5T.xzdio
677 :Macros
678
679
680 ############################# build config #####################################
681
682 %define gcc_version 62
683 Macros:
684 %gcc_version 62
685 :Macros
686
687 ########## targets ##########
688
689 %ifarch i586
690 Target: i686-tizen-linux
691 %endif
692
693 %ifarch armv7hl
694 Target: armv7hl-tizen-linux
695 %endif
696
697 %ifarch armv7l
698 Target: armv7l-tizen-linux
699 %endif
700
701 %ifarch aarch64
702 Target: aarch64-tizen-linux
703 %endif
704
705 ########## cross build ##########
706
707 %define build_hostarch x86_64
708 Macros:
709 %build_hostarch x86_64
710 :Macros
711
712 %ifarch %arm armv7l aarch64
713 Hostarch: x86_64
714 # cross build support for the build hosts
715 Preinstall: qemu-linux-user-%{build_hostarch}-cross
716 Runscripts: qemu-linux-user-%{build_hostarch}-cross
717 Keep: qemu-linux-user-%{build_hostarch}-cross
718 %endif
719
720 %ifarch armv7l
721 Preinstall: qemu-accel-%{build_hostarch}-armv7l
722 Runscripts: qemu-accel-%{build_hostarch}-armv7l
723 Preinstall: libmount libblkid libuuid
724 %endif
725
726 %ifarch aarch64
727 Preinstall: qemu-accel-%{build_hostarch}-aarch64
728 Runscripts: qemu-accel-%{build_hostarch}-aarch64
729 Preinstall: libmount libblkid libuuid
730 %endif # aarch64
731
732 Substitute: python-accel-armv7l-cross-arm python-accel-%{build_hostarch}-armv7l
733 Substitute: python-accel-aarch64-cross-aarch64 python-accel-%{build_hostarch}-aarch64
734
735 Substitute: clang-accel-armv7l-cross-arm clang-accel-%{build_hostarch}-armv7l
736 Substitute: clang-accel-aarch64-cross-aarch64 clang-accel-%{build_hostarch}-aarch64
737
738 ########## exports for different architectures ##########
739
740 ExportFilter: \.armv7l\.rpm$ armv7l
741 ExportFilter: \.aarch64\.rpm$ aarch64
742 ExportFilter: \.i586\.rpm$ i586
743 ExportFilter: \.x86_64\.rpm$ x86_64
744
745 ########## buildroot config ##########
746
747 Preinstall: setup filesystem
748 RunScripts: setup
749
750 Preinstall: bash bzip2 coreutils diffutils grep rpm
751 Preinstall: glibc libacl libattr
752 Preinstall: libcap
753 Preinstall: libgcc
754 Preinstall: libpopt sed tar zlib
755 Preinstall: libncurses libreadline
756 Preinstall: libelf libbz2
757 Preinstall: liblzma
758 Preinstall: nss nspr libfreebl3 libsoftokn3
759 Preinstall: libmagic
760 Preinstall: liblua
761 Preinstall: smack libsmack libxml2 libmagic  libmagic-data
762 Preinstall: libsqlite
763 #Preinstall: rpm-security-plugin
764 Preinstall: util-linux util-linux-su
765
766 VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux libsmartcols procps-ng
767
768 Required: binutils gcc glibc rpm-build libtool
769 Required: gcc-c++
770
771 Support: glibc-locale
772 Support: perl
773 Support: hostname
774 Support: cpio findutils
775 Support: file findutils zlib bzip2
776 Support: gzip hostname net-tools
777 Support: make  patch sed  gawk tar grep coreutils pkg-config
778 Support: m4  tzdata
779 Support: util-linux
780 Support: less
781 Support: which  elfutils
782 Support: update-alternatives
783 Support: libstdc++-devel
784 Support: cpp
785 Support: libatomic
786 Support: libgomp
787 Support: libitm
788
789 Keep: libstdc++-devel
790 Keep: cpp gcc libstdc++
791 Keep: pam
792 Keep: binutils cpp  libmagic-data file findutils gawk gcc  gcc-c++
793 Keep: gdbm gzip libada libunwind  glibc-devel libpcre xz-lzma-compat
794 Keep: make  gmp libcap groff cpio
795 Keep: patch rpm-build  nss nspr elfutils python grep libgcc gcc-c++
796 Keep: kernel-headers  perl-libs perl
797 Keep: pkgconfig glib2 tizen-rpm-config
798 Keep: libmpc libmpfr libppl libgmp libppl_c
799 Keep: libcloog libppl libgmpxx
800 Keep: nss-softokn-freebl libmagic libmagic-data
801 Keep: setup
802 Keep: update-alternatives
803 Keep: cpp
804 Keep: gcc-c++
805 Keep: libatomic
806 Keep: libgomp
807 Keep: libitm
808
809 Substitute: gettext gettext-tools
810
811 %ifarch x86_64
812 Substitute: glibc-devel-32bit glibc-devel-32bit glibc-32bit
813 Substitute: libgcc_s1-32bit libgcc-32bit
814 %else
815 Substitute: glibc-devel-32bit
816 %endif
817
818 ########## compilation flags ##########
819 %define __global_cflags -O2 -g2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wformat-security -fmessage-length=0 -Wl,--as-needed
820
821 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
822 Optflags: aarch64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -march=armv8-a+fp+simd+crc+crypto -mtune=cortex-a57.cortex-a53
823 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
824 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
825 ### from Tizen:4.0:Unified
826 %define _repository standard
827
828 Macros:
829
830 %distribution Tizen:4.0:Unified
831 %_project Tizen:4.0:Unified
832
833 ### from Tizen:4.0:Unified
834
835 %_repository standard
836 :Macros
837
838 ################################################################################
839 # OBS Project config for Tizen:4.0:Unified
840 #
841 # vim: set syntax=spec:
842 ################################################################################
843
844 ############################# conflicts resolution #############################
845
846 FileProvides: /usr/sbin/groupadd shadow-utils
847 Prefer: bluetooth-tools-no-firmware
848
849 ############################# profile definition ###############################
850
851 %define _with_tizen 1
852
853 # For classifying debug/release mode
854 Macros:
855 %tizen_build_devel_mode 1
856 :Macros
857
858 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
859
860 Macros:
861 %release_name Tizen4/Unified
862
863 %tizen_version_major 4
864 %tizen_version_minor 0
865 %tizen_version_patch 0
866
867 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
868 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
869 %tizen %tizen_version
870 %vendor tizen
871 %_vendor tizen
872 %_with_tizen 1
873
874 %__spec_check_pre exit 0
875 %run_check_section 0
876 %opensuse_bs 1
877 %_default_patch_fuzz   2
878 :Macros
879
880 ########## mesa activation / coregl ##########
881
882 %define _with_mesa 1
883 Macros:
884 %_with_mesa 1
885 :Macros
886
887 Substitute: mesa-devel pkgconfig(glesv2)
888 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
889 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
890
891 Prefer: coregl coregl-devel
892 Prefer: libwayland-egl libwayland-egl-devel
893
894 ########## WAYLAND #########
895
896 %define _with_wayland 1
897 Macros:
898 %_with_wayland 1
899 :Macros
900
901 ########## RDP flag ##########
902
903 # enable/disable RDP (remote desktop protocol) for wayland
904 # flag: _with_rdp, used in repositories
905 # Affects: weston, freerdp
906 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
907
908 ############################# target repositories #############################
909
910 %if "%_repository" == "standard"
911
912 Prefer: mesa libgbm
913 Substitute: mesa-libGLESv2 coregl
914 Substitute: mesa-libEGL coregl
915
916 %define _with_rdp 1
917 Macros:
918 %_with_rdp 1
919 :Macros
920
921 %endif
922
923 ############################# emulator repositories ############################
924
925 %if "%_repository" == "emulator"
926
927 Prefer: libgbm
928 Prefer: emulator-yagl emulator-yagl-devel
929
930 %define _with_emulator 1
931 Macros:
932 %_with_emulator 1
933 :Macros
934
935 %endif
936
937 ############################# misc config flags ################################
938 ########## USAGE ##########
939 #
940 # IMPORTANT: please follow the following rules when playing with flags
941 # ********************************************************************
942 #
943 # In spec file, call %bcond_with macro at the beginning and test with %with:
944 # -------------------------
945 # | %bcond_with myfeature
946 # | [...]
947 # | %if %{with myfeature}
948 # | [...]
949 # | %endif
950 # | [...]
951 # -------------------------
952 #
953 # To activate an option, use:
954 # -------------------------
955 # | %define _with_myfeature 1
956 # | Macros:
957 # | %_with_myfeature 1
958 # | :Macros
959 # -------------------------
960 #
961 # To disable an option, DON'T set the values to 0, as the option would still be defined
962 # but simply comment the lines: this will undefine the option.
963 # -------------------------
964 # | #%define _with_myfeature 1
965 # | #Macros:
966 # | #%_with_myfeature 1
967 # | #:Macros
968 # -------------------------
969 #
970 # More information here:
971 # https://en.opensuse.org/openSUSE:Build_Service_prjconf#.25bcond
972 #
973
974 ########## flags ##########
975
976 # Activate introspection
977 # This is needed on GuPNP to build Rygel correctly in IVI
978 # Impacts potentially packages that use gobject-introspection
979 # Owner: Mikko <mikko.ylinen@intel.com>
980
981 Macros:
982 %_with_introspection 1
983 :Macros
984
985 ############################# other config #####################################
986 # derived from Tizen:4.0:Base
987 ################################################################################