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