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