Update to 4.8.2.
[platform/upstream/gcc48.git] / packaging / gcc48.spec
1 #
2 # spec file for package gcc48
3 #
4 # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 #
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
14
15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
16 #
17
18 # norootforbuild
19 # icecream 0
20
21
22 %define build_ada 0
23
24 %define quadmath_arch %ix86 x86_64 ia64
25 %define tsan_arch x86_64
26 %define asan_arch x86_64 %ix86 ppc ppc64 %arm
27 %define itm_arch x86_64 %ix86 %arm ppc ppc64
28 %define atomic_arch x86_64 %ix86 %arm ppc ppc64 s390 s390x
29
30 # We don't want to build java
31 %define build_java 0
32 %define build_libjava 0
33
34 %define build_cp 1
35 %define build_fortran 0%{?building_libjava:1}%{?building_libffi:1}
36 %define build_objc 0%{?building_libjava:1}%{?building_libffi:1}
37 %define build_objcp 0%{?building_libjava:1}%{?building_libffi:1}
38 %define build_with_mudflap 0
39
40 %if %{build_objcp}
41 %define build_cp 1
42 %define build_objc 1
43 %endif
44
45 %if %{build_libjava}
46 %define build_cp 1
47 %endif
48
49 # For optional compilers only build C, C++ and Fortran
50 %if 0%{?build_optional_compiler_languages:1}
51 %define build_ada 0
52 %define build_java 0
53 %define build_libjava 0
54 %define build_objc 0
55 %define build_objcp 0
56 %endif
57
58 # Shared library SONAME versions
59 %define libgcc_s 1
60 %define libgcj_sover %{nil}
61 %define libgcj_bc_sover %{nil}
62 %define libffi_sover %{nil}
63 %define libmudflap_sover %{nil}
64 %define libgomp_sover %{nil}
65 %define libstdcxx_sover %{nil}
66 %define libobjc_sover %{nil}
67 %define libgfortran_sover %{nil}
68 %define libquadmath_sover %{nil}
69 %define libasan_sover %{nil}
70 %define libtsan_sover %{nil}
71 %define libatomic_sover %{nil}
72 %define libitm_sover %{nil}
73
74 # Shared library package suffix
75 # This is used for the "non-standard" set of libraries, the standard
76 # being defined by %product_libs_gcc_ver, the GCC version that should
77 # provide un-suffixed shared library packages following the shared-library
78 # policy.  Even suffixed variants should provide the shared-library policy
79 # mandated names and ensure they conflict with each other.
80 # Note that on SONAME changes of any library the %product_libs_gcc_ver
81 # define needs to be either split or the newest GCC version still providing
82 # the old SONAME needs to unconditionally produce an un-suffixed library
83 # if %product_libs_gcc_ver is newer than it.  Similar the _oldest_ GCC
84 # version first providing a new SONAME needs to unconditionally produce
85 # an un-suffixed library if %product_libs_gcc_ver is lower that it.
86 %if %{!?product_libs_gcc_ver:48}%{?product_libs_gcc_ver} != 48
87 %define pne 1
88 %endif
89 %define libgcc_s_suffix %{?pne:-gcc48}
90 # libgcj SONAME changes with every GCC version
91 %define libgcj_suffix %nil
92 %define libgcj_bc_suffix %{?pne:-gcc48}
93 %define libffi_suffix %{?pne:-gcc48}
94 %define libmudflap_suffix %{?pne:-gcc48}
95 %define libgomp_suffix %{?pne:-gcc48}
96 %define libstdcxx_suffix %{?pne:-gcc48}
97 %define libobjc_suffix %{?pne:-gcc48}
98 %define libgfortran_suffix %{?pne:-gcc48}
99 %define libquadmath_suffix %{?pne:-gcc48}
100 %define libasan_suffix %{?pne:-gcc48}
101 %define libtsan_suffix %{?pne:-gcc48}
102 %define libatomic_suffix %{?pne:-gcc48}
103 %define libitm_suffix %{?pne:-gcc48}
104
105
106
107
108 Name:         gcc48
109 BuildRequires: gcc-c++
110 BuildRequires: bison
111 BuildRequires: flex
112 BuildRequires: glibc-devel-32bit
113 BuildRequires: mpc-devel
114 BuildRequires: mpfr-devel
115 BuildRequires: perl
116 BuildRequires: makeinfo
117 BuildRequires: zlib-devel
118 %ifarch %ix86 x86_64 ppc ppc64 s390 s390x ia64 %sparc hppa %arm
119 BuildRequires: cloog-isl-devel
120 BuildRequires: isl-devel
121 %endif
122 %if %{build_ada}
123 %define hostsuffix -4.7
124 BuildRequires: gcc47-ada
125 %endif
126 %if 0%{?building_libjava:1}%{?building_testsuite:1}
127 BuildRequires: fastjar
128 %endif
129 %if 0%{?building_libffi:1}
130 BuildRequires: pkg-config
131 %endif
132 %ifarch ia64
133 BuildRequires: libunwind-devel
134 %endif
135 %if 0%{?run_tests:1}
136 BuildRequires: dejagnu
137 BuildRequires: expect
138 BuildRequires: gdb
139 %endif
140
141 %define separate_bi32 0
142 %define separate_bi64 0
143 %ifarch ppc sparcv9
144 # Beware, this does _not_ separate libgcj, as for that one multilibing
145 # is inactive for the time being
146 %define separate_bi64 1
147 %endif
148 %ifarch x86_64 s390x ppc64 sparc64
149 %define separate_bi32 1
150 %endif
151
152 # Define two macros to trigger -32bit or -64bit package variants
153 %define separate_biarch 0
154 %if %{separate_bi32}
155 %define separate_biarch 1
156 %define separate_biarch_suffix -32bit
157 %endif
158 %if %{separate_bi64}
159 %define separate_biarch 1
160 %define separate_biarch_suffix -64bit
161 %endif
162
163 %ifarch x86_64 ia64 s390x alpha ppc64 sparc64
164 # 64-bit is primary build target
165 %define build_primary_64bit 1
166 %else
167 %define build_primary_64bit 0
168 %endif
169
170 %define biarch_libjava 0
171
172 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
173
174 URL:          http://gcc.gnu.org/
175 Version: 4.8.2
176 Release:      1
177 %define gcc_dir_version 4.8
178 %define binsuffix -4.8
179
180 %if !0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
181 Requires: binutils glibc-devel
182 Requires: cpp48 = %{version}-%{release}
183 Requires: libgcc_s%{libgcc_s} >= %{version}-%{release}
184 Requires: libgomp%{libgomp_sover} >= %{version}-%{release}
185 %if %{build_with_mudflap}
186 Requires: libmudflap%{libmudflap_sover} >= %{version}-%{release}
187 Requires: libmudflapth%{libmudflap_sover} >= %{version}-%{release}
188 %endif
189 %ifarch %asan_arch
190 Requires: libasan%{libasan_sover} >= %{version}-%{release}
191 %endif
192 %ifarch %tsan_arch
193 Requires: libtsan%{libtsan_sover} >= %{version}-%{release}
194 %endif
195 %ifarch %atomic_arch
196 Requires: libatomic%{libatomic_sover} >= %{version}-%{release}
197 %endif
198 %ifarch %itm_arch
199 Requires: libitm%{libitm_sover} >= %{version}-%{release}
200 %endif
201 Suggests: gcc48-info gcc48-locale
202 %endif
203
204 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
205 Source:         gcc-%{version}.tar.bz2
206 Source1:        change_spec
207 Source3:        gcc48-rpmlintrc
208 Source4:        ecj.jar
209 Source6:        baselibs.conf
210
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_fortran}
1402         --disable-libquadmath \
1403 %endif
1404 %if !%{build_libjava}
1405         --disable-libgcj \
1406 %else
1407         --with-java-home=%{_libdir}/jvm/java-1.5.0-gcj%{binsuffix}-1.5.0.0/jre \
1408         --with-ecj-jar=%{libsubdir}/ecj.jar \
1409         --disable-java-awt \
1410 %if !%{biarch_libjava}
1411         --disable-libjava-multilib \
1412 %endif
1413 %endif
1414 %if !%{build_with_mudflap}
1415         --disable-libmudflap \
1416 %endif
1417         --with-slibdir=/%{_lib} \
1418         --with-system-zlib \
1419         --enable-__cxa_atexit \
1420         --enable-libstdcxx-allocator=new \
1421         --disable-libstdcxx-pch \
1422         --enable-version-specific-runtime-libs \
1423         --enable-linker-build-id \
1424 %if 0%{?gcc_target_arch:1}
1425 %if 0%{?gcc_icecream:1}
1426         --with-sysroot=/ \
1427         --with-gxx-include-dir=%{_prefix}/%{gcc_target_arch}%{?canonical_target_abi:%canonical_target_abi}/include/c++/%{gcc_dir_version} \
1428         --enable-linux-futex \
1429 %endif
1430 %if 0%{?canonical_target:1}
1431         --with-build-time-tools=/usr/%{canonical_target}-tizen-linux%{?canonical_target_abi:%canonical_target_abi}/bin \
1432 %endif
1433 %if 0%{?sysroot:1}
1434         --with-sysroot=%sysroot \
1435 %endif
1436 %if 0%{?build_static:1}
1437         --disable-shared \
1438 %endif
1439 %if "%{TARGET_ARCH}" == "spu"
1440         --with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \
1441         --with-newlib \
1442 %endif
1443         --disable-nls \
1444         --target=%{CONFIGURE_TARGET} \
1445 %else
1446         --program-suffix=%{binsuffix} \
1447         --enable-linux-futex \
1448 %ifarch ia64
1449         --with-system-libunwind \
1450 %else
1451         --without-system-libunwind \
1452 %endif
1453 %endif
1454 %if "%{TARGET_ARCH}" == "armv5tel"
1455         --with-arch=armv5te \
1456         --with-float=soft \
1457         --with-mode=arm \
1458         --with-abi=aapcs-linux \
1459         --disable-sjlj-exceptions \
1460 %endif
1461 %if "%{TARGET_ARCH}" == "armv7l" 
1462         --with-arch=armv7-a \
1463         --with-tune=cortex-a8 \
1464         --with-float=softfp \
1465         --with-fpu=vfpv3 \
1466         --with-mode=thumb \
1467         --disable-sjlj-exceptions \
1468 %endif
1469 %if  "%{TARGET_ARCH}" == "armv7hl"
1470         --with-arch=armv7-a \
1471         --with-tune=cortex-a9 \
1472         --with-float=hard \
1473         --with-abi=aapcs-linux \
1474         --with-fpu=vfpv3-d16 \
1475         --disable-sjlj-exceptions \
1476 %endif
1477 %if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64"
1478 %if "%{TARGET_ARCH}" == "powerpc"
1479         --with-cpu=default32 \
1480 %endif
1481         --with-cpu-64=power4 \
1482         --enable-secureplt \
1483         --with-long-double-128 \
1484 %endif
1485 %if "%{TARGET_ARCH}" == "sparc64"
1486         --with-cpu=ultrasparc \
1487         --with-long-double-128 \
1488 %endif
1489 %if "%{TARGET_ARCH}" == "sparc"
1490         --with-cpu=v8 \
1491         --with-long-double-128 \
1492 %endif
1493 %if "%{TARGET_ARCH}" == "i586"
1494         --with-arch-32=i586 \
1495         --with-tune=generic \
1496 %endif
1497 %if "%{TARGET_ARCH}" == "x86_64"
1498         --with-arch-32=i586 \
1499         --with-tune=generic \
1500 %endif
1501 %if "%{TARGET_ARCH}" == "s390"
1502         --with-tune=z196 --with-arch=z10 \
1503         --with-long-double-128 \
1504         --enable-decimal-float \
1505 %endif
1506 %if "%{TARGET_ARCH}" == "s390x"
1507         --with-tune=z196 --with-arch=z10 \
1508         --with-long-double-128 \
1509         --enable-decimal-float \
1510 %endif
1511         --build=%{GCCDIST}
1512
1513
1514 %if 0%{?building_libffi:1}
1515 make stage1-bubble $PARALLEL
1516 make all-target-libffi $PARALLEL
1517 %else
1518 STAGE1_FLAGS="-g"
1519 # Only run profiled bootstrap on archs where it works
1520 #%ifarch %ix86 x86_64 ppc ppc64 ia64
1521 #make profiledbootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1522 #%else
1523 #make bootstrap-lean STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1524 make STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
1525 #%endif
1526 #make -C gcc proto
1527 make info
1528 %if 0%{?run_tests:1}
1529 echo "Run testsuite"
1530 (make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
1531 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
1532 mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
1533 # asan needs a whole shadow address space
1534 ulimit -v unlimited || true
1535 make -k check $PARALLEL || true
1536 mkdir ../testresults
1537 ../contrib/test_summary | tee ../testresults/test_summary.txt
1538 %endif
1539 %endif
1540
1541 %install
1542 export NO_BRP_CHECK_BYTECODE_VERSION=true
1543 cd obj-%{GCCDIST}
1544 # Work around tail/head -1 changes
1545 export _POSIX2_VERSION=199209
1546 export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
1547 %if 0%{?building_libffi:1}
1548 make -C %{GCCDIST}/libffi install DESTDIR=$RPM_BUILD_ROOT
1549 %else
1550 %if 0%{?building_libjava:1}
1551 make -C %{GCCDIST}/libjava install DESTDIR=$RPM_BUILD_ROOT
1552 make -C gcc java.install-man DESTDIR=$RPM_BUILD_ROOT
1553 make -C gcc java.install-common DESTDIR=$RPM_BUILD_ROOT
1554 make -C gcc install-common DESTDIR=$RPM_BUILD_ROOT COMPILERS='jc1$(exeext) jvgenmain$(exeext)'
1555 # install-common also installs collect2, gcov and the g++ and gfortran driver
1556 %if %{build_cp}
1557 rm $RPM_BUILD_ROOT%{_prefix}/bin/g++%{binsuffix}
1558 %endif
1559 %if %{build_fortran}
1560 rm $RPM_BUILD_ROOT%{_prefix}/bin/gfortran%{binsuffix}
1561 %endif
1562 rm $RPM_BUILD_ROOT%{_prefix}/bin/gcov%{binsuffix}
1563 rm $RPM_BUILD_ROOT%{libsubdir}/collect2
1564 %else
1565 make install DESTDIR=$RPM_BUILD_ROOT
1566 %if %{build_java}
1567 make -C gcc java.uninstall DESTDIR=$RPM_BUILD_ROOT
1568 make -C gcc java.install-info DESTDIR=$RPM_BUILD_ROOT
1569 rm $RPM_BUILD_ROOT%{_prefix}/bin/jcf-dump%{binsuffix}
1570 rm $RPM_BUILD_ROOT%{_mandir}/man1/jcf-dump%{binsuffix}.1
1571 rm $RPM_BUILD_ROOT%{libsubdir}/jc1
1572 rm $RPM_BUILD_ROOT%{libsubdir}/jvgenmain
1573 %endif
1574 %endif
1575 %endif
1576
1577 # Remove libffi installed files if we did not want to build it
1578 %if !0%{?building_libffi:1}
1579 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.*
1580 %if %{biarch}
1581   rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.*
1582 %endif
1583 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h
1584 rm -f $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h
1585 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi%{binsuffix}.3*
1586 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_call%{binsuffix}.3*
1587 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif%{binsuffix}.3*
1588 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3*
1589 %endif
1590
1591 # Remove some useless .la files
1592 for lib in libobjc libgfortran libgfortranbegin libquadmath libcaf_single \
1593     libmudflap libmudflapth libgomp libstdc++ libsupc++ libgcj-tools libgij \
1594     libasan libatomic libitm libtsan; do
1595   rm -f $RPM_BUILD_ROOT%{versmainlibdir}/$lib.la
1596 %if %{biarch}
1597   rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/$lib.la
1598 %endif
1599 done
1600
1601 mkdir -p $RPM_BUILD_ROOT%{_libdir}
1602 %if %{biarch}
1603 %if %{build_primary_64bit}
1604 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
1605 %else
1606 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib64
1607 %endif
1608 %endif
1609
1610 %if %{build_cp}
1611 # Merge multilib c++config.h to allow omitting the duplicate and
1612 # identical other arch specific headers
1613 dir_ml=
1614 cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
1615 for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
1616   if ! diff -up $cxxconfig $i; then
1617     file_32=x
1618     file_64=x
1619     case $i in
1620       %{GCCDIST}/32/*)
1621         file_32=$i
1622         file_64=$cxxconfig
1623         dir_ml=32
1624         ;;
1625       %{GCCDIST}/64/*)
1626         file_32=$cxxconfig
1627         file_64=$i
1628         dir_ml=64
1629         ;;
1630     esac
1631     if ! ( test -f "$file_32" && test -f "$file_64" ); then
1632       echo "Urgs?"
1633       exit 1
1634     fi
1635     
1636     cat > $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
1637 #ifndef _CPP_CPPCONFIG_WRAPPER
1638 #define _CPP_CPPCONFIG_WRAPPER 1
1639 #include <bits/wordsize.h>
1640 #if __WORDSIZE == 32
1641 `cat $file_32`
1642 #else
1643 `cat $file_64`
1644 #endif
1645 #endif
1646 EOF
1647     break
1648   fi
1649 done
1650 rm -rf $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
1651 if ! test -z "$dir_ml"; then
1652   ln -s . $RPM_BUILD_ROOT%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
1653 fi
1654 %endif
1655
1656 # move shared libs from versionspecific dir to main libdir
1657 for libname in \
1658 %if 0%{?building_libjava:1}
1659   libgcj libgij libgcj-tools \
1660 %else
1661 %if %{build_fortran}
1662   libgfortran \
1663 %ifarch %quadmath_arch
1664   libquadmath \
1665 %endif
1666 %endif
1667 %if %{build_objc}
1668   libobjc \
1669 %endif
1670 %if %{build_cp}
1671   libstdc++ \
1672 %endif
1673   libgomp \
1674 %ifarch %atomic_arch
1675   libatomic \
1676 %endif
1677 %ifarch %itm_arch
1678   libitm \
1679 %endif
1680 %ifarch %asan_arch
1681   libasan \
1682 %endif
1683 %ifarch %tsan_arch
1684   libtsan \
1685 %endif
1686 %if %{build_with_mudflap}
1687   libmudflap libmudflapth \
1688 %endif
1689 %endif
1690     ; do
1691   for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
1692     mv $lib $RPM_BUILD_ROOT%{mainlibdir}/
1693   done
1694   ln -sf %{mainlibdir}/`readlink $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'`  \
1695          $RPM_BUILD_ROOT%{versmainlibdir}/$libname.so
1696 %if %{biarch}
1697   if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1698     for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
1699       mv $lib $RPM_BUILD_ROOT%{mainlibdirbi}/
1700     done
1701     ln -sf %{mainlibdirbi}/`readlink $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'`  \
1702          $RPM_BUILD_ROOT%{versmainlibdirbi}/$libname.so
1703   fi
1704 %endif
1705 done
1706 # FIXME, tsan is not multilib
1707 %ifarch %tsan_arch
1708 %if %{biarch}
1709 rm -f $RPM_BUILD_ROOT%{versmainlibdirbi}/libtsan.so
1710 %endif
1711 %endif
1712 %if %{build_cp}
1713 %if !0%{?building_libjava:1}
1714 # And we want to move the shlib gdb pretty printers to a more sane
1715 # place so ldconfig does not complain
1716 mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}
1717 mv $RPM_BUILD_ROOT%{mainlibdir}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/
1718 sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
1719 %if %{biarch}
1720   if test -d $RPM_BUILD_ROOT%{versmainlibdirbi}; then
1721     mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}
1722     mv $RPM_BUILD_ROOT%{mainlibdirbi}/libstdc++.so.*-gdb.py $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/
1723     sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
1724   fi
1725 %endif
1726 %endif
1727 %endif
1728 %if 0%{?building_libjava:1}
1729 # libgcj_bc is special as the .so file is actually a different
1730 # library as the library refered to by the SONAME which should
1731 # be a simple link to our libgcj.
1732 for lib in `find $RPM_BUILD_ROOT%{versmainlibdir} -maxdepth 1 -name libgcj_bc.so.*`; do
1733   rm $lib
1734 done
1735 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdir}/libgcj_bc.so.%{libgcj_bc_sover}
1736 %if %{biarch_libjava}
1737 for lib in `find $RPM_BUILD_ROOT%{versmainlibdirbi} -maxdepth 1 -name libgcj_bc.so.*`; do
1738   rm $lib
1739 done
1740 ln -s libgcj.so.%{libgcj_sover} $RPM_BUILD_ROOT%{mainlibdirbi}/libgcj_bc.so.%{libgcj_bc_sover}
1741 %endif
1742 %endif
1743
1744 # Move libgcc_s around
1745 if test -L $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so; then
1746   rm -f $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so
1747   ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdir}/libgcc_s.so
1748 else
1749   mv $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdir}/
1750 fi
1751 chmod a+x $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.%{libgcc_s}
1752 %if %{biarch}
1753 %if %{build_primary_64bit}
1754 if test -L $RPM_BUILD_ROOT/lib/libgcc_s.so; then
1755   rm -f $RPM_BUILD_ROOT/lib/libgcc_s.so
1756   ln -sf /lib/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s.so
1757 else
1758   mv $RPM_BUILD_ROOT/lib/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/
1759 fi
1760 ln -sf %{versmainlibdirbi32}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi32}/libgcc_s_32.so
1761 chmod a+x $RPM_BUILD_ROOT/lib/libgcc_s.so.%{libgcc_s}
1762 %else
1763 # 32-bit biarch systems
1764 if test -L $RPM_BUILD_ROOT/lib64/libgcc_s.so; then
1765   rm -f $RPM_BUILD_ROOT/lib64/libgcc_s.so
1766   ln -sf /lib64/libgcc_s.so.%{libgcc_s} $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s.so
1767 else
1768   mv $RPM_BUILD_ROOT/lib64/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/
1769 fi
1770 ln -sf %{versmainlibdirbi64}/libgcc_s.so $RPM_BUILD_ROOT%{versmainlibdirbi64}/libgcc_s_64.so
1771 chmod a+x $RPM_BUILD_ROOT/lib64/libgcc_s.so.%{libgcc_s}
1772 %endif
1773 %endif
1774
1775
1776 %if %{build_ada}
1777 mv $RPM_BUILD_ROOT%{libsubdir}/adalib/lib*-*.so $RPM_BUILD_ROOT%{_libdir}
1778 ln -sf %{_libdir}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnarl.so
1779 ln -sf %{_libdir}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{libsubdir}/adalib/libgnat.so
1780 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libgna*-*.so
1781 %if %{biarch}
1782 mv $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/lib*-*.so $RPM_BUILD_ROOT%{mainlibdirbi}/
1783 ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1784 ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so $RPM_BUILD_ROOT%{versmainlibdirbi}/adalib/libgnarl.so
1785 chmod a+x $RPM_BUILD_ROOT%{mainlibdirbi}/libgna*-*.so
1786 %endif
1787 %endif
1788
1789 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/c++%{binsuffix}
1790
1791 # Remove some crap from the .la files:
1792 for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
1793   echo "changing $l"
1794 # -e '/^dependency_libs/s|%{libsubdir}/\([^.]*\)\.la |%{_libdir}/\1\.la |g'
1795   sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
1796       -e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
1797       -e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
1798       -e '/^dependency_libs/s|-L[^ ]* ||g' \
1799 %if %{biarch}
1800 %if %{build_primary_64bit}
1801       -e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
1802       -e '/^libdir/s|lib64/\.\./||' \
1803 %else
1804       -e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
1805 %endif
1806 %endif
1807       < $l  > $l.new
1808   mv $l.new $l
1809 done
1810
1811 %if 0%{?run_tests:1} 
1812 cp `find . -name "*.sum"` ../testresults/
1813 cp `find . -name "*.log"  \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
1814 chmod 644 ../testresults/*
1815 %endif
1816 %if %{build_cp}
1817 # Find C++ and Java headers
1818 find $RPM_BUILD_ROOT%{_prefix}/include/c++ \
1819   -regex ".*/\(org\|gcj\|gnu\|java\|javax\)" -prune \
1820   -o \( -type d -printf "%%%%dir " , \
1821         -printf "%{_prefix}/include/c++/%%P\n" \) > ../c++-headers
1822 %endif
1823 # Remove files that we do not need to clean up filelist
1824 rm -f $RPM_BUILD_ROOT%{_prefix}/bin/%{GCCDIST}-*
1825 rm -rf $RPM_BUILD_ROOT%{libsubdir}/install-tools
1826 #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
1827 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/root
1828 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/curses.h
1829 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/asm-*
1830 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/linux
1831 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sound
1832 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/features.h
1833 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/ncurses.h
1834 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/stdio.h
1835 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/zutil.h
1836 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/X11
1837 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1838 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/obstack.h
1839 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/spe.h
1840 rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/tgmath.h
1841 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits
1842 rm -rf $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys
1843 # no plugins
1844 rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin
1845 rm -f  $RPM_BUILD_ROOT%{_infodir}/dir
1846 rm -f  $RPM_BUILD_ROOT%{_prefix}/bin/gccbug%{binsuffix}
1847
1848 %if !0%{?building_libjava:1}%{?building_libffi:1}
1849 # delete compile flag tracking from crt files
1850 crt_list=$RPM_BUILD_ROOT%{versmainlibdir}/crt*.o
1851 %if %{biarch}
1852 %if %{build_primary_64bit}
1853 crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
1854 %else
1855 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
1856 %endif
1857 %endif
1858 for o in $crt_list $crt32_list $crt64_list; do
1859   objcopy -R ".comment.SUSE.OPTs" $o
1860 done
1861 %endif
1862
1863 %if 0%{?building_libjava:1}
1864 # gcj -static doesn't work properly anyway, unless using --whole-archive
1865 # let's save the space instead.
1866 find $RPM_BUILD_ROOT -name libgcj.a \
1867         -o -name libgcj-tools.a \
1868         -o -name libgij.a \
1869         -o -name libjvm.a \
1870         -o -name libgcj_bc.a \
1871   | xargs rm -f
1872
1873 find $RPM_BUILD_ROOT -name libgcj.spec | xargs \
1874   sed -i -e 's/lib: /&%%{static:%%eJava programs cannot be linked statically}/'
1875
1876 # security files have broken install locations, also they cause conflicts
1877 # between libgcj versions.  Simply delete them here, libgcj will use its
1878 # defaults in this case (which is what these files contain anyway).
1879 rm $RPM_BUILD_ROOT%{_libdir}/logging.properties
1880 rm -r $RPM_BUILD_ROOT%{_libdir}/security
1881 %endif
1882
1883 %if 0%{?building_libffi:1}
1884 # Move libffi headers, remove empty libffi libtool file
1885 mkdir -p $RPM_BUILD_ROOT%{_prefix}/include
1886 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffitarget.h $RPM_BUILD_ROOT%{_prefix}/include/
1887 mv $RPM_BUILD_ROOT%{libsubdir}/include/ffi.h $RPM_BUILD_ROOT%{_prefix}/include/
1888 rm -f $RPM_BUILD_ROOT%{mainlibdir}/libffi.la
1889 %if %{biarch}
1890 rm -f $RPM_BUILD_ROOT%{mainlibdirbi}/libffi.la
1891 %endif
1892 # Generate a simple pkg-config file
1893 mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
1894 echo -e 'Name: libffi\nVersion: 3.0.9\nDescription: libffi\nLibs: -lffi' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libffi.pc
1895 %endif
1896
1897 %if %{build_java}
1898 %if !%{build_libjava}
1899 rm $RPM_BUILD_ROOT%{_mandir}/man1/jv-convert%{binsuffix}.1
1900 rm $RPM_BUILD_ROOT%{_mandir}/man1/gcj-dbtool%{binsuffix}.1
1901 rm $RPM_BUILD_ROOT%{_mandir}/man1/gij%{binsuffix}.1
1902 rm $RPM_BUILD_ROOT%{_mandir}/man1/grmic%{binsuffix}.1
1903 rm $RPM_BUILD_ROOT%{_mandir}/man1/gc-analyze%{binsuffix}.1
1904 rm $RPM_BUILD_ROOT%{_mandir}/man1/aot-compile%{binsuffix}.1
1905 rm $RPM_BUILD_ROOT%{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1
1906 %endif
1907 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/aotcompile.py
1908 rm -f $RPM_BUILD_ROOT%{_datadir}/gcc%{binsuffix}/python/libjava/classfile.py
1909 %endif
1910 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/fsf-funding.7
1911 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gfdl.7
1912 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/gpl.7
1913 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
1914 %if %{biarch}
1915 %if %{build_primary_64bit}
1916 rm -f $RPM_BUILD_ROOT%{_prefix}/lib/libiberty.a
1917 %else
1918 rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/libiberty.a
1919 %endif
1920 %endif
1921 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.a
1922 rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
1923
1924 %if 0%{?building_libjava:1}
1925 # For building libjava only we need to delete other info docs
1926 rm $RPM_BUILD_ROOT%{_infodir}/cp-tools.info*
1927 # Remove stale manpages for binaries we do not build
1928 rm $RPM_BUILD_ROOT%{_mandir}/man1/gjdoc%{binsuffix}.1
1929 # For building the java frontend we need to copy the ecj jar
1930 mkdir -p $RPM_BUILD_ROOT%{libsubdir}
1931 cp $RPM_SOURCE_DIR/ecj.jar $RPM_BUILD_ROOT%{libsubdir}
1932 %else
1933 # For regular build, some info files do not get renamed properly.
1934 # Do so here.
1935 mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{binsuffix}.info
1936 %ifarch %itm_arch
1937 mv $RPM_BUILD_ROOT%{_infodir}/libitm.info $RPM_BUILD_ROOT%{_infodir}/libitm%{binsuffix}.info
1938 %endif
1939 %if %{build_fortran} 
1940 %ifarch %quadmath_arch
1941 mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
1942 %endif
1943 %endif
1944 %if %{build_ada}
1945 mv $RPM_BUILD_ROOT%{_infodir}/gnat-style.info $RPM_BUILD_ROOT%{_infodir}/gnat-style%{binsuffix}.info
1946 mv $RPM_BUILD_ROOT%{_infodir}/gnat_rm.info $RPM_BUILD_ROOT%{_infodir}/gnat_rm%{binsuffix}.info
1947 mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%{binsuffix}.info
1948 %endif
1949 %endif
1950
1951 cd ..
1952 %find_lang cpplib%{binsuffix}
1953 %find_lang gcc%{binsuffix}
1954 cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc48-locale.lang
1955
1956
1957 %post info
1958 %install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1959 %install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1960 %install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1961 %install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1962 %install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1963 %install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1964 %if %{build_fortran} 
1965 %install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1966 %ifarch %quadmath_arch
1967 %install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1968 %endif
1969 %endif
1970 %if %{build_java}
1971 %install_info --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1972 %endif
1973 %if %{build_ada}
1974 %install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1975 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1976 %install_info --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
1977 %endif
1978
1979 %postun info
1980 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
1981 %install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
1982 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
1983 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
1984 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
1985 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
1986 %if %{build_fortran}
1987 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
1988 %ifarch %quadmath_arch
1989 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
1990 %endif
1991 %endif
1992 %if %{build_java}
1993 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcj%{binsuffix}.info.gz
1994 %endif
1995 %if %{build_ada}
1996 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
1997 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
1998 %install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
1999 %endif
2000
2001 %files
2002 %defattr(-,root,root)
2003 %dir %{_libdir}/gcc
2004 %dir %{_libdir}/gcc/%{GCCDIST}
2005 %dir %{libsubdir}
2006 %dir %{libsubdir}/include
2007 %dir %{libsubdir}/include-fixed
2008 %if %{biarch}
2009 %if %{build_primary_64bit}
2010 %dir %{libsubdir}/32
2011 %else
2012 %dir %{libsubdir}/64
2013 %endif
2014 %endif
2015 %{_prefix}/bin/gcc%{binsuffix}
2016 %{_prefix}/bin/gcov%{binsuffix}
2017 %{_prefix}/bin/gcc-ar%{binsuffix}
2018 %{_prefix}/bin/gcc-nm%{binsuffix}
2019 %{_prefix}/bin/gcc-ranlib%{binsuffix}
2020 %{libsubdir}/collect2
2021 %{libsubdir}/lto1
2022 %{libsubdir}/lto-wrapper
2023 %{libsubdir}/liblto_plugin.so*
2024 %{libsubdir}/include-fixed/README
2025 %{libsubdir}/include-fixed/limits.h
2026 %{libsubdir}/include-fixed/syslimits.h
2027 %{libsubdir}/include/omp.h
2028 %{libsubdir}/include/float.h
2029 %{libsubdir}/include/iso646.h
2030 %{libsubdir}/include/stdarg.h
2031 %{libsubdir}/include/stdbool.h
2032 %{libsubdir}/include/stdfix.h
2033 %{libsubdir}/include/stddef.h
2034 %{libsubdir}/include/unwind.h
2035 %{libsubdir}/include/varargs.h
2036 %{libsubdir}/include/stdint.h
2037 %{libsubdir}/include/stdint-gcc.h
2038 %{libsubdir}/include/stdnoreturn.h
2039 %{libsubdir}/include/stdalign.h
2040 %ifarch %sparc
2041 %{libsubdir}/include/visintrin.h
2042 %endif
2043 %ifarch ppc ppc64
2044 %{libsubdir}/include/altivec.h
2045 %{libsubdir}/include/ppc-asm.h
2046 %{libsubdir}/include/paired.h
2047 %{libsubdir}/include/ppu_intrinsics.h
2048 %{libsubdir}/include/si2vmx.h
2049 %{libsubdir}/include/spe.h
2050 %{libsubdir}/include/spu2vmx.h
2051 %{libsubdir}/include/vec_types.h
2052 %endif
2053 %ifarch ia64
2054 %{libsubdir}/include/ia64intrin.h
2055 %endif
2056 %ifarch aarch64
2057 %{libsubdir}/include/arm_neon.h
2058 %endif
2059 %ifarch %arm
2060 %{libsubdir}/include/mmintrin.h
2061 %{libsubdir}/include/arm_neon.h
2062 %{libsubdir}/include/unwind-arm-common.h
2063 %endif
2064 %ifarch %ix86 x86_64
2065 %{libsubdir}/include/cross-stdarg.h
2066 %{libsubdir}/include/cpuid.h
2067 %{libsubdir}/include/mm3dnow.h
2068 %{libsubdir}/include/mmintrin.h
2069 %{libsubdir}/include/ammintrin.h
2070 %{libsubdir}/include/bmmintrin.h
2071 %{libsubdir}/include/emmintrin.h
2072 %{libsubdir}/include/immintrin.h
2073 %{libsubdir}/include/avxintrin.h
2074 %{libsubdir}/include/pmmintrin.h
2075 %{libsubdir}/include/xmmintrin.h
2076 %{libsubdir}/include/tmmintrin.h
2077 %{libsubdir}/include/nmmintrin.h
2078 %{libsubdir}/include/smmintrin.h
2079 %{libsubdir}/include/wmmintrin.h
2080 %{libsubdir}/include/x86intrin.h
2081 %{libsubdir}/include/ia32intrin.h
2082 %{libsubdir}/include/mm_malloc.h
2083 %{libsubdir}/include/fma4intrin.h
2084 %{libsubdir}/include/xopintrin.h
2085 %{libsubdir}/include/lwpintrin.h
2086 %{libsubdir}/include/popcntintrin.h
2087 %{libsubdir}/include/bmiintrin.h
2088 %{libsubdir}/include/tbmintrin.h
2089 %{libsubdir}/include/avx2intrin.h
2090 %{libsubdir}/include/bmi2intrin.h
2091 %{libsubdir}/include/fmaintrin.h
2092 %{libsubdir}/include/lzcntintrin.h
2093 %{libsubdir}/include/f16cintrin.h
2094 %{libsubdir}/include/adxintrin.h
2095 %{libsubdir}/include/fxsrintrin.h
2096 %{libsubdir}/include/prfchwintrin.h
2097 %{libsubdir}/include/rdseedintrin.h
2098 %{libsubdir}/include/rtmintrin.h
2099 %{libsubdir}/include/xsaveintrin.h
2100 %{libsubdir}/include/xsaveoptintrin.h
2101 %{libsubdir}/include/xtestintrin.h
2102 %endif
2103 %if %{build_with_mudflap}
2104 %{libsubdir}/include/mf-runtime.h
2105 %endif
2106 %versmainlib *crt*.o
2107 %versmainlib libgcc*.a
2108 %versmainlib libgcov.a
2109 %versmainlib libgcc_s*.so
2110 %if %{build_with_mudflap}
2111 %versmainlib libmudflap.a
2112 %versmainlib libmudflap.so
2113 %versmainlib libmudflapth.a
2114 %versmainlib libmudflapth.so
2115 %endif
2116 %versmainlib libgomp.so
2117 %versmainlib libgomp.a
2118 %versmainlib libgomp.spec
2119 %ifarch %itm_arch
2120 %versmainlib libitm.so
2121 %versmainlib libitm.a
2122 %versmainlib libitm.spec
2123 %endif
2124 %ifarch %atomic_arch
2125 %versmainlib libatomic.so
2126 %versmainlib libatomic.a
2127 %endif
2128 %ifarch %asan_arch
2129 %versmainlib libasan.so
2130 %versmainlib libasan.a
2131 %versmainlib libasan_preinit.o
2132 %endif
2133 %ifarch %tsan_arch
2134 %versmainlib libtsan.so
2135 %versmainlib libtsan.a
2136 %endif
2137 %doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
2138 %doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
2139
2140 %if %{separate_biarch}
2141 %files -n gcc48%{separate_biarch_suffix}
2142 %defattr(-,root,root)
2143 %versbiarchlib *crt*.o
2144 %versbiarchlib libgcc*.a
2145 %versbiarchlib libgcov.a
2146 %versbiarchlib libgcc_s*.so
2147 %if %{build_with_mudflap}
2148 %versbiarchlib libmudflap.a
2149 %versbiarchlib libmudflap.so
2150 %versbiarchlib libmudflapth.a
2151 %versbiarchlib libmudflapth.so
2152 %endif
2153 %versbiarchlib libgomp.so
2154 %versbiarchlib libgomp.a
2155 %versbiarchlib libgomp.spec
2156 %ifarch %itm_arch
2157 %versbiarchlib libitm.so
2158 %versbiarchlib libitm.a
2159 %versbiarchlib libitm.spec
2160 %endif
2161 %ifarch %atomic_arch
2162 %versbiarchlib libatomic.a
2163 %versbiarchlib libatomic.so
2164 %endif
2165 %ifarch %asan_arch
2166 %versbiarchlib libasan.a
2167 %versbiarchlib libasan.so
2168 %versbiarchlib libasan_preinit.o
2169 %endif
2170 %if 0
2171 %ifarch %tsan_arch
2172 %versbiarchlib libtsan.a
2173 %versbiarchlib libtsan.so
2174 %endif
2175 %endif
2176 %endif
2177
2178 %files locale -f gcc48-locale.lang
2179
2180 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
2181
2182 %if %{build_cp}
2183 %files c++
2184 %defattr(-,root,root)
2185 %dir %{_libdir}/gcc
2186 %dir %{_libdir}/gcc/%{GCCDIST}
2187 %dir %{libsubdir}
2188 %{_prefix}/bin/g++%{binsuffix}
2189 %doc %{_mandir}/man1/g++%{binsuffix}.1.gz
2190 %{libsubdir}/cc1plus
2191
2192 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
2193 %defattr(-,root,root)
2194 %mainlib libstdc++.so.%{libstdcxx_sover}*
2195
2196 %if %{separate_biarch}
2197 %files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}%{separate_biarch_suffix}
2198 %defattr(-,root,root)
2199 %biarchlib libstdc++.so.%{libstdcxx_sover}*
2200 %endif
2201
2202 %files -n libstdc++48-devel -f c++-headers
2203 %defattr(-,root,root)
2204 %versmainlib libstdc++.a
2205 %versmainlib libstdc++.so
2206 %versmainlib libsupc++.a
2207 %dir %{_datadir}/gdb
2208 %dir %{_datadir}/gdb/auto-load
2209 %dir %{_datadir}/gdb/auto-load%{_prefix}
2210 %dir %{_datadir}/gdb/auto-load/%{mainlibdir}
2211 %{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
2212 %{_datadir}/gcc%{binsuffix}
2213
2214 %if %{separate_biarch}
2215 %files -n libstdc++48-devel%{separate_biarch_suffix}
2216 %defattr(-,root,root)
2217 %versbiarchlib libstdc++.a
2218 %versbiarchlib libstdc++.so
2219 %versbiarchlib libsupc++.a
2220 %dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
2221 %{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
2222 %endif
2223
2224 %files -n libstdc++48-doc
2225 %defattr(-,root,root)
2226 %doc libstdc++-v3/doc/html
2227 %endif
2228
2229 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
2230 %defattr(-,root,root)
2231 /%{_lib}/libgcc_s.so.%{libgcc_s}
2232 %if %{biarch}
2233 %if %{build_primary_64bit}
2234 %if !%{separate_bi32}
2235 /lib/libgcc_s.so.%{libgcc_s}
2236 %endif
2237 %else
2238 %if !%{separate_bi64}
2239 /lib64/libgcc_s.so.%{libgcc_s}
2240 %endif
2241 %endif
2242 %endif
2243
2244 %if %{separate_bi64}
2245 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
2246 %defattr(-,root,root)
2247 /lib64/libgcc_s.so.%{libgcc_s}
2248 %endif
2249
2250 %if %{separate_bi32}
2251 %files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
2252 %defattr(-,root,root)
2253 /lib/libgcc_s.so.%{libgcc_s}
2254 %endif
2255
2256
2257 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}
2258 %defattr(-,root,root)
2259 %mainlib libgomp.so.%{libgomp_sover}*
2260
2261 %if %{separate_biarch}
2262 %files -n libgomp%{libgomp_sover}%{libgomp_suffix}%{separate_biarch_suffix}
2263 %defattr(-,root,root)
2264 %biarchlib libgomp.so.%{libgomp_sover}*
2265 %endif
2266
2267
2268 %ifarch %asan_arch
2269 %files -n libasan%{libasan_sover}%{libasan_suffix}
2270 %defattr(-,root,root)
2271 %mainlib libasan.so.%{libasan_sover}*
2272
2273 %if %{separate_biarch}
2274 %files -n libasan%{libasan_sover}%{libasan_suffix}%{separate_biarch_suffix}
2275 %defattr(-,root,root)
2276 %biarchlib libasan.so.%{libasan_sover}*
2277 %endif
2278 %endif
2279
2280
2281 %ifarch %tsan_arch
2282 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}
2283 %defattr(-,root,root)
2284 %mainlib libtsan.so.%{libtsan_sover}*
2285
2286 %if 0
2287 %if %{separate_biarch}
2288 %files -n libtsan%{libtsan_sover}%{libtsan_suffix}%{separate_biarch_suffix}
2289 %defattr(-,root,root)
2290 %biarchlib libtsan.so.%{libtsan_sover}*
2291 %endif
2292 %endif
2293 %endif
2294
2295
2296 %ifarch %atomic_arch
2297 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}
2298 %defattr(-,root,root)
2299 %mainlib libatomic.so.%{libatomic_sover}*
2300
2301 %if %{separate_biarch}
2302 %files -n libatomic%{libatomic_sover}%{libatomic_suffix}%{separate_biarch_suffix}
2303 %defattr(-,root,root)
2304 %biarchlib libatomic.so.%{libatomic_sover}*
2305 %endif
2306 %endif
2307
2308
2309 %ifarch %itm_arch
2310 %files -n libitm%{libitm_sover}%{libitm_suffix}
2311 %defattr(-,root,root)
2312 %mainlib libitm.so.%{libitm_sover}*
2313
2314 %if %{separate_biarch}
2315 %files -n libitm%{libitm_sover}%{libitm_suffix}%{separate_biarch_suffix}
2316 %defattr(-,root,root)
2317 %biarchlib libitm.so.%{libitm_sover}*
2318 %endif
2319 %endif
2320
2321
2322
2323 %if %{build_fortran}
2324 %files fortran
2325 %defattr(-,root,root)
2326 %dir %{libsubdir}/finclude
2327 %{_prefix}/bin/gfortran%{binsuffix}
2328 %{libsubdir}/f951
2329 %{libsubdir}/finclude/*
2330 %versmainlib libgfortran.a
2331 %versmainlib libgfortran.so
2332 %versmainlib libgfortran.spec
2333 %versmainlib libgfortranbegin.a
2334 %versmainlib libcaf_single.a
2335 %ifarch %quadmath_arch
2336 %{libsubdir}/include/quadmath.h
2337 %{libsubdir}/include/quadmath_weak.h
2338 %versmainlib libquadmath.a
2339 %versmainlib libquadmath.so
2340 %endif
2341 %doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
2342
2343 %if %{separate_biarch}
2344 %files fortran%{separate_biarch_suffix}
2345 %defattr(-,root,root)
2346 %versbiarchlib libgfortran.a
2347 %versbiarchlib libgfortran.so
2348 %versbiarchlib libgfortran.spec
2349 %versbiarchlib libgfortranbegin.a
2350 %versbiarchlib libcaf_single.a
2351 %ifarch %quadmath_arch
2352 %versbiarchlib libquadmath.a
2353 %versbiarchlib libquadmath.so
2354 %endif
2355 %endif
2356
2357 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
2358 %defattr(-,root,root)
2359 %mainlib libgfortran.so.%{libgfortran_sover}*
2360
2361 %if %{separate_biarch}
2362 %files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}%{separate_biarch_suffix}
2363 %defattr(-,root,root)
2364 %biarchlib libgfortran.so.%{libgfortran_sover}*
2365 %endif
2366
2367 %ifarch %quadmath_arch
2368 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
2369 %defattr(-,root,root)
2370 %mainlib libquadmath.so.%{libquadmath_sover}*
2371
2372 %if %{separate_biarch}
2373 %files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}%{separate_biarch_suffix}
2374 %defattr(-,root,root)
2375 %biarchlib libquadmath.so.%{libquadmath_sover}*
2376 %endif
2377 %endif
2378 %endif
2379
2380 %if %{build_with_mudflap}
2381 %files -n libmudflap48
2382 %defattr(-,root,root)
2383 %mainlib libmudflap.so.%{libmudflap_sover}*
2384 %mainlib libmudflapth.so.%{libmudflap_sover}*
2385
2386 %if %{separate_biarch}
2387 %files -n libmudflap48%{separate_biarch_suffix}
2388 %defattr(-,root,root)
2389 %biarchlib libmudflap.so.%{libmudflap_sover}*
2390 %biarchlib libmudflapth.so.%{libmudflap_sover}*
2391 %endif
2392 %endif
2393
2394 %files info
2395 %defattr(-,root,root)
2396 %doc %{_infodir}/*.gz
2397
2398 %files -n cpp48
2399 %defattr(-,root,root)
2400 %dir %{_libdir}/gcc
2401 %dir %{_libdir}/gcc/%{GCCDIST}
2402 %dir %{libsubdir}
2403 %{_prefix}/bin/cpp%{binsuffix}
2404 %{libsubdir}/cc1
2405 #%{libsubdir}/specs
2406 %doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
2407
2408 %if %{build_objc}
2409 %files objc
2410 %defattr(-,root,root)
2411 %{libsubdir}/cc1obj
2412 %{libsubdir}/include/objc
2413 %versmainlib libobjc.a
2414 %versmainlib libobjc.so
2415
2416 %if %{separate_biarch}
2417 %files objc%{separate_biarch_suffix}
2418 %defattr(-,root,root)
2419 %versbiarchlib libobjc.a
2420 %versbiarchlib libobjc.so
2421 %endif
2422
2423 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}
2424 %defattr(-,root,root)
2425 %mainlib libobjc.so.%{libobjc_sover}*
2426
2427 %if %{separate_biarch}
2428 %files -n libobjc%{libobjc_sover}%{libobjc_suffix}%{separate_biarch_suffix}
2429 %defattr(-,root,root)
2430 %biarchlib libobjc.so.%{libobjc_sover}*
2431 %endif
2432 %endif
2433
2434
2435 %if %{build_objcp}
2436 %files obj-c++
2437 %defattr(-,root,root)
2438 %{libsubdir}/cc1objplus
2439 %endif
2440
2441
2442 %if %{build_ada}
2443 %files ada
2444 %defattr(-,root,root)
2445 %dir %{_libdir}/gcc
2446 %dir %{_libdir}/gcc/%{GCCDIST}
2447 %dir %{libsubdir}
2448 %{_prefix}/bin/gnat*
2449 %dir %{versmainlibdir}/adainclude
2450 %dir %{versmainlibdir}/adalib
2451 %{versmainlibdir}/adainclude
2452 %{versmainlibdir}/adalib/*.ali
2453 %{versmainlibdir}/adalib/*.a
2454 %{versmainlibdir}/adalib/libgnarl.so
2455 %{versmainlibdir}/adalib/libgnat.so
2456 %{versmainlibdir}/gnat1
2457
2458 %if %{separate_biarch}
2459 %files ada%{separate_biarch_suffix}
2460 %defattr(-,root,root)
2461 %dir %{versmainlibdirbi}/adainclude
2462 %dir %{versmainlibdirbi}/adalib
2463 %{versmainlibdirbi}/adainclude
2464 %{versmainlibdirbi}/adalib/*.ali
2465 %{versmainlibdirbi}/adalib/*.a
2466 %{versmainlibdirbi}/adalib/libgnarl.so
2467 %{versmainlibdirbi}/adalib/libgnat.so
2468 %endif
2469
2470 %files -n libada48
2471 %defattr(-,root,root)
2472 %mainlib libgnarl-*.so
2473 %mainlib libgnat-*.so
2474
2475 %if %{separate_biarch}
2476 %files -n libada48%{separate_biarch_suffix}
2477 %defattr(-,root,root)
2478 %biarchlib libgnarl-*.so
2479 %biarchlib libgnat-*.so
2480 %endif
2481 %endif
2482
2483
2484 %if %{build_java}
2485 %if 0%{?building_libjava:1}
2486 %files -n gcc48-java
2487 %defattr(-,root,root)
2488 %{_prefix}/bin/gcj%{binsuffix}
2489 %{_prefix}/bin/gcjh%{binsuffix}
2490 %{_prefix}/bin/gcj-dbtool%{binsuffix}
2491 %{_prefix}/bin/jcf-dump%{binsuffix}
2492 %{_prefix}/bin/jv-convert%{binsuffix}
2493 %{_prefix}/bin/gc-analyze%{binsuffix}
2494 %{_prefix}/bin/aot-compile%{binsuffix}
2495 %{_prefix}/bin/rebuild-gcj-db%{binsuffix}
2496 %{libsubdir}/jc1
2497 %{libsubdir}/jvgenmain
2498 %{libsubdir}/ecj.jar
2499 %{libsubdir}/ecj1
2500 %doc %{_mandir}/man1/gcj%{binsuffix}.1.gz
2501 %doc %{_mandir}/man1/gcjh%{binsuffix}.1.gz
2502 %doc %{_mandir}/man1/gcj-dbtool%{binsuffix}.1.gz
2503 %doc %{_mandir}/man1/jcf-dump%{binsuffix}.1.gz
2504 %doc %{_mandir}/man1/jv-convert%{binsuffix}.1.gz
2505 %doc %{_mandir}/man1/gc-analyze%{binsuffix}.1.gz
2506 %doc %{_mandir}/man1/aot-compile%{binsuffix}.1.gz
2507 %doc %{_mandir}/man1/rebuild-gcj-db%{binsuffix}.1.gz
2508 %endif
2509 %endif
2510
2511 %if %{build_java}
2512 %if %{build_libjava}
2513 %files -n libgcj48
2514 %defattr(-,root,root)
2515 %dir %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}
2516 %dir %{_libdir}/gcc
2517 %dir %{_libdir}/gcc/%{GCCDIST}
2518 %dir %{libsubdir}
2519 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/classmap.db
2520 # We usually do not multilib libjava
2521 %if %{biarch_libjava}
2522 %versbiarchlib libgcj.la
2523 %biarchlib libgcj.so.*
2524 %biarchlib libgij.so.*
2525 %biarchlib libgcj-tools.so.*
2526 %else
2527 %versmainlib libgcj.la
2528 %mainlib libgcj.so.*
2529 %mainlib libgij.so.*
2530 %mainlib libgcj-tools.so.*
2531 %endif
2532 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.la
2533 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjvm.so
2534 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.la
2535 %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}/libjavamath.so
2536
2537 %files -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
2538 %defattr(-,root,root)
2539 %if %{biarch_libjava}
2540 %biarchlib libgcj_bc.so.%{libgcj_bc_sover}*
2541 %else
2542 %mainlib libgcj_bc.so.%{libgcj_bc_sover}*
2543 %endif
2544
2545 %files -n libgcj48-jar
2546 %defattr(-,root,root)
2547 %{_prefix}/share/java/libgcj-%{gcc_dir_version}.jar
2548 %{_prefix}/share/java/libgcj-tools-%{gcc_dir_version}.jar
2549
2550 %files -n libgcj48-devel
2551 %defattr(-,root,root)
2552 %dir %{_prefix}/include/c++
2553 %dir %{libsubdir}
2554 %dir %{libsubdir}/include
2555 %dir %{gxxinclude}
2556 %{_libdir}/pkgconfig/libgcj%{binsuffix}.pc
2557 %{libsubdir}/include/jawt.h
2558 %{libsubdir}/include/jawt_md.h
2559 %{libsubdir}/include/jni.h
2560 %{libsubdir}/include/jni_md.h
2561 %{libsubdir}/include/jvmpi.h
2562 %{gxxinclude}/gnu
2563 %{gxxinclude}/gcj
2564 %{gxxinclude}/java
2565 %{gxxinclude}/javax
2566 %{gxxinclude}/org
2567 %{gxxinclude}/sun
2568 %{libsubdir}/include/gcj
2569 %if %{biarch_libjava}
2570 %versbiarchlib libgcj.so
2571 %versbiarchlib libgcj.spec
2572 %versbiarchlib libgcj-tools.so
2573 %versbiarchlib libgij.so
2574 %versbiarchlib libgcj_bc.so
2575 %else
2576 %versmainlib libgcj.so
2577 %versmainlib libgcj.spec
2578 %versmainlib libgcj-tools.so
2579 %versmainlib libgij.so
2580 %versmainlib libgcj_bc.so
2581 %endif
2582
2583 %files -n gcc48-gij
2584 %defattr(-,root,root)
2585 %{_prefix}/bin/gij%{binsuffix}
2586 %{_prefix}/bin/gappletviewer%{binsuffix}
2587 %{_prefix}/bin/gjar%{binsuffix}
2588 %{_prefix}/bin/gjarsigner%{binsuffix}
2589 %{_prefix}/bin/gjavah%{binsuffix}
2590 %{_prefix}/bin/gkeytool%{binsuffix}
2591 %{_prefix}/bin/gnative2ascii%{binsuffix}
2592 %{_prefix}/bin/gorbd%{binsuffix}
2593 %{_prefix}/bin/grmic%{binsuffix}
2594 %{_prefix}/bin/grmid%{binsuffix}
2595 %{_prefix}/bin/grmiregistry%{binsuffix}
2596 %{_prefix}/bin/gserialver%{binsuffix}
2597 %{_prefix}/bin/gtnameserv%{binsuffix}
2598 %doc %{_mandir}/man1/gij%{binsuffix}.1.gz
2599 %doc %{_mandir}/man1/gappletviewer%{binsuffix}.1.gz
2600 %doc %{_mandir}/man1/grmic%{binsuffix}.1.gz
2601 %doc %{_mandir}/man1/grmid%{binsuffix}.1.gz
2602 %doc %{_mandir}/man1/grmiregistry%{binsuffix}.1.gz
2603 %doc %{_mandir}/man1/gkeytool%{binsuffix}.1.gz
2604 %doc %{_mandir}/man1/gjar%{binsuffix}.1.gz
2605 %doc %{_mandir}/man1/gjarsigner%{binsuffix}.1.gz
2606 %doc %{_mandir}/man1/gjavah%{binsuffix}.1.gz
2607 %doc %{_mandir}/man1/gnative2ascii%{binsuffix}.1.gz
2608 %doc %{_mandir}/man1/gorbd%{binsuffix}.1.gz
2609 %doc %{_mandir}/man1/gserialver%{binsuffix}.1.gz
2610 %doc %{_mandir}/man1/gtnameserv%{binsuffix}.1.gz
2611 %endif
2612 %endif
2613
2614 %if %{build_java}
2615 %if 0%{?building_libffi:1}
2616 %files -n libffi%{libffi_sover}%{libffi_suffix}
2617 %defattr(-,root,root)
2618 %mainlib libffi.so.%{libffi_sover}*
2619
2620 %if %{separate_biarch}
2621 %files -n libffi%{libffi_sover}%{libffi_suffix}%{separate_biarch_suffix}
2622 %defattr(-,root,root)
2623 %biarchlib libffi.so.%{libffi_sover}*
2624 %endif
2625
2626 %post -n libffi48-devel
2627 %install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2628 %postun -n libffi48-devel
2629 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
2630
2631 %files -n libffi48-devel
2632 %defattr(-,root,root)
2633 %{_prefix}/include/ffi.h
2634 %{_prefix}/include/ffitarget.h
2635 %mainlib libffi.so
2636 %mainlib libffi.a
2637 %{_libdir}/pkgconfig/libffi.pc
2638 %doc %{_infodir}/libffi%{binsuffix}.info.gz
2639 %doc %{_mandir}/man3/ffi%{binsuffix}.3.gz
2640 %doc %{_mandir}/man3/ffi_call%{binsuffix}.3.gz
2641 %doc %{_mandir}/man3/ffi_prep_cif%{binsuffix}.3.gz
2642 %doc %{_mandir}/man3/ffi_prep_cif_var%{binsuffix}.3.gz
2643
2644 %if %{separate_biarch}
2645 %files -n libffi48-devel%{separate_biarch_suffix}
2646 %defattr(-,root,root)
2647 %biarchlib libffi.so
2648 %biarchlib libffi.a
2649 %endif
2650 %endif
2651 %endif
2652
2653 %if 0%{?run_tests:1}
2654 %files -n gcc48-testresults
2655 %defattr(-,root,root)
2656 %doc testresults/test_summary.txt
2657 %doc testresults/*.sum
2658 %doc testresults/*.log
2659 %endif
2660
2661
2662 %changelog