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