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