add ARM linker patch
[platform/upstream/gcc48.git] / packaging / gcc47.spec
1 %define fast_build 1
2
3 # Ada currently fails to build on a few platforms, enable it only
4 # on those that work
5 # Note that AdaCore only supports %ix86, x86_64 and ia64
6 %ifarch %ix86 x86_64
7 %define build_ada !0%{?building_libjava:1}%{?building_libffi:1}
8 %else
9 %define build_ada 0
10 %endif
11
12 %define quadmath_arch %ix86 x86_64 ia64
13
14 # We don't want to build java
15 %ifarch mips
16 %define build_java 0
17 %define build_libjava 0
18 %else
19 %define build_java 1
20 %define build_libjava 0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
21 %endif
22
23 %define build_cp 1
24 %define build_fortran 1
25 %define build_objc 1
26 %define build_objcp !0%{?building_libjava:1}%{?building_libffi:1}
27 %define build_with_mudflap 0
28
29 %if %{build_objcp}
30 %define build_cp 1
31 %define build_objc 1
32 %endif
33
34 %if %{build_libjava}
35 %define build_cp 1
36 %endif
37
38 # For optional compilers only build C, C++ and Fortran
39 ##%if 0%{?build_optional_compiler:1}%{?build_optional_compiler_languages:1}
40 %if 0%{!?building_libffi:1}
41 %define build_ada 0
42 %define build_java 0
43 %define build_libjava 0
44 %define build_objc 1
45 %define build_objcp 1
46 %endif
47
48
49 Name:         gcc47
50 BuildRequires: bison
51 BuildRequires: flex
52 BuildRequires: gettext-tools
53 BuildRequires: makeinfo
54 BuildRequires: glibc-devel-32bit
55 BuildRequires: mpc-devel
56 BuildRequires: mpfr-devel
57 BuildRequires: perl
58 BuildRequires: texinfo
59 BuildRequires: zlib-devel
60 %ifarch %ix86 x86_64 %arm
61 BuildRequires: cloog-devel
62 BuildRequires: ppl-devel
63 %endif
64 %if %{build_ada}
65 %define hostsuffix -4.7
66 BuildRequires: gcc47-ada
67 %endif
68 %if 0%{?building_libjava:1}%{?building_testsuite:1}
69 BuildRequires: fastjar
70 BuildRequires: unzip
71 %endif
72 %if 0%{?building_libffi:1}
73 BuildRequires: pkg-config
74 %endif
75 %ifarch ia64
76 BuildRequires: libunwind-devel
77 %endif
78 %if 0%{?run_tests:1}
79 BuildRequires: dejagnu
80 BuildRequires: expect
81 BuildRequires: gdb
82 %endif
83
84 # Define version number of libgcc_s
85 %ifarch hppa
86 %define libgcc_s 4
87 %else
88 %define libgcc_s 1
89 %endif
90 %ifarch ppc
91 # We support building the nof libraries, but don't want this in the
92 # regular rpms
93 %define build_nof 0
94 %else
95 %define build_nof 0
96 %endif
97
98 %define separate_bi32 0
99 %define separate_bi64 0
100 %ifarch x86_64 
101 %define separate_bi32 1
102 %endif
103
104 # Define two macros to trigger -32bit or -64bit package variants
105 %define separate_biarch 0
106 %if %{separate_bi32}
107 %define separate_biarch 1
108 %define separate_biarch_suffix -32bit
109 %endif
110 %if %{separate_bi64}
111 %define separate_biarch 1
112 %define separate_biarch_suffix -64bit
113 %endif
114
115 %ifarch x86_64
116 # 64-bit is primary build target
117 %define build_primary_64bit 1
118 %else
119 %define build_primary_64bit 0
120 %endif
121
122 %define biarch_libjava 0
123
124 # COMMON-BEGIN
125 %define biarch_targets x86_64 
126
127 URL:          http://gcc.gnu.org/
128 Version: 4.7.2
129 Release:      1
130 %define gcc_version %(echo %version | sed 's/_.*//')
131 %define gcc_dir_version %(echo %gcc_version | cut -d '.' -f 1-2)
132 %define snapshot_date %(echo %version | sed 's/[34]\.[0-9]\.[0-6]//' | sed 's/_/-/')
133 %define binsuffix -4.7
134 # COMMON-END
135
136 %if !0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
137 Requires: binutils glibc-devel
138 Requires: cpp47 = %{version}-%{release}
139 %if 0%{!?build_optional_compiler:1}
140 Requires: libgcc%{libgcc_s} >= %{version}-%{release}
141 Requires: libgomp1 >= %{version}-%{release}
142 %if %{build_with_mudflap}
143 Requires: libmudflap0 >= %{version}-%{release}
144 Requires: libmudflapth0 >= %{version}-%{release}
145 %endif
146 %else
147 Requires: libgcc47 = %{version}-%{release}
148 Requires: libgomp47 = %{version}-%{release}
149 %endif
150 %endif
151
152 # COMMON-BEGIN
153 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
154 #Source:                gcc-%{gcc_version}%{snapshot_date}.tar.bz2
155 Source:     gcc-%{version}.tar.bz2
156
157 Source1:        change_spec
158 Source2:        libgcj47-rpmlintrc
159 Source3:        gcc47-rpmlintrc
160 Source4:        ecj.jar
161 Source6:        baselibs.conf
162 # Patches auto-generated by git-buildpackage:
163 Patch0:     0001-dir-version.patch
164 Patch1:     0002-textdomain.patch
165 Patch2:     0003-rename-info-files.patch
166 Patch3:     0004-ARM-linker.patch
167
168 # GCC-TESTSUITE-DELETE-BEGIN
169 # LIBFFI-DELETE-BEGIN
170 # LIBJAVA-DELETE-BEGIN
171 Group:          Development/Languages/C and C++
172 Summary:        The GNU C Compiler and Support Files
173 License:        GPL-3.0+
174
175 %description
176 Core package for the GNU Compiler Collection, including the C language
177 frontend.
178
179 Language frontends other than C are split to different sub-packages,
180 namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
181 gcc-obj-c++.
182
183
184
185 # COMMON-END
186 %package -n gcc47-32bit
187 Summary:      The GNU C Compiler 32bit support
188 Group:        Development/Languages/C and C++
189 Requires: gcc47 = %{version}-%{release}
190 %if 0%{!?build_optional_compiler:1}
191 Requires: libgcc%{libgcc_s}-32bit >= %{version}-%{release}
192 Requires: libgomp1-32bit >= %{version}-%{release}
193 %if %{build_with_mudflap}
194 Requires: libmudflap0-32bit >= %{version}-%{release}
195 Requires: libmudflapth0-32bit >= %{version}-%{release}
196 %endif
197 %else
198 Requires: libgcc47-32bit = %{version}-%{release}
199 Requires: libgomp47-32bit = %{version}-%{release}
200 %endif
201 Requires: glibc-devel-32bit
202
203 %description -n gcc47-32bit
204 This package contains 32bit support for the GNU Compiler Collection.
205
206 %package -n gcc47-64bit
207 Summary:      The GNU C Compiler 64bit support
208 Group:        Development/Languages/C and C++
209 Requires: gcc47 = %{version}-%{release}
210 %if 0%{!?build_optional_compiler:1}
211 Requires: libgcc%{libgcc_s}-64bit >= %{version}-%{release}
212 Requires: libgomp1-64bit >= %{version}-%{release}
213 %if %{build_with_mudflap}
214 Requires: libmudflap0-64bit >= %{version}-%{release}
215 Requires: libmudflapth0-64bit >= %{version}-%{release}
216 %endif
217 %else
218 Requires: libgcc47-64bit = %{version}-%{release}
219 Requires: libgomp47-64bit = %{version}-%{release}
220 %endif
221 Requires: glibc-devel-64bit
222
223 %description -n gcc47-64bit
224 This package contains 64bit support for the GNU Compiler Collection.
225
226
227 %package locale
228 Summary:      Locale Data for the GNU Compiler Collection
229 License:        GPL-3.0+
230 Group:        Development/Languages/C and C++
231 Requires: gcc47 = %{version}-%{release}
232
233 %description locale
234 Locale data for the GNU Compiler Collection (GCC) to give error message
235 in the current locale.
236
237
238 %package c++
239 Summary:      The GNU C++ Compiler
240 License:        GPL-3.0+
241 Group:        Development/Languages/C and C++
242 Requires: gcc47 = %{version}-%{release}
243 Requires: libstdc++47-devel = %{version}-%{release}
244
245 %description c++
246 This package contains the GNU compiler for C++.
247
248 # PACKAGE-BEGIN
249 # PACKAGE-BEGIN
250 %package -n libstdc++47-devel
251 Summary:      Include Files and Libraries mandatory for Development
252 License:        GPL-3.0-with-GCC-exception
253 Group:        Development/Languages/C and C++
254 %if 0%{!?build_optional_compiler:1}
255 Requires: libstdc++6 >= %{version}-%{release}
256 %else
257 Requires: libstdc++47 = %{version}-%{release}
258 %endif
259 Requires: glibc-devel
260 %ifarch ia64
261 Requires: libunwind-devel
262 %endif
263
264 %description -n libstdc++47-devel
265 This package contains all the headers and libraries of the standard C++
266 library. It is needed for compiling C++ code.
267 # PACKAGE-END
268 # PACKAGE-BEGIN
269 # PACKAGE-BEGIN
270 %package -n libstdc++47-devel-32bit
271 Summary:      Include Files and Libraries mandatory for Development
272 License:        GPL-3.0-with-GCC-exception
273 Group:        Development/Languages/C and C++
274 %if 0%{!?build_optional_compiler:1}
275 Requires: libstdc++6-32bit >= %{version}-%{release}
276 %else
277 Requires: libstdc++47-32bit = %{version}-%{release}
278 %endif
279 Requires: glibc-devel-32bit
280 %ifarch ia64
281 Requires: libunwind-devel
282 %endif
283
284 %description -n libstdc++47-devel-32bit
285 This package contains all the headers and libraries of the standard C++
286 library. It is needed for compiling C++ code.
287 # PACKAGE-END
288 # PACKAGE-BEGIN
289 # PACKAGE-BEGIN
290 %package -n libstdc++47-devel-64bit
291 Summary:      Include Files and Libraries mandatory for Development
292 License:        GPL-3.0-with-GCC-exception
293 Group:        Development/Languages/C and C++
294 %if 0%{!?build_optional_compiler:1}
295 Requires: libstdc++6-64bit >= %{version}-%{release}
296 %else
297 Requires: libstdc++47-64bit = %{version}-%{release}
298 %endif
299 Requires: glibc-devel-64bit
300 %ifarch ia64
301 Requires: libunwind-devel
302 %endif
303
304 %description -n libstdc++47-devel-64bit
305 This package contains all the headers and libraries of the standard C++
306 library. It is needed for compiling C++ code.
307 # PACKAGE-END
308
309 %package -n libstdc++47-doc
310 Summary:      Documentation for the GNU C++ standard library
311 License:        GPL-3.0+
312 Group:        Documentation/HTML
313 BuildArch:    noarch
314
315 %description -n libstdc++47-doc
316 Extensive HTML documentation for the GNU C++ standard library.
317
318
319 # PACKAGE-BEGIN
320 # PACKAGE-BEGIN
321 %package -n libgcc47
322 Summary:      C compiler runtime library
323 License:        GPL-3.0-with-GCC-exception
324 Group:        System/Base
325 %if 0%{!?build_optional_compiler:1}
326 Provides: libgcc%{libgcc_s} = %{version}-%{release}
327 Conflicts: libgcc%{libgcc_s} < %{version}-%{release}
328 %else
329 Autoprov: no
330 %endif
331
332 %description -n libgcc47
333 Libgcc is needed for dynamically linked C programs.
334
335 %post -n libgcc47
336 /sbin/ldconfig
337
338 %postun -n libgcc47
339 /sbin/ldconfig
340 # PACKAGE-END
341 # PACKAGE-BEGIN
342 # PACKAGE-BEGIN
343 %package -n libgcc47-32bit
344 Summary:      C compiler runtime library
345 License:        GPL-3.0-with-GCC-exception
346 Group:        System/Base
347 %if 0%{!?build_optional_compiler:1}
348 Provides: libgcc%{libgcc_s}-32bit = %{version}-%{release}
349 Conflicts: libgcc%{libgcc_s}-32bit < %{version}-%{release}
350 %else
351 Autoprov: no
352 %endif
353
354 %description -n libgcc47-32bit
355 Libgcc is needed for dynamically linked C programs.
356
357 %post -n libgcc47-32bit
358 /sbin/ldconfig
359
360 %postun -n libgcc47-32bit
361 /sbin/ldconfig
362 # PACKAGE-END
363 # PACKAGE-BEGIN
364 # PACKAGE-BEGIN
365 %package -n libgcc47-64bit
366 Summary:      C compiler runtime library
367 License:        GPL-3.0-with-GCC-exception
368 Group:        System/Base
369 %if 0%{!?build_optional_compiler:1}
370 Provides: libgcc%{libgcc_s}-64bit = %{version}-%{release}
371 Conflicts: libgcc%{libgcc_s}-64bit < %{version}-%{release}
372 %else
373 Autoprov: no
374 %endif
375
376 %description -n libgcc47-64bit
377 Libgcc is needed for dynamically linked C programs.
378
379 %post -n libgcc47-64bit
380 /sbin/ldconfig
381
382 %postun -n libgcc47-64bit
383 /sbin/ldconfig
384 # PACKAGE-END
385
386 # PACKAGE-BEGIN
387 # PACKAGE-BEGIN
388 %package -n libgomp47
389 Summary:      The GNU compiler collection OpenMP runtime library
390 License:        GPL-3.0-with-GCC-exception
391 Group:        System/Base
392 %if 0%{!?build_optional_compiler:1}
393 Provides: libgomp1 = %{version}-%{release}
394 Conflicts: libgomp1 < %{version}-%{release}
395 %else
396 Autoprov: no
397 %endif
398
399 %description -n libgomp47
400 This is the OpenMP runtime library needed by OpenMP enabled programs
401 that were built with the -fopenmp compiler option and by programs that
402 were auto-parallelized via the -ftree-parallelize-loops compiler
403 option.
404
405
406 %post -n libgomp47
407 /sbin/ldconfig
408
409 %postun -n libgomp47
410 /sbin/ldconfig
411 # PACKAGE-END
412 # PACKAGE-BEGIN
413 # PACKAGE-BEGIN
414 %package -n libgomp47-32bit
415 Summary:      The GNU compiler collection OpenMP runtime library
416 License:        GPL-3.0-with-GCC-exception
417 Group:        System/Base
418 %if 0%{!?build_optional_compiler:1}
419 Provides: libgomp1-32bit = %{version}-%{release}
420 Conflicts: libgomp1-32bit < %{version}-%{release}
421 %else
422 Autoprov: no
423 %endif
424
425 %description -n libgomp47-32bit
426 This is the OpenMP runtime library needed by OpenMP enabled programs
427 that were built with the -fopenmp compiler option and by programs that
428 were auto-parallelized via the -ftree-parallelize-loops compiler
429 option.
430
431
432 %post -n libgomp47-32bit
433 /sbin/ldconfig
434
435 %postun -n libgomp47-32bit
436 /sbin/ldconfig
437 # PACKAGE-END
438 # PACKAGE-BEGIN
439 # PACKAGE-BEGIN
440 %package -n libgomp47-64bit
441 Summary:      The GNU compiler collection OpenMP runtime library
442 License:        GPL-3.0-with-GCC-exception
443 Group:        System/Base
444 %if 0%{!?build_optional_compiler:1}
445 Provides: libgomp1-64bit = %{version}-%{release}
446 Conflicts: libgomp1-64bit < %{version}-%{release}
447 %else
448 Autoprov: no
449 %endif
450
451 %description -n libgomp47-64bit
452 This is the OpenMP runtime library needed by OpenMP enabled programs
453 that were built with the -fopenmp compiler option and by programs that
454 were auto-parallelized via the -ftree-parallelize-loops compiler
455 option.
456
457
458 %post -n libgomp47-64bit
459 /sbin/ldconfig
460
461 %postun -n libgomp47-64bit
462 /sbin/ldconfig
463 # PACKAGE-END
464
465 # PACKAGE-BEGIN
466 # PACKAGE-BEGIN
467 %package -n libstdc++47
468 Summary:      The standard C++ shared library
469 License:        GPL-3.0-with-GCC-exception
470 Group:        System/Libraries
471 %if 0%{!?build_optional_compiler:1}
472 Provides: libstdc++6 = %{version}-%{release}
473 Conflicts: libstdc++6 < %{version}-%{release}
474 %else
475 Autoprov: no
476 %endif
477
478 %description -n libstdc++47
479 The standard C++ library, needed for dynamically linked C++ programs.
480
481
482 %post -n libstdc++47
483 /sbin/ldconfig
484
485 %postun -n libstdc++47
486 /sbin/ldconfig
487 # PACKAGE-END
488 # PACKAGE-BEGIN
489 # PACKAGE-BEGIN
490 %package -n libstdc++47-32bit
491 Summary:      The standard C++ shared library
492 License:        GPL-3.0-with-GCC-exception
493 Group:        System/Libraries
494 %if 0%{!?build_optional_compiler:1}
495 Provides: libstdc++6-32bit = %{version}-%{release}
496 Conflicts: libstdc++6-32bit < %{version}-%{release}
497 %else
498 Autoprov: no
499 %endif
500
501 %description -n libstdc++47-32bit
502 The standard C++ library, needed for dynamically linked C++ programs.
503
504
505 %post -n libstdc++47-32bit
506 /sbin/ldconfig
507
508 %postun -n libstdc++47-32bit
509 /sbin/ldconfig
510 # PACKAGE-END
511 # PACKAGE-BEGIN
512 # PACKAGE-BEGIN
513 %package -n libstdc++47-64bit
514 Summary:      The standard C++ shared library
515 License:        GPL-3.0-with-GCC-exception
516 Group:        System/Libraries
517 %if 0%{!?build_optional_compiler:1}
518 Provides: libstdc++6-64bit = %{version}-%{release}
519 Conflicts: libstdc++6-64bit < %{version}-%{release}
520 %else
521 Autoprov: no
522 %endif
523
524 %description -n libstdc++47-64bit
525 The standard C++ library, needed for dynamically linked C++ programs.
526
527
528 %post -n libstdc++47-64bit
529 /sbin/ldconfig
530
531 %postun -n libstdc++47-64bit
532 /sbin/ldconfig
533 # PACKAGE-END
534
535
536 %package info
537 Summary:      Documentation for the GNU compiler collection
538 License:      GFDL-1.2
539 Group:        Documentation/Other
540 BuildArch:    noarch
541
542 %description info
543 GNU info-pages for the GNU compiler collection covering both user-level
544 and internals documentation.
545
546
547 # PACKAGE-BEGIN
548 # PACKAGE-BEGIN
549 %package objc
550 Summary:      GNU Objective C Compiler
551 License:        GPL-3.0+
552 Group:        Development/Languages/Other
553 Requires: gcc47 = %{version}-%{release}
554 Requires: libobjc2 >= %{version}-%{release}
555
556 %description objc
557 This package contains the GNU Objective C compiler. Objective C is an
558 object oriented language, created by Next Inc. and used in their
559 Nextstep OS. The source code is available in the gcc package.
560 # PACKAGE-END
561 # PACKAGE-BEGIN
562 # PACKAGE-BEGIN
563 %package objc-32bit
564 Summary:      GNU Objective C Compiler
565 License:        GPL-3.0+
566 Group:        Development/Languages/Other
567 Requires: gcc47 = %{version}-%{release}
568 Requires: libobjc2-32bit >= %{version}-%{release}
569
570 %description objc-32bit
571 This package contains the GNU Objective C compiler. Objective C is an
572 object oriented language, created by Next Inc. and used in their
573 Nextstep OS. The source code is available in the gcc package.
574 # PACKAGE-END
575 # PACKAGE-BEGIN
576 # PACKAGE-BEGIN
577 %package objc-64bit
578 Summary:      GNU Objective C Compiler
579 License:        GPL-3.0+
580 Group:        Development/Languages/Other
581 Requires: gcc47 = %{version}-%{release}
582 Requires: libobjc2-64bit >= %{version}-%{release}
583
584 %description objc-64bit
585 This package contains the GNU Objective C compiler. Objective C is an
586 object oriented language, created by Next Inc. and used in their
587 Nextstep OS. The source code is available in the gcc package.
588 # PACKAGE-END
589
590 # PACKAGE-BEGIN
591 # PACKAGE-BEGIN
592 %package -n libobjc47
593 Summary:      Library for the GNU Objective C Compiler
594 License:        GPL-3.0-with-GCC-exception
595 Group:        Development/Libraries/Other
596 Provides: libobjc2 = %{version}-%{release}
597 Conflicts: libobjc2 < %{version}-%{release}
598
599 %description -n libobjc47
600 The library for the GNU Objective C compiler.
601
602 %post -n libobjc47
603 /sbin/ldconfig
604
605 %postun -n libobjc47
606 /sbin/ldconfig
607 # PACKAGE-END
608 # PACKAGE-BEGIN
609 # PACKAGE-BEGIN
610 %package -n libobjc47-32bit
611 Summary:      Library for the GNU Objective C Compiler
612 License:        GPL-3.0-with-GCC-exception
613 Group:        Development/Libraries/Other
614 Provides: libobjc2-32bit = %{version}-%{release}
615 Conflicts: libobjc2-32bit < %{version}-%{release}
616
617 %description -n libobjc47-32bit
618 The library for the GNU Objective C compiler.
619
620 %post -n libobjc47-32bit
621 /sbin/ldconfig
622
623 %postun -n libobjc47-32bit
624 /sbin/ldconfig
625 # PACKAGE-END
626 # PACKAGE-BEGIN
627 # PACKAGE-BEGIN
628 %package -n libobjc47-64bit
629 Summary:      Library for the GNU Objective C Compiler
630 License:        GPL-3.0-with-GCC-exception
631 Group:        Development/Libraries/Other
632 Provides: libobjc2-64bit = %{version}-%{release}
633 Conflicts: libobjc2-64bit < %{version}-%{release}
634
635 %description -n libobjc47-64bit
636 The library for the GNU Objective C compiler.
637
638 %post -n libobjc47-64bit
639 /sbin/ldconfig
640
641 %postun -n libobjc47-64bit
642 /sbin/ldconfig
643 # PACKAGE-END
644
645 %package obj-c++
646 Summary:      GNU Objective C++ Compiler
647 License:        GPL-3.0+
648 Group:        Development/Languages/Other
649 Requires: gcc47-objc = %{version}-%{release}
650 Requires: gcc47-c++ = %{version}-%{release}
651
652 %description obj-c++
653 This package contains the GNU Objective C++ compiler. Objective C++ is an
654 object oriented language, created by Next Inc. and used in their
655 Nextstep OS. The source code is available in the gcc package.
656
657
658 %package -n cpp47
659 Summary:      The GCC Preprocessor
660 License:        GPL-3.0+
661 Group:        Development/Languages/C and C++
662
663 %description -n cpp47
664 This Package contains just the preprocessor that is used by the X11
665 packages.
666
667
668 # PACKAGE-BEGIN
669 # PACKAGE-BEGIN
670 %package ada
671 Summary:      GNU Ada95 Compiler Based on GCC (GNAT)
672 License:        GPL-3.0+
673 Group:        Development/Languages/Other
674 Requires: gcc47 = %{version}-%{release}
675 Requires: libada47 = %{version}-%{release}
676
677 %description ada
678 This package contains an Ada95 compiler and associated development
679 tools based on the GNU GCC technology. Ada95 is the object oriented
680 successor of the Ada83 language. To build this package from source you
681 must have installed a binary version to bootstrap the compiler.
682 # PACKAGE-END
683 # PACKAGE-BEGIN
684 # PACKAGE-BEGIN
685 %package ada-32bit
686 Summary:      GNU Ada95 Compiler Based on GCC (GNAT)
687 License:        GPL-3.0+
688 Group:        Development/Languages/Other
689 Requires: gcc47-32bit = %{version}-%{release}
690 Requires: libada47-32bit = %{version}-%{release}
691
692 %description ada-32bit
693 This package contains an Ada95 compiler and associated development
694 tools based on the GNU GCC technology. Ada95 is the object oriented
695 successor of the Ada83 language. To build this package from source you
696 must have installed a binary version to bootstrap the compiler.
697 # PACKAGE-END
698 # PACKAGE-BEGIN
699 # PACKAGE-BEGIN
700 %package ada-64bit
701 Summary:      GNU Ada95 Compiler Based on GCC (GNAT)
702 License:        GPL-3.0+
703 Group:        Development/Languages/Other
704 Requires: gcc47-64bit = %{version}-%{release}
705 Requires: libada47-64bit = %{version}-%{release}
706
707 %description ada-64bit
708 This package contains an Ada95 compiler and associated development
709 tools based on the GNU GCC technology. Ada95 is the object oriented
710 successor of the Ada83 language. To build this package from source you
711 must have installed a binary version to bootstrap the compiler.
712 # PACKAGE-END
713
714 # PACKAGE-BEGIN
715 # PACKAGE-BEGIN
716 %package -n libada47
717 Summary:      GNU Ada Runtime Libraries
718 License:      GPL-3.0-with-GCC-exception
719 Group:        System/Libraries
720 Provides: libgnarl-4_7 = %{version}-%{release}
721 Conflicts: libgnarl-4_7 < %{version}-%{release}
722 Provides: libgnat-4_7 = %{version}-%{release}
723 Conflicts: libgnat-4_7 < %{version}-%{release}
724
725 %description -n libada47
726 This package contains the shared libraries required to run programs
727 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
728 shared libraries. It also contains the shared libraries for the
729 Implementation of the Ada Semantic Interface Specification (ASIS), the
730 implementation of Distributed Systems Programming (GLADE) and the Posix
731 1003.5 Binding (Florist).
732
733 %post -n libada47
734 /sbin/ldconfig
735
736 %postun -n libada47
737 /sbin/ldconfig
738 # PACKAGE-END
739 # PACKAGE-BEGIN
740 # PACKAGE-BEGIN
741 %package -n libada47-32bit
742 Summary:      GNU Ada Runtime Libraries
743 License:      GPL-3.0-with-GCC-exception
744 Group:        System/Libraries
745 Provides: libgnarl-4_7-32bit = %{version}-%{release}
746 Conflicts: libgnarl-4_7-32bit < %{version}-%{release}
747 Provides: libgnat-4_7-32bit = %{version}-%{release}
748 Conflicts: libgnat-4_7-32bit < %{version}-%{release}
749
750 %description -n libada47-32bit
751 This package contains the shared libraries required to run programs
752 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
753 shared libraries. It also contains the shared libraries for the
754 Implementation of the Ada Semantic Interface Specification (ASIS), the
755 implementation of Distributed Systems Programming (GLADE) and the Posix
756 1003.5 Binding (Florist).
757
758 %post -n libada47-32bit
759 /sbin/ldconfig
760
761 %postun -n libada47-32bit
762 /sbin/ldconfig
763 # PACKAGE-END
764 # PACKAGE-BEGIN
765 # PACKAGE-BEGIN
766 %package -n libada47-64bit
767 Summary:      GNU Ada Runtime Libraries
768 License:      GPL-3.0-with-GCC-exception
769 Group:        System/Libraries
770 Provides: libgnarl-4_7-64bit = %{version}-%{release}
771 Conflicts: libgnarl-4_7-64bit < %{version}-%{release}
772 Provides: libgnat-4_7-64bit = %{version}-%{release}
773 Conflicts: libgnat-4_7-64bit < %{version}-%{release}
774
775 %description -n libada47-64bit
776 This package contains the shared libraries required to run programs
777 compiled with the GNU Ada compiler (GNAT) if they are compiled to use
778 shared libraries. It also contains the shared libraries for the
779 Implementation of the Ada Semantic Interface Specification (ASIS), the
780 implementation of Distributed Systems Programming (GLADE) and the Posix
781 1003.5 Binding (Florist).
782
783 %post -n libada47-64bit
784 /sbin/ldconfig
785
786 %postun -n libada47-64bit
787 /sbin/ldconfig
788 # PACKAGE-END
789
790 # PACKAGE-BEGIN
791 # PACKAGE-BEGIN
792 %package fortran
793 Summary:      The GNU Fortran Compiler and Support Files
794 License:        GPL-3.0+
795 Group:        Development/Languages/Fortran
796 Requires: gcc47 = %{version}-%{release}
797 %if 0%{!?build_optional_compiler:1}
798 Requires: libgfortran3 >= %{version}-%{release}
799 %ifarch %quadmath_arch
800 Requires: libquadmath0 >= %{version}-%{release}
801 %endif
802 %else
803 Requires: libgfortran47 = %{version}-%{release}
804 %ifarch %quadmath_arch
805 Requires: libquadmath47 = %{version}-%{release}
806 %endif
807 %endif
808
809 %description fortran
810 This is the Fortran compiler of the GNU Compiler Collection (GCC).
811 # PACKAGE-END
812 # PACKAGE-BEGIN
813 # PACKAGE-BEGIN
814 %package fortran-32bit
815 Summary:      The GNU Fortran Compiler and Support Files
816 License:        GPL-3.0+
817 Group:        Development/Languages/Fortran
818 Requires: gcc47 = %{version}-%{release}
819 %if 0%{!?build_optional_compiler:1}
820 Requires: libgfortran3-32bit >= %{version}-%{release}
821 %ifarch %quadmath_arch
822 Requires: libquadmath0-32bit >= %{version}-%{release}
823 %endif
824 %else
825 Requires: libgfortran47-32bit = %{version}-%{release}
826 %ifarch %quadmath_arch
827 Requires: libquadmath47-32bit = %{version}-%{release}
828 %endif
829 %endif
830
831 %description fortran-32bit
832 This is the Fortran compiler of the GNU Compiler Collection (GCC).
833 # PACKAGE-END
834 # PACKAGE-BEGIN
835 # PACKAGE-BEGIN
836 %package fortran-64bit
837 Summary:      The GNU Fortran Compiler and Support Files
838 License:        GPL-3.0+
839 Group:        Development/Languages/Fortran
840 Requires: gcc47 = %{version}-%{release}
841 %if 0%{!?build_optional_compiler:1}
842 Requires: libgfortran3-64bit >= %{version}-%{release}
843 %ifarch %quadmath_arch
844 Requires: libquadmath0-64bit >= %{version}-%{release}
845 %endif
846 %else
847 Requires: libgfortran47-64bit = %{version}-%{release}
848 %ifarch %quadmath_arch
849 Requires: libquadmath47-64bit = %{version}-%{release}
850 %endif
851 %endif
852
853 %description fortran-64bit
854 This is the Fortran compiler of the GNU Compiler Collection (GCC).
855 # PACKAGE-END
856
857 # PACKAGE-BEGIN
858 # PACKAGE-BEGIN
859 %package -n libgfortran47
860 Summary:      The GNU Fortran Compiler Runtime Library
861 License:        GPL-3.0-with-GCC-exception
862 Group:        Development/Languages/Fortran
863 %if 0%{!?build_optional_compiler:1}
864 Provides: libgfortran3 = %{version}-%{release}
865 Conflicts: libgfortran3 < %{version}-%{release}
866 %ifarch %quadmath_arch
867 Requires: libquadmath0 >= %{version}-%{release}
868 %endif
869 %else
870 %ifarch %quadmath_arch
871 Requires: libquadmath47 = %{version}-%{release}
872 %endif
873 Autoprov: no
874 %endif
875
876 %description -n libgfortran47
877 The runtime library needed to run programs compiled with the Fortran compiler
878 of the GNU Compiler Collection (GCC).
879
880 %post -n libgfortran47
881 /sbin/ldconfig
882
883 %postun -n libgfortran47
884 /sbin/ldconfig
885 # PACKAGE-END
886 # PACKAGE-BEGIN
887 # PACKAGE-BEGIN
888 %package -n libgfortran47-32bit
889 Summary:      The GNU Fortran Compiler Runtime Library
890 License:        GPL-3.0-with-GCC-exception
891 Group:        Development/Languages/Fortran
892 %if 0%{!?build_optional_compiler:1}
893 Provides: libgfortran3-32bit = %{version}-%{release}
894 Conflicts: libgfortran3-32bit < %{version}-%{release}
895 %ifarch %quadmath_arch
896 Requires: libquadmath0-32bit >= %{version}-%{release}
897 %endif
898 %else
899 %ifarch %quadmath_arch
900 Requires: libquadmath47-32bit = %{version}-%{release}
901 %endif
902 Autoprov: no
903 %endif
904
905 %description -n libgfortran47-32bit
906 The runtime library needed to run programs compiled with the Fortran compiler
907 of the GNU Compiler Collection (GCC).
908
909 %post -n libgfortran47-32bit
910 /sbin/ldconfig
911
912 %postun -n libgfortran47-32bit
913 /sbin/ldconfig
914 # PACKAGE-END
915 # PACKAGE-BEGIN
916 # PACKAGE-BEGIN
917 %package -n libgfortran47-64bit
918 Summary:      The GNU Fortran Compiler Runtime Library
919 License:        GPL-3.0-with-GCC-exception
920 Group:        Development/Languages/Fortran
921 %if 0%{!?build_optional_compiler:1}
922 Provides: libgfortran3-64bit = %{version}-%{release}
923 Conflicts: libgfortran3-64bit < %{version}-%{release}
924 %ifarch %quadmath_arch
925 Requires: libquadmath0-64bit >= %{version}-%{release}
926 %endif
927 %else
928 %ifarch %quadmath_arch
929 Requires: libquadmath47-64bit = %{version}-%{release}
930 %endif
931 Autoprov: no
932 %endif
933
934 %description -n libgfortran47-64bit
935 The runtime library needed to run programs compiled with the Fortran compiler
936 of the GNU Compiler Collection (GCC).
937
938 %post -n libgfortran47-64bit
939 /sbin/ldconfig
940
941 %postun -n libgfortran47-64bit
942 /sbin/ldconfig
943 # PACKAGE-END
944
945 # PACKAGE-BEGIN
946 # PACKAGE-BEGIN
947 %package -n libquadmath47
948 Summary:      The GNU Fortran Compiler Quadmath Runtime Library
949 License:        LGPL-2.1
950 Group:        Development/Languages/Fortran
951 %if 0%{!?build_optional_compiler:1}
952 Provides: libquadmath0 = %{version}-%{release}
953 Conflicts: libquadmath0 < %{version}-%{release}
954 %else
955 Autoprov: no
956 %endif
957
958 %description -n libquadmath47
959 The runtime library needed to run programs compiled with the Fortran compiler
960 of the GNU Compiler Collection (GCC) and quadruple precision floating point
961 operations.
962
963 %post -n libquadmath47
964 /sbin/ldconfig
965
966 %postun -n libquadmath47
967 /sbin/ldconfig
968 # PACKAGE-END
969 # PACKAGE-BEGIN
970 # PACKAGE-BEGIN
971 %package -n libquadmath47-32bit
972 Summary:      The GNU Fortran Compiler Quadmath Runtime Library
973 License:        LGPL-2.1
974 Group:        Development/Languages/Fortran
975 %if 0%{!?build_optional_compiler:1}
976 Provides: libquadmath0-32bit = %{version}-%{release}
977 Conflicts: libquadmath0-32bit < %{version}-%{release}
978 %else
979 Autoprov: no
980 %endif
981
982 %description -n libquadmath47-32bit
983 The runtime library needed to run programs compiled with the Fortran compiler
984 of the GNU Compiler Collection (GCC) and quadruple precision floating point
985 operations.
986
987 %post -n libquadmath47-32bit
988 /sbin/ldconfig
989
990 %postun -n libquadmath47-32bit
991 /sbin/ldconfig
992 # PACKAGE-END
993 # PACKAGE-BEGIN
994 # PACKAGE-BEGIN
995 %package -n libquadmath47-64bit
996 Summary:      The GNU Fortran Compiler Quadmath Runtime Library
997 License:        LGPL-2.1
998 Group:        Development/Languages/Fortran
999 %if 0%{!?build_optional_compiler:1}
1000 Provides: libquadmath0-64bit = %{version}-%{release}
1001 Conflicts: libquadmath0-64bit < %{version}-%{release}
1002 %else
1003 Autoprov: no
1004 %endif
1005
1006 %description -n libquadmath47-64bit
1007 The runtime library needed to run programs compiled with the Fortran compiler
1008 of the GNU Compiler Collection (GCC) and quadruple precision floating point
1009 operations.
1010
1011 %post -n libquadmath47-64bit
1012 /sbin/ldconfig
1013
1014 %postun -n libquadmath47-64bit
1015 /sbin/ldconfig
1016 # PACKAGE-END
1017
1018 # PACKAGE-BEGIN
1019 # PACKAGE-BEGIN
1020 %package -n libmudflap47
1021 Summary:      The Mudflap Extension Runtime Library
1022 License:        GPL-3.0-with-GCC-exception
1023 Group:        Development/Languages/C and C++
1024 Provides: libmudflap0 = %{version}-%{release}
1025 Conflicts: libmudflap0 < %{version}-%{release}
1026 Provides: libmudflapth0 = %{version}-%{release}
1027 Conflicts: libmudflapth0 < %{version}-%{release}
1028
1029 %description -n libmudflap47
1030 This is the Mudflap Extension Runtime Library.
1031
1032 %post -n libmudflap47
1033 /sbin/ldconfig
1034
1035 %postun -n libmudflap47
1036 /sbin/ldconfig
1037 # PACKAGE-END
1038 # PACKAGE-BEGIN
1039 # PACKAGE-BEGIN
1040 %package -n libmudflap47-32bit
1041 Summary:      The Mudflap Extension Runtime Library
1042 License:        GPL-3.0-with-GCC-exception
1043 Group:        Development/Languages/C and C++
1044 Provides: libmudflap0-32bit = %{version}-%{release}
1045 Conflicts: libmudflap0-32bit < %{version}-%{release}
1046 Provides: libmudflapth0-32bit = %{version}-%{release}
1047 Conflicts: libmudflapth0-32bit < %{version}-%{release}
1048
1049 %description -n libmudflap47-32bit
1050 This is the Mudflap Extension Runtime Library.
1051
1052 %post -n libmudflap47-32bit
1053 /sbin/ldconfig
1054
1055 %postun -n libmudflap47-32bit
1056 /sbin/ldconfig
1057 # PACKAGE-END
1058 # PACKAGE-BEGIN
1059 # PACKAGE-BEGIN
1060 %package -n libmudflap47-64bit
1061 Summary:      The Mudflap Extension Runtime Library
1062 License:        GPL-3.0-with-GCC-exception
1063 Group:        Development/Languages/C and C++
1064 Provides: libmudflap0-64bit = %{version}-%{release}
1065 Conflicts: libmudflap0-64bit < %{version}-%{release}
1066 Provides: libmudflapth0-64bit = %{version}-%{release}
1067 Conflicts: libmudflapth0-64bit < %{version}-%{release}
1068
1069 %description -n libmudflap47-64bit
1070 This is the Mudflap Extension Runtime Library.
1071
1072 %post -n libmudflap47-64bit
1073 /sbin/ldconfig
1074
1075 %postun -n libmudflap47-64bit
1076 /sbin/ldconfig
1077 # PACKAGE-END
1078
1079
1080 %package -n libgcj47
1081 # LIBJAVA-DELETE-END
1082 Summary:      Java Runtime Library for gcc
1083 License:      GPL-2.0-with-classpath-exception
1084 Group:        System/Libraries
1085 %define gcj_sover 13
1086 Provides: libgcj%{gcj_sover} = %{version}-%{release}
1087 Conflicts: libgcj%{gcj_sover} < %{version}-%{release}
1088 Provides: libgij%{gcj_sover} = %{version}-%{release}
1089 Conflicts: libgij%{gcj_sover} < %{version}-%{release}
1090 Provides: libgcj-tools%{gcj_sover} = %{version}-%{release}
1091 Conflicts: libgcj-tools%{gcj_sover} < %{version}-%{release}
1092
1093 %description -n libgcj47
1094 This library is needed if you want to use the GNU Java compiler, gcj.
1095 Source code for this package is in gcc.
1096
1097 %post -n libgcj47
1098 /sbin/ldconfig
1099
1100 %postun -n libgcj47
1101 /sbin/ldconfig
1102
1103
1104 %package -n gcc47-java
1105 Summary:      The GNU Java Compiler
1106 License:        GPL-3.0+
1107 Group:        Development/Languages/Java
1108 Requires: gcc47 = %{version}
1109 Requires: libgcj47-devel = %{version}-%{release}
1110
1111 %description -n gcc47-java
1112 The Java compiler from the GCC-tools-suite.
1113
1114
1115 %package -n libgcj_bc47
1116 Summary:      Fake library for BC-ABI compatibility.
1117 License:        GPL-2.0-with-classpath-exception
1118 Group:        Development/Libraries/Java
1119 Provides: libgcj_bc1 = %{version}-%{release}
1120 Conflicts: libgcj_bc1 < %{version}-%{release}
1121 # libgcj_bc is special in that it just contains a symlink to
1122 # a proper libgcj version.  So require that library and add
1123 # provides for the shlib version as created at link time
1124 Requires: libgcj%{gcj_sover}
1125 %ifarch x86_64 
1126 Provides: libgcj_bc.so.1()(64bit)
1127 %else
1128 Provides: libgcj_bc.so.1
1129 %endif
1130
1131
1132 %description -n libgcj_bc47
1133 A fake library that is used at link time only. It ensures that
1134 binaries built with the BC-ABI link against a constant SONAME.
1135 This way, BC-ABI binaries continue to work if the SONAME underlying
1136 libgcj.so changes.
1137
1138
1139 %package -n libgcj47-jar
1140 Summary:      Java runtime library (jar files).
1141 License:        GPL-2.0-with-classpath-exception
1142 Group:        Development/Libraries/Java
1143
1144 %description -n libgcj47-jar
1145 These are the jar files that go along with the gcj front end to gcc.
1146
1147
1148 %package -n libgcj47-devel
1149 Summary:      Include Files and Libraries mandatory for Development.
1150 License:        GPL-2.0-with-classpath-exception
1151 Group:        Development/Libraries/Java
1152 Requires: libstdc++47-devel = %{version}
1153 Requires: libgcj%{gcj_sover} >= %{version}-%{release}
1154 Requires: libgcj_bc1 >= %{version}-%{release}
1155 Requires: libgcj47-jar = %{version}-%{release}
1156 Requires: gtk2-devel
1157 Requires: libart_lgpl-devel
1158 Requires: glibc-devel
1159 Requires: zlib-devel
1160 %ifarch ia64
1161 Requires: libunwind-devel
1162 %endif
1163
1164 %description -n libgcj47-devel
1165 This package contains all necessary include files and libraries needed
1166 to develop applications that require these.
1167
1168
1169 %package -n gcc47-gij
1170 Summary:      Java Bytecode Interpreter for gcc
1171 License:      GPL-2.0-with-classpath-exception
1172 Group:        Development/Libraries/Java
1173 Requires: libgcj%{gcj_sover} >= %{version}-%{release}
1174
1175 %description -n gcc47-gij
1176 This package contains the java bytecode interpreter gij and related tools.
1177
1178 # LIBFFI-DELETE-END
1179 # PACKAGE-BEGIN
1180 # PACKAGE-BEGIN
1181 %package -n libffi47
1182 Summary:      Foreign Function Interface library
1183 License:        BSD-3-Clause
1184 Group:        Development/Languages/C and C++
1185 Provides: g-wrap:/usr/lib/libffi.so.4
1186 Provides: libffi4 = %{version}-%{release}
1187 Conflicts: libffi4 < %{version}-%{release}
1188
1189 %description -n libffi47
1190 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1191
1192 %post -n libffi47
1193 /sbin/ldconfig
1194
1195 %postun -n libffi47
1196 /sbin/ldconfig
1197 # PACKAGE-END
1198 # PACKAGE-BEGIN
1199 # PACKAGE-BEGIN
1200 %package -n libffi47-32bit
1201 Summary:      Foreign Function Interface library
1202 License:        BSD-3-Clause
1203 Group:        Development/Languages/C and C++
1204 Provides: g-wrap:/usr/lib/libffi.so.4
1205 Provides: libffi4-32bit = %{version}-%{release}
1206 Conflicts: libffi4-32bit < %{version}-%{release}
1207
1208 %description -n libffi47-32bit
1209 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1210
1211 %post -n libffi47-32bit
1212 /sbin/ldconfig
1213
1214 %postun -n libffi47-32bit
1215 /sbin/ldconfig
1216 # PACKAGE-END
1217 # PACKAGE-BEGIN
1218 # PACKAGE-BEGIN
1219 %package -n libffi47-64bit
1220 Summary:      Foreign Function Interface library
1221 License:        BSD-3-Clause
1222 Group:        Development/Languages/C and C++
1223 Provides: g-wrap:/usr/lib/libffi.so.4
1224 Provides: libffi4-64bit = %{version}-%{release}
1225 Conflicts: libffi4-64bit < %{version}-%{release}
1226
1227 %description -n libffi47-64bit
1228 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1229
1230 %post -n libffi47-64bit
1231 /sbin/ldconfig
1232
1233 %postun -n libffi47-64bit
1234 /sbin/ldconfig
1235 # PACKAGE-END
1236
1237 # PACKAGE-BEGIN
1238 # PACKAGE-BEGIN
1239 %package -n libffi47-devel
1240 Summary:      Foreign Function Interface library development files
1241 License:        BSD 3-Clause
1242 Group:        Development/Languages/C and C++
1243 Requires: libffi4 >= %{version}-%{release}
1244 Provides: libffi-devel = %{version}-%{release}
1245 Conflicts: libffi-devel < %{version}-%{release}
1246
1247 %description -n libffi47-devel
1248 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1249 # PACKAGE-END
1250 # PACKAGE-BEGIN
1251 # PACKAGE-BEGIN
1252 %package -n libffi47-devel-32bit
1253 Summary:      Foreign Function Interface library development files
1254 License:        BSD 3-Clause
1255 Group:        Development/Languages/C and C++
1256 Requires: libffi4-32bit >= %{version}-%{release}
1257 Provides: libffi-devel-32bit = %{version}-%{release}
1258 Conflicts: libffi-devel-32bit < %{version}-%{release}
1259
1260 %description -n libffi47-devel-32bit
1261 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1262 # PACKAGE-END
1263 # PACKAGE-BEGIN
1264 # PACKAGE-BEGIN
1265 %package -n libffi47-devel-64bit
1266 Summary:      Foreign Function Interface library development files
1267 License:        BSD 3-Clause
1268 Group:        Development/Languages/C and C++
1269 Requires: libffi4-64bit >= %{version}-%{release}
1270 Provides: libffi-devel-64bit = %{version}-%{release}
1271 Conflicts: libffi-devel-64bit < %{version}-%{release}
1272
1273 %description -n libffi47-devel-64bit
1274 A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
1275 # PACKAGE-END
1276
1277 %package -n gcc47-testresults
1278 # GCC-TESTSUITE-DELETE-END
1279 Summary:      Testsuite results
1280 License:        SUSE-Public-Domain
1281 Group:        Development/Languages/C and C++
1282
1283 %description -n gcc47-testresults
1284 Results from running the gcc and target library testsuites.
1285
1286
1287 # COMMON-BEGIN
1288
1289 # Define the canonical target and host architecture
1290 #   %gcc_target_arch  is supposed to be the full target triple
1291 #   %TARGET_ARCH      is the canonicalized CPU part
1292 #   %CONFIGURE_TARGET is the target triple used for --target=
1293 %if 0%{?gcc_target_arch:1}
1294 %define CONFIGURE_TARGET %{gcc_target_arch}
1295 %define TARGET_ARCH %(echo %{gcc_target_arch} | cut -d - -f 1 | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1296 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "i586"
1297 %define CONFIGURE_TARGET i586-tizen-linux
1298 %endif
1299 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7l"
1300 %define CONFIGURE_TARGET armv7l-tizen-linux-gnueabi
1301 %endif
1302 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7hl"
1303 %define CONFIGURE_TARGET armv7hl-tizen-linux-gnueabi
1304 %endif
1305 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv7el"
1306 %define CONFIGURE_TARGET armv7el-tizen-linux-gnueabi
1307 %endif
1308 %if 0%{?gcc_icecream:1} && %{TARGET_ARCH} == "armv5el"
1309 %define CONFIGURE_TARGET armv5el-tizen-linux-gnueabi
1310 %endif
1311 %else
1312 %define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1313 %endif
1314 %define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1315
1316 %define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
1317
1318 %ifarch %arm
1319 %define GCCDIST %{HOST_ARCH}-tizen-linux-gnueabi
1320 %else
1321 %define GCCDIST %{HOST_ARCH}-tizen-linux
1322 %endif
1323
1324 %define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
1325 %define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
1326
1327 # COMMON-END
1328
1329 # Versionspecific directories
1330 %define versmainlibdir %{libsubdir}
1331 %define versmainlibdirbi32 %{libsubdir}/32
1332 %define versmainlibdirbi64 %{libsubdir}/64
1333 %if %{build_primary_64bit}
1334 %define versmainlibdirbi %{versmainlibdirbi32}
1335 %else
1336 %define versmainlibdirbi %{versmainlibdirbi64}
1337 %endif
1338
1339 %if 0%{?build_optional_compiler:1}
1340 %define mainlibdir %{versmainlibdir}
1341 %define mainlibdirbi32 %{versmainlibdirbi32}
1342 %define mainlibdirbi64 %{versmainlibdirbi64}
1343 %define noflibdir %{versnoflibdir}
1344 %define mainlibdirbi %{versmainlibdirbi}
1345 %else
1346 %define mainlibdir %{_libdir}
1347 %define mainlibdirbi32 %{_prefix}/lib
1348 %define mainlibdirbi64 %{_prefix}/lib64
1349 %define noflibdir %{_prefix}/lib/nof
1350 %if %{build_primary_64bit}
1351 %define mainlibdirbi %{mainlibdirbi32}
1352 %else
1353 %define mainlibdirbi %{mainlibdirbi64}
1354 %endif
1355 %endif
1356
1357
1358 # Now define a few macros that make it easy to package libs and
1359 # related files just to the right package, without caring for the
1360 # exact path the files are in.
1361 #   %mainlib  package X from all dirs that belong to the main package
1362 #   %biarchlib   package X from all dirs that belong to the -32/64bit package
1363 # by default, nof libs go where the 32bit libs go.
1364 %if %{build_nof}
1365 %define mainlib() %{mainlibdir}/%1\
1366 %{noflibdir}/%1\
1367 %{nil}
1368 %else
1369 %define mainlib() %{mainlibdir}/%1\
1370 %{nil}
1371 %endif
1372 %define biarchlib() %{nil}
1373 %if %{biarch}
1374 %if !%{separate_biarch}
1375 %if %{build_nof}
1376 %define mainlib() %{mainlibdir}/%1\
1377 %{mainlibdirbi}/%1\
1378 %{noflibdir}/%1\
1379 %{nil}
1380 %else
1381 %define mainlib() %{mainlibdir}/%1\
1382 %{mainlibdirbi}/%1\
1383 %{nil}
1384 %endif
1385 %else
1386 %if %{build_nof}
1387 %define biarchlib() %{mainlibdirbi}/%1\
1388 %{noflibdir}/%1\
1389 %{nil}
1390 %define mainlib() %{mainlibdir}/%1\
1391 %{nil}
1392 %else
1393 %define biarchlib() %{mainlibdirbi}/%1\
1394 %{nil}
1395 %endif
1396 %endif
1397 %endif
1398
1399 %if %{build_nof}
1400 %define versmainlib() %{versmainlibdir}/%1\
1401 %{versnoflibdir}/%1\
1402 %{nil}
1403 %else
1404 %define versmainlib() %{versmainlibdir}/%1\
1405 %{nil}
1406 %endif
1407 %define versbiarchlib() %{nil}
1408 %if %{biarch}
1409 %if !%{separate_biarch}
1410 %if %{build_nof}
1411 %define versmainlib() %{versmainlibdir}/%1\
1412 %{versmainlibdirbi}/%1\
1413 %{versnoflibdir}/%1\
1414 %{nil}
1415 %else
1416 %define versmainlib() %{versmainlibdir}/%1\
1417 %{versmainlibdirbi}/%1\
1418 %{nil}
1419 %endif
1420 %else
1421 %if %{build_nof}
1422 %define versbiarchlib() %{versmainlibdirbi}/%1\
1423 %{versnoflibdir}/%1\
1424 %{nil}
1425 %define versmainlib() %{versmainlibdir}/%1\
1426 %{nil}
1427 %else
1428 %define versbiarchlib() %{versmainlibdirbi}/%1\
1429 %{nil}
1430 %endif
1431 %endif
1432 %endif
1433
1434
1435 # COMMON-BEGIN
1436
1437 %prep
1438 #%setup -q -n gcc-%{gcc_version}%{snapshot_date}
1439 %setup -q -n gcc-%{version}
1440 # 0001-dir-version.patch
1441 %patch0 -p1
1442 %patch1 -p1
1443 %patch2 -p1
1444 %patch3 -p1
1445
1446 %build
1447 # Avoid rebuilding of generated files
1448 contrib/gcc_update --touch
1449 # Avoid fucking up testsuite results with Java and indirect dispatch
1450 export LD_AS_NEEDED=0
1451 # Split version file into version used for directories (X.Y) and
1452 # version to report with --version (X.Y.Z).
1453 # See also gcc-dir-version.patch.
1454 # Also decrement the patchlevel version by one
1455 if test `cat gcc/DEV-PHASE` == "prerelease"; then
1456   ( cat gcc/BASE-VER | cut -d '.' -f 1-2 | tr -d '\n'; echo -n .; cat gcc/BASE-VER | cut -d '.' -f 3 | tr '0123456789' '0012345678' ) > gcc/FULL-VER
1457 else
1458   mv gcc/BASE-VER gcc/FULL-VER
1459 fi
1460 cat gcc/FULL-VER | cut -d '.' -f 1-2 > gcc/BASE-VER
1461
1462 rm -rf obj-%{GCCDIST}
1463 mkdir obj-%{GCCDIST}
1464 cd obj-%{GCCDIST}
1465 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
1466 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g' -e 's/-Wmissing-format-attribute//g' -e 's/-fstack-protector//g' -e 's/-ffortify=.//g' -e 's/-Wall//g' -e 's/-m32//g' -e 's/-m64//g'`
1467 %ifarch %ix86
1468 # -mcpu is superceded by -mtune but -mtune is not supported by
1469 # our bootstrap compiler.  -mcpu gives a warning that stops
1470 # the build process, so remove it for now.  Also remove all other
1471 # -march and -mtune flags.  They are superseeded by proper
1472 # default compiler settings now.
1473 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-mcpu=i.86//g' -e 's/-march=i.86//g' -e 's/-mtune=i.86//g'`
1474 %endif
1475 %if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1476 # Kill all -march/tune/cpu because that screws building the target libs
1477 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
1478 %endif
1479 # Replace 2 spaces by one finally
1480 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/  / /g'`
1481
1482 languages=c
1483 %if %{build_cp}
1484 languages=$languages,c++
1485 %endif
1486 %if %{build_objc}
1487 languages=$languages,objc
1488 %endif
1489 %if %{build_fortran}
1490 languages=$languages,fortran
1491 %endif
1492 %if %{build_objcp}
1493 languages=$languages,obj-c++
1494 %endif
1495 %if %{build_java}
1496 languages=$languages,java
1497 %endif
1498 %if %{build_ada}
1499 languages=$languages,ada
1500 %endif
1501
1502 J=%{?jobs:%jobs}
1503 if test -z "$J"; then
1504   J=$(getconf _NPROCESSORS_CONF)
1505   JL=$(($J * 2))
1506 else
1507   test 1 -gt "$J" && J=1
1508   JL=$(($(getconf _NPROCESSORS_CONF)*2))
1509 fi
1510 if test "$J" == "0"; then
1511   J=1
1512 fi
1513 if test "$JL" == "0"; then
1514   JL=1
1515 fi
1516 PARALLEL="-j$J -l$JL"
1517
1518 # we don't want some miscompiles in the testsuite, or some fault in
1519 # the compiler to kill the machine.  Hence we limit the amount of memory
1520 # by the physical RAM plus half of swap
1521 #MEM=$(free -m | awk '/^Mem:/ {print $2}')
1522 #SWAP=$(free -m | awk '/^Swap:/ {print $2}')
1523 #ulimit -v $(((MEM + SWAP/2)*1024))
1524
1525 # In general we want to ship release checking enabled compilers
1526 # and run BETA with checking enabled.
1527 #ENABLE_CHECKING="--enable-checking=yes"
1528 ENABLE_CHECKING="--enable-checking=release"
1529
1530 # Work around tail/head -1 changes
1531 export _POSIX2_VERSION=199209
1532
1533 # configure tries to parse include/features.h to detect
1534 # if glibc supports SSP.  When cross compiling we would need
1535 # to install a cross glibc, which we don't, or make the whole
1536 # thing point to the native glibc, which is in /, hence the
1537 # --with-sysroot=/
1538
1539 %if %{build_ada}
1540 # Using the host gnatmake like
1541 #   CC="gcc%{hostsuffix}" GNATBIND="gnatbind%{hostsuffix}"
1542 #   GNATMAKE="gnatmake%{hostsuffix}"
1543 # doesn't work due to PR33857, so an un-suffixed gnatmake has to be
1544 # available
1545 mkdir -p host-tools/bin
1546 cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
1547 cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
1548 cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
1549 cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
1550 ln -sf /usr/%{_lib} host-tools/%{_lib}
1551 export PATH="`pwd`/host-tools/bin:$PATH"
1552 %endif
1553 #%if 0%{?gcc_target_arch:1} && 0%{!?gcc_icecream:1}
1554 #%else
1555 #       --enable-threads=posix \
1556 #%endif
1557 #       --enable-shared \
1558 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
1559 TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
1560 ../configure \
1561         --prefix=%{_prefix} \
1562         --infodir=%{_infodir} \
1563         --mandir=%{_mandir} \
1564         --libdir=%{_libdir} \
1565         --libexecdir=%{_libdir} \
1566         --enable-languages=$languages \
1567         $ENABLE_CHECKING \
1568         --with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
1569         --enable-ssp \
1570         --disable-libssp \
1571         --disable-libitm \
1572 %if 0%{?fast_build}
1573         --disable-bootstrap \
1574 %endif
1575         --disable-plugin \
1576         --with-bugurl="http://bugs.tizen.org/" \
1577         --with-pkgversion="Tizen Linux" \
1578 %if !%{build_libjava}
1579         --disable-libgcj \
1580 %else
1581         --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
1582         --with-ecj-jar=%{libsubdir}/ecj.jar \
1583         --disable-java-awt \
1584 %if !%{biarch_libjava}
1585         --disable-libjava-multilib \
1586 %endif
1587 %endif
1588 %if !%{build_with_mudflap}
1589         --disable-libmudflap \
1590 %endif
1591         --with-slibdir=/%{_lib} \
1592         --with-system-zlib \
1593         --enable-__cxa_atexit \
1594         --enable-libstdcxx-allocator=new \
1595         --disable-libstdcxx-pch \
1596         --enable-version-specific-runtime-libs \
1597         --enable-linker-build-id \
1598 %if 0%{?gcc_target_arch:1}
1599 %if 0%{?gcc_icecream:1}
1600         --with-build-sysroot=/ \
1601         --with-sysroot=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi} \
1602         --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/usr/include/c++/%{gcc_dir_version} \
1603         --enable-linux-futex \
1604 %endif
1605 %if 0%{?canonical_target:1}
1606         --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1607 %endif
1608 %if 0%{?build_static:1}
1609         --disable-shared \
1610 %endif
1611 %if "%{TARGET_ARCH}" == "spu"
1612         --with-sysroot=/usr/spu \
1613         --with-gxx-include-dir=%{_prefix}/spu/include/c++/%{gcc_dir_version} \
1614         --with-newlib \
1615 %endif
1616         --disable-nls \
1617         --target=%{CONFIGURE_TARGET} \
1618 %else
1619         --program-suffix=%{binsuffix} \
1620         --enable-linux-futex \
1621 %ifarch ia64
1622         --with-system-libunwind \
1623 %else
1624         --without-system-libunwind \
1625 %endif
1626 %endif
1627 %if "%{TARGET_ARCH}" == "armv5tel"
1628         --with-arch=armv5te \
1629         --with-float=soft \
1630         --with-mode=arm \
1631         --with-abi=aapcs-linux \
1632         --disable-sjlj-exceptions \
1633 %endif
1634 %if "%{TARGET_ARCH}" == "armv7el" 
1635         --with-arch=armv7-a \
1636         --with-tune=cortex-a9 \
1637         --with-float=soft \
1638         --with-abi=softfp \
1639         --with-fpu=vfpv3 \
1640         --disable-sjlj-exceptions \
1641 %endif
1642 %if "%{TARGET_ARCH}" == "armv7l" || "%{TARGET_ARCH}" == "armv7hl"
1643         --with-arch=armv7-a \
1644         --with-tune=cortex-a9 \
1645         --with-float=hard \
1646         --with-abi=aapcs-linux \
1647         --with-fpu=vfpv3-d16 \
1648         --disable-sjlj-exceptions \
1649 %endif
1650 %if "%{TARGET_ARCH}" == "i586"
1651         --with-arch-32=i586 \
1652         --with-tune=generic \
1653 %endif
1654 %if "%{TARGET_ARCH}" == "x86_64"
1655         --with-arch-32=i586 \
1656         --with-tune=generic \
1657 %endif
1658         --build=%{GCCDIST}
1659
1660 # COMMON-END
1661
1662 %if 0%{?building_libffi:1}
1663 make stage1-bubble $PARALLEL
1664 make all-target-libffi $PARALLEL
1665 %else
1666 # Only run profiled bootstrap on archs where it works
1667 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1668 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1669 #%else
1670 %ifarch %arm
1671 STAGE1_FLAGS="-O0"
1672 %else
1673 STAGE1_FLAGS="-O -g"
1674 %endif
1675 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1676 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1677 #%endif
1678 #make -C gcc proto
1679 make info
1680 %if 0%{?run_tests:1}
1681 echo "Run testsuite"
1682 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1683 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1684 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1685 make -k check $PARALLEL || true
1686 mkdir ../testresults
1687 ../contrib/test_summary | tee ../testresults/test_summary.txt
1688 %endif
1689 %endif
1690
1691 %install
1692 export NO_BRP_CHECK_BYTECODE_VERSION=true
1693 cd obj-%{GCCDIST}
1694 # GCC-TESTSUITE-DELETE-BEGIN
1695 # Work around tail/head -1 changes
1696 export _POSIX2_VERSION=199209
1697 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1698 %if 0%{?building_libffi:1}
1699 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1700 %else
1701 %if 0%{?building_libjava:1}
1702 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1703 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1704 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1705 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1706 # install-common also installs collect2, gcov and the g++ and gfortran driver
1707 %if %{build_cp}
1708 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1709 %endif
1710 %if %{build_fortran}
1711 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1712 %endif
1713 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1714 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1715 %else
1716 make install DESTDIR=$RPM_BUILD_ROOT
1717 %if %{build_java}
1718 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1719 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1720 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1721 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1722 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1723 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1724 %endif
1725 %endif
1726 %endif
1727
1728 # Remove libffi installed files if we did not want to build it
1729 %if !0%{?building_libffi:1}
1730 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1731 %if %{biarch}
1732   rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1733 %endif
1734 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1735 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1736 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1737 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1738 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1739 %endif
1740
1741 # Remove some useless .la files
1742 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1743     libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij; do
1744   rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1745 %if %{biarch}
1746   rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1747 %endif
1748 done
1749
1750 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1751 %if %{biarch}
1752 %if %{build_primary_64bit}
1753 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1754 %else
1755 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1756 %endif
1757 %endif
1758
1759 # LIBFFI-DELETE-BEGIN
1760 # LIBJAVA-DELETE-BEGIN
1761 %if %{build_cp}
1762 # Merge multilib c++config.h to allow omitting the duplicate and
1763 # identical other arch specific headers
1764 dir_ml=
1765 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1766 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1767   if ! diff -up $cxxconfig $i; then
1768     file_32=x
1769     file_64=x
1770     case $i in
1771       %{GCCDIST}/32/*)
1772         file_32=$i
1773         file_64=$cxxconfig
1774         dir_ml=32
1775         ;;
1776       %{GCCDIST}/64/*)
1777         file_32=$cxxconfig
1778         file_64=$i
1779         dir_ml=64
1780         ;;
1781     esac
1782     if ! ( test -f "$file_32" && test -f "$file_64" ); then
1783       echo "Urgs?"
1784       exit 1
1785     fi
1786     
1787     cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1788 #ifndef _CPP_CPPCONFIG_WRAPPER
1789 #define _CPP_CPPCONFIG_WRAPPER 1
1790 #include <bits/wordsize.h>
1791 #if __WORDSIZE == 32
1792 `cat $file_32`
1793 #else
1794 `cat $file_64`
1795 #endif
1796 #endif
1797 EOF
1798     break
1799   fi
1800 done
1801 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1802 if ! test -z "$dir_ml"; then
1803   ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1804 fi
1805 %endif
1806 # LIBJAVA-DELETE-END
1807
1808 %if 0%{!?build_optional_compiler:1}
1809 # move shared libs from versionspecific dir to main libdir
1810 for libname in \
1811 %if 0%{?building_libjava:1}
1812   libgcj libgij libgcj-tools \
1813 %else
1814 %if %{build_fortran}
1815   libgfortran \
1816 %ifarch %quadmath_arch
1817   libquadmath \
1818 %endif
1819 %endif
1820 %if %{build_objc}
1821   libobjc \
1822 %endif
1823 %if %{build_cp}
1824   libstdc++ \
1825 %endif
1826   libgomp \
1827 %if %{build_with_mudflap}
1828   libmudflap libmudflapth \
1829 %endif
1830 %endif
1831     ; do
1832   for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1833     mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1834   done
1835   ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'`  \
1836          $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1837 %if %{biarch}
1838   if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1839     for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1840       mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1841     done
1842     ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'`  \
1843          $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1844   fi
1845 %endif
1846 done
1847 %if %{build_cp}
1848 %if !0%{?building_libjava:1}
1849 # And we want to move the shlib gdb pretty printers to a more sane
1850 # place so ldconfig does not complain
1851 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1852 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1853 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1854 %if %{biarch}
1855   if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1856     mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1857     mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1858     sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1859   fi
1860 %endif
1861 %endif
1862 %endif
1863 %if 0%{?building_libjava:1}
1864 # libgcj_bc is special as the .so file is actually a different
1865 # library as the library refered to by the SONAME which should
1866 # be a simple link to our libgcj.
1867 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1868   rm $lib
1869 done
1870 ln -s libgcj.so.%{gcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.1
1871 %if %{biarch_libjava}
1872 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1873   rm $lib
1874 done
1875 ln -s libgcj.so.%{gcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.1
1876 %endif
1877 %endif
1878 %endif
1879
1880 # LIBJAVA-DELETE-BEGIN
1881 %if 0%{!?build_optional_compiler:1}
1882 # Move libgcc_s around
1883 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1884   rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1885   ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1886 else
1887   mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1888 fi
1889 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1890 %if %{biarch}
1891 %if %{build_primary_64bit}
1892 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1893   rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1894   ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1895 else
1896   mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1897 fi
1898 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1899 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1900 %else
1901 # 32-bit biarch systems
1902 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1903   rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1904   ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1905 else
1906   mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1907 fi
1908 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1909 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1910 %endif
1911 %endif
1912 %else
1913 # Move libgcc_s around
1914 mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/
1915 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1916   rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1917   ln -sf %{versmainlibdir}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1918 else
1919   mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1920 fi
1921 chmod a+x $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so.%{libgcc_s}
1922 %if %{biarch}
1923 %if %{build_primary_64bit}
1924 mv $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1925 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1926   rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1927   ln -sf %{versmainlibdirbi32}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1928 else
1929   mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1930 fi
1931 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1932 chmod a+x $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so.%{libgcc_s}
1933 %else
1934 # 32-bit biarch systems
1935 mv $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1936 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1937   rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1938   ln -sf %{versmainlibdirbi64}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1939 else
1940   mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1941 fi
1942 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1943 chmod a+x $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so.%{libgcc_s}
1944 %endif
1945 %endif
1946 %endif
1947
1948 # Provide a defaults.spec file which adds a proper rpath
1949 %if 0%{?build_optional_compiler:1}
1950 cat > $RPM_BUILD_ROOT%{libsubdir}/defaults.spec << EOF
1951 *link:
1952 + %%{!m32:%%{!m64:-rpath=%{libsubdir}}} %%{m32:-rpath=%{libsubdir}/32} %%{m64:-rpath=%{libsubdir}/64}
1953 EOF
1954 %endif
1955 # LIBJAVA-DELETE-END
1956 # LIBFFI-DELETE-END
1957
1958 %if %{build_ada}
1959 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1960 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1961 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1962 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1963 %if %{biarch}
1964 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1965 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1966 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1967 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1968 %endif
1969 %endif
1970
1971 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1972
1973 # Remove some crap from the .la files:
1974 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1975   echo "changing $l"
1976 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1977   sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1978       -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1979       -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1980       -e '/^dependency_libs/s|-L[^ ]* ||g' \
1981 %if %{biarch}
1982 %if %{build_primary_64bit}
1983       -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1984       -e '/^libdir/s|lib64/\.\./||' \
1985 %else
1986       -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1987 %endif
1988 %endif
1989       < $l  > $l.new
1990   mv $l.new $l
1991 done
1992
1993 # GCC-TESTSUITE-DELETE-END
1994 %if 0%{?run_tests:1} 
1995 cp `find . -name "*.sum"` ../testresults/
1996 cp `find . -name "*.log"  \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1997 chmod 644 ../testresults/*
1998 %endif
1999 # GCC-TESTSUITE-DELETE-BEGIN
2000 # LIBFFI-DELETE-BEGIN
2001 %if %{build_cp}
2002 # Find C++ and Java headers
2003 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
2004   -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
2005   -o \( -type d -printf "%%%%dir " , \
2006         -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
2007 %endif
2008 # LIBFFI-DELETE-END
2009 # Remove files that we do not need to clean up filelist
2010 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
2011 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
2012 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2013 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
2014 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
2015 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
2016 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
2017 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
2018 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
2019 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
2020 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
2021 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
2022 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
2023 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
2024 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
2025 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
2026 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
2027 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
2028 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
2029 # no plugins
2030 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
2031 rm -f  $RPM_BUILD_ROOT%{_infodir}/dir
2032 rm -f  $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
2033
2034 %if !0%{?building_libjava:1}%{?building_libffi:1}
2035 # delete compile flag tracking from crt files
2036 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
2037 %if %{biarch}
2038 %if %{build_primary_64bit}
2039 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
2040 %else
2041 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
2042 %endif
2043 %endif
2044 for o in $crt_list $crt32_list $crt64_list; do
2045   objcopy -R ".comment.SUSE.OPTs" $o
2046 done
2047 %endif
2048
2049 %if 0%{?building_libjava:1}
2050 # gcj -static doesn't work properly anyway, unless using --whole-archive
2051 # let's save the space instead.
2052 find $RPM_BUILD_ROOT -name libgcj.a \
2053         -o -name libgcj-tools.a \
2054         -o -name libgij.a \
2055         -o -name libjvm.a \
2056         -o -name libgcj_bc.a \
2057   | xargs rm -f
2058
2059 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
2060   sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
2061
2062 # security files have broken install locations, also they cause conflicts
2063 # between libgcj versions.  Simply delete them here, libgcj will use its
2064 # defaults in this case (which is what these files contain anyway).
2065 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
2066 rm -r $RPM_BUILD_ROOT%{_libdir}/security
2067 %endif
2068
2069 %if 0%{?building_libffi:1}
2070 # Move libffi headers, remove empty libffi libtool file
2071 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
2072 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
2073 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
2074 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
2075 %if %{biarch}
2076 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
2077 %endif
2078 # Generate a simple pkg-config file
2079 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
2080 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
2081 %endif
2082
2083 %if %{build_java}
2084 %if !%{build_libjava}
2085 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
2086 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
2087 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
2088 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
2089 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
2090 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
2091 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
2092 %endif
2093 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
2094 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
2095 %endif
2096 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
2097 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
2098 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
2099 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
2100 %if %{build_nof}
2101 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/nof/libiberty.a
2102 %endif
2103 %if %{biarch}
2104 %if %{build_primary_64bit}
2105 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
2106 %else
2107 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
2108 %endif
2109 %endif
2110 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
2111 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
2112
2113 # LIBFFI-DELETE-BEGIN
2114 %if 0%{?building_libjava:1}
2115 # For building libjava only we need to delete other info docs
2116 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
2117 # Remove stale manpages for binaries we do not build
2118 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
2119 # For building the java frontend we need to copy the ecj jar
2120 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
2121 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
2122 %else
2123 # For regular build, some info files do not get renamed properly.
2124 # Do so here.
2125 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
2126 %if %{build_fortran} 
2127 %ifarch %quadmath_arch
2128 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
2129 %endif
2130 %endif
2131 %if %{build_ada}
2132 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
2133 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
2134 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
2135 %endif
2136 %endif
2137
2138 # LIBJAVA-DELETE-BEGIN
2139 cd ..
2140 %find_lang gcc47-locale --all-name
2141
2142 %post info
2143 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2144 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2145 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2146 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2147 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2148 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2149 %if %{build_fortran} 
2150 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2151 %ifarch %quadmath_arch
2152 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2153 %endif
2154 %endif
2155 %if %{build_java}
2156 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
2157 %endif
2158 %if %{build_ada}
2159 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2160 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2161 %install_info --info-dir=%{_infodir} --section="GNU Ada tools" --entry="* GNAT User's Guide: (gnat_ugn). GNAT User's Guide for Unix Platforms" %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2162 %endif
2163
2164 %postun info
2165 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2166 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2167 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2168 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2169 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2170 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2171 %if %{build_fortran}
2172 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2173 %ifarch %quadmath_arch
2174 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2175 %endif
2176 %endif
2177 %if %{build_java}
2178 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
2179 %endif
2180 %if %{build_ada}
2181 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2182 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2183 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2184 %endif
2185
2186
2187 %files
2188 %defattr(-,root,root)
2189 %dir %{_libdir}/gcc
2190 %dir %{_libdir}/gcc/%{GCCDIST}
2191 %dir %{libsubdir}
2192 %dir %{libsubdir}/include
2193 %dir %{libsubdir}/include-fixed
2194 %if %{biarch}
2195 %if %{build_primary_64bit}
2196 %dir %{libsubdir}/32
2197 %else
2198 %dir %{libsubdir}/64
2199 %endif
2200 %endif
2201 %if %{build_nof}
2202 %dir %{libsubdir}/nof
2203 %endif
2204 %{_prefix}/bin/gcc%{binsuffix}
2205 %{_prefix}/bin/gcov%{binsuffix}
2206 %{_prefix}/bin/gcc-ar%{binsuffix}
2207 %{_prefix}/bin/gcc-nm%{binsuffix}
2208 %{_prefix}/bin/gcc-ranlib%{binsuffix}
2209 %{libsubdir}/collect2
2210 %{libsubdir}/lto1
2211 %{libsubdir}/lto-wrapper
2212 %{libsubdir}/liblto_plugin.so*
2213 %{libsubdir}/include-fixed/README
2214 %{libsubdir}/include-fixed/limits.h
2215 %{libsubdir}/include-fixed/syslimits.h
2216 %{libsubdir}/include/omp.h
2217 %{libsubdir}/include/float.h
2218 %{libsubdir}/include/iso646.h
2219 %{libsubdir}/include/stdarg.h
2220 %{libsubdir}/include/stdbool.h
2221 %{libsubdir}/include/stdfix.h
2222 %{libsubdir}/include/stddef.h
2223 %{libsubdir}/include/unwind.h
2224 %{libsubdir}/include/varargs.h
2225 %{libsubdir}/include/stdint.h
2226 %{libsubdir}/include/stdint-gcc.h
2227 %{libsubdir}/include/stdnoreturn.h
2228 %{libsubdir}/include/stdalign.h
2229 %ifarch %arm
2230 %{libsubdir}/include/mmintrin.h
2231 %{libsubdir}/include/arm_neon.h
2232 %{libsubdir}/include/unwind-arm-common.h
2233 %endif
2234 %ifarch %ix86 x86_64
2235 %{libsubdir}/include/cross-stdarg.h
2236 %{libsubdir}/include/cpuid.h
2237 %{libsubdir}/include/mm3dnow.h
2238 %{libsubdir}/include/mmintrin.h
2239 %{libsubdir}/include/ammintrin.h
2240 %{libsubdir}/include/bmmintrin.h
2241 %{libsubdir}/include/emmintrin.h
2242 %{libsubdir}/include/immintrin.h
2243 %{libsubdir}/include/avxintrin.h
2244 %{libsubdir}/include/pmmintrin.h
2245 %{libsubdir}/include/xmmintrin.h
2246 %{libsubdir}/include/tmmintrin.h
2247 %{libsubdir}/include/nmmintrin.h
2248 %{libsubdir}/include/smmintrin.h
2249 %{libsubdir}/include/wmmintrin.h
2250 %{libsubdir}/include/x86intrin.h
2251 %{libsubdir}/include/ia32intrin.h
2252 %{libsubdir}/include/mm_malloc.h
2253 %{libsubdir}/include/fma4intrin.h
2254 %{libsubdir}/include/xopintrin.h
2255 %{libsubdir}/include/lwpintrin.h
2256 %{libsubdir}/include/popcntintrin.h
2257 %{libsubdir}/include/bmiintrin.h
2258 %{libsubdir}/include/tbmintrin.h
2259 %{libsubdir}/include/avx2intrin.h
2260 %{libsubdir}/include/bmi2intrin.h
2261 %{libsubdir}/include/fmaintrin.h
2262 %{libsubdir}/include/lzcntintrin.h
2263 %{libsubdir}/include/f16cintrin.h
2264 %endif
2265 %if %{build_with_mudflap}
2266 %{libsubdir}/include/mf-runtime.h
2267 %endif
2268 %versmainlib *crt*.o
2269 %versmainlib libgcc*.a
2270 %versmainlib libgcov.a
2271 %versmainlib libgcc_s*.so
2272 %if %{build_with_mudflap}
2273 %versmainlib libmudflap.a
2274 %versmainlib libmudflap.so
2275 %versmainlib libmudflapth.a
2276 %versmainlib libmudflapth.so
2277 %endif
2278 %versmainlib libgomp.so
2279 %versmainlib libgomp.a
2280 %versmainlib libgomp.spec
2281 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
2282 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
2283 %if 0%{?build_optional_compiler:1}
2284 %{libsubdir}/defaults.spec
2285 %endif
2286
2287 %if %{separate_biarch}
2288 %files -n gcc47%{separate_biarch_suffix}
2289 %defattr(-,root,root)
2290 %versbiarchlib *crt*.o
2291 %versbiarchlib libgcc*.a
2292 %versbiarchlib libgcov.a
2293 %versbiarchlib libgcc_s*.so
2294 %if %{build_with_mudflap}
2295 %versbiarchlib libmudflap.a
2296 %versbiarchlib libmudflap.so
2297 %versbiarchlib libmudflapth.a
2298 %versbiarchlib libmudflapth.so
2299 %endif
2300 %versbiarchlib libgomp.so
2301 %versbiarchlib libgomp.a
2302 %versbiarchlib libgomp.spec
2303 %endif
2304
2305 %files locale -f gcc47-locale.lang
2306
2307 %if %{build_cp}
2308 %files c++
2309 %defattr(-,root,root)
2310 %dir %{_libdir}/gcc
2311 %dir %{_libdir}/gcc/%{GCCDIST}
2312 %dir %{libsubdir}
2313 %{_prefix}/bin/g++%{binsuffix}
2314 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
2315 %{libsubdir}/cc1plus
2316
2317 %files -n libstdc++47
2318 %defattr(-,root,root)
2319 %if %{build_nof}
2320 %dir %{noflibdir}
2321 %endif
2322 %mainlib libstdc++.so.*
2323
2324 %if %{separate_biarch}
2325 %files -n libstdc++47%{separate_biarch_suffix}
2326 %defattr(-,root,root)
2327 %biarchlib libstdc++.so.*
2328 %endif
2329
2330 %files -n libstdc++47-devel -f c++-headers
2331 %defattr(-,root,root)
2332 %versmainlib libstdc++.a
2333 %versmainlib libstdc++.so
2334 %versmainlib libsupc++.a
2335 %dir %{_datadir}/gdb
2336 %dir %{_datadir}/gdb/auto-load
2337 %dir %{_datadir}/gdb/auto-load%{_prefix}
2338 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
2339 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
2340 %{_datadir}/gcc%{binsuffix}
2341
2342 %if %{separate_biarch}
2343 %files -n libstdc++47-devel%{separate_biarch_suffix}
2344 %defattr(-,root,root)
2345 %versbiarchlib libstdc++.a
2346 %versbiarchlib libstdc++.so
2347 %versbiarchlib libsupc++.a
2348 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
2349 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
2350 %endif
2351
2352 %files -n libstdc++47-doc
2353 %defattr(-,root,root)
2354 %doc libstdc++-v3/doc/html
2355 %endif
2356
2357 %files -n libgcc47
2358 %defattr(-,root,root)
2359 %if 0%{!?build_optional_compiler:1}
2360 /%{_lib}/libgcc_s.so.%{libgcc_s}
2361 %if %{build_nof}
2362 %dir /lib/nof
2363 /lib/nof/libgcc_s.so.%{libgcc_s}
2364 %endif
2365 %if %{biarch}
2366 %if %{build_primary_64bit}
2367 %if !%{separate_bi32}
2368 /lib/libgcc_s.so.%{libgcc_s}
2369 %endif
2370 %else
2371 %if !%{separate_bi64}
2372 /lib64/libgcc_s.so.%{libgcc_s}
2373 %endif
2374 %endif
2375 %endif
2376 %else
2377 %versmainlib libgcc_s.so.%{libgcc_s}
2378 %endif
2379
2380 %if %{separate_bi64}
2381 %files -n libgcc47-64bit
2382 %defattr(-,root,root)
2383 %if 0%{!?build_optional_compiler:1}
2384 /lib64/libgcc_s.so.%{libgcc_s}
2385 %else
2386 %versbiarchlib libgcc_s.so.%{libgcc_s}
2387 %endif
2388 %endif
2389
2390 %if %{separate_bi32}
2391 %files -n libgcc47-32bit
2392 %defattr(-,root,root)
2393 %if 0%{!?build_optional_compiler:1}
2394 /lib/libgcc_s.so.%{libgcc_s}
2395 %else
2396 %versbiarchlib libgcc_s.so.%{libgcc_s}
2397 %endif
2398 %endif
2399
2400
2401 %files -n libgomp47
2402 %defattr(-,root,root)
2403 %mainlib libgomp.so.1*
2404
2405 %if %{separate_biarch}
2406 %files -n libgomp47%{separate_biarch_suffix}
2407 %defattr(-,root,root)
2408 %biarchlib libgomp.so.1*
2409 %endif
2410
2411
2412 %if %{build_fortran}
2413 %files fortran
2414 %defattr(-,root,root)
2415 %dir %{libsubdir}/finclude
2416 %{_prefix}/bin/gfortran%{binsuffix}
2417 %{libsubdir}/f951
2418 %{libsubdir}/finclude/*
2419 %versmainlib libgfortran.a
2420 %versmainlib libgfortran.so
2421 %versmainlib libgfortran.spec
2422 %versmainlib libgfortranbegin.a
2423 %versmainlib libcaf_single.a
2424 %ifarch %quadmath_arch
2425 %{libsubdir}/include/quadmath.h
2426 %{libsubdir}/include/quadmath_weak.h
2427 %versmainlib libquadmath.a
2428 %versmainlib libquadmath.so
2429 %endif
2430 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
2431
2432 %if %{separate_biarch}
2433 %files fortran%{separate_biarch_suffix}
2434 %defattr(-,root,root)
2435 %versbiarchlib libgfortran.a
2436 %versbiarchlib libgfortran.so
2437 %versbiarchlib libgfortran.spec
2438 %versbiarchlib libgfortranbegin.a
2439 %versbiarchlib libcaf_single.a
2440 %ifarch %quadmath_arch
2441 %versbiarchlib libquadmath.a
2442 %versbiarchlib libquadmath.so
2443 %endif
2444 %endif
2445
2446 %files -n libgfortran47
2447 %defattr(-,root,root)
2448 %mainlib libgfortran.so.*
2449
2450 %if %{separate_biarch}
2451 %files -n libgfortran47%{separate_biarch_suffix}
2452 %defattr(-,root,root)
2453 %biarchlib libgfortran.so.*
2454 %endif
2455
2456 %ifarch %quadmath_arch
2457 %files -n libquadmath47
2458 %defattr(-,root,root)
2459 %mainlib libquadmath.so.*
2460
2461 %if %{separate_biarch}
2462 %files -n libquadmath47%{separate_biarch_suffix}
2463 %defattr(-,root,root)
2464 %biarchlib libquadmath.so.*
2465 %endif
2466 %endif
2467 %endif
2468
2469 %if %{build_with_mudflap}
2470 %files -n libmudflap47
2471 %defattr(-,root,root)
2472 %mainlib libmudflap.so.0*
2473 %mainlib libmudflapth.so.0*
2474
2475 %if %{separate_biarch}
2476 %files -n libmudflap47%{separate_biarch_suffix}
2477 %defattr(-,root,root)
2478 %biarchlib libmudflap.so.0*
2479 %biarchlib libmudflapth.so.0*
2480 %endif
2481 %endif
2482
2483 %files info
2484 %defattr(-,root,root)
2485 %doc %{_infodir}/cpp%{binsuffix}.info*.gz
2486 %doc %{_infodir}/cppinternals%{binsuffix}.info*.gz
2487 %doc %{_infodir}/gcc%{binsuffix}.info*.gz
2488 %doc %{_infodir}/gccint%{binsuffix}.info*.gz
2489 %doc %{_infodir}/gccinstall%{binsuffix}.info*.gz
2490 %doc %{_infodir}/libgomp%{binsuffix}.info*.gz
2491 %if %{build_fortran}
2492 %doc %{_infodir}/gfortran%{binsuffix}.info*.gz
2493 %ifarch %quadmath_arch
2494 %doc %{_infodir}/libquadmath%{binsuffix}.info*.gz
2495 %endif
2496 %endif
2497 %if %{build_java}
2498 %doc %{_infodir}/gcj%{binsuffix}.info*.gz
2499 %endif
2500 %if %{build_ada}
2501 %doc %{_infodir}/gnat-style%{binsuffix}.info*gz
2502 %doc %{_infodir}/gnat_rm%{binsuffix}.info*gz
2503 %doc %{_infodir}/gnat_ugn%{binsuffix}.info*gz
2504 %endif
2505
2506 %files -n cpp47
2507 %defattr(-,root,root)
2508 %dir %{_libdir}/gcc
2509 %dir %{_libdir}/gcc/%{GCCDIST}
2510 %dir %{libsubdir}
2511 %{_prefix}/bin/cpp%{binsuffix}
2512 %{libsubdir}/cc1
2513 #%{libsubdir}/specs
2514 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2515
2516 %if %{build_objc}
2517 %files objc
2518 %defattr(-,root,root)
2519 %{libsubdir}/cc1obj
2520 %{libsubdir}/include/objc
2521 %versmainlib libobjc.a
2522 %versmainlib libobjc.so
2523
2524 %if %{separate_biarch}
2525 %files objc%{separate_biarch_suffix}
2526 %defattr(-,root,root)
2527 %versbiarchlib libobjc.a
2528 %versbiarchlib libobjc.so
2529 %endif
2530
2531 %files -n libobjc47
2532 %defattr(-,root,root)
2533 %mainlib libobjc.so.*
2534
2535 %if %{separate_biarch}
2536 %files -n libobjc47%{separate_biarch_suffix}
2537 %defattr(-,root,root)
2538 %biarchlib libobjc.so.*
2539 %endif
2540 %endif
2541
2542
2543 %if %{build_objcp}
2544 %files obj-c++
2545 %defattr(-,root,root)
2546 %{libsubdir}/cc1objplus
2547 %endif
2548
2549
2550 %if %{build_ada}
2551 %files ada
2552 %defattr(-,root,root)
2553 %dir %{_libdir}/gcc
2554 %dir %{_libdir}/gcc/%{GCCDIST}
2555 %dir %{libsubdir}
2556 %{_prefix}/bin/gnat*
2557 %dir %{versmainlibdir}/adainclude
2558 %dir %{versmainlibdir}/adalib
2559 %{versmainlibdir}/adainclude
2560 %{versmainlibdir}/adalib/*.ali
2561 %{versmainlibdir}/adalib/*.a
2562 %{versmainlibdir}/adalib/libgnarl.so
2563 %{versmainlibdir}/adalib/libgnat.so
2564 %{versmainlibdir}/gnat1
2565
2566 %if %{separate_biarch}
2567 %files ada%{separate_biarch_suffix}
2568 %defattr(-,root,root)
2569 %dir %{versmainlibdirbi}/adainclude
2570 %dir %{versmainlibdirbi}/adalib
2571 %{versmainlibdirbi}/adainclude
2572 %{versmainlibdirbi}/adalib/*.ali
2573 %{versmainlibdirbi}/adalib/*.a
2574 %{versmainlibdirbi}/adalib/libgnarl.so
2575 %{versmainlibdirbi}/adalib/libgnat.so
2576 %endif
2577
2578 %files -n libada47
2579 %defattr(-,root,root)
2580 %mainlib libgnarl-*.so
2581 %mainlib libgnat-*.so
2582
2583 %if %{separate_biarch}
2584 %files -n libada47%{separate_biarch_suffix}
2585 %defattr(-,root,root)
2586 %biarchlib libgnarl-*.so
2587 %biarchlib libgnat-*.so
2588 %endif
2589 %endif
2590 # LIBJAVA-DELETE-END
2591
2592
2593 %if %{build_java}
2594 %if 0%{?building_libjava:1}
2595 %files -n gcc47-java
2596 %defattr(-,root,root)
2597 %{_prefix}/bin/gcj%{binsuffix}
2598 %{_prefix}/bin/gcjh%{binsuffix}
2599 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2600 %{_prefix}/bin/jcf-dump%{binsuffix}
2601 %{_prefix}/bin/jv-convert%{binsuffix}
2602 %{_prefix}/bin/gc-analyze%{binsuffix}
2603 %{_prefix}/bin/aot-compile%{binsuffix}
2604 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2605 %{libsubdir}/jc1
2606 %{libsubdir}/jvgenmain
2607 %{libsubdir}/ecj.jar
2608 %{libsubdir}/ecj1
2609 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2610 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2611 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2612 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2613 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2614 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2615 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2616 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2617 %endif
2618 %endif
2619
2620 %if %{build_java}
2621 %if %{build_libjava}
2622 %files -n libgcj47
2623 %defattr(-,root,root)
2624 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}
2625 %dir %{_libdir}/gcc
2626 %dir %{_libdir}/gcc/%{GCCDIST}
2627 %dir %{libsubdir}
2628 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/classmap.db
2629 # We usually do not multilib libjava
2630 %if %{biarch_libjava}
2631 %versbiarchlib libgcj.la
2632 %biarchlib libgcj.so.*
2633 %biarchlib libgij.so.*
2634 %biarchlib libgcj-tools.so.*
2635 %else
2636 %versmainlib libgcj.la
2637 %mainlib libgcj.so.*
2638 %mainlib libgij.so.*
2639 %mainlib libgcj-tools.so.*
2640 %endif
2641 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjvm.la
2642 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjvm.so
2643 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjavamath.la
2644 %{_libdir}/gcj-%{gcc_dir_version}-%{gcj_sover}/libjavamath.so
2645
2646 %files -n libgcj_bc47
2647 %defattr(-,root,root)
2648 %if %{biarch_libjava}
2649 %biarchlib libgcj_bc.so.*
2650 %else
2651 %mainlib libgcj_bc.so.*
2652 %endif
2653
2654 %files -n libgcj47-jar
2655 %defattr(-,root,root)
2656 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2657 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2658
2659 %files -n libgcj47-devel
2660 %defattr(-,root,root)
2661 %dir %{_prefix}/include/c++
2662 %dir %{libsubdir}
2663 %dir %{libsubdir}/include
2664 %dir %{gxxinclude}
2665 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2666 %{libsubdir}/include/jawt.h
2667 %{libsubdir}/include/jawt_md.h
2668 %{libsubdir}/include/jni.h
2669 %{libsubdir}/include/jni_md.h
2670 %{libsubdir}/include/jvmpi.h
2671 %{gxxinclude}/gnu
2672 %{gxxinclude}/gcj
2673 %{gxxinclude}/java
2674 %{gxxinclude}/javax
2675 %{gxxinclude}/org
2676 %{gxxinclude}/sun
2677 %{libsubdir}/include/gcj
2678 %if %{biarch_libjava}
2679 %versbiarchlib libgcj.so
2680 %versbiarchlib libgcj.spec
2681 %versbiarchlib libgcj-tools.so
2682 %versbiarchlib libgij.so
2683 %versbiarchlib libgcj_bc.so
2684 %else
2685 %versmainlib libgcj.so
2686 %versmainlib libgcj.spec
2687 %versmainlib libgcj-tools.so
2688 %versmainlib libgij.so
2689 %versmainlib libgcj_bc.so
2690 %endif
2691
2692 %files -n gcc47-gij
2693 %defattr(-,root,root)
2694 %{_prefix}/bin/gij%{binsuffix}
2695 %{_prefix}/bin/gappletviewer%{binsuffix}
2696 %{_prefix}/bin/gjar%{binsuffix}
2697 %{_prefix}/bin/gjarsigner%{binsuffix}
2698 %{_prefix}/bin/gjavah%{binsuffix}
2699 %{_prefix}/bin/gkeytool%{binsuffix}
2700 %{_prefix}/bin/gnative2ascii%{binsuffix}
2701 %{_prefix}/bin/gorbd%{binsuffix}
2702 %{_prefix}/bin/grmic%{binsuffix}
2703 %{_prefix}/bin/grmid%{binsuffix}
2704 %{_prefix}/bin/grmiregistry%{binsuffix}
2705 %{_prefix}/bin/gserialver%{binsuffix}
2706 %{_prefix}/bin/gtnameserv%{binsuffix}
2707 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2708 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2709 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2710 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2711 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2712 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2713 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2714 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2715 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2716 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2717 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2718 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2719 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2720 %endif
2721 %endif
2722 # LIBFFI-DELETE-END
2723
2724 %if %{build_java}
2725 %if 0%{?building_libffi:1}
2726 %files -n libffi47
2727 %defattr(-,root,root)
2728 %mainlib libffi.so.*
2729
2730 %if %{separate_biarch}
2731 %files -n libffi47%{separate_biarch_suffix}
2732 %defattr(-,root,root)
2733 %biarchlib libffi.so.*
2734 %endif
2735
2736 %files -n libffi47-devel
2737 %defattr(-,root,root)
2738 %{_prefix}/include/ffi.h
2739 %{_prefix}/include/ffitarget.h
2740 %mainlib libffi.so
2741 %mainlib libffi.a
2742 %{_libdir}/pkgconfig/libffi.pc
2743 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2744 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2745 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2746
2747 %if %{separate_biarch}
2748 %files -n libffi47-devel%{separate_biarch_suffix}
2749 %defattr(-,root,root)
2750 %biarchlib libffi.so
2751 %biarchlib libffi.a
2752 %endif
2753 %endif
2754 %endif
2755 # GCC-TESTSUITE-DELETE-END
2756
2757 %if 0%{?run_tests:1}
2758 %files -n gcc47-testresults
2759 %defattr(-,root,root)
2760 %doc testresults/test_summary.txt
2761 %doc testresults/*.sum
2762 %doc testresults/*.log
2763 %endif
2764
2765
2766 %changelog