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