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