File gcc11.spec of Package cross-x86_64-gcc11
3592
1
#
2
# spec file for package gcc11
3
#
4
# Copyright (c) 2022 SUSE LLC
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 https://bugs.opensuse.org/
16
#
17
18
19
%if !0%{?usrmerged}
20
%define _slibdir /%{_lib}
21
%define slibdir /lib
22
%define slibdir64 /lib64
23
%else
24
%define _slibdir %{_libdir}
25
%define slibdir %{_prefix}/lib
26
%define slibdir64 %{_prefix}/lib64
27
%endif
28
29
# Ada currently fails to build on a few platforms, enable it only
30
# on those that work
31
%if %{suse_version} >= 1310
32
%if %{suse_version} >= 1330
33
%define ada_arch %ix86 x86_64 ppc ppc64 ppc64le s390 s390x ia64 aarch64 riscv64
34
%else
35
%define ada_arch %ix86 x86_64 ppc ppc64 s390 ia64
36
%endif
37
%else
38
%define ada_arch %ix86 x86_64 ppc s390 ia64
39
%endif
40
41
%ifarch %ada_arch
42
%define build_ada 1
43
%else
44
%define build_ada 0
45
%endif
46
47
%define quadmath_arch %ix86 x86_64 ia64 ppc64le
48
%define tsan_arch x86_64 aarch64 ppc ppc64 ppc64le
49
%define asan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %sparc %arm aarch64 riscv64
50
%define hwasan_arch aarch64
51
%define itm_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc
52
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k ia64 riscv64
53
%define lsan_arch x86_64 aarch64 ppc ppc64 ppc64le
54
%define ubsan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %arm aarch64 riscv64
55
%if 0%{?build_libvtv:1}
56
%define vtv_arch x86_64 %ix86
57
%endif
58
59
%define build_cp 1
60
%define build_fortran 1
61
%define build_objc 1
62
%define build_objcp 1
63
%define build_go 1
64
%ifarch x86_64 %ix86 %arm aarch64 riscv64 s390x
65
%define build_d 1
66
%else
67
%define build_d 0
68
%endif
69
70
%if %{build_objcp}
71
%define build_cp 1
72
%define build_objc 1
73
%endif
74
75
# For optional compilers only build C, C++, Fortran, Ada and Go
76
%if 0%{?build_optional_compiler_languages:1}
77
%define build_objc 0
78
%define build_objcp 0
79
%define build_d 0
80
%endif
81
82
%ifarch x86_64
83
%define build_nvptx 1
84
%else
85
%define build_nvptx 0
86
%endif
87
88
%ifarch x86_64
89
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
90
# technically also SLE12 SP5 but do not bother there
91
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
92
%define build_gcn 1
93
%else
94
%define build_gcn 0
95
%endif
96
%else
97
%define build_gcn 0
98
%endif
99
100
%define use_lto_bootstrap 0
101
%ifarch x86_64 ppc64le s390x aarch64
102
%if %{suse_version} > 1500
103
%define use_lto_bootstrap 1
104
%endif
105
%endif
106
107
# Enable plugins just for Tumbleweed, not for SLES
108
%if 0%{!?sle_version:1}
109
%define enable_plugins 1
110
%define build_jit 1
111
%else
112
%define enable_plugins 0
113
%define build_jit 0
114
%endif
115
116
# Shared library SONAME versions
117
%ifarch hppa
118
%define libgcc_s 4
119
%else
120
%ifarch m68k
121
%define libgcc_s 2
122
%else
123
%define libgcc_s 1
124
%endif
125
%endif
126
%define libgomp_sover 1
127
%define libstdcxx_sover 6
128
%define libobjc_sover 4
129
%define libgfortran_sover 5
130
%define libquadmath_sover 0
131
%define libasan_sover 6
132
%define libtsan_sover 0
133
%define libhwasan_sover 0
134
%define libatomic_sover 1
135
%define libitm_sover 1
136
%define libubsan_sover 1
137
%define liblsan_sover 0
138
%define libvtv_sover 0
139
%define libgo_sover 19
140
%define libgphobos_sover 2
141
%define libgdruntime_sover 2
142
%define libgccjit_sover 0
143
144
# Shared library package suffix
145
# This is used for the "non-standard" set of libraries, the standard
146
# being defined by %%product_libs_gcc_ver, the GCC version that should
147
# provide un-suffixed shared library packages following the shared-library
148
# policy. Even suffixed variants should provide the shared-library policy
149
# mandated names and ensure they conflict with each other.
150
# Individual shared libraries can be directed to be built from individual
151
# gcc versions by defining %%product_libs_gcc_ver_libgcc_s1 for example,
152
# generally %%product_libs_gcc_ver_%%name%%sover, similarly.
153
154
%define itsme11 1
155
%define plv_ %{!?product_libs_gcc_ver:11}%{?product_libs_gcc_ver}
156
%define plv() %{expand:%%{!?itsme%{expand:%%{!?product_libs_gcc_ver_%{1}%{2}:%%{plv_}}%%{?product_libs_gcc_ver_%{1}%{2}}}:-gcc11}}
157
158
%define libgcc_s_suffix %{plv libgcc_s %{libgcc_s}}
159
%define libgomp_suffix %{plv libgomp %{libgomp_sover}}
160
%define libstdcxx_suffix %{plv libstdcxx %{libstdcxx_sover}}
161
%define libobjc_suffix %{plv libobjc %{libobjc_sover}}
162
%define libgfortran_suffix %{plv libgfortran %{libgfortran_sover}}
163
%define libquadmath_suffix %{plv libquadmath %{libquadmath_sover}}
164
%define libasan_suffix %{plv libasan %{libasan_sover}}
165
%define libtsan_suffix %{plv libtsan %{libtsan_sover}}
166
%define libhwasan_suffix %{plv libhwasan %{libhwasan_sover}}
167
%define libatomic_suffix %{plv libatomic %{libatomic_sover}}
168
%define libitm_suffix %{plv libitm %{libitm_sover}}
169
%define libubsan_suffix %{plv libubsan %{libubsan_sover}}
170
%define liblsan_suffix %{plv liblsan %{liblsan_sover}}
171
%define libvtv_suffix %{plv libvtv %{libvtv_sover}}
172
%define libgo_suffix %{plv libgo %{libgo_sover}}
173
%define libgphobos_suffix %{plv libgphobos %{libgphobos_sover}}
174
%define libgdruntime_suffix %{plv libgdruntime %{libgdruntime_sover}}
175
%define libgccjit_suffix %{plv libgccjit %{libgccjit_sover}}
176
177
# libFOO-devel package suffix
178
%define libdevel_suffix -gcc11
179
180
%if %{suse_version} >= 1220
181
%define selfconflict() %1
182
%else
183
%define selfconflict() otherproviders(%1)
184
%endif
185
186
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
187
188
URL: https://gcc.gnu.org/
189
Version: 11.3.0+git1637
190
Release: 0
191
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
192
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
193
%define binsuffix -11
194
195
Name: gcc11
196
BuildRequires: xz
197
%if %{suse_version} > 1500
198
BuildRequires: libzstd-devel
199
%endif
200
# With generated files in src we could drop the following
201
BuildRequires: bison
202
BuildRequires: flex
203
BuildRequires: gettext-devel
204
%if %{suse_version} > 1220
205
BuildRequires: makeinfo
206
%else
207
BuildRequires: texinfo
208
%endif
209
# until here, but at least renaming and patching info files breaks this
210
BuildRequires: gcc-c++
211
BuildRequires: glibc-devel-32bit
212
BuildRequires: mpc-devel
213
BuildRequires: mpfr-devel
214
BuildRequires: perl
215
BuildRequires: zlib-devel
216
%if %{suse_version} >= 1500
217
# for SDT markers in the C++ unwinder and gdb breakpoints on exceptions
218
BuildRequires: systemtap-headers
219
%endif
220
%if %{suse_version} >= 1230
221
BuildRequires: isl-devel
222
%endif
223
%define hostsuffix %{nil}
224
%if %{build_ada}
225
%if 0%{?gcc_version:%{gcc_version}} > 11
226
%define hostsuffix %{binsuffix}
227
BuildRequires: gcc11-ada
228
BuildRequires: gcc11-c++
229
%else
230
%if %{suse_version} < 1310
231
%define hostsuffix -4.8
232
BuildRequires: gcc48-ada
233
BuildRequires: gcc48-c++
234
%else
235
%define hostsuffix %{nil}
236
BuildRequires: gcc-ada
237
%endif
238
%endif
239
%endif
240
# We now require a C++ 11 capable compiler for bootstrapping
241
%if %{suse_version} < 1220
242
%define hostsuffix -4.8
243
BuildRequires: gcc48-c++
244
%endif
245
%if 0%{?building_testsuite:1}
246
# For building the libstdc++ API reference
247
BuildRequires: doxygen
248
BuildRequires: graphviz
249
%endif
250
%ifarch ia64
251
BuildRequires: libunwind-devel
252
%endif
253
%if 0%{?run_tests:1}
254
BuildRequires: dejagnu
255
BuildRequires: expect
256
BuildRequires: gdb
257
%if %{build_go}
258
BuildRequires: netcfg
259
BuildRequires: procps
260
%endif
261
%if %{build_nvptx}
262
BuildRequires: cross-nvptx-gcc11
263
BuildRequires: cross-nvptx-newlib11-devel
264
%endif
265
%if %{build_gcn}
266
BuildRequires: cross-amdgcn-gcc11
267
BuildRequires: cross-amdgcn-newlib11-devel
268
%endif
269
%endif
270
#!BuildIgnore: gcc-PIE
271
272
%define separate_bi32 0
273
%define separate_bi64 0
274
%if 0%{!?disable_32bit:1}
275
%ifarch ppc sparcv9
276
%define separate_bi64 1
277
%endif
278
%ifarch x86_64 s390x ppc64 sparc64
279
%define separate_bi32 1
280
%endif
281
%define disable_multilib_arch %{nil}
282
%else
283
%define disable_multilib_arch ppc sparcv9 x86_64 s390x ppc64 sparc64
284
%endif
285
286
# Define two macros to trigger -32bit or -64bit package variants
287
%define separate_biarch 0
288
%if %{separate_bi32}
289
%define separate_biarch 1
290
%define separate_biarch_suffix -32bit
291
%endif
292
%if %{separate_bi64}
293
%define separate_biarch 1
294
%define separate_biarch_suffix -64bit
295
%endif
296
297
%ifarch aarch64 x86_64 ia64 s390x alpha ppc64 ppc64le sparc64
298
# 64-bit is primary build target
299
%define build_primary_64bit 1
300
%else
301
%define build_primary_64bit 0
302
%endif
303
304
%if !0%{?building_testsuite:1}
305
Requires: binutils
306
Requires: cpp11 = %{version}-%{release}
307
Requires: glibc-devel
308
Requires: libgcc_s%{libgcc_s} >= %{version}-%{release}
309
Requires: libgomp%{libgomp_sover} >= %{version}-%{release}
310
%ifarch %asan_arch
311
Requires: libasan%{libasan_sover} >= %{version}-%{release}
312
%endif
313
%ifarch %tsan_arch
314
%if %{build_primary_64bit}
315
Requires: libtsan%{libtsan_sover} >= %{version}-%{release}
316
%endif
317
%endif
318
%ifarch %hwasan_arch
319
Requires: libhwasan%{libhwasan_sover} >= %{version}-%{release}
320
%endif
321
%ifarch %atomic_arch
322
Requires: libatomic%{libatomic_sover} >= %{version}-%{release}
323
%endif
324
%ifarch %itm_arch
325
Requires: libitm%{libitm_sover} >= %{version}-%{release}
326
%endif
327
%ifarch %lsan_arch
328
%if %{build_primary_64bit}
329
Requires: liblsan%{liblsan_sover} >= %{version}-%{release}
330
%endif
331
%endif
332
%ifarch %ubsan_arch
333
Requires: libubsan%{libubsan_sover} >= %{version}-%{release}
334
%endif
335
%ifarch %vtv_arch
336
Requires: libvtv%{libvtv_sover} >= %{version}-%{release}
337
%endif
338
Suggests: gcc11-info gcc11-locale
339
%endif
340
341
%if %{suse_version} < 1310
342
BuildRoot: %{_tmppath}/%{name}-%{version}-build
343
%endif
344
Group: Development/Languages/C and C++
345
Source: gcc-%{version}.tar.xz
346
Source1: change_spec
347
Source2: gcc11-rpmlintrc
348
Source3: gcc11-testresults-rpmlintrc
349
Source4: README.First-for.SuSE.packagers
350
Source5: newlib-4.1.0.tar.xz
351
Patch2: gcc-add-defaultsspec.diff
352
Patch5: tls-no-direct.diff
353
Patch6: gcc43-no-unwind-tables.diff
354
Patch7: gcc48-libstdc++-api-reference.patch
355
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
356
Patch15: gcc7-avoid-fixinc-error.diff
357
Patch16: gcc9-reproducible-builds.patch
358
Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
359
Patch18: gcc10-amdgcn-llvm-as.patch
360
Patch19: gcc11-gdwarf-4-default.patch
361
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
362
# A set of patches from the RH srpm
363
Patch51: gcc41-ppc32-retaddr.patch
364
Patch52: gcc10-foffload-default.patch
365
# Some patches taken from Debian
366
Patch60: gcc44-textdomain.patch
367
Patch61: gcc44-rename-info-files.patch
368
# Patches for embedded newlib
369
Patch100: newlib-4.1.0-aligned_alloc.patch
370
371
License: GPL-3.0-or-later
372
Summary: The GNU C Compiler and Support Files
373
374
%description
375
Core package for the GNU Compiler Collection, including the C language
376
frontend.
377
378
Language frontends other than C are split to different sub-packages,
379
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
380
381
%package -n gcc11-32bit
382
Summary: The GNU C Compiler 32bit support
383
Group: Development/Languages/C and C++
384
Requires: gcc11 = %{version}-%{release}
385
Requires: libgcc_s%{libgcc_s}-32bit >= %{version}-%{release}
386
Requires: libgomp%{libgomp_sover}-32bit >= %{version}-%{release}
387
%ifarch %asan_arch
388
Requires: libasan%{libasan_sover}-32bit >= %{version}-%{release}
389
%endif
390
%ifarch %atomic_arch
391
Requires: libatomic%{libatomic_sover}-32bit >= %{version}-%{release}
392
%endif
393
%ifarch %itm_arch
394
Requires: libitm%{libitm_sover}-32bit >= %{version}-%{release}
395
%endif
396
%ifarch %ubsan_arch
397
Requires: libubsan%{libubsan_sover}-32bit >= %{version}-%{release}
398
%endif
399
%ifarch %vtv_arch
400
Requires: libvtv%{libvtv_sover}-32bit >= %{version}-%{release}
401
%endif
402
Requires: glibc-devel-32bit
403
404
%description -n gcc11-32bit
405
This package contains 32bit support for the GNU Compiler Collection.
406
407
%package -n gcc11-64bit
408
Summary: The GNU C Compiler 64bit support
409
Group: Development/Languages/C and C++
410
Requires: gcc11 = %{version}-%{release}
411
Requires: libgcc_s%{libgcc_s}-64bit >= %{version}-%{release}
412
Requires: libgomp%{libgomp_sover}-64bit >= %{version}-%{release}
413
%ifarch %asan_arch
414
Requires: libasan%{libasan_sover}-64bit >= %{version}-%{release}
415
%endif
416
%ifarch %tsan_arch
417
Requires: libtsan%{libtsan_sover}-64bit >= %{version}-%{release}
418
%endif
419
%ifarch %hwasan_arch
420
Requires: libhwasan%{libhwasan_sover}-64bit >= %{version}-%{release}
421
%endif
422
%ifarch %atomic_arch
423
Requires: libatomic%{libatomic_sover}-64bit >= %{version}-%{release}
424
%endif
425
%ifarch %itm_arch
426
Requires: libitm%{libitm_sover}-64bit >= %{version}-%{release}
427
%endif
428
%ifarch %lsan_arch
429
Requires: liblsan%{liblsan_sover}-64bit >= %{version}-%{release}
430
%endif
431
%ifarch %ubsan_arch
432
Requires: libubsan%{libubsan_sover}-64bit >= %{version}-%{release}
433
%endif
434
%ifarch %vtv_arch
435
Requires: libvtv%{libvtv_sover}-64bit >= %{version}-%{release}
436
%endif
437
Requires: glibc-devel-64bit
438
439
%description -n gcc11-64bit
440
This package contains 64bit support for the GNU Compiler Collection.
441
442
%package devel
443
Summary: GCC plugins development enviroment
444
License: GPL-3.0-or-later
445
Group: Development/Languages/C and C++
446
Requires: gcc11 = %{version}-%{release}
447
Requires: gmp-devel
448
Requires: mpc-devel
449
450
%description devel
451
Files required for developing and compiling GCC plugins.
452
453
%package locale
454
Summary: Locale Data for the GNU Compiler Collection
455
License: GPL-3.0-or-later
456
Group: Development/Languages/C and C++
457
Requires: gcc11 = %{version}-%{release}
458
459
%description locale
460
Locale data for the GNU Compiler Collection (GCC) to give error message
461
in the current locale.
462
463
%package PIE
464
Summary: A default configuration to build all binaries in PIE mode
465
License: GPL-3.0-or-later
466
Group: Development/Languages/Other
467
Requires: gcc11 = %{version}-%{release}
468
469
%description PIE
470
This package contains a configuration file (spec) that changes the
471
compilers default setting to build all ELF binaries in the Position
472
Independend Executable (PIE) variant. This enables better address
473
space randomization (ASLR).
474
475
%package c++
476
Summary: The GNU C++ Compiler
477
License: GPL-3.0-or-later
478
Group: Development/Languages/C and C++
479
Requires: gcc11 = %{version}-%{release}
480
Requires: gcc11-c++ = %{version}-%{release}
481
Requires: libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix} = %{version}-%{release}
482
483
%description c++
484
This package contains the GNU compiler for C++.
485
486
%package c++-32bit
487
Summary: The GNU C++ Compiler
488
License: GPL-3.0-or-later
489
Group: Development/Languages/C and C++
490
Requires: gcc11-32bit = %{version}-%{release}
491
Requires: gcc11-c++ = %{version}-%{release}
492
Requires: libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}-32bit = %{version}-%{release}
493
494
%description c++-32bit
495
This package contains the GNU compiler for C++.
496
497
%package c++-64bit
498
Summary: The GNU C++ Compiler
499
License: GPL-3.0-or-later
500
Group: Development/Languages/C and C++
501
Requires: gcc11-64bit = %{version}-%{release}
502
Requires: gcc11-c++ = %{version}-%{release}
503
Requires: libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}-64bit = %{version}-%{release}
504
505
%description c++-64bit
506
This package contains the GNU compiler for C++.
507
508
%package -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}
509
Summary: Include Files and Libraries mandatory for Development
510
License: GPL-3.0-or-later WITH GCC-exception-3.1
511
Group: Development/Languages/C and C++
512
Requires: glibc-devel
513
Requires: libstdc++%{libstdcxx_sover} >= %{version}-%{release}
514
%ifarch ia64
515
Requires: libunwind-devel
516
%endif
517
518
%description -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}
519
This package contains all the headers and libraries of the standard C++
520
library. It is needed for compiling C++ code.
521
522
%package -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}-32bit
523
Summary: Include Files and Libraries mandatory for Development
524
License: GPL-3.0-or-later WITH GCC-exception-3.1
525
Group: Development/Languages/C and C++
526
Requires: glibc-devel-32bit
527
Requires: libstdc++%{libstdcxx_sover}-32bit >= %{version}-%{release}
528
%ifarch ia64
529
Requires: libunwind-devel
530
%endif
531
532
%description -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}-32bit
533
This package contains all the headers and libraries of the standard C++
534
library. It is needed for compiling C++ code.
535
536
%package -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}-64bit
537
Summary: Include Files and Libraries mandatory for Development
538
License: GPL-3.0-or-later WITH GCC-exception-3.1
539
Group: Development/Languages/C and C++
540
Requires: glibc-devel-64bit
541
Requires: libstdc++%{libstdcxx_sover}-64bit >= %{version}-%{release}
542
%ifarch ia64
543
Requires: libunwind-devel
544
%endif
545
546
%description -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}-64bit
547
This package contains all the headers and libraries of the standard C++
548
library. It is needed for compiling C++ code.
549
550
%package -n libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix}
551
Summary: GDB pretty printers for the C++ standard library
552
License: GPL-3.0-or-later
553
Group: Development/Languages/C and C++
554
# The -pp packages are tied to a specific shared library
555
Requires: libstdc++%{libstdcxx_sover} = %{version}-%{release}
556
Requires: libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix} = %{version}-%{release}
557
Provides: libstdc++%{libstdcxx_sover}-pp = %{version}-%{release}
558
# To allow updates from libstdc++6-pp-gccM to libstdc++6-pp-gccN we need
559
# enumerates Obsoletes, the separate -pp package was introduced with GCC9.
560
Obsoletes: libstdc++6-pp-gcc9 libstdc++6-pp-gcc10
561
# Only one package may provide this - allows multiple gcc versions
562
# to co-exist without an overly large list of provides/obsoletes
563
Conflicts: %selfconflict libstdc++%{libstdcxx_sover}-pp
564
# packageand() does not work with versioned specifications so the fallback
565
# is a Requires from libstdc++-devel to preserve previous behavior.
566
%if %{suse_version} >= 1500
567
Supplements: (gdb and libstdc++%{libstdcxx_sover} = %{version}-%{release})
568
%endif
569
570
%description -n libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix}
571
This package contains pretty printers for the C++ standard library usable
572
from GDB.
573
574
%package -n libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix}-32bit
575
Summary: GDB pretty printers for the C++ standard library
576
License: GPL-3.0-or-later
577
Group: Development/Languages/C and C++
578
# The -pp packages are tied to a specific shared library
579
Requires: libstdc++%{libstdcxx_sover}-32bit = %{version}-%{release}
580
Requires: libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix} = %{version}-%{release}
581
Provides: libstdc++%{libstdcxx_sover}-pp-32bit = %{version}-%{release}
582
# To allow updates from libstdc++6-pp-gccM to libstdc++6-pp-gccN we need
583
# enumerates Obsoletes, the separate -pp package was introduced with GCC9.
584
Obsoletes: libstdc++6-pp-gcc9-32bit libstdc++6-pp-gcc10-32bit
585
# Only one package may provide this - allows multiple gcc versions
586
# to co-exist without an overly large list of provides/obsoletes
587
Conflicts: %selfconflict libstdc++%{libstdcxx_sover}-pp-32bit
588
# packageand() does not work with versioned specifications so the fallback
589
# is a Requires from libstdc++-devel to preserve previous behavior.
590
%if %{suse_version} >= 1500
591
Supplements: (gdb and libstdc++%{libstdcxx_sover}-32bit = %{version}-%{release})
592
%endif
593
594
%description -n libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix}-32bit
595
This package contains pretty printers for the C++ standard library usable
596
from GDB.
597
598
%package -n libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix}-64bit
599
Summary: GDB pretty printers for the C++ standard library
600
License: GPL-3.0-or-later
601
Group: Development/Languages/C and C++
602
# The -pp packages are tied to a specific shared library
603
Requires: libstdc++%{libstdcxx_sover}-64bit = %{version}-%{release}
604
Requires: libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix} = %{version}-%{release}
605
Provides: libstdc++%{libstdcxx_sover}-pp-64bit = %{version}-%{release}
606
# To allow updates from libstdc++6-pp-gccM to libstdc++6-pp-gccN we need
607
# enumerates Obsoletes, the separate -pp package was introduced with GCC9.
608
Obsoletes: libstdc++6-pp-gcc9-64bit libstdc++6-pp-gcc10-64bit
609
# Only one package may provide this - allows multiple gcc versions
610
# to co-exist without an overly large list of provides/obsoletes
611
Conflicts: %selfconflict libstdc++%{libstdcxx_sover}-pp-64bit
612
# packageand() does not work with versioned specifications so the fallback
613
# is a Requires from libstdc++-devel to preserve previous behavior.
614
%if %{suse_version} >= 1500
615
Supplements: (gdb and libstdc++%{libstdcxx_sover}-64bit = %{version}-%{release})
616
%endif
617
618
%description -n libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix}-64bit
619
This package contains pretty printers for the C++ standard library usable
620
from GDB.
621
622
%package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
623
Summary: C compiler runtime library
624
License: GPL-3.0-or-later WITH GCC-exception-3.1
625
Group: System/Base
626
Provides: libgcc_s%{libgcc_s} = %{version}-%{release}
627
# Only one package may provide this - allows multiple gcc versions
628
# to co-exist without an overly large list of provides/obsoletes
629
Conflicts: %selfconflict libgcc_s%{libgcc_s}
630
631
%description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
632
Libgcc is needed for dynamically linked C programs.
633
634
%post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix} -p /sbin/ldconfig
635
636
%postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix} -p /sbin/ldconfig
637
638
%package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
639
Summary: C compiler runtime library
640
License: GPL-3.0-or-later WITH GCC-exception-3.1
641
Group: System/Base
642
Provides: libgcc_s%{libgcc_s}-32bit = %{version}-%{release}
643
# Only one package may provide this - allows multiple gcc versions
644
# to co-exist without an overly large list of provides/obsoletes
645
Conflicts: %selfconflict libgcc_s%{libgcc_s}-32bit
646
647
%description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
648
Libgcc is needed for dynamically linked C programs.
649
650
%post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit -p /sbin/ldconfig
651
652
%postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit -p /sbin/ldconfig
653
654
%package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
655
Summary: C compiler runtime library
656
License: GPL-3.0-or-later WITH GCC-exception-3.1
657
Group: System/Base
658
Provides: libgcc_s%{libgcc_s}-64bit = %{version}-%{release}
659
# Only one package may provide this - allows multiple gcc versions
660
# to co-exist without an overly large list of provides/obsoletes
661
Conflicts: %selfconflict libgcc_s%{libgcc_s}-64bit
662
663
%description -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
664
Libgcc is needed for dynamically linked C programs.
665
666
%post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit -p /sbin/ldconfig
667
668
%postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit -p /sbin/ldconfig
669
670
%package -n libgomp%{libgomp_sover}%{libgomp_suffix}
671
Summary: The GNU compiler collection OpenMP runtime library
672
License: GPL-3.0-or-later WITH GCC-exception-3.1
673
Group: System/Base
674
Provides: libgomp%{libgomp_sover} = %{version}-%{release}
675
# Only one package may provide this - allows multiple gcc versions
676
# to co-exist without an overly large list of provides/obsoletes
677
Conflicts: %selfconflict libgomp%{libgomp_sover}
678
679
%description -n libgomp%{libgomp_sover}%{libgomp_suffix}
680
This is the OpenMP runtime library needed by OpenMP enabled programs
681
that were built with the -fopenmp compiler option and by programs that
682
were auto-parallelized via the -ftree-parallelize-loops compiler
683
option.
684
685
686
%post -n libgomp%{libgomp_sover}%{libgomp_suffix} -p /sbin/ldconfig
687
688
%postun -n libgomp%{libgomp_sover}%{libgomp_suffix} -p /sbin/ldconfig
689
690
%package -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
691
Summary: The GNU compiler collection OpenMP runtime library
692
License: GPL-3.0-or-later WITH GCC-exception-3.1
693
Group: System/Base
694
Provides: libgomp%{libgomp_sover}-32bit = %{version}-%{release}
695
# Only one package may provide this - allows multiple gcc versions
696
# to co-exist without an overly large list of provides/obsoletes
697
Conflicts: %selfconflict libgomp%{libgomp_sover}-32bit
698
699
%description -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
700
This is the OpenMP runtime library needed by OpenMP enabled programs
701
that were built with the -fopenmp compiler option and by programs that
702
were auto-parallelized via the -ftree-parallelize-loops compiler
703
option.
704
705
706
%post -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit -p /sbin/ldconfig
707
708
%postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit -p /sbin/ldconfig
709
710
%package -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
711
Summary: The GNU compiler collection OpenMP runtime library
712
License: GPL-3.0-or-later WITH GCC-exception-3.1
713
Group: System/Base
714
Provides: libgomp%{libgomp_sover}-64bit = %{version}-%{release}
715
# Only one package may provide this - allows multiple gcc versions
716
# to co-exist without an overly large list of provides/obsoletes
717
Conflicts: %selfconflict libgomp%{libgomp_sover}-64bit
718
719
%description -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
720
This is the OpenMP runtime library needed by OpenMP enabled programs
721
that were built with the -fopenmp compiler option and by programs that
722
were auto-parallelized via the -ftree-parallelize-loops compiler
723
option.
724
725
726
%post -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit -p /sbin/ldconfig
727
728
%postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit -p /sbin/ldconfig
729
730
%package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
731
Summary: The standard C++ shared library
732
License: GPL-3.0-or-later WITH GCC-exception-3.1
733
Group: System/Libraries
734
Suggests: libstdc++%{libstdcxx_sover}-locale
735
Provides: libstdc++%{libstdcxx_sover} = %{version}-%{release}
736
# Only one package may provide this - allows multiple gcc versions
737
# to co-exist without an overly large list of provides/obsoletes
738
Conflicts: %selfconflict libstdc++%{libstdcxx_sover}
739
# Fallback for non-existing Supplements support
740
%if %{suse_version} < 1500
741
Recommends: libstdc++%{libstdcxx_sover}-pp = %{version}-%{release}
742
%endif
743
744
%description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
745
The standard C++ library, needed for dynamically linked C++ programs.
746
747
748
%post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix} -p /sbin/ldconfig
749
750
%postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix} -p /sbin/ldconfig
751
752
%package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
753
Summary: The standard C++ shared library
754
License: GPL-3.0-or-later WITH GCC-exception-3.1
755
Group: System/Libraries
756
Suggests: libstdc++%{libstdcxx_sover}-locale
757
Provides: libstdc++%{libstdcxx_sover}-32bit = %{version}-%{release}
758
# Only one package may provide this - allows multiple gcc versions
759
# to co-exist without an overly large list of provides/obsoletes
760
Conflicts: %selfconflict libstdc++%{libstdcxx_sover}-32bit
761
# Fallback for non-existing Supplements support
762
%if %{suse_version} < 1500
763
Recommends: libstdc++%{libstdcxx_sover}-pp-32bit = %{version}-%{release}
764
%endif
765
766
%description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
767
The standard C++ library, needed for dynamically linked C++ programs.
768
769
770
%post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit -p /sbin/ldconfig
771
772
%postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit -p /sbin/ldconfig
773
774
%package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
775
Summary: The standard C++ shared library
776
License: GPL-3.0-or-later WITH GCC-exception-3.1
777
Group: System/Libraries
778
Suggests: libstdc++%{libstdcxx_sover}-locale
779
Provides: libstdc++%{libstdcxx_sover}-64bit = %{version}-%{release}
780
# Only one package may provide this - allows multiple gcc versions
781
# to co-exist without an overly large list of provides/obsoletes
782
Conflicts: %selfconflict libstdc++%{libstdcxx_sover}-64bit
783
# Fallback for non-existing Supplements support
784
%if %{suse_version} < 1500
785
Recommends: libstdc++%{libstdcxx_sover}-pp-64bit = %{version}-%{release}
786
%endif
787
788
%description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
789
The standard C++ library, needed for dynamically linked C++ programs.
790
791
792
%post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit -p /sbin/ldconfig
793
794
%postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit -p /sbin/ldconfig
795
796
%package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
797
Summary: Standard C++ Library Locales
798
License: GPL-3.0-or-later WITH GCC-exception-3.1
799
Group: System/Libraries
800
Provides: libstdc++%{libstdcxx_sover}-locale = %{version}-%{release}
801
# Only one package may provide this - allows multiple gcc versions
802
# to co-exist without an overly large list of provides/obsoletes
803
Conflicts: %selfconflict libstdc++%{libstdcxx_sover}-locale
804
805
%description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
806
The standard C++ library locale data.
807
808
%package info
809
Summary: Documentation for the GNU compiler collection
810
License: GFDL-1.2-only
811
Group: Documentation/Other
812
PreReq: %{install_info_prereq}
813
%if 0%{?suse_version} >= 1120
814
BuildArch: noarch
815
%endif
816
817
%description info
818
GNU info-pages for the GNU compiler collection covering both user-level
819
and internals documentation.
820
821
%package objc
822
Summary: GNU Objective C Compiler
823
License: GPL-3.0-or-later
824
Group: Development/Languages/Other
825
Requires: gcc11 = %{version}-%{release}
826
Requires: gcc11-objc = %{version}-%{release}
827
Requires: libobjc%{libobjc_sover} >= %{version}-%{release}
828
829
%description objc
830
This package contains the GNU Objective C compiler. Objective C is an
831
object oriented language, created by Next Inc. and used in their
832
Nextstep OS. The source code is available in the gcc package.
833
834
%package objc-32bit
835
Summary: GNU Objective C Compiler
836
License: GPL-3.0-or-later
837
Group: Development/Languages/Other
838
Requires: gcc11-32bit = %{version}-%{release}
839
Requires: gcc11-objc = %{version}-%{release}
840
Requires: libobjc%{libobjc_sover}-32bit >= %{version}-%{release}
841
842
%description objc-32bit
843
This package contains the GNU Objective C compiler. Objective C is an
844
object oriented language, created by Next Inc. and used in their
845
Nextstep OS. The source code is available in the gcc package.
846
847
%package objc-64bit
848
Summary: GNU Objective C Compiler
849
License: GPL-3.0-or-later
850
Group: Development/Languages/Other
851
Requires: gcc11-64bit = %{version}-%{release}
852
Requires: gcc11-objc = %{version}-%{release}
853
Requires: libobjc%{libobjc_sover}-64bit >= %{version}-%{release}
854
855
%description objc-64bit
856
This package contains the GNU Objective C compiler. Objective C is an
857
object oriented language, created by Next Inc. and used in their
858
Nextstep OS. The source code is available in the gcc package.
859
860
%package -n libobjc%{libobjc_sover}%{libobjc_suffix}
861
Summary: Library for the GNU Objective C Compiler
862
License: GPL-3.0-or-later WITH GCC-exception-3.1
863
Group: Development/Libraries/Other
864
Provides: libobjc%{libobjc_sover} = %{version}-%{release}
865
# Only one package may provide this - allows multiple gcc versions
866
# to co-exist without an overly large list of provides/obsoletes
867
Conflicts: %selfconflict libobjc%{libobjc_sover}
868
869
%description -n libobjc%{libobjc_sover}%{libobjc_suffix}
870
The library for the GNU Objective C compiler.
871
872
%post -n libobjc%{libobjc_sover}%{libobjc_suffix} -p /sbin/ldconfig
873
874
%postun -n libobjc%{libobjc_sover}%{libobjc_suffix} -p /sbin/ldconfig
875
876
%package -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
877
Summary: Library for the GNU Objective C Compiler
878
License: GPL-3.0-or-later WITH GCC-exception-3.1
879
Group: Development/Libraries/Other
880
Provides: libobjc%{libobjc_sover}-32bit = %{version}-%{release}
881
# Only one package may provide this - allows multiple gcc versions
882
# to co-exist without an overly large list of provides/obsoletes
883
Conflicts: %selfconflict libobjc%{libobjc_sover}-32bit
884
885
%description -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
886
The library for the GNU Objective C compiler.
887
888
%post -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit -p /sbin/ldconfig
889
890
%postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit -p /sbin/ldconfig
891
892
%package -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
893
Summary: Library for the GNU Objective C Compiler
894
License: GPL-3.0-or-later WITH GCC-exception-3.1
895
Group: Development/Libraries/Other
896
Provides: libobjc%{libobjc_sover}-64bit = %{version}-%{release}
897
# Only one package may provide this - allows multiple gcc versions
898
# to co-exist without an overly large list of provides/obsoletes
899
Conflicts: %selfconflict libobjc%{libobjc_sover}-64bit
900
901
%description -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
902
The library for the GNU Objective C compiler.
903
904
%post -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit -p /sbin/ldconfig
905
906
%postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit -p /sbin/ldconfig
907
908
%package obj-c++
909
Summary: GNU Objective C++ Compiler
910
License: GPL-3.0-or-later
911
Group: Development/Languages/Other
912
Requires: gcc11-c++ = %{version}-%{release}
913
Requires: gcc11-obj-c++ = %{version}-%{release}
914
Requires: gcc11-objc = %{version}-%{release}
915
916
%description obj-c++
917
This package contains the GNU Objective C++ compiler. Objective C++ is an
918
object oriented language, created by Next Inc. and used in their
919
Nextstep OS. The source code is available in the gcc package.
920
921
%package obj-c++-32bit
922
Summary: GNU Objective C++ Compiler
923
License: GPL-3.0-or-later
924
Group: Development/Languages/Other
925
Requires: gcc11-c++-32bit = %{version}-%{release}
926
Requires: gcc11-obj-c++ = %{version}-%{release}
927
Requires: gcc11-objc-32bit = %{version}-%{release}
928
929
%description obj-c++-32bit
930
This package contains the GNU Objective C++ compiler. Objective C++ is an
931
object oriented language, created by Next Inc. and used in their
932
Nextstep OS. The source code is available in the gcc package.
933
934
%package obj-c++-64bit
935
Summary: GNU Objective C++ Compiler
936
License: GPL-3.0-or-later
937
Group: Development/Languages/Other
938
Requires: gcc11-c++-64bit = %{version}-%{release}
939
Requires: gcc11-obj-c++ = %{version}-%{release}
940
Requires: gcc11-objc-64bit = %{version}-%{release}
941
942
%description obj-c++-64bit
943
This package contains the GNU Objective C++ compiler. Objective C++ is an
944
object oriented language, created by Next Inc. and used in their
945
Nextstep OS. The source code is available in the gcc package.
946
947
%package -n cpp11
948
Summary: The GCC Preprocessor
949
License: GPL-3.0-or-later
950
Group: Development/Languages/C and C++
951
952
%description -n cpp11
953
This Package contains just the preprocessor that is used by the X11
954
packages.
955
956
%package ada
957
Summary: GNU Ada Compiler Based on GCC (GNAT)
958
License: GPL-3.0-or-later
959
Group: Development/Languages/Other
960
Requires: gcc11 = %{version}-%{release}
961
Requires: gcc11-ada = %{version}-%{release}
962
Requires: libada11 = %{version}-%{release}
963
964
%description ada
965
This package contains an Ada compiler and associated development
966
tools based on the GNU GCC technology.
967
968
%package ada-32bit
969
Summary: GNU Ada Compiler Based on GCC (GNAT)
970
License: GPL-3.0-or-later
971
Group: Development/Languages/Other
972
Requires: gcc11-32bit = %{version}-%{release}
973
Requires: gcc11-ada = %{version}-%{release}
974
Requires: libada11-32bit = %{version}-%{release}
975
976
%description ada-32bit
977
This package contains an Ada compiler and associated development
978
tools based on the GNU GCC technology.
979
980
%package ada-64bit
981
Summary: GNU Ada Compiler Based on GCC (GNAT)
982
License: GPL-3.0-or-later
983
Group: Development/Languages/Other
984
Requires: gcc11-64bit = %{version}-%{release}
985
Requires: gcc11-ada = %{version}-%{release}
986
Requires: libada11-64bit = %{version}-%{release}
987
988
%description ada-64bit
989
This package contains an Ada compiler and associated development
990
tools based on the GNU GCC technology.
991
992
%package -n libada11
993
Summary: GNU Ada Runtime Libraries
994
License: GPL-3.0-or-later WITH GCC-exception-3.1
995
Group: System/Libraries
996
Provides: libgnarl-11 = %{version}-%{release}
997
# FIXME: remove %{after} service-format_spec_file is fixed
998
# https://github.com/openSUSE/obs-service-format_spec_file/issues/46
999
Conflicts: %selfconflict libgnarl-11%{nil}
1000
Provides: libgnat-11 = %{version}-%{release}
1001
Conflicts: %selfconflict libgnat-11%{nil}
1002
1003
%description -n libada11
1004
This package contains the shared libraries required to run programs
1005
compiled with the GNU Ada compiler (GNAT) if they are compiled to use
1006
shared libraries. It also contains the shared libraries for the
1007
Implementation of the Ada Semantic Interface Specification (ASIS), the
1008
implementation of Distributed Systems Programming (GLADE) and the Posix
1009
1003.5 Binding (Florist).
1010
1011
%post -n libada11 -p /sbin/ldconfig
1012
1013
%postun -n libada11 -p /sbin/ldconfig
1014
1015
%package -n libada11-32bit
1016
Summary: GNU Ada Runtime Libraries
1017
License: GPL-3.0-or-later WITH GCC-exception-3.1
1018
Group: System/Libraries
1019
Provides: libgnarl-11-32bit = %{version}-%{release}
1020
# FIXME: remove %{after} service-format_spec_file is fixed
1021
# https://github.com/openSUSE/obs-service-format_spec_file/issues/46
1022
Conflicts: %selfconflict libgnarl-11-32bit%{nil}
1023
Provides: libgnat-11-32bit = %{version}-%{release}
1024
Conflicts: %selfconflict libgnat-11-32bit%{nil}
1025
1026
%description -n libada11-32bit
1027
This package contains the shared libraries required to run programs
1028
compiled with the GNU Ada compiler (GNAT) if they are compiled to use
1029
shared libraries. It also contains the shared libraries for the
1030
Implementation of the Ada Semantic Interface Specification (ASIS), the
1031
implementation of Distributed Systems Programming (GLADE) and the Posix
1032
1003.5 Binding (Florist).
1033
1034
%post -n libada11-32bit -p /sbin/ldconfig
1035
1036
%postun -n libada11-32bit -p /sbin/ldconfig
1037
1038
%package -n libada11-64bit
1039
Summary: GNU Ada Runtime Libraries
1040
License: GPL-3.0-or-later WITH GCC-exception-3.1
1041
Group: System/Libraries
1042
Provides: libgnarl-11-64bit = %{version}-%{release}
1043
# FIXME: remove %{after} service-format_spec_file is fixed
1044
# https://github.com/openSUSE/obs-service-format_spec_file/issues/46
1045
Conflicts: %selfconflict libgnarl-11-64bit%{nil}
1046
Provides: libgnat-11-64bit = %{version}-%{release}
1047
Conflicts: %selfconflict libgnat-11-64bit%{nil}
1048
1049
%description -n libada11-64bit
1050
This package contains the shared libraries required to run programs
1051
compiled with the GNU Ada compiler (GNAT) if they are compiled to use
1052
shared libraries. It also contains the shared libraries for the
1053
Implementation of the Ada Semantic Interface Specification (ASIS), the
1054
implementation of Distributed Systems Programming (GLADE) and the Posix
1055
1003.5 Binding (Florist).
1056
1057
%post -n libada11-64bit -p /sbin/ldconfig
1058
1059
%postun -n libada11-64bit -p /sbin/ldconfig
1060
1061
%package fortran
1062
Summary: The GNU Fortran Compiler and Support Files
1063
License: GPL-3.0-or-later
1064
Group: Development/Languages/Fortran
1065
Requires: gcc11 = %{version}-%{release}
1066
Requires: gcc11-fortran = %{version}-%{release}
1067
Requires: libgfortran%{libgfortran_sover} >= %{version}-%{release}
1068
%ifarch %quadmath_arch
1069
Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
1070
%endif
1071
1072
%description fortran
1073
This is the Fortran compiler of the GNU Compiler Collection (GCC).
1074
1075
%package fortran-32bit
1076
Summary: The GNU Fortran Compiler and Support Files
1077
License: GPL-3.0-or-later
1078
Group: Development/Languages/Fortran
1079
Requires: gcc11-32bit = %{version}-%{release}
1080
Requires: gcc11-fortran = %{version}-%{release}
1081
Requires: libgfortran%{libgfortran_sover}-32bit >= %{version}-%{release}
1082
%ifarch %quadmath_arch
1083
Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
1084
%endif
1085
1086
%description fortran-32bit
1087
This is the Fortran compiler of the GNU Compiler Collection (GCC).
1088
1089
%package fortran-64bit
1090
Summary: The GNU Fortran Compiler and Support Files
1091
License: GPL-3.0-or-later
1092
Group: Development/Languages/Fortran
1093
Requires: gcc11-64bit = %{version}-%{release}
1094
Requires: gcc11-fortran = %{version}-%{release}
1095
Requires: libgfortran%{libgfortran_sover}-64bit >= %{version}-%{release}
1096
%ifarch %quadmath_arch
1097
Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
1098
%endif
1099
1100
%description fortran-64bit
1101
This is the Fortran compiler of the GNU Compiler Collection (GCC).
1102
1103
%package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
1104
Summary: The GNU Fortran Compiler Runtime Library
1105
License: GPL-3.0-or-later WITH GCC-exception-3.1
1106
Group: Development/Languages/Fortran
1107
%ifarch %quadmath_arch
1108
Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
1109
%endif
1110
Provides: libgfortran%{libgfortran_sover} = %{version}-%{release}
1111
# Only one package may provide this - allows multiple gcc versions
1112
# to co-exist without an overly large list of provides/obsoletes
1113
Conflicts: %selfconflict libgfortran%{libgfortran_sover}
1114
1115
%description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
1116
The runtime library needed to run programs compiled with the Fortran compiler
1117
of the GNU Compiler Collection (GCC).
1118
1119
%post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix} -p /sbin/ldconfig
1120
1121
%postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix} -p /sbin/ldconfig
1122
1123
%package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
1124
Summary: The GNU Fortran Compiler Runtime Library
1125
License: GPL-3.0-or-later WITH GCC-exception-3.1
1126
Group: Development/Languages/Fortran
1127
%ifarch %quadmath_arch
1128
Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
1129
%endif
1130
Provides: libgfortran%{libgfortran_sover}-32bit = %{version}-%{release}
1131
# Only one package may provide this - allows multiple gcc versions
1132
# to co-exist without an overly large list of provides/obsoletes
1133
Conflicts: %selfconflict libgfortran%{libgfortran_sover}-32bit
1134
1135
%description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
1136
The runtime library needed to run programs compiled with the Fortran compiler
1137
of the GNU Compiler Collection (GCC).
1138
1139
%post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit -p /sbin/ldconfig
1140
1141
%postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit -p /sbin/ldconfig
1142
1143
%package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
1144
Summary: The GNU Fortran Compiler Runtime Library
1145
License: GPL-3.0-or-later WITH GCC-exception-3.1
1146
Group: Development/Languages/Fortran
1147
%ifarch %quadmath_arch
1148
Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
1149
%endif
1150
Provides: libgfortran%{libgfortran_sover}-64bit = %{version}-%{release}
1151
# Only one package may provide this - allows multiple gcc versions
1152
# to co-exist without an overly large list of provides/obsoletes
1153
Conflicts: %selfconflict libgfortran%{libgfortran_sover}-64bit
1154
1155
%description -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
1156
The runtime library needed to run programs compiled with the Fortran compiler
1157
of the GNU Compiler Collection (GCC).
1158
1159
%post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit -p /sbin/ldconfig
1160
1161
%postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit -p /sbin/ldconfig
1162
1163
%package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
1164
Summary: The GNU Fortran Compiler Quadmath Runtime Library
1165
License: LGPL-2.1-only
1166
Group: Development/Languages/Fortran
1167
Provides: libquadmath%{libquadmath_sover} = %{version}-%{release}
1168
# Only one package may provide this - allows multiple gcc versions
1169
# to co-exist without an overly large list of provides/obsoletes
1170
Conflicts: %selfconflict libquadmath%{libquadmath_sover}
1171
1172
%description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
1173
The runtime library needed to run programs compiled with the Fortran compiler
1174
of the GNU Compiler Collection (GCC) and quadruple precision floating point
1175
operations.
1176
1177
%post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix} -p /sbin/ldconfig
1178
1179
%postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix} -p /sbin/ldconfig
1180
1181
%package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
1182
Summary: The GNU Fortran Compiler Quadmath Runtime Library
1183
License: LGPL-2.1-only
1184
Group: Development/Languages/Fortran
1185
Provides: libquadmath%{libquadmath_sover}-32bit = %{version}-%{release}
1186
# Only one package may provide this - allows multiple gcc versions
1187
# to co-exist without an overly large list of provides/obsoletes
1188
Conflicts: %selfconflict libquadmath%{libquadmath_sover}-32bit
1189
1190
%description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
1191
The runtime library needed to run programs compiled with the Fortran compiler
1192
of the GNU Compiler Collection (GCC) and quadruple precision floating point
1193
operations.
1194
1195
%post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit -p /sbin/ldconfig
1196
1197
%postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit -p /sbin/ldconfig
1198
1199
%package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
1200
Summary: The GNU Fortran Compiler Quadmath Runtime Library
1201
License: LGPL-2.1-only
1202
Group: Development/Languages/Fortran
1203
Provides: libquadmath%{libquadmath_sover}-64bit = %{version}-%{release}
1204
# Only one package may provide this - allows multiple gcc versions
1205
# to co-exist without an overly large list of provides/obsoletes
1206
Conflicts: %selfconflict libquadmath%{libquadmath_sover}-64bit
1207
1208
%description -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
1209
The runtime library needed to run programs compiled with the Fortran compiler
1210
of the GNU Compiler Collection (GCC) and quadruple precision floating point
1211
operations.
1212
1213
%post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit -p /sbin/ldconfig
1214
1215
%postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit -p /sbin/ldconfig
1216
1217
%package -n libitm%{libitm_sover}%{libitm_suffix}
1218
Summary: The GNU Compiler Transactional Memory Runtime Library
1219
License: MIT
1220
Group: Development/Languages/C and C++
1221
Provides: libitm%{libitm_sover} = %{version}-%{release}
1222
# Only one package may provide this - allows multiple gcc versions
1223
# to co-exist without an overly large list of provides/obsoletes
1224
Conflicts: %selfconflict libitm%{libitm_sover}
1225
1226
%description -n libitm%{libitm_sover}%{libitm_suffix}
1227
The runtime library needed to run programs compiled with the
1228
-fgnu-tm option of the GNU Compiler Collection (GCC).
1229
1230
%post -n libitm%{libitm_sover}%{libitm_suffix} -p /sbin/ldconfig
1231
1232
%postun -n libitm%{libitm_sover}%{libitm_suffix} -p /sbin/ldconfig
1233
1234
%package -n libitm%{libitm_sover}%{libitm_suffix}-32bit
1235
Summary: The GNU Compiler Transactional Memory Runtime Library
1236
License: MIT
1237
Group: Development/Languages/C and C++
1238
Provides: libitm%{libitm_sover}-32bit = %{version}-%{release}
1239
# Only one package may provide this - allows multiple gcc versions
1240
# to co-exist without an overly large list of provides/obsoletes
1241
Conflicts: %selfconflict libitm%{libitm_sover}-32bit
1242
1243
%description -n libitm%{libitm_sover}%{libitm_suffix}-32bit
1244
The runtime library needed to run programs compiled with the
1245
-fgnu-tm option of the GNU Compiler Collection (GCC).
1246
1247
%post -n libitm%{libitm_sover}%{libitm_suffix}-32bit -p /sbin/ldconfig
1248
1249
%postun -n libitm%{libitm_sover}%{libitm_suffix}-32bit -p /sbin/ldconfig
1250
1251
%package -n libitm%{libitm_sover}%{libitm_suffix}-64bit
1252
Summary: The GNU Compiler Transactional Memory Runtime Library
1253
License: MIT
1254
Group: Development/Languages/C and C++
1255
Provides: libitm%{libitm_sover}-64bit = %{version}-%{release}
1256
# Only one package may provide this - allows multiple gcc versions
1257
# to co-exist without an overly large list of provides/obsoletes
1258
Conflicts: %selfconflict libitm%{libitm_sover}-64bit
1259
1260
%description -n libitm%{libitm_sover}%{libitm_suffix}-64bit
1261
The runtime library needed to run programs compiled with the
1262
-fgnu-tm option of the GNU Compiler Collection (GCC).
1263
1264
%post -n libitm%{libitm_sover}%{libitm_suffix}-64bit -p /sbin/ldconfig
1265
1266
%postun -n libitm%{libitm_sover}%{libitm_suffix}-64bit -p /sbin/ldconfig
1267
1268
%package -n libasan%{libasan_sover}%{libasan_suffix}
1269
Summary: The GNU Compiler Address Sanitizer Runtime Library
1270
License: MIT
1271
Group: Development/Languages/C and C++
1272
Provides: libasan%{libasan_sover} = %{version}-%{release}
1273
# Only one package may provide this - allows multiple gcc versions
1274
# to co-exist without an overly large list of provides/obsoletes
1275
Conflicts: %selfconflict libasan%{libasan_sover}
1276
1277
%description -n libasan%{libasan_sover}%{libasan_suffix}
1278
The runtime library needed to run programs compiled with the
1279
-fsanitize=address option of the GNU Compiler Collection (GCC).
1280
1281
%post -n libasan%{libasan_sover}%{libasan_suffix} -p /sbin/ldconfig
1282
1283
%postun -n libasan%{libasan_sover}%{libasan_suffix} -p /sbin/ldconfig
1284
1285
%package -n libasan%{libasan_sover}%{libasan_suffix}-32bit
1286
Summary: The GNU Compiler Address Sanitizer Runtime Library
1287
License: MIT
1288
Group: Development/Languages/C and C++
1289
Provides: libasan%{libasan_sover}-32bit = %{version}-%{release}
1290
# Only one package may provide this - allows multiple gcc versions
1291
# to co-exist without an overly large list of provides/obsoletes
1292
Conflicts: %selfconflict libasan%{libasan_sover}-32bit
1293
1294
%description -n libasan%{libasan_sover}%{libasan_suffix}-32bit
1295
The runtime library needed to run programs compiled with the
1296
-fsanitize=address option of the GNU Compiler Collection (GCC).
1297
1298
%post -n libasan%{libasan_sover}%{libasan_suffix}-32bit -p /sbin/ldconfig
1299
1300
%postun -n libasan%{libasan_sover}%{libasan_suffix}-32bit -p /sbin/ldconfig
1301
1302
%package -n libasan%{libasan_sover}%{libasan_suffix}-64bit
1303
Summary: The GNU Compiler Address Sanitizer Runtime Library
1304
License: MIT
1305
Group: Development/Languages/C and C++
1306
Provides: libasan%{libasan_sover}-64bit = %{version}-%{release}
1307
# Only one package may provide this - allows multiple gcc versions
1308
# to co-exist without an overly large list of provides/obsoletes
1309
Conflicts: %selfconflict libasan%{libasan_sover}-64bit
1310
1311
%description -n libasan%{libasan_sover}%{libasan_suffix}-64bit
1312
The runtime library needed to run programs compiled with the
1313
-fsanitize=address option of the GNU Compiler Collection (GCC).
1314
1315
%post -n libasan%{libasan_sover}%{libasan_suffix}-64bit -p /sbin/ldconfig
1316
1317
%postun -n libasan%{libasan_sover}%{libasan_suffix}-64bit -p /sbin/ldconfig
1318
1319
%package -n libtsan%{libtsan_sover}%{libtsan_suffix}
1320
Summary: The GNU Compiler Thread Sanitizer Runtime Library
1321
License: MIT
1322
Group: Development/Languages/C and C++
1323
Provides: libtsan%{libtsan_sover} = %{version}-%{release}
1324
# Only one package may provide this - allows multiple gcc versions
1325
# to co-exist without an overly large list of provides/obsoletes
1326
Conflicts: %selfconflict libtsan%{libtsan_sover}
1327
1328
%description -n libtsan%{libtsan_sover}%{libtsan_suffix}
1329
The runtime library needed to run programs compiled with the
1330
-fsanitize=thread option of the GNU Compiler Collection (GCC).
1331
1332
%post -n libtsan%{libtsan_sover}%{libtsan_suffix} -p /sbin/ldconfig
1333
1334
%postun -n libtsan%{libtsan_sover}%{libtsan_suffix} -p /sbin/ldconfig
1335
1336
%package -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
1337
Summary: The GNU Compiler Thread Sanitizer Runtime Library
1338
License: MIT
1339
Group: Development/Languages/C and C++
1340
Provides: libtsan%{libtsan_sover}-32bit = %{version}-%{release}
1341
# Only one package may provide this - allows multiple gcc versions
1342
# to co-exist without an overly large list of provides/obsoletes
1343
Conflicts: %selfconflict libtsan%{libtsan_sover}-32bit
1344
1345
%description -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
1346
The runtime library needed to run programs compiled with the
1347
-fsanitize=thread option of the GNU Compiler Collection (GCC).
1348
1349
%post -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit -p /sbin/ldconfig
1350
1351
%postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit -p /sbin/ldconfig
1352
1353
%package -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
1354
Summary: The GNU Compiler Thread Sanitizer Runtime Library
1355
License: MIT
1356
Group: Development/Languages/C and C++
1357
Provides: libtsan%{libtsan_sover}-64bit = %{version}-%{release}
1358
# Only one package may provide this - allows multiple gcc versions
1359
# to co-exist without an overly large list of provides/obsoletes
1360
Conflicts: %selfconflict libtsan%{libtsan_sover}-64bit
1361
1362
%description -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
1363
The runtime library needed to run programs compiled with the
1364
-fsanitize=thread option of the GNU Compiler Collection (GCC).
1365
1366
%post -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit -p /sbin/ldconfig
1367
1368
%postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit -p /sbin/ldconfig
1369
1370
%package -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}
1371
Summary: The GNU Compiler Hardware-assisted Address Sanitizer Runtime Library
1372
License: MIT
1373
Group: Development/Languages/C and C++
1374
Provides: libhwasan%{libhwasan_sover} = %{version}-%{release}
1375
# Only one package may provide this - allows multiple gcc versions
1376
# to co-exist without an overly large list of provides/obsoletes
1377
Conflicts: %selfconflict libhwasan%{libhwasan_sover}
1378
1379
%description -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}
1380
The runtime library needed to run programs compiled with the
1381
-fsanitize=hwaddress option of the GNU Compiler Collection (GCC).
1382
1383
%post -n libhwasan%{libhwasan_sover}%{libhwasan_suffix} -p /sbin/ldconfig
1384
1385
%postun -n libhwasan%{libhwasan_sover}%{libhwasan_suffix} -p /sbin/ldconfig
1386
1387
%package -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}-32bit
1388
Summary: The GNU Compiler Hardware-assisted Address Sanitizer Runtime Library
1389
License: MIT
1390
Group: Development/Languages/C and C++
1391
Provides: libhwasan%{libhwasan_sover}-32bit = %{version}-%{release}
1392
# Only one package may provide this - allows multiple gcc versions
1393
# to co-exist without an overly large list of provides/obsoletes
1394
Conflicts: %selfconflict libhwasan%{libhwasan_sover}-32bit
1395
1396
%description -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}-32bit
1397
The runtime library needed to run programs compiled with the
1398
-fsanitize=hwaddress option of the GNU Compiler Collection (GCC).
1399
1400
%post -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}-32bit -p /sbin/ldconfig
1401
1402
%postun -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}-32bit -p /sbin/ldconfig
1403
1404
%package -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}-64bit
1405
Summary: The GNU Compiler Hardware-assisted Address Sanitizer Runtime Library
1406
License: MIT
1407
Group: Development/Languages/C and C++
1408
Provides: libhwasan%{libhwasan_sover}-64bit = %{version}-%{release}
1409
# Only one package may provide this - allows multiple gcc versions
1410
# to co-exist without an overly large list of provides/obsoletes
1411
Conflicts: %selfconflict libhwasan%{libhwasan_sover}-64bit
1412
1413
%description -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}-64bit
1414
The runtime library needed to run programs compiled with the
1415
-fsanitize=hwaddress option of the GNU Compiler Collection (GCC).
1416
1417
%post -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}-64bit -p /sbin/ldconfig
1418
1419
%postun -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}-64bit -p /sbin/ldconfig
1420
1421
%package -n libatomic%{libatomic_sover}%{libatomic_suffix}
1422
Summary: The GNU Compiler Atomic Operations Runtime Library
1423
License: GPL-3.0-or-later WITH GCC-exception-3.1
1424
Group: Development/Languages/C and C++
1425
Provides: libatomic%{libatomic_sover} = %{version}-%{release}
1426
# Only one package may provide this - allows multiple gcc versions
1427
# to co-exist without an overly large list of provides/obsoletes
1428
Conflicts: %selfconflict libatomic%{libatomic_sover}
1429
1430
%description -n libatomic%{libatomic_sover}%{libatomic_suffix}
1431
The runtime library for atomic operations of the GNU Compiler Collection (GCC).
1432
1433
%post -n libatomic%{libatomic_sover}%{libatomic_suffix} -p /sbin/ldconfig
1434
1435
%postun -n libatomic%{libatomic_sover}%{libatomic_suffix} -p /sbin/ldconfig
1436
1437
%package -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
1438
Summary: The GNU Compiler Atomic Operations Runtime Library
1439
License: GPL-3.0-or-later WITH GCC-exception-3.1
1440
Group: Development/Languages/C and C++
1441
Provides: libatomic%{libatomic_sover}-32bit = %{version}-%{release}
1442
# Only one package may provide this - allows multiple gcc versions
1443
# to co-exist without an overly large list of provides/obsoletes
1444
Conflicts: %selfconflict libatomic%{libatomic_sover}-32bit
1445
1446
%description -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
1447
The runtime library for atomic operations of the GNU Compiler Collection (GCC).
1448
1449
%post -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit -p /sbin/ldconfig
1450
1451
%postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit -p /sbin/ldconfig
1452
1453
%package -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
1454
Summary: The GNU Compiler Atomic Operations Runtime Library
1455
License: GPL-3.0-or-later WITH GCC-exception-3.1
1456
Group: Development/Languages/C and C++
1457
Provides: libatomic%{libatomic_sover}-64bit = %{version}-%{release}
1458
# Only one package may provide this - allows multiple gcc versions
1459
# to co-exist without an overly large list of provides/obsoletes
1460
Conflicts: %selfconflict libatomic%{libatomic_sover}-64bit
1461
1462
%description -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
1463
The runtime library for atomic operations of the GNU Compiler Collection (GCC).
1464
1465
%post -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit -p /sbin/ldconfig
1466
1467
%postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit -p /sbin/ldconfig
1468
1469
%package -n liblsan%{liblsan_sover}%{liblsan_suffix}
1470
Summary: The GNU Compiler Leak Sanitizer Runtime Library
1471
License: MIT
1472
Group: Development/Languages/C and C++
1473
Provides: liblsan%{liblsan_sover} = %{version}-%{release}
1474
# Only one package may provide this - allows multiple gcc versions
1475
# to co-exist without an overly large list of provides/obsoletes
1476
Conflicts: %selfconflict liblsan%{liblsan_sover}
1477
1478
%description -n liblsan%{liblsan_sover}%{liblsan_suffix}
1479
The runtime library needed to run programs compiled with the
1480
-fsanitize=leak option of the GNU Compiler Collection (GCC).
1481
1482
%post -n liblsan%{liblsan_sover}%{liblsan_suffix} -p /sbin/ldconfig
1483
1484
%postun -n liblsan%{liblsan_sover}%{liblsan_suffix} -p /sbin/ldconfig
1485
1486
%package -n liblsan%{liblsan_sover}%{liblsan_suffix}-32bit
1487
Summary: The GNU Compiler Leak Sanitizer Runtime Library
1488
License: MIT
1489
Group: Development/Languages/C and C++
1490
Provides: liblsan%{liblsan_sover}-32bit = %{version}-%{release}
1491
# Only one package may provide this - allows multiple gcc versions
1492
# to co-exist without an overly large list of provides/obsoletes
1493
Conflicts: %selfconflict liblsan%{liblsan_sover}-32bit
1494
1495
%description -n liblsan%{liblsan_sover}%{liblsan_suffix}-32bit
1496
The runtime library needed to run programs compiled with the
1497
-fsanitize=leak option of the GNU Compiler Collection (GCC).
1498
1499
%post -n liblsan%{liblsan_sover}%{liblsan_suffix}-32bit -p /sbin/ldconfig
1500
1501
%postun -n liblsan%{liblsan_sover}%{liblsan_suffix}-32bit -p /sbin/ldconfig
1502
1503
%package -n liblsan%{liblsan_sover}%{liblsan_suffix}-64bit
1504
Summary: The GNU Compiler Leak Sanitizer Runtime Library
1505
License: MIT
1506
Group: Development/Languages/C and C++
1507
Provides: liblsan%{liblsan_sover}-64bit = %{version}-%{release}
1508
# Only one package may provide this - allows multiple gcc versions
1509
# to co-exist without an overly large list of provides/obsoletes
1510
Conflicts: %selfconflict liblsan%{liblsan_sover}-64bit
1511
1512
%description -n liblsan%{liblsan_sover}%{liblsan_suffix}-64bit
1513
The runtime library needed to run programs compiled with the
1514
-fsanitize=leak option of the GNU Compiler Collection (GCC).
1515
1516
%post -n liblsan%{liblsan_sover}%{liblsan_suffix}-64bit -p /sbin/ldconfig
1517
1518
%postun -n liblsan%{liblsan_sover}%{liblsan_suffix}-64bit -p /sbin/ldconfig
1519
1520
%package -n libubsan%{libubsan_sover}%{libubsan_suffix}
1521
Summary: The GNU Compiler Undefined Sanitizer Runtime Library
1522
License: MIT
1523
Group: Development/Languages/C and C++
1524
Provides: libubsan%{libubsan_sover} = %{version}-%{release}
1525
# Only one package may provide this - allows multiple gcc versions
1526
# to co-exist without an overly large list of provides/obsoletes
1527
Conflicts: %selfconflict libubsan%{libubsan_sover}
1528
1529
%description -n libubsan%{libubsan_sover}%{libubsan_suffix}
1530
The runtime library needed to run programs compiled with the
1531
-fsanitize=undefined option of the GNU Compiler Collection (GCC).
1532
1533
%post -n libubsan%{libubsan_sover}%{libubsan_suffix} -p /sbin/ldconfig
1534
1535
%postun -n libubsan%{libubsan_sover}%{libubsan_suffix} -p /sbin/ldconfig
1536
1537
%package -n libubsan%{libubsan_sover}%{libubsan_suffix}-32bit
1538
Summary: The GNU Compiler Undefined Sanitizer Runtime Library
1539
License: MIT
1540
Group: Development/Languages/C and C++
1541
Provides: libubsan%{libubsan_sover}-32bit = %{version}-%{release}
1542
# Only one package may provide this - allows multiple gcc versions
1543
# to co-exist without an overly large list of provides/obsoletes
1544
Conflicts: %selfconflict libubsan%{libubsan_sover}-32bit
1545
1546
%description -n libubsan%{libubsan_sover}%{libubsan_suffix}-32bit
1547
The runtime library needed to run programs compiled with the
1548
-fsanitize=undefined option of the GNU Compiler Collection (GCC).
1549
1550
%post -n libubsan%{libubsan_sover}%{libubsan_suffix}-32bit -p /sbin/ldconfig
1551
1552
%postun -n libubsan%{libubsan_sover}%{libubsan_suffix}-32bit -p /sbin/ldconfig
1553
1554
%package -n libubsan%{libubsan_sover}%{libubsan_suffix}-64bit
1555
Summary: The GNU Compiler Undefined Sanitizer Runtime Library
1556
License: MIT
1557
Group: Development/Languages/C and C++
1558
Provides: libubsan%{libubsan_sover}-64bit = %{version}-%{release}
1559
# Only one package may provide this - allows multiple gcc versions
1560
# to co-exist without an overly large list of provides/obsoletes
1561
Conflicts: %selfconflict libubsan%{libubsan_sover}-64bit
1562
1563
%description -n libubsan%{libubsan_sover}%{libubsan_suffix}-64bit
1564
The runtime library needed to run programs compiled with the
1565
-fsanitize=undefined option of the GNU Compiler Collection (GCC).
1566
1567
%post -n libubsan%{libubsan_sover}%{libubsan_suffix}-64bit -p /sbin/ldconfig
1568
1569
%postun -n libubsan%{libubsan_sover}%{libubsan_suffix}-64bit -p /sbin/ldconfig
1570
1571
%package -n libvtv%{libvtv_sover}%{libvtv_suffix}
1572
Summary: The GNU Compiler Vtable Verifier Runtime Library
1573
License: MIT
1574
Group: Development/Languages/C and C++
1575
Provides: libvtv%{libvtv_sover} = %{version}-%{release}
1576
# Only one package may provide this - allows multiple gcc versions
1577
# to co-exist without an overly large list of provides/obsoletes
1578
Conflicts: %selfconflict libvtv%{libvtv_sover}
1579
1580
%description -n libvtv%{libvtv_sover}%{libvtv_suffix}
1581
The runtime library needed to run programs compiled with the
1582
-fvtable-verify option of the GNU Compiler Collection (GCC).
1583
1584
%post -n libvtv%{libvtv_sover}%{libvtv_suffix} -p /sbin/ldconfig
1585
1586
%postun -n libvtv%{libvtv_sover}%{libvtv_suffix} -p /sbin/ldconfig
1587
1588
%package -n libvtv%{libvtv_sover}%{libvtv_suffix}-32bit
1589
Summary: The GNU Compiler Vtable Verifier Runtime Library
1590
License: MIT
1591
Group: Development/Languages/C and C++
1592
Provides: libvtv%{libvtv_sover}-32bit = %{version}-%{release}
1593
# Only one package may provide this - allows multiple gcc versions
1594
# to co-exist without an overly large list of provides/obsoletes
1595
Conflicts: %selfconflict libvtv%{libvtv_sover}-32bit
1596
1597
%description -n libvtv%{libvtv_sover}%{libvtv_suffix}-32bit
1598
The runtime library needed to run programs compiled with the
1599
-fvtable-verify option of the GNU Compiler Collection (GCC).
1600
1601
%post -n libvtv%{libvtv_sover}%{libvtv_suffix}-32bit -p /sbin/ldconfig
1602
1603
%postun -n libvtv%{libvtv_sover}%{libvtv_suffix}-32bit -p /sbin/ldconfig
1604
1605
%package -n libvtv%{libvtv_sover}%{libvtv_suffix}-64bit
1606
Summary: The GNU Compiler Vtable Verifier Runtime Library
1607
License: MIT
1608
Group: Development/Languages/C and C++
1609
Provides: libvtv%{libvtv_sover}-64bit = %{version}-%{release}
1610
# Only one package may provide this - allows multiple gcc versions
1611
# to co-exist without an overly large list of provides/obsoletes
1612
Conflicts: %selfconflict libvtv%{libvtv_sover}-64bit
1613
1614
%description -n libvtv%{libvtv_sover}%{libvtv_suffix}-64bit
1615
The runtime library needed to run programs compiled with the
1616
-fvtable-verify option of the GNU Compiler Collection (GCC).
1617
1618
%post -n libvtv%{libvtv_sover}%{libvtv_suffix}-64bit -p /sbin/ldconfig
1619
1620
%postun -n libvtv%{libvtv_sover}%{libvtv_suffix}-64bit -p /sbin/ldconfig
1621
1622
%package -n libstdc++%{libstdcxx_sover}%{libdevel_suffix}-doc
1623
Summary: Documentation for the GNU C++ standard library
1624
License: GPL-3.0-or-later
1625
Group: Documentation/HTML
1626
%if 0%{?suse_version} >= 1120
1627
BuildArch: noarch
1628
%endif
1629
1630
%description -n libstdc++%{libstdcxx_sover}%{libdevel_suffix}-doc
1631
Extensive HTML documentation for the GNU C++ standard library.
1632
1633
%package go
1634
Summary: GNU Go Compiler
1635
License: GPL-3.0-or-later
1636
Group: Development/Languages/Other
1637
Requires: gcc11 = %{version}-%{release}
1638
Requires: gcc11-go = %{version}-%{release}
1639
Requires: libgo%{libgo_sover} >= %{version}-%{release}
1640
1641
%description go
1642
This package contains a Go compiler and associated development
1643
files based on the GNU GCC technology.
1644
1645
%package go-32bit
1646
Summary: GNU Go Compiler
1647
License: GPL-3.0-or-later
1648
Group: Development/Languages/Other
1649
Requires: gcc11-32bit = %{version}-%{release}
1650
Requires: gcc11-go = %{version}-%{release}
1651
Requires: libgo%{libgo_sover}-32bit >= %{version}-%{release}
1652
1653
%description go-32bit
1654
This package contains a Go compiler and associated development
1655
files based on the GNU GCC technology.
1656
1657
%package go-64bit
1658
Summary: GNU Go Compiler
1659
License: GPL-3.0-or-later
1660
Group: Development/Languages/Other
1661
Requires: gcc11-64bit = %{version}-%{release}
1662
Requires: gcc11-go = %{version}-%{release}
1663
Requires: libgo%{libgo_sover}-64bit >= %{version}-%{release}
1664
1665
%description go-64bit
1666
This package contains a Go compiler and associated development
1667
files based on the GNU GCC technology.
1668
1669
%package -n libgo%{libgo_sover}%{libgo_suffix}
1670
Summary: GNU Go compiler runtime library
1671
License: BSD-3-Clause
1672
Group: Development/Languages/Other
1673
Provides: libgo%{libgo_sover} = %{version}-%{release}
1674
# Only one package may provide this - allows multiple gcc versions
1675
# to co-exist without an overly large list of provides/obsoletes
1676
Conflicts: %selfconflict libgo%{libgo_sover}
1677
1678
%description -n libgo%{libgo_sover}%{libgo_suffix}
1679
Runtime library for the GNU Go language.
1680
1681
%post -n libgo%{libgo_sover}%{libgo_suffix} -p /sbin/ldconfig
1682
1683
%postun -n libgo%{libgo_sover}%{libgo_suffix} -p /sbin/ldconfig
1684
1685
%package -n libgo%{libgo_sover}%{libgo_suffix}-32bit
1686
Summary: GNU Go compiler runtime library
1687
License: BSD-3-Clause
1688
Group: Development/Languages/Other
1689
Provides: libgo%{libgo_sover}-32bit = %{version}-%{release}
1690
# Only one package may provide this - allows multiple gcc versions
1691
# to co-exist without an overly large list of provides/obsoletes
1692
Conflicts: %selfconflict libgo%{libgo_sover}-32bit
1693
1694
%description -n libgo%{libgo_sover}%{libgo_suffix}-32bit
1695
Runtime library for the GNU Go language.
1696
1697
%post -n libgo%{libgo_sover}%{libgo_suffix}-32bit -p /sbin/ldconfig
1698
1699
%postun -n libgo%{libgo_sover}%{libgo_suffix}-32bit -p /sbin/ldconfig
1700
1701
%package -n libgo%{libgo_sover}%{libgo_suffix}-64bit
1702
Summary: GNU Go compiler runtime library
1703
License: BSD-3-Clause
1704
Group: Development/Languages/Other
1705
Provides: libgo%{libgo_sover}-64bit = %{version}-%{release}
1706
# Only one package may provide this - allows multiple gcc versions
1707
# to co-exist without an overly large list of provides/obsoletes
1708
Conflicts: %selfconflict libgo%{libgo_sover}-64bit
1709
1710
%description -n libgo%{libgo_sover}%{libgo_suffix}-64bit
1711
Runtime library for the GNU Go language.
1712
1713
%post -n libgo%{libgo_sover}%{libgo_suffix}-64bit -p /sbin/ldconfig
1714
1715
%postun -n libgo%{libgo_sover}%{libgo_suffix}-64bit -p /sbin/ldconfig
1716
1717
%package d
1718
Summary: GNU D Compiler
1719
License: GPL-3.0-or-later
1720
Group: Development/Languages/Other
1721
Requires: gcc11 = %{version}-%{release}
1722
Requires: gcc11-d = %{version}-%{release}
1723
Requires: libgdruntime%{libgdruntime_sover} >= %{version}-%{release}
1724
Requires: libgphobos%{libgphobos_sover} >= %{version}-%{release}
1725
1726
%description d
1727
This package contains a D compiler and associated development
1728
files based on the GNU GCC technology.
1729
1730
%package d-32bit
1731
Summary: GNU D Compiler
1732
License: GPL-3.0-or-later
1733
Group: Development/Languages/Other
1734
Requires: gcc11-32bit = %{version}-%{release}
1735
Requires: gcc11-d = %{version}-%{release}
1736
Requires: libgdruntime%{libgdruntime_sover}-32bit >= %{version}-%{release}
1737
Requires: libgphobos%{libgphobos_sover}-32bit >= %{version}-%{release}
1738
1739
%description d-32bit
1740
This package contains a D compiler and associated development
1741
files based on the GNU GCC technology.
1742
1743
%package d-64bit
1744
Summary: GNU D Compiler
1745
License: GPL-3.0-or-later
1746
Group: Development/Languages/Other
1747
Requires: gcc11-64bit = %{version}-%{release}
1748
Requires: gcc11-d = %{version}-%{release}
1749
Requires: libgdruntime%{libgdruntime_sover}-64bit >= %{version}-%{release}
1750
Requires: libgphobos%{libgphobos_sover}-64bit >= %{version}-%{release}
1751
1752
%description d-64bit
1753
This package contains a D compiler and associated development
1754
files based on the GNU GCC technology.
1755
1756
%package -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}
1757
Summary: GNU D compiler runtime library
1758
License: BSL-1.0
1759
Group: Development/Languages/Other
1760
Provides: libgphobos%{libgphobos_sover} = %{version}-%{release}
1761
# Only one package may provide this - allows multiple gcc versions
1762
# to co-exist without an overly large list of provides/obsoletes
1763
Conflicts: %selfconflict libgphobos%{libgphobos_sover}
1764
1765
%description -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}
1766
Runtime library for the GNU D language.
1767
1768
%post -n libgphobos%{libgphobos_sover}%{libgphobos_suffix} -p /sbin/ldconfig
1769
1770
%postun -n libgphobos%{libgphobos_sover}%{libgphobos_suffix} -p /sbin/ldconfig
1771
1772
%package -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}-32bit
1773
Summary: GNU D compiler runtime library
1774
License: BSL-1.0
1775
Group: Development/Languages/Other
1776
Provides: libgphobos%{libgphobos_sover}-32bit = %{version}-%{release}
1777
# Only one package may provide this - allows multiple gcc versions
1778
# to co-exist without an overly large list of provides/obsoletes
1779
Conflicts: %selfconflict libgphobos%{libgphobos_sover}-32bit
1780
1781
%description -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}-32bit
1782
Runtime library for the GNU D language.
1783
1784
%post -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}-32bit -p /sbin/ldconfig
1785
1786
%postun -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}-32bit -p /sbin/ldconfig
1787
1788
%package -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}-64bit
1789
Summary: GNU D compiler runtime library
1790
License: BSL-1.0
1791
Group: Development/Languages/Other
1792
Provides: libgphobos%{libgphobos_sover}-64bit = %{version}-%{release}
1793
# Only one package may provide this - allows multiple gcc versions
1794
# to co-exist without an overly large list of provides/obsoletes
1795
Conflicts: %selfconflict libgphobos%{libgphobos_sover}-64bit
1796
1797
%description -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}-64bit
1798
Runtime library for the GNU D language.
1799
1800
%post -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}-64bit -p /sbin/ldconfig
1801
1802
%postun -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}-64bit -p /sbin/ldconfig
1803
1804
%package -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}
1805
Summary: GNU D compiler runtime library
1806
License: BSL-1.0
1807
Group: Development/Languages/Other
1808
Provides: libgdruntime%{libgdruntime_sover} = %{version}-%{release}
1809
# Only one package may provide this - allows multiple gcc versions
1810
# to co-exist without an overly large list of provides/obsoletes
1811
Conflicts: %selfconflict libgdruntime%{libgdruntime_sover}
1812
1813
%description -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}
1814
Runtime library for the GNU D language.
1815
1816
%post -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix} -p /sbin/ldconfig
1817
1818
%postun -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix} -p /sbin/ldconfig
1819
1820
%package -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}-32bit
1821
Summary: GNU D compiler runtime library
1822
License: BSL-1.0
1823
Group: Development/Languages/Other
1824
Provides: libgdruntime%{libgdruntime_sover}-32bit = %{version}-%{release}
1825
# Only one package may provide this - allows multiple gcc versions
1826
# to co-exist without an overly large list of provides/obsoletes
1827
Conflicts: %selfconflict libgdruntime%{libgdruntime_sover}-32bit
1828
1829
%description -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}-32bit
1830
Runtime library for the GNU D language.
1831
1832
%post -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}-32bit -p /sbin/ldconfig
1833
1834
%postun -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}-32bit -p /sbin/ldconfig
1835
1836
%package -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}-64bit
1837
Summary: GNU D compiler runtime library
1838
License: BSL-1.0
1839
Group: Development/Languages/Other
1840
Provides: libgdruntime%{libgdruntime_sover}-64bit = %{version}-%{release}
1841
# Only one package may provide this - allows multiple gcc versions
1842
# to co-exist without an overly large list of provides/obsoletes
1843
Conflicts: %selfconflict libgdruntime%{libgdruntime_sover}-64bit
1844
1845
%description -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}-64bit
1846
Runtime library for the GNU D language.
1847
1848
%post -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}-64bit -p /sbin/ldconfig
1849
1850
%postun -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}-64bit -p /sbin/ldconfig
1851
1852
%package -n libgccjit%{libgccjit_sover}%{libgccjit_suffix}
1853
Summary: The GNU Compiler Collection JIT library
1854
License: GPL-3.0-or-later
1855
Provides: libgccjit%{libgccjit_sover} = %{version}-%{release}
1856
# Only one package may provide this - allows multiple gcc versions
1857
# to co-exist without an overly large list of provides/obsoletes
1858
Conflicts: %selfconflict libgccjit%{libgccjit_sover}
1859
Requires: gcc11
1860
1861
%description -n libgccjit%{libgccjit_sover}%{libgccjit_suffix}
1862
Support for embedding GCC inside programs and libraries
1863
1864
%post -n libgccjit%{libgccjit_sover}%{libgccjit_suffix} -p /sbin/ldconfig
1865
1866
%postun -n libgccjit%{libgccjit_sover}%{libgccjit_suffix} -p /sbin/ldconfig
1867
1868
%package -n libgccjit%{libgccjit_sover}-devel%{libdevel_suffix}
1869
Summary: Support for embedding GCC inside programs and libraries
1870
License: GPL-3.0-or-later
1871
Group: Development/Languages/C and C++
1872
Provides: libgccjit%{libgccjit_sover}-devel = %{version}-%{release}
1873
# Only one gccjit package can be installed at the same time since
1874
# header files conflict
1875
Conflicts: %selfconflict libgccjit%{libgccjit_sover}-devel
1876
Requires: libgccjit%{libgccjit_sover}%{libgccjit_suffix}
1877
1878
%description -n libgccjit%{libgccjit_sover}-devel%{libdevel_suffix}
1879
Package contains header files and documentation for GCC JIT front-end.
1880
1881
%package -n gcc11-testresults
1882
Summary: Testsuite results
1883
License: SUSE-Public-Domain
1884
1885
%description -n gcc11-testresults
1886
Results from running the gcc and target library testsuites.
1887
1888
1889
1890
1891
# Define the canonical target and host architecture
1892
# %%gcc_target_arch is supposed to be the full target triple
1893
# %%cross_arch is supposed to be the rpm target variant arch
1894
# %%TARGET_ARCH will be the canonicalized target CPU part
1895
# %%HOST_ARCH will be the canonicalized host CPU part
1896
%if 0%{?gcc_target_arch:1}
1897
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1898
%else
1899
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1900
%endif
1901
%if 0%{?disable_32bit:1}
1902
%define biarch 0
1903
%else
1904
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
1905
%endif
1906
1907
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
1908
%ifarch ppc
1909
%define GCCDIST powerpc64-suse-linux
1910
%else
1911
%ifarch %sparc
1912
%define GCCDIST sparc64-suse-linux
1913
%else
1914
%ifarch %arm
1915
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
1916
%else
1917
%define GCCDIST %{HOST_ARCH}-suse-linux
1918
%endif
1919
%endif
1920
%endif
1921
1922
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
1923
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
1924
1925
# Versionspecific directories
1926
%define versmainlibdir %{libsubdir}
1927
%define versmainlibdirbi32 %{libsubdir}/32
1928
%define versmainlibdirbi64 %{libsubdir}/64
1929
%ifarch ppc
1930
%define versmainlibdirbi32 %{libsubdir}
1931
%define versmainlibdirbi64 %{libsubdir}/64
1932
%endif
1933
%if %{build_primary_64bit}
1934
%define versmainlibdirbi %{versmainlibdirbi32}
1935
%else
1936
%define versmainlibdirbi %{versmainlibdirbi64}
1937
%endif
1938
1939
%define mainlibdir %{_libdir}
1940
%define mainlibdirbi32 %{_prefix}/lib
1941
%define mainlibdirbi64 %{_prefix}/lib64
1942
%if %{build_primary_64bit}
1943
%define mainlibdirbi %{mainlibdirbi32}
1944
%else
1945
%define mainlibdirbi %{mainlibdirbi64}
1946
%endif
1947
1948
# Now define a few macros that make it easy to package libs and
1949
# related files just to the right package, without caring for the
1950
# exact path the files are in.
1951
# %%mainlib package X from all dirs that belong to the main package
1952
# %%biarchlib package X from all dirs that belong to the -32/64bit package
1953
%define mainlib() %{mainlibdir}/%1\
1954
%{nil}
1955
%define biarchlib() %{nil}
1956
%if %{biarch}
1957
%if !%{separate_biarch}
1958
%define mainlib() %{mainlibdir}/%1\
1959
%{mainlibdirbi}/%1\
1960
%{nil}
1961
%else
1962
%define biarchlib() %{mainlibdirbi}/%1\
1963
%{nil}
1964
%endif
1965
%endif
1966
1967
%define versmainlib() %{versmainlibdir}/%1\
1968
%{nil}
1969
%define versbiarchlib() %{nil}
1970
%if %{biarch}
1971
%if !%{separate_biarch}
1972
%define versmainlib() %{versmainlibdir}/%1\
1973
%{versmainlibdirbi}/%1\
1974
%{nil}
1975
%else
1976
%define versbiarchlib() %{versmainlibdirbi}/%1\
1977
%{nil}
1978
%endif
1979
%endif
1980
1981
%prep
1982
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
1983
%setup -q -n gcc-%{version} -a 5
1984
ln -s newlib-4.1.0/newlib .
1985
cd newlib
1986
%patch100 -p1
1987
cd ..
1988
%else
1989
%setup -q -n gcc-%{version}
1990
%endif
1991
1992
#test patching start
1993
1994
%patch2
1995
%patch5
1996
%patch6
1997
%patch7
1998
%patch11
1999
%patch15
2000
%patch16
2001
%patch17 -p1
2002
%if "%{TARGET_ARCH}" == "amdgcn"
2003
%patch18 -p1
2004
%endif
2005
# In SLE15 and earlier default to dwarf4, not dwarf5
2006
%if %{suse_version} < 1550
2007
%patch19 -p1
2008
%endif
2009
%patch20 -p1
2010
%patch51
2011
%patch52 -p1
2012
%patch60 -p1
2013
%patch61
2014
2015
#test patching end
2016
2017
%build
2018
%define _lto_cflags %{nil}
2019
# Avoid rebuilding of generated files
2020
contrib/gcc_update --touch
2021
2022
# SLE11 does not allow empty rpms
2023
%if %{suse_version} < 1310
2024
echo "This is a dummy package to provide a dependency." > README
2025
%endif
2026
2027
rm -rf obj-%{GCCDIST}
2028
mkdir obj-%{GCCDIST}
2029
cd obj-%{GCCDIST}
2030
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE"
2031
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'`
2032
%ifarch %ix86
2033
# -mcpu is superceded by -mtune but -mtune is not supported by
2034
# our bootstrap compiler. -mcpu gives a warning that stops
2035
# the build process, so remove it for now. Also remove all other
2036
# -march and -mtune flags. They are superseeded by proper
2037
# default compiler settings now.
2038
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'`
2039
%endif
2040
%ifarch s390 s390x
2041
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fsigned-char//g'`
2042
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-O1/-O2/g'`
2043
%endif
2044
%if 0%{?gcc_target_arch:1}
2045
# Kill all -march/tune/cpu because that screws building the target libs
2046
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m\(arch\|tune\|cpu\)=[^ ]*//g'`
2047
%endif
2048
# Replace 2 spaces by one finally
2049
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/ / /g'`
2050
2051
languages=c
2052
%if %{build_cp}
2053
languages=$languages,c++
2054
%endif
2055
%if %{build_objc}
2056
languages=$languages,objc
2057
%endif
2058
%if %{build_fortran}
2059
languages=$languages,fortran
2060
%endif
2061
%if %{build_objcp}
2062
languages=$languages,obj-c++
2063
%endif
2064
%if %{build_ada}
2065
languages=$languages,ada
2066
%endif
2067
%if %{build_go}
2068
languages=$languages,go
2069
%endif
2070
%if %{build_d}
2071
languages=$languages,d
2072
%endif
2073
%if %{build_jit}
2074
languages=$languages,jit
2075
%endif
2076
2077
# In general we want to ship release checking enabled compilers
2078
# which is the default for released compilers
2079
#ENABLE_CHECKING="--enable-checking=yes"
2080
ENABLE_CHECKING="--enable-checking=release"
2081
#ENABLE_CHECKING=""
2082
2083
# Work around tail/head -1 changes
2084
export _POSIX2_VERSION=199209
2085
2086
%if "%{TARGET_ARCH}" == "amdgcn"
2087
mkdir -p target-tools/bin
2088
ln -s /usr/bin/llvm-ar target-tools/bin/amdgcn-amdhsa-ar
2089
ln -s /usr/bin/llvm-mc target-tools/bin/amdgcn-amdhsa-as
2090
ln -s /usr/bin/lld target-tools/bin/amdgcn-amdhsa-ld
2091
ln -s /usr/bin/llvm-nm target-tools/bin/amdgcn-amdhsa-nm
2092
ln -s /usr/bin/llvm-ranlib target-tools/bin/amdgcn-amdhsa-ranlib
2093
export PATH="`pwd`/target-tools/bin:$PATH"
2094
%endif
2095
2096
%if "%{hostsuffix}" != ""
2097
mkdir -p host-tools/bin
2098
# Using the host gnatmake like
2099
# CC="gcc%%{hostsuffix}" GNATBIND="gnatbind%%{hostsuffix}"
2100
# GNATMAKE="gnatmake%%{hostsuffix}"
2101
# doesn't work due to PR33857, so an un-suffixed gnatmake has to be
2102
# available
2103
%if %{build_ada}
2104
cp -a /usr/bin/gnatmake%{hostsuffix} host-tools/bin/gnatmake
2105
cp -a /usr/bin/gnatlink%{hostsuffix} host-tools/bin/gnatlink
2106
cp -a /usr/bin/gnatbind%{hostsuffix} host-tools/bin/gnatbind
2107
%endif
2108
cp -a /usr/bin/gcc%{hostsuffix} host-tools/bin/gcc
2109
cp -a /usr/bin/g++%{hostsuffix} host-tools/bin/g++
2110
ln -sf /usr/%{_lib} host-tools/%{_lib}
2111
export PATH="`pwd`/host-tools/bin:$PATH"
2112
%endif
2113
2114
# libsanitizer needs <crypt.h> and since the glibc/libxcrypt split
2115
# we don't have that yet in a pure cross environment
2116
%if 0%{?gcc_target_arch:1}
2117
CONFARGS="$CONFARGS --disable-libsanitizer"
2118
%endif
2119
2120
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" XCFLAGS="$RPM_OPT_FLAGS" \
2121
TCFLAGS="$RPM_OPT_FLAGS" \
2122
../configure \
2123
--prefix=%{_prefix} \
2124
--infodir=%{_infodir} \
2125
--mandir=%{_mandir} \
2126
--libdir=%{_libdir} \
2127
--libexecdir=%{_libdir} \
2128
--enable-languages=$languages \
2129
%if %{build_nvptx} || %{build_gcn}
2130
--enable-offload-targets=\
2131
%if %{build_nvptx}
2132
nvptx-none,\
2133
%endif
2134
%if %{build_gcn}
2135
amdgcn-amdhsa,\
2136
%endif
2137
%endif
2138
%if %{build_nvptx}
2139
--without-cuda-driver \
2140
%endif
2141
%if %{build_jit}
2142
--enable-host-shared \
2143
%endif
2144
$ENABLE_CHECKING \
2145
--disable-werror \
2146
--with-gxx-include-dir=%{_prefix}/include/c++/%{gcc_dir_version} \
2147
--enable-ssp \
2148
--disable-libssp \
2149
%if 0%{!?build_libvtv:1}
2150
--disable-libvtv \
2151
%endif
2152
%if 0%{suse_version} >= 1500
2153
--enable-cet=auto \
2154
%else
2155
--disable-cet \
2156
%endif
2157
--disable-libcc1 \
2158
%if %{enable_plugins}
2159
--enable-plugin \
2160
%else
2161
--disable-plugin \
2162
%endif
2163
--with-bugurl="https://bugs.opensuse.org/" \
2164
--with-pkgversion="SUSE Linux" \
2165
%if 0%{?sysroot:1}
2166
--with-slibdir=%{sysroot}/%{_lib} \
2167
%else
2168
--with-slibdir=/%{_lib} \
2169
%endif
2170
--with-system-zlib \
2171
--enable-libstdcxx-allocator=new \
2172
--disable-libstdcxx-pch \
2173
%if 0%{suse_version} <= 1320
2174
--with-default-libstdcxx-abi=gcc4-compatible \
2175
%endif
2176
%if %{build_d}
2177
--enable-libphobos \
2178
%endif
2179
--enable-version-specific-runtime-libs \
2180
--with-gcc-major-version-only \
2181
%if 0%{!?gcc_target_arch:1}
2182
--enable-linker-build-id \
2183
%else
2184
%if 0%{?gcc_target_glibc:1}
2185
--enable-linker-build-id \
2186
%endif
2187
%endif
2188
--enable-linux-futex \
2189
%if %{suse_version} >= 1315
2190
%ifarch %ix86 x86_64 ppc ppc64 ppc64le %arm aarch64 s390 s390x %sparc
2191
--enable-gnu-indirect-function \
2192
%endif
2193
%endif
2194
--program-suffix=%{binsuffix} \
2195
%ifarch %{disable_multilib_arch}
2196
--disable-multilib \
2197
%endif
2198
%if 0%{!?gcc_target_arch:1}
2199
%ifarch ia64
2200
--with-system-libunwind \
2201
%else
2202
--without-system-libunwind \
2203
%endif
2204
%endif
2205
%if 0%{?gcc_target_arch:1}
2206
--program-prefix=%{gcc_target_arch}- \
2207
--target=%{gcc_target_arch} \
2208
--disable-nls \
2209
%if 0%{?sysroot:1}
2210
--with-sysroot=%sysroot \
2211
%endif
2212
%if 0%{?build_sysroot:1}
2213
--with-build-sysroot=%{build_sysroot} \
2214
%else
2215
%if 0%{?sysroot:1}
2216
--with-build-sysroot=%{sysroot} \
2217
%endif
2218
%endif
2219
%if 0%{?binutils_os:1}
2220
--with-build-time-tools=/usr/%{binutils_os}/bin \
2221
%endif
2222
%if 0%{?gcc_target_newlib}
2223
--with-newlib \
2224
%if 0%{?gcc_libc_bootstrap:1}
2225
--disable-gcov \
2226
%endif
2227
%else
2228
%if 0%{?gcc_libc_bootstrap:1}
2229
--disable-gcov --disable-threads --disable-shared \
2230
--disable-libmudflap --disable-libssp --disable-libgomp \
2231
--disable-libquadmath --disable-libatomic \
2232
--without-headers --with-newlib \
2233
%endif
2234
%endif
2235
%if "%{TARGET_ARCH}" == "spu"
2236
--with-gxx-include-dir=%sysroot/include/c++/%{gcc_dir_version} \
2237
--with-newlib \
2238
%endif
2239
%if "%{TARGET_ARCH}" == "nvptx"
2240
--enable-as-accelerator-for=%{GCCDIST} \
2241
--disable-sjlj-exceptions \
2242
--enable-newlib-io-long-long \
2243
%endif
2244
%if "%{TARGET_ARCH}" == "amdgcn"
2245
--enable-as-accelerator-for=%{GCCDIST} \
2246
--enable-libgomp \
2247
%endif
2248
%if "%{TARGET_ARCH}" == "avr"
2249
--enable-lto \
2250
--without-gxx-include-dir \
2251
--with-native-system-header-dir=/include \
2252
%endif
2253
%endif
2254
%if "%{TARGET_ARCH}" == "arm-none"
2255
--enable-multilib \
2256
--with-multilib-list=aprofile,rmprofile \
2257
--disable-decimal-float \
2258
--disable-libffi \
2259
--disable-libgomp \
2260
--disable-libmudflap \
2261
--disable-libquadmath \
2262
--disable-shared \
2263
--disable-threads \
2264
--disable-tls \
2265
%endif
2266
%if "%{TARGET_ARCH}" == "armv6hl" || "%{TARGET_ARCH}" == "arm"
2267
--with-cpu=arm1176jzf-s \
2268
--with-float=hard \
2269
--with-abi=aapcs-linux \
2270
--with-fpu=vfpv2 \
2271
--disable-sjlj-exceptions \
2272
%endif
2273
%if "%{TARGET_ARCH}" == "armv7hl"
2274
--with-cpu=generic-armv7-a \
2275
--with-float=hard \
2276
--with-abi=aapcs-linux \
2277
--with-fpu=vfpv3-d16 \
2278
--disable-sjlj-exceptions \
2279
%endif
2280
%if "%{TARGET_ARCH}" == "aarch64"
2281
--enable-fix-cortex-a53-835769 \
2282
--enable-fix-cortex-a53-843419 \
2283
%endif
2284
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
2285
%if "%{TARGET_ARCH}" == "powerpc"
2286
--with-cpu=default32 \
2287
%endif
2288
%if "%{TARGET_ARCH}" == "powerpc64le"
2289
%if %{suse_version} >= 1350
2290
--with-cpu=power8 \
2291
--with-tune=power9 \
2292
%else
2293
%if %{suse_version} >= 1315 && %{suse_version} != 1320
2294
--with-cpu=power8 \
2295
--with-tune=power8 \
2296
%else
2297
--with-cpu=power7 \
2298
--with-tune=power7 \
2299
%endif
2300
%endif
2301
%else
2302
--with-cpu-64=power4 \
2303
%endif
2304
--enable-secureplt \
2305
--with-long-double-128 \
2306
%if "%{TARGET_ARCH}" == "powerpc64le"
2307
--enable-targets=powerpcle-linux \
2308
--disable-multilib \
2309
%endif
2310
%endif
2311
%if "%{TARGET_ARCH}" == "sparc64"
2312
--with-cpu=ultrasparc \
2313
--with-long-double-128 \
2314
%endif
2315
%if "%{TARGET_ARCH}" == "sparc"
2316
--with-cpu=v8 \
2317
--with-long-double-128 \
2318
%endif
2319
%if "%{TARGET_ARCH}" == "i586"
2320
%if 0%{?sle_version:%sle_version} >= 150000
2321
--with-arch-32=x86-64 \
2322
%else
2323
--with-arch-32=i586 \
2324
%endif
2325
--with-tune=generic \
2326
%endif
2327
%if "%{TARGET_ARCH}" == "x86_64"
2328
%ifnarch %{disable_multilib_arch}
2329
--enable-multilib \
2330
--with-arch-32=x86-64 \
2331
%endif
2332
--with-tune=generic \
2333
%endif
2334
%if "%{TARGET_ARCH}" == "s390"
2335
%if %{suse_version} >= 1310
2336
--with-tune=zEC12 --with-arch=z196 \
2337
%else
2338
--with-tune=z9-109 --with-arch=z900 \
2339
%endif
2340
--with-long-double-128 \
2341
--enable-decimal-float \
2342
%endif
2343
%if "%{TARGET_ARCH}" == "s390x"
2344
%if %{suse_version} >= 1310
2345
--with-tune=zEC12 --with-arch=z196 \
2346
%else
2347
--with-tune=z9-109 --with-arch=z900 \
2348
%endif
2349
--with-long-double-128 \
2350
--enable-decimal-float \
2351
%endif
2352
%if "%{TARGET_ARCH}" == "m68k"
2353
--disable-multilib \
2354
%endif
2355
%if "%{TARGET_ARCH}" == "riscv64"
2356
--disable-multilib \
2357
%endif
2358
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
2359
--with-build-config=bootstrap-lto-lean \
2360
--enable-link-mutex \
2361
%endif
2362
%ifarch riscv64
2363
--enable-link-mutex \
2364
%endif
2365
$CONFARGS \
2366
--build=%{GCCDIST} \
2367
--host=%{GCCDIST} || \
2368
{
2369
rc=$?;
2370
echo "------- BEGIN config.log ------";
2371
%{__cat} config.log;
2372
echo "------- END config.log ------";
2373
exit $rc;
2374
}
2375
2376
STAGE1_FLAGS="-g -O2"
2377
%if 0%{?do_profiling} && !0%{?building_testsuite:1}
2378
%ifarch x86_64 %ix86 ppc64le s390x aarch64
2379
%define use_pgo_bootstrap 1
2380
%endif
2381
%endif
2382
%{?use_pgo_bootstrap:setarch `arch` -R} make %{?use_pgo_bootstrap:profiledbootstrap} STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
2383
make info
2384
%if 0%{?run_tests:1}
2385
echo "Run testsuite"
2386
(make -C %{GCCDIST}/libstdc++-v3 check-abi || true)
2387
mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.log %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.log
2388
mv %{GCCDIST}/libstdc++-v3/testsuite/libstdc++.sum %{GCCDIST}/libstdc++-v3/testsuite/libstdc++-abi.sum
2389
# asan needs a whole shadow address space
2390
ulimit -v unlimited || true
2391
make -k check %{?_smp_mflags} || true
2392
mkdir ../testresults
2393
../contrib/test_summary | tee ../testresults/test_summary.txt
2394
%endif
2395
2396
%install
2397
# Make sure libtool re-linking libasan at install time doesn't drop the
2398
# libstdc++ reference to make asan of C++ modules in python work
2399
export SUSE_ASNEEDED=0
2400
export NO_BRP_CHECK_BYTECODE_VERSION=true
2401
cd obj-%{GCCDIST}
2402
# Work around tail/head -1 changes
2403
export _POSIX2_VERSION=199209
2404
export LIBRARY_PATH=%{buildroot}/%{libsubdir}:%{buildroot}/%{mainlibdirbi}
2405
2406
%make_install
2407
2408
# verify libasan really ended up with libstdc++ as NEEDED.
2409
%ifarch %asan_arch
2410
readelf -d %{buildroot}/%{versmainlibdir}/libasan.so.%{libasan_sover}* | grep 'NEEDED.*libstdc++' || exit 1
2411
%if %{biarch}
2412
readelf -d %{buildroot}/%{versmainlibdirbi}/libasan.so.%{libasan_sover}* | grep 'NEEDED.*libstdc++' || exit 1
2413
%endif
2414
%endif
2415
2416
# Remove some useless .la files
2417
for lib in libobjc libgfortran libquadmath libcaf_single \
2418
libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \
2419
libasan libhwasan libatomic libitm libtsan liblsan libubsan libvtv \
2420
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
2421
libgdruntime libgphobos; do
2422
rm -f %{buildroot}/%{versmainlibdir}/$lib.la
2423
%if %{biarch}
2424
rm -f %{buildroot}/%{versmainlibdirbi}/$lib.la
2425
%endif
2426
done
2427
2428
mkdir -p %{buildroot}/%{_libdir}
2429
%if %{biarch}
2430
%if %{build_primary_64bit}
2431
mkdir -p %{buildroot}/%{_prefix}/lib
2432
%else
2433
mkdir -p %{buildroot}/%{_prefix}/lib64
2434
%endif
2435
%endif
2436
2437
%if %{build_cp}
2438
# Merge multilib c++config.h to allow omitting the duplicate and
2439
# identical other arch specific headers
2440
dir_ml=
2441
cxxconfig="`find %{GCCDIST}/libstdc++-v3/include -name c++config.h`"
2442
for i in `find %{GCCDIST}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
2443
if ! diff -up $cxxconfig $i; then
2444
file_32=x
2445
file_64=x
2446
case $i in
2447
%{GCCDIST}/32/*)
2448
file_32=$i
2449
file_64=$cxxconfig
2450
dir_ml=32
2451
;;
2452
%{GCCDIST}/64/*)
2453
file_32=$cxxconfig
2454
file_64=$i
2455
dir_ml=64
2456
;;
2457
esac
2458
if ! ( test -f "$file_32" && test -f "$file_64" ); then
2459
echo "Urgs?"
2460
exit 1
2461
fi
2462
2463
cat > %{buildroot}/%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/bits/c++config.h <<EOF
2464
#ifndef _CPP_CPPCONFIG_WRAPPER
2465
#define _CPP_CPPCONFIG_WRAPPER 1
2466
#include <bits/wordsize.h>
2467
#if __WORDSIZE == 32
2468
`cat $file_32`
2469
#else
2470
`cat $file_64`
2471
#endif
2472
#endif
2473
EOF
2474
break
2475
fi
2476
done
2477
rm -rf %{buildroot}/%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/[36]*
2478
if ! test -z "$dir_ml"; then
2479
ln -s . %{buildroot}/%{_prefix}/include/c++/%{gcc_dir_version}/%{GCCDIST}/$dir_ml
2480
fi
2481
%endif
2482
2483
# move shared libs from versionspecific dir to main libdir
2484
for libname in \
2485
%if %{build_fortran}
2486
libgfortran \
2487
%endif
2488
%ifarch %quadmath_arch
2489
libquadmath \
2490
%endif
2491
%if %{build_objc}
2492
libobjc \
2493
%endif
2494
%if %{build_cp}
2495
libstdc++ \
2496
%endif
2497
%if %{build_go}
2498
libgo \
2499
%endif
2500
%if %{build_d}
2501
libgdruntime \
2502
libgphobos \
2503
%endif
2504
libgomp \
2505
%if %{build_nvptx}
2506
libgomp-plugin-nvptx \
2507
%endif
2508
%if %{build_gcn}
2509
libgomp-plugin-gcn \
2510
%endif
2511
%ifarch %atomic_arch
2512
libatomic \
2513
%endif
2514
%ifarch %itm_arch
2515
libitm \
2516
%endif
2517
%ifarch %asan_arch
2518
libasan \
2519
%endif
2520
%ifarch %tsan_arch
2521
libtsan \
2522
%endif
2523
%ifarch %lsan_arch
2524
liblsan \
2525
%endif
2526
%ifarch %ubsan_arch
2527
libubsan \
2528
%endif
2529
%ifarch %hwasan_arch
2530
libhwasan \
2531
%endif
2532
%ifarch %vtv_arch
2533
libvtv \
2534
%endif
2535
; do
2536
for lib in `find %{buildroot}/%{versmainlibdir} -maxdepth 1 -name $libname.so.*`; do
2537
mv $lib %{buildroot}/%{mainlibdir}/
2538
done
2539
if test -L %{buildroot}/%{versmainlibdir}/$libname.so; then
2540
ln -sf %{mainlibdir}/`readlink %{buildroot}/%{versmainlibdir}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
2541
%{buildroot}/%{versmainlibdir}/$libname.so
2542
fi
2543
%if %{biarch}
2544
if test -d %{buildroot}/%{versmainlibdirbi}; then
2545
for lib in `find %{buildroot}/%{versmainlibdirbi} -maxdepth 1 -name "$libname.so.*"`; do
2546
mv $lib %{buildroot}/%{mainlibdirbi}/
2547
done
2548
if test -L %{buildroot}/%{versmainlibdirbi}/$libname.so; then
2549
ln -sf %{mainlibdirbi}/`readlink %{buildroot}/%{versmainlibdirbi}/$libname.so | sed -e 's/\(.*\.so\.[^\.]*\).*/\1/'` \
2550
%{buildroot}/%{versmainlibdirbi}/$libname.so
2551
fi
2552
fi
2553
%endif
2554
done
2555
%if %{build_cp}
2556
# And we want to move the shlib gdb pretty printers to a more sane
2557
# place so ldconfig does not complain
2558
mkdir -p %{buildroot}/%{_datadir}/gdb/auto-load%{mainlibdir}
2559
mv %{buildroot}/%{mainlibdir}/libstdc++.so.*-gdb.py %{buildroot}/%{_datadir}/gdb/auto-load%{mainlibdir}/
2560
sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' %{buildroot}/%{_datadir}/gdb/auto-load%{mainlibdir}/libstdc++.so.*-gdb.py
2561
%if %{biarch}
2562
if test -d %{buildroot}/%{versmainlibdirbi}; then
2563
mkdir -p %{buildroot}/%{_datadir}/gdb/auto-load%{mainlibdirbi}
2564
mv %{buildroot}/%{mainlibdirbi}/libstdc++.so.*-gdb.py %{buildroot}/%{_datadir}/gdb/auto-load%{mainlibdirbi}/
2565
sed -i -e '/^libdir/s/\/gcc\/%{GCCDIST}\/%{gcc_dir_version}//g' %{buildroot}/%{_datadir}/gdb/auto-load%{mainlibdirbi}/libstdc++.so.*-gdb.py
2566
fi
2567
%endif
2568
%endif
2569
2570
# Move libgcc_s around
2571
if test -L %{buildroot}/%{_lib}/libgcc_s.so; then
2572
rm -f %{buildroot}/%{_lib}/libgcc_s.so
2573
ln -sf /%{_lib}/libgcc_s.so.%{libgcc_s} %{buildroot}/%{versmainlibdir}/libgcc_s.so
2574
else
2575
mv %{buildroot}/%{_lib}/libgcc_s.so %{buildroot}/%{versmainlibdir}/
2576
fi
2577
chmod a+x %{buildroot}/%{_lib}/libgcc_s.so.%{libgcc_s}
2578
%if 0%{?usrmerged}
2579
mv %{buildroot}/%{_lib}/libgcc_s.so.%{libgcc_s} %{buildroot}/%{_slibdir}/libgcc_s.so.%{libgcc_s}
2580
%endif
2581
%if %{biarch}
2582
%if %{build_primary_64bit}
2583
if test -L %{buildroot}/lib/libgcc_s.so; then
2584
rm -f %{buildroot}/lib/libgcc_s.so
2585
ln -sf /lib/libgcc_s.so.%{libgcc_s} %{buildroot}/%{versmainlibdirbi32}/libgcc_s.so
2586
else
2587
mv %{buildroot}/lib/libgcc_s.so %{buildroot}/%{versmainlibdirbi32}/
2588
fi
2589
ln -sf %{versmainlibdirbi32}/libgcc_s.so %{buildroot}/%{versmainlibdirbi32}/libgcc_s_32.so
2590
chmod a+x %{buildroot}/lib/libgcc_s.so.%{libgcc_s}
2591
%if 0%{?usrmerged}
2592
mv %{buildroot}/lib/libgcc_s.so.%{libgcc_s} %{buildroot}/%{slibdir}/libgcc_s.so.%{libgcc_s}
2593
%endif
2594
%else
2595
# 32-bit biarch systems
2596
if test -L %{buildroot}/lib64/libgcc_s.so; then
2597
rm -f %{buildroot}/lib64/libgcc_s.so
2598
ln -sf /lib64/libgcc_s.so.%{libgcc_s} %{buildroot}/%{versmainlibdirbi64}/libgcc_s.so
2599
else
2600
mv %{buildroot}/lib64/libgcc_s.so %{buildroot}/%{versmainlibdirbi64}/
2601
fi
2602
ln -sf %{versmainlibdirbi64}/libgcc_s.so %{buildroot}/%{versmainlibdirbi64}/libgcc_s_64.so
2603
chmod a+x %{buildroot}/lib64/libgcc_s.so.%{libgcc_s}
2604
%if 0%{?usrmerged}
2605
mv %{buildroot}/lib64/libgcc_s.so.%{libgcc_s} %{buildroot}/%{slibdir64}/libgcc_s.so.%{libgcc_s}
2606
%endif
2607
%endif
2608
%endif
2609
2610
%if %{build_ada}
2611
mv %{buildroot}/%{libsubdir}/adalib/lib*-*.so %{buildroot}/%{_libdir}
2612
ln -sf %{_libdir}/libgnarl%{binsuffix}.so %{buildroot}/%{libsubdir}/adalib/libgnarl.so
2613
ln -sf %{_libdir}/libgnat%{binsuffix}.so %{buildroot}/%{libsubdir}/adalib/libgnat.so
2614
chmod a+x %{buildroot}/%{_libdir}/libgna*-*.so
2615
%if %{biarch}
2616
mv %{buildroot}/%{versmainlibdirbi}/adalib/lib*-*.so %{buildroot}/%{mainlibdirbi}/
2617
ln -sf %{mainlibdirbi}/libgnarl%{binsuffix}.so %{buildroot}/%{versmainlibdirbi}/adalib/libgnarl.so
2618
ln -sf %{mainlibdirbi}/libgnat%{binsuffix}.so %{buildroot}/%{versmainlibdirbi}/adalib/libgnat.so
2619
chmod a+x %{buildroot}/%{mainlibdirbi}/libgna*-*.so
2620
%endif
2621
%endif
2622
2623
rm -f %{buildroot}/%{_prefix}/bin/c++%{binsuffix}
2624
2625
# Remove some crap from the .la files:
2626
for l in `find %{buildroot} -name '*.la'`; do
2627
echo "changing $l"
2628
sed -e '/^dependency_libs/s| -L%{_builddir}/[^ ]*||g' \
2629
-e '/^dependency_libs/s| -L/usr/%{GCCDIST}/bin||g' \
2630
-e '/^dependency_libs/s|-lm \(-lm \)*|-lm |' \
2631
-e '/^dependency_libs/s|-L[^ ]* ||g' \
2632
%if %{biarch}
2633
%if %{build_primary_64bit}
2634
-e '/^libdir/s|%{_libdir}/32|%{_prefix}/lib|' \
2635
-e '/^libdir/s|lib64/\.\./||' \
2636
%else
2637
-e '/^libdir/s|%{_libdir}/64|%{_prefix}/lib64|' \
2638
%endif
2639
%endif
2640
< $l > $l.new
2641
mv $l.new $l
2642
done
2643
2644
# The spec for the PIE subpackage
2645
cat > %{buildroot}/%{libsubdir}/defaults.spec <<EOF
2646
*default_spec:
2647
%%{pie|fpic|fPIC|fpie|fPIE|no-pie|fno-pic|fno-PIC|fno-pie|fno-PIE|shared|static|nostdlib|nodefaultlibs|nostartfiles:;:-fPIE}%%{fno-pic|fno-PIC|fno-pie|fno-PIE|pie|no-pie|shared|static|nostdlib|nodefaultlibs|nostartfiles:;: -pie}
2648
EOF
2649
2650
%if 0%{?run_tests:1}
2651
cp `find . -name "*.sum"` ../testresults/
2652
cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' | grep -v libbacktrace` ../testresults/
2653
chmod 644 ../testresults/*
2654
%endif
2655
# Remove files that we do not need to clean up filelist
2656
2657
# Preserve %{GCCDIST}-gcc%{binsuffix} binary for libgccjit as it is used as a driver
2658
mv %{buildroot}/%{_prefix}/bin/%{GCCDIST}-gcc%{binsuffix} %{buildroot}
2659
rm -f %{buildroot}/%{_prefix}/bin/%{GCCDIST}-*
2660
mv %{buildroot}/%{GCCDIST}-gcc%{binsuffix} %{buildroot}/%{_prefix}/bin/
2661
2662
rm -rf %{buildroot}/%{libsubdir}/install-tools
2663
rm -f %{buildroot}/%{libsubdir}/include-fixed/zutil.h
2664
rm -f %{buildroot}/%{libsubdir}/include-fixed/linux/a.out.h
2665
rm -f %{buildroot}/%{libsubdir}/include-fixed/linux/vt.h
2666
rm -f %{buildroot}/%{libsubdir}/include-fixed/asm-generic/socket.h
2667
rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/mathdef.h
2668
rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/unistd_ext.h
2669
rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/ucontext.h
2670
rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/statx.h
2671
rm -f %{buildroot}/%{libsubdir}/include-fixed/pthread.h
2672
rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/rseq.h
2673
%if !%{enable_plugins}
2674
# no plugins
2675
rm -rf %{buildroot}/%{libsubdir}/plugin
2676
%endif
2677
rm -f %{buildroot}/%{_infodir}/dir
2678
2679
rm -f %{buildroot}/%{_mandir}/man7/fsf-funding.7
2680
rm -f %{buildroot}/%{_mandir}/man7/gfdl.7
2681
rm -f %{buildroot}/%{_mandir}/man7/gpl.7
2682
rm -f %{buildroot}/%{_libdir}/libiberty.a
2683
%if %{biarch}
2684
%if %{build_primary_64bit}
2685
rm -f %{buildroot}/%{_prefix}/lib/libiberty.a
2686
%else
2687
rm -f %{buildroot}/%{_prefix}/lib64/libiberty.a
2688
%endif
2689
%endif
2690
rm -f %{buildroot}/%{libsubdir}/liblto_plugin.a
2691
rm -f %{buildroot}/%{libsubdir}/liblto_plugin.la
2692
%if %{build_go}
2693
# gccgo.info isn't properly versioned
2694
rm %{buildroot}/%{_infodir}/gccgo.info*
2695
rm -f %{buildroot}/%{libsubdir}/test2json
2696
rm -f %{buildroot}/%{libsubdir}/vet
2697
%endif
2698
2699
# For regular build, some info files do not get renamed properly.
2700
# Do so here.
2701
mv %{buildroot}/%{_infodir}/libgomp.info %{buildroot}/%{_infodir}/libgomp%{binsuffix}.info
2702
%ifarch %itm_arch
2703
mv %{buildroot}/%{_infodir}/libitm.info %{buildroot}/%{_infodir}/libitm%{binsuffix}.info
2704
%endif
2705
%if %{build_fortran}
2706
%ifarch %quadmath_arch
2707
mv %{buildroot}/%{_infodir}/libquadmath.info %{buildroot}/%{_infodir}/libquadmath%{binsuffix}.info
2708
%endif
2709
%endif
2710
%if %{build_ada}
2711
mv %{buildroot}/%{_infodir}/gnat-style.info %{buildroot}/%{_infodir}/gnat-style%{binsuffix}.info
2712
mv %{buildroot}/%{_infodir}/gnat_rm.info %{buildroot}/%{_infodir}/gnat_rm%{binsuffix}.info
2713
mv %{buildroot}/%{_infodir}/gnat_ugn.info %{buildroot}/%{_infodir}/gnat_ugn%{binsuffix}.info
2714
%endif
2715
2716
cd ..
2717
%find_lang cpplib%{binsuffix}
2718
%find_lang gcc%{binsuffix}
2719
%find_lang libstdc++
2720
cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc11-locale.lang
2721
2722
%post info
2723
%install_info --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2724
%install_info --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2725
%install_info --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2726
%install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2727
%install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2728
%install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2729
%ifarch %itm_arch
2730
%install_info --info-dir=%{_infodir} %{_infodir}/libitm%{binsuffix}.info.gz
2731
%endif
2732
%if %{build_fortran}
2733
%install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2734
%ifarch %quadmath_arch
2735
%install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2736
%endif
2737
%endif
2738
%if %{build_ada}
2739
%install_info --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2740
%install_info --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2741
%install_info --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2742
%endif
2743
2744
%preun info
2745
%install_info_delete --info-dir=%{_infodir} %{_infodir}/cpp%{binsuffix}.info.gz
2746
%install_info_delete --info-dir=%{_infodir} %{_infodir}/cppinternals%{binsuffix}.info.gz
2747
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gcc%{binsuffix}.info.gz
2748
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
2749
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
2750
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
2751
%ifarch %itm_arch
2752
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libitm%{binsuffix}.info.gz
2753
%endif
2754
%if %{build_fortran}
2755
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
2756
%ifarch %quadmath_arch
2757
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
2758
%endif
2759
%endif
2760
%if %{build_ada}
2761
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat-style%{binsuffix}.info.gz
2762
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_rm%{binsuffix}.info.gz
2763
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn%{binsuffix}.info.gz
2764
%endif
2765
2766
%files
2767
%defattr(-,root,root)
2768
%dir %{_libdir}/gcc
2769
%dir %{_libdir}/gcc/%{GCCDIST}
2770
%dir %{libsubdir}
2771
%dir %{libsubdir}/include
2772
%dir %{libsubdir}/include-fixed
2773
%if %{biarch}
2774
%if %{build_primary_64bit}
2775
%dir %{libsubdir}/32
2776
%else
2777
%dir %{libsubdir}/64
2778
%endif
2779
%endif
2780
%{_prefix}/bin/gcc%{binsuffix}
2781
%{_prefix}/bin/%{GCCDIST}-gcc%{binsuffix}
2782
%{_prefix}/bin/gcov%{binsuffix}
2783
%{_prefix}/bin/gcov-dump%{binsuffix}
2784
%{_prefix}/bin/gcov-tool%{binsuffix}
2785
%{_prefix}/bin/gcc-ar%{binsuffix}
2786
%{_prefix}/bin/gcc-nm%{binsuffix}
2787
%{_prefix}/bin/gcc-ranlib%{binsuffix}
2788
%{_prefix}/bin/lto-dump%{binsuffix}
2789
%{libsubdir}/collect2
2790
%{libsubdir}/lto1
2791
%{libsubdir}/lto-wrapper
2792
%{libsubdir}/liblto_plugin.so*
2793
%{libsubdir}/include-fixed/README
2794
%{libsubdir}/include-fixed/limits.h
2795
%{libsubdir}/include-fixed/syslimits.h
2796
%{libsubdir}/include/omp.h
2797
%{libsubdir}/include/float.h
2798
%{libsubdir}/include/iso646.h
2799
%{libsubdir}/include/stdarg.h
2800
%{libsubdir}/include/stdbool.h
2801
%{libsubdir}/include/stdfix.h
2802
%{libsubdir}/include/stddef.h
2803
%{libsubdir}/include/unwind.h
2804
%{libsubdir}/include/varargs.h
2805
%{libsubdir}/include/stdint.h
2806
%{libsubdir}/include/stdint-gcc.h
2807
%{libsubdir}/include/stdnoreturn.h
2808
%{libsubdir}/include/stdalign.h
2809
%{libsubdir}/include/stdatomic.h
2810
%{libsubdir}/include/openacc.h
2811
%{libsubdir}/include/gcov.h
2812
%{libsubdir}/include/acc_prof.h
2813
%ifarch %sparc
2814
%{libsubdir}/include/visintrin.h
2815
%endif
2816
%ifarch ppc ppc64 ppc64le
2817
%{libsubdir}/include/altivec.h
2818
%{libsubdir}/include/ppc-asm.h
2819
%{libsubdir}/include/ppu_intrinsics.h
2820
%{libsubdir}/include/si2vmx.h
2821
%{libsubdir}/include/spu2vmx.h
2822
%{libsubdir}/include/vec_types.h
2823
%{libsubdir}/include/htmintrin.h
2824
%{libsubdir}/include/htmxlintrin.h
2825
%{libsubdir}/include/amo.h
2826
%{libsubdir}/include/bmi2intrin.h
2827
%{libsubdir}/include/bmiintrin.h
2828
%{libsubdir}/include/emmintrin.h
2829
%{libsubdir}/include/mm_malloc.h
2830
%{libsubdir}/include/mmintrin.h
2831
%{libsubdir}/include/x86intrin.h
2832
%{libsubdir}/include/xmmintrin.h
2833
%{libsubdir}/include/pmmintrin.h
2834
%{libsubdir}/include/tmmintrin.h
2835
%{libsubdir}/include/smmintrin.h
2836
%endif
2837
%ifarch s390 s390x
2838
%{libsubdir}/include/htmintrin.h
2839
%{libsubdir}/include/htmxlintrin.h
2840
%{libsubdir}/include/s390intrin.h
2841
%{libsubdir}/include/vecintrin.h
2842
%endif
2843
%ifarch ia64
2844
%{libsubdir}/include/ia64intrin.h
2845
%endif
2846
%ifarch %arm
2847
%{libsubdir}/include/mmintrin.h
2848
%{libsubdir}/include/unwind-arm-common.h
2849
%{libsubdir}/include/arm_cmse.h
2850
%{libsubdir}/include/arm_mve.h
2851
%{libsubdir}/include/arm_mve_types.h
2852
%{libsubdir}/include/arm_cde.h
2853
%endif
2854
%ifarch %arm aarch64
2855
%{libsubdir}/include/arm_neon.h
2856
%{libsubdir}/include/arm_acle.h
2857
%{libsubdir}/include/arm_fp16.h
2858
%{libsubdir}/include/arm_bf16.h
2859
%endif
2860
%ifarch aarch64
2861
%{libsubdir}/include/arm_sve.h
2862
%endif
2863
%ifarch %ix86 x86_64
2864
%{libsubdir}/include/cross-stdarg.h
2865
%{libsubdir}/include/cpuid.h
2866
%{libsubdir}/include/mm3dnow.h
2867
%{libsubdir}/include/mmintrin.h
2868
%{libsubdir}/include/ammintrin.h
2869
%{libsubdir}/include/bmmintrin.h
2870
%{libsubdir}/include/emmintrin.h
2871
%{libsubdir}/include/immintrin.h
2872
%{libsubdir}/include/avxintrin.h
2873
%{libsubdir}/include/pmmintrin.h
2874
%{libsubdir}/include/xmmintrin.h
2875
%{libsubdir}/include/tmmintrin.h
2876
%{libsubdir}/include/nmmintrin.h
2877
%{libsubdir}/include/smmintrin.h
2878
%{libsubdir}/include/wmmintrin.h
2879
%{libsubdir}/include/x86intrin.h
2880
%{libsubdir}/include/ia32intrin.h
2881
%{libsubdir}/include/mm_malloc.h
2882
%{libsubdir}/include/fma4intrin.h
2883
%{libsubdir}/include/xopintrin.h
2884
%{libsubdir}/include/lwpintrin.h
2885
%{libsubdir}/include/popcntintrin.h
2886
%{libsubdir}/include/bmiintrin.h
2887
%{libsubdir}/include/tbmintrin.h
2888
%{libsubdir}/include/avx2intrin.h
2889
%{libsubdir}/include/bmi2intrin.h
2890
%{libsubdir}/include/fmaintrin.h
2891
%{libsubdir}/include/lzcntintrin.h
2892
%{libsubdir}/include/f16cintrin.h
2893
%{libsubdir}/include/adxintrin.h
2894
%{libsubdir}/include/fxsrintrin.h
2895
%{libsubdir}/include/prfchwintrin.h
2896
%{libsubdir}/include/rdseedintrin.h
2897
%{libsubdir}/include/rtmintrin.h
2898
%{libsubdir}/include/xsaveintrin.h
2899
%{libsubdir}/include/xsaveoptintrin.h
2900
%{libsubdir}/include/xtestintrin.h
2901
%{libsubdir}/include/avx512cdintrin.h
2902
%{libsubdir}/include/avx512erintrin.h
2903
%{libsubdir}/include/avx512fintrin.h
2904
%{libsubdir}/include/avx512pfintrin.h
2905
%{libsubdir}/include/shaintrin.h
2906
%{libsubdir}/include/avx512bwintrin.h
2907
%{libsubdir}/include/avx512dqintrin.h
2908
%{libsubdir}/include/avx512vlbwintrin.h
2909
%{libsubdir}/include/avx512vldqintrin.h
2910
%{libsubdir}/include/avx512vlintrin.h
2911
%{libsubdir}/include/avx512ifmaintrin.h
2912
%{libsubdir}/include/avx512ifmavlintrin.h
2913
%{libsubdir}/include/avx512vbmiintrin.h
2914
%{libsubdir}/include/avx512vbmivlintrin.h
2915
%{libsubdir}/include/avx5124fmapsintrin.h
2916
%{libsubdir}/include/avx5124vnniwintrin.h
2917
%{libsubdir}/include/avx512vpopcntdqintrin.h
2918
%{libsubdir}/include/avx512vbmi2intrin.h
2919
%{libsubdir}/include/avx512vbmi2vlintrin.h
2920
%{libsubdir}/include/avx512vnniintrin.h
2921
%{libsubdir}/include/avx512vnnivlintrin.h
2922
%{libsubdir}/include/avx512bitalgintrin.h
2923
%{libsubdir}/include/avx512vpopcntdqvlintrin.h
2924
%{libsubdir}/include/avx512bf16intrin.h
2925
%{libsubdir}/include/avx512bf16vlintrin.h
2926
%{libsubdir}/include/avx512vp2intersectintrin.h
2927
%{libsubdir}/include/avx512vp2intersectvlintrin.h
2928
%{libsubdir}/include/vpclmulqdqintrin.h
2929
%{libsubdir}/include/enqcmdintrin.h
2930
%{libsubdir}/include/cet.h
2931
%{libsubdir}/include/vaesintrin.h
2932
%{libsubdir}/include/clwbintrin.h
2933
%{libsubdir}/include/clflushoptintrin.h
2934
%{libsubdir}/include/xsavecintrin.h
2935
%{libsubdir}/include/xsavesintrin.h
2936
%{libsubdir}/include/mwaitxintrin.h
2937
%{libsubdir}/include/clzerointrin.h
2938
%{libsubdir}/include/pkuintrin.h
2939
%{libsubdir}/include/sgxintrin.h
2940
%{libsubdir}/include/cetintrin.h
2941
%{libsubdir}/include/gfniintrin.h
2942
%{libsubdir}/include/pconfigintrin.h
2943
%{libsubdir}/include/wbnoinvdintrin.h
2944
%{libsubdir}/include/movdirintrin.h
2945
%{libsubdir}/include/cldemoteintrin.h
2946
%{libsubdir}/include/waitpkgintrin.h
2947
%{libsubdir}/include/serializeintrin.h
2948
%{libsubdir}/include/tsxldtrkintrin.h
2949
%{libsubdir}/include/amxbf16intrin.h
2950
%{libsubdir}/include/amxint8intrin.h
2951
%{libsubdir}/include/amxtileintrin.h
2952
%{libsubdir}/include/x86gprintrin.h
2953
%{libsubdir}/include/hresetintrin.h
2954
%{libsubdir}/include/uintrintrin.h
2955
%{libsubdir}/include/keylockerintrin.h
2956
%{libsubdir}/include/avxvnniintrin.h
2957
%{libsubdir}/include/mwaitintrin.h
2958
%endif
2959
%ifarch m68k
2960
%{libsubdir}/include/math-68881.h
2961
%endif
2962
%ifarch %asan_arch
2963
%{libsubdir}/include/sanitizer
2964
%endif
2965
%if %{build_fortran}
2966
%{libsubdir}/include/ISO_Fortran_binding.h
2967
%endif
2968
%versmainlib *crt*.o
2969
%versmainlib libgcc*.a
2970
%versmainlib libgcov.a
2971
%versmainlib libgcc_s*.so
2972
%versmainlib libgomp.so
2973
%versmainlib libgomp.a
2974
%versmainlib libgomp.spec
2975
%if %{build_nvptx}
2976
%versmainlib libgomp-plugin-nvptx.so
2977
%endif
2978
%if %{build_gcn}
2979
%versmainlib libgomp-plugin-gcn.so
2980
%endif
2981
%ifarch %itm_arch
2982
%versmainlib libitm.so
2983
%versmainlib libitm.a
2984
%versmainlib libitm.spec
2985
%endif
2986
%ifarch %atomic_arch
2987
%versmainlib libatomic.so
2988
%versmainlib libatomic.a
2989
%endif
2990
%ifarch %asan_arch
2991
%versmainlib libasan.so
2992
%versmainlib libasan.a
2993
%versmainlib libasan_preinit.o
2994
%endif
2995
%ifarch %tsan_arch
2996
%if %build_primary_64bit
2997
%versmainlib libtsan.so
2998
%versmainlib libtsan.a
2999
%versmainlib libtsan_preinit.o
3000
%endif
3001
%endif
3002
%ifarch %lsan_arch
3003
%if %build_primary_64bit
3004
%versmainlib liblsan.so
3005
%versmainlib liblsan.a
3006
%versmainlib liblsan_preinit.o
3007
%endif
3008
%endif
3009
%ifarch %ubsan_arch
3010
%versmainlib libubsan.so
3011
%versmainlib libubsan.a
3012
%endif
3013
%ifarch %hwasan_arch
3014
%versmainlib libhwasan.so
3015
%versmainlib libhwasan.a
3016
%endif
3017
%ifarch %asan_arch %ubsan_arch %tsan_arch %lsan_arch %hwasan_arch
3018
%versmainlib libsanitizer.spec
3019
%endif
3020
%ifarch %vtv_arch
3021
%versmainlib libvtv.so
3022
%versmainlib libvtv.a
3023
%endif
3024
%doc %{_mandir}/man1/gcc%{binsuffix}.1.gz
3025
%doc %{_mandir}/man1/gcov%{binsuffix}.1.gz
3026
%doc %{_mandir}/man1/gcov-dump%{binsuffix}.1.gz
3027
%doc %{_mandir}/man1/gcov-tool%{binsuffix}.1.gz
3028
%doc %{_mandir}/man1/lto-dump%{binsuffix}.1.gz
3029
3030
%if %{separate_biarch}
3031
%files -n gcc11%{separate_biarch_suffix}
3032
%defattr(-,root,root)
3033
%versbiarchlib *crt*.o
3034
%versbiarchlib libgcc*.a
3035
%versbiarchlib libgcov.a
3036
%versbiarchlib libgcc_s*.so
3037
%versbiarchlib libgomp.so
3038
%versbiarchlib libgomp.a
3039
%versbiarchlib libgomp.spec
3040
# No 32-bit plugins for nvptx and gcn
3041
%ifarch %itm_arch
3042
%versbiarchlib libitm.so
3043
%versbiarchlib libitm.a
3044
%versbiarchlib libitm.spec
3045
%endif
3046
%ifarch %atomic_arch
3047
%versbiarchlib libatomic.a
3048
%versbiarchlib libatomic.so
3049
%endif
3050
%ifarch %asan_arch
3051
%versbiarchlib libasan.a
3052
%versbiarchlib libasan.so
3053
%versbiarchlib libasan_preinit.o
3054
%endif
3055
%ifarch %ubsan_arch
3056
%versbiarchlib libubsan.a
3057
%versbiarchlib libubsan.so
3058
%endif
3059
%ifarch %tsan_arch
3060
%if %separate_bi64
3061
%versbiarchlib libtsan.a
3062
%versbiarchlib libtsan.so
3063
%versbiarchlib libtsan_preinit.o
3064
%endif
3065
%endif
3066
%ifarch %lsan_arch
3067
%if %separate_bi64
3068
%versbiarchlib liblsan.a
3069
%versbiarchlib liblsan.so
3070
%versbiarchlib liblsan_preinit.o
3071
%endif
3072
%endif
3073
%ifarch %hwasan_arch
3074
%versbiarchlib libhwasan.a
3075
%versbiarchlib libhwasan.so
3076
%endif
3077
%ifarch %asan_arch %ubsan_arch %tsan_arch %lsan_arch %hwasan_arch
3078
%versbiarchlib libsanitizer.spec
3079
%endif
3080
%ifarch %vtv_arch
3081
%versbiarchlib libvtv.a
3082
%versbiarchlib libvtv.so
3083
%endif
3084
%endif
3085
3086
%if %{enable_plugins}
3087
%files devel
3088
%defattr(-,root,root)
3089
%dir %{libsubdir}/plugin
3090
%{libsubdir}/plugin
3091
%endif
3092
3093
%files locale -f gcc11-locale.lang
3094
3095
%files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale -f libstdc++.lang
3096
3097
%files PIE
3098
%defattr(-,root,root)
3099
%dir %{libsubdir}
3100
%{libsubdir}/defaults.spec
3101
3102
%if %{build_cp}
3103
%files c++
3104
%defattr(-,root,root)
3105
%dir %{_libdir}/gcc
3106
%dir %{_libdir}/gcc/%{GCCDIST}
3107
%dir %{libsubdir}
3108
%{_prefix}/bin/g++%{binsuffix}
3109
%doc %{_mandir}/man1/g++%{binsuffix}.1.gz
3110
%{libsubdir}/cc1plus
3111
%{libsubdir}/g++-mapper-server
3112
3113
%if %{separate_biarch}
3114
%files c++%{separate_biarch_suffix}
3115
%defattr(-,root,root)
3116
# empty - only for the dependency
3117
%if %{suse_version} < 1310
3118
%doc README
3119
%endif
3120
%endif
3121
3122
%files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
3123
%defattr(-,root,root)
3124
%mainlib libstdc++.so.%{libstdcxx_sover}*
3125
3126
%if %{separate_biarch}
3127
%files -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}%{separate_biarch_suffix}
3128
%defattr(-,root,root)
3129
%biarchlib libstdc++.so.%{libstdcxx_sover}*
3130
%endif
3131
3132
%files -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}
3133
%defattr(-,root,root)
3134
%versmainlib libstdc++.a
3135
%versmainlib libstdc++fs.a
3136
%versmainlib libstdc++.so
3137
%versmainlib libsupc++.a
3138
%{_prefix}/include/c++
3139
3140
%files -n libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix}
3141
%defattr(-,root,root)
3142
%dir %{_datadir}/gdb
3143
%dir %{_datadir}/gdb/auto-load
3144
%dir %{_datadir}/gdb/auto-load%{_prefix}
3145
%dir %{_datadir}/gdb/auto-load/%{mainlibdir}
3146
%{_datadir}/gdb/auto-load/%{mainlibdir}/libstdc++.so.*-gdb.py
3147
%{_datadir}/gcc%{binsuffix}
3148
3149
%if %{separate_biarch}
3150
%files -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}%{separate_biarch_suffix}
3151
%defattr(-,root,root)
3152
%versbiarchlib libstdc++.a
3153
%versbiarchlib libstdc++fs.a
3154
%versbiarchlib libstdc++.so
3155
%versbiarchlib libsupc++.a
3156
3157
%files -n libstdc++%{libstdcxx_sover}-pp%{libdevel_suffix}%{separate_biarch_suffix}
3158
%defattr(-,root,root)
3159
%dir %{_datadir}/gdb/auto-load/%{mainlibdirbi}
3160
%{_datadir}/gdb/auto-load/%{mainlibdirbi}/libstdc++.so.*-gdb.py
3161
%endif
3162
%endif
3163
3164
%files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
3165
%defattr(-,root,root)
3166
%{_slibdir}/libgcc_s.so.%{libgcc_s}
3167
%if %{biarch}
3168
%if %{build_primary_64bit}
3169
%if !%{separate_bi32}
3170
%{slibdir}/libgcc_s.so.%{libgcc_s}
3171
%endif
3172
%else
3173
%if !%{separate_bi64}
3174
%{slibdir64}/libgcc_s.so.%{libgcc_s}
3175
%endif
3176
%endif
3177
%endif
3178
3179
%if %{separate_bi64}
3180
%files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
3181
%defattr(-,root,root)
3182
%{slibdir64}/libgcc_s.so.%{libgcc_s}
3183
%endif
3184
3185
%if %{separate_bi32}
3186
%files -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
3187
%defattr(-,root,root)
3188
%{slibdir}/libgcc_s.so.%{libgcc_s}
3189
%endif
3190
3191
%files -n libgomp%{libgomp_sover}%{libgomp_suffix}
3192
%defattr(-,root,root)
3193
%mainlib libgomp.so.%{libgomp_sover}*
3194
%if %{build_nvptx}
3195
%mainlib libgomp-plugin-nvptx.so.%{libgomp_sover}*
3196
%endif
3197
%if %{build_gcn}
3198
%mainlib libgomp-plugin-gcn.so.%{libgomp_sover}*
3199
%endif
3200
3201
%if %{separate_biarch}
3202
%files -n libgomp%{libgomp_sover}%{libgomp_suffix}%{separate_biarch_suffix}
3203
%defattr(-,root,root)
3204
%biarchlib libgomp.so.%{libgomp_sover}*
3205
%endif
3206
# No 32-bit plugins for nvptx and gcn
3207
3208
%ifarch %asan_arch
3209
%files -n libasan%{libasan_sover}%{libasan_suffix}
3210
%defattr(-,root,root)
3211
%mainlib libasan.so.%{libasan_sover}*
3212
3213
%if %{separate_biarch}
3214
%files -n libasan%{libasan_sover}%{libasan_suffix}%{separate_biarch_suffix}
3215
%defattr(-,root,root)
3216
%biarchlib libasan.so.%{libasan_sover}*
3217
%endif
3218
%endif
3219
3220
%ifarch %lsan_arch
3221
%if %build_primary_64bit
3222
%files -n liblsan%{liblsan_sover}%{liblsan_suffix}
3223
%defattr(-,root,root)
3224
%mainlib liblsan.so.%{liblsan_sover}*
3225
%endif
3226
3227
%if %{separate_biarch} && %{separate_bi64}
3228
%files -n liblsan%{liblsan_sover}%{liblsan_suffix}%{separate_biarch_suffix}
3229
%defattr(-,root,root)
3230
%biarchlib liblsan.so.%{liblsan_sover}*
3231
%endif
3232
%endif
3233
3234
%ifarch %tsan_arch
3235
%if %build_primary_64bit
3236
%files -n libtsan%{libtsan_sover}%{libtsan_suffix}
3237
%defattr(-,root,root)
3238
%mainlib libtsan.so.%{libtsan_sover}*
3239
%endif
3240
3241
%if %{separate_biarch} && %{separate_bi64}
3242
%files -n libtsan%{libtsan_sover}%{libtsan_suffix}%{separate_biarch_suffix}
3243
%defattr(-,root,root)
3244
%biarchlib libtsan.so.%{libtsan_sover}*
3245
%endif
3246
%endif
3247
3248
%ifarch %hwasan_arch
3249
%files -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}
3250
%defattr(-,root,root)
3251
%mainlib libhwasan.so.%{libhwasan_sover}*
3252
3253
%if %{separate_biarch}
3254
%files -n libhwasan%{libhwasan_sover}%{libhwasan_suffix}%{separate_biarch_suffix}
3255
%defattr(-,root,root)
3256
%biarchlib libhwasan.so.%{libhwasan_sover}*
3257
%endif
3258
%endif
3259
3260
%ifarch %atomic_arch
3261
%files -n libatomic%{libatomic_sover}%{libatomic_suffix}
3262
%defattr(-,root,root)
3263
%mainlib libatomic.so.%{libatomic_sover}*
3264
3265
%if %{separate_biarch}
3266
%files -n libatomic%{libatomic_sover}%{libatomic_suffix}%{separate_biarch_suffix}
3267
%defattr(-,root,root)
3268
%biarchlib libatomic.so.%{libatomic_sover}*
3269
%endif
3270
%endif
3271
3272
%ifarch %itm_arch
3273
%files -n libitm%{libitm_sover}%{libitm_suffix}
3274
%defattr(-,root,root)
3275
%mainlib libitm.so.%{libitm_sover}*
3276
3277
%if %{separate_biarch}
3278
%files -n libitm%{libitm_sover}%{libitm_suffix}%{separate_biarch_suffix}
3279
%defattr(-,root,root)
3280
%biarchlib libitm.so.%{libitm_sover}*
3281
%endif
3282
%endif
3283
3284
%ifarch %ubsan_arch
3285
%files -n libubsan%{libubsan_sover}%{libubsan_suffix}
3286
%defattr(-,root,root)
3287
%mainlib libubsan.so.%{libubsan_sover}*
3288
3289
%if %{separate_biarch}
3290
%files -n libubsan%{libubsan_sover}%{libubsan_suffix}%{separate_biarch_suffix}
3291
%defattr(-,root,root)
3292
%biarchlib libubsan.so.%{libubsan_sover}*
3293
%endif
3294
%endif
3295
3296
%ifarch %vtv_arch
3297
%files -n libvtv%{libvtv_sover}%{libvtv_suffix}
3298
%defattr(-,root,root)
3299
%mainlib libvtv.so.%{libvtv_sover}*
3300
3301
%if %{separate_biarch}
3302
%files -n libvtv%{libvtv_sover}%{libvtv_suffix}%{separate_biarch_suffix}
3303
%defattr(-,root,root)
3304
%biarchlib libvtv.so.%{libvtv_sover}*
3305
%endif
3306
3307
%endif
3308
3309
%if %{build_fortran}
3310
%files fortran
3311
%defattr(-,root,root)
3312
%dir %{libsubdir}/finclude
3313
%{_prefix}/bin/gfortran%{binsuffix}
3314
%{libsubdir}/f951
3315
%{libsubdir}/finclude/*
3316
%versmainlib libgfortran.a
3317
%versmainlib libgfortran.so
3318
%versmainlib libgfortran.spec
3319
%versmainlib libcaf_single.a
3320
%ifarch %quadmath_arch
3321
%{libsubdir}/include/quadmath.h
3322
%{libsubdir}/include/quadmath_weak.h
3323
%versmainlib libquadmath.a
3324
%versmainlib libquadmath.so
3325
%endif
3326
%doc %{_mandir}/man1/gfortran%{binsuffix}.1.gz
3327
3328
%if %{separate_biarch}
3329
%files fortran%{separate_biarch_suffix}
3330
%defattr(-,root,root)
3331
%dir %{versmainlibdirbi}/finclude
3332
%{versmainlibdirbi}/finclude/*
3333
%versbiarchlib libgfortran.a
3334
%versbiarchlib libgfortran.so
3335
%versbiarchlib libgfortran.spec
3336
%versbiarchlib libcaf_single.a
3337
%ifarch %quadmath_arch
3338
%versbiarchlib libquadmath.a
3339
%versbiarchlib libquadmath.so
3340
%endif
3341
%endif
3342
3343
%files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
3344
%defattr(-,root,root)
3345
%mainlib libgfortran.so.%{libgfortran_sover}*
3346
3347
%if %{separate_biarch}
3348
%files -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}%{separate_biarch_suffix}
3349
%defattr(-,root,root)
3350
%biarchlib libgfortran.so.%{libgfortran_sover}*
3351
%endif
3352
3353
%ifarch %quadmath_arch
3354
%files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}
3355
%defattr(-,root,root)
3356
%mainlib libquadmath.so.%{libquadmath_sover}*
3357
3358
%if %{separate_biarch}
3359
%files -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}%{separate_biarch_suffix}
3360
%defattr(-,root,root)
3361
%biarchlib libquadmath.so.%{libquadmath_sover}*
3362
%endif
3363
%endif
3364
%endif
3365
3366
%files info
3367
%defattr(-,root,root)
3368
%doc %{_infodir}/cpp%{binsuffix}.info*.gz
3369
%doc %{_infodir}/cppinternals%{binsuffix}.info*.gz
3370
%doc %{_infodir}/gcc%{binsuffix}.info*.gz
3371
%doc %{_infodir}/gccint%{binsuffix}.info*.gz
3372
%doc %{_infodir}/gccinstall%{binsuffix}.info*.gz
3373
%doc %{_infodir}/libgomp%{binsuffix}.info*.gz
3374
%ifarch %itm_arch
3375
%doc %{_infodir}/libitm%{binsuffix}.info*.gz
3376
%endif
3377
%if %{build_fortran}
3378
%doc %{_infodir}/gfortran%{binsuffix}.info*.gz
3379
%ifarch %quadmath_arch
3380
%doc %{_infodir}/libquadmath%{binsuffix}.info*.gz
3381
%endif
3382
%endif
3383
%if %{build_ada}
3384
%doc %{_infodir}/gnat-style%{binsuffix}.info*gz
3385
%doc %{_infodir}/gnat_rm%{binsuffix}.info*gz
3386
%doc %{_infodir}/gnat_ugn%{binsuffix}.info*gz
3387
%endif
3388
%if %{build_d}
3389
%doc %{_infodir}/gdc%{binsuffix}.info*gz
3390
%endif
3391
3392
%files -n cpp11
3393
%defattr(-,root,root)
3394
%dir %{_libdir}/gcc
3395
%dir %{_libdir}/gcc/%{GCCDIST}
3396
%dir %{libsubdir}
3397
%{_prefix}/bin/cpp%{binsuffix}
3398
%{libsubdir}/cc1
3399
%doc %{_mandir}/man1/cpp%{binsuffix}.1.gz
3400
3401
%if %{build_objc}
3402
%files objc
3403
%defattr(-,root,root)
3404
%{libsubdir}/cc1obj
3405
%{libsubdir}/include/objc
3406
%versmainlib libobjc.a
3407
%versmainlib libobjc.so
3408
3409
%if %{separate_biarch}
3410
%files objc%{separate_biarch_suffix}
3411
%defattr(-,root,root)
3412
%versbiarchlib libobjc.a
3413
%versbiarchlib libobjc.so
3414
%endif
3415
3416
%files -n libobjc%{libobjc_sover}%{libobjc_suffix}
3417
%defattr(-,root,root)
3418
%mainlib libobjc.so.%{libobjc_sover}*
3419
3420
%if %{separate_biarch}
3421
%files -n libobjc%{libobjc_sover}%{libobjc_suffix}%{separate_biarch_suffix}
3422
%defattr(-,root,root)
3423
%biarchlib libobjc.so.%{libobjc_sover}*
3424
%endif
3425
%endif
3426
3427
%if %{build_objcp}
3428
%files obj-c++
3429
%defattr(-,root,root)
3430
%{libsubdir}/cc1objplus
3431
3432
%if %{separate_biarch}
3433
%files obj-c++%{separate_biarch_suffix}
3434
%defattr(-,root,root)
3435
# empty - only for the dependency
3436
%if %{suse_version} < 1310
3437
%doc README
3438
%endif
3439
%endif
3440
%endif
3441
3442
%if %{build_ada}
3443
%files ada
3444
%defattr(-,root,root)
3445
%dir %{_libdir}/gcc
3446
%dir %{_libdir}/gcc/%{GCCDIST}
3447
%dir %{libsubdir}
3448
%{_prefix}/bin/gnat*
3449
%dir %{versmainlibdir}/adalib
3450
%{versmainlibdir}/adainclude
3451
%{versmainlibdir}/adalib/*.ali
3452
%{versmainlibdir}/adalib/*.a
3453
%{versmainlibdir}/adalib/libgnarl.so
3454
%{versmainlibdir}/adalib/libgnat.so
3455
%{versmainlibdir}/gnat1
3456
%{versmainlibdir}/ada_target_properties
3457
3458
%if %{separate_biarch}
3459
%files ada%{separate_biarch_suffix}
3460
%defattr(-,root,root)
3461
%dir %{versmainlibdirbi}/adalib
3462
%{versmainlibdirbi}/adainclude
3463
%{versmainlibdirbi}/adalib/*.ali
3464
%{versmainlibdirbi}/adalib/*.a
3465
%{versmainlibdirbi}/adalib/libgnarl.so
3466
%{versmainlibdirbi}/adalib/libgnat.so
3467
%{versmainlibdirbi}/ada_target_properties
3468
%endif
3469
3470
%files -n libada11
3471
%defattr(-,root,root)
3472
%mainlib libgnarl%{binsuffix}.so
3473
%mainlib libgnat%{binsuffix}.so
3474
3475
%if %{separate_biarch}
3476
%files -n libada11%{separate_biarch_suffix}
3477
%defattr(-,root,root)
3478
%biarchlib libgnarl%{binsuffix}.so
3479
%biarchlib libgnat%{binsuffix}.so
3480
%endif
3481
%endif
3482
3483
%if %{build_go}
3484
%files go
3485
%defattr(-,root,root)
3486
%{_prefix}/bin/gccgo%{binsuffix}
3487
%{_prefix}/bin/go%{binsuffix}
3488
%{_prefix}/bin/gofmt%{binsuffix}
3489
%{libsubdir}/go1
3490
%versmainlib libgo.a
3491
%versmainlib libgo.so
3492
%versmainlib libgobegin.a
3493
%versmainlib libgolibbegin.a
3494
%versmainlibdir/buildid
3495
%versmainlibdir/cgo
3496
%dir %mainlibdir/go
3497
%dir %mainlibdir/go/%{gcc_dir_version}
3498
%mainlibdir/go/%{gcc_dir_version}/%{GCCDIST}
3499
%doc %{_mandir}/man1/gccgo%{binsuffix}.1.gz
3500
%doc %{_mandir}/man1/go%{binsuffix}.1.gz
3501
%doc %{_mandir}/man1/gofmt%{binsuffix}.1.gz
3502
3503
%if %{separate_biarch}
3504
%files go%{separate_biarch_suffix}
3505
%defattr(-,root,root)
3506
%versbiarchlib libgo.a
3507
%versbiarchlib libgo.so
3508
%versbiarchlib libgobegin.a
3509
%versbiarchlib libgolibbegin.a
3510
%dir %mainlibdirbi/go
3511
%dir %mainlibdirbi/go/%{gcc_dir_version}
3512
%mainlibdirbi/go/%{gcc_dir_version}/%{GCCDIST}
3513
%endif
3514
3515
%files -n libgo%{libgo_sover}%{libgo_suffix}
3516
%defattr(-,root,root)
3517
%mainlib libgo.so.%{libgo_sover}*
3518
3519
%if %{separate_biarch}
3520
%files -n libgo%{libgo_sover}%{libgo_suffix}%{separate_biarch_suffix}
3521
%defattr(-,root,root)
3522
%biarchlib libgo.so.%{libgo_sover}*
3523
%endif
3524
%endif
3525
3526
%if %{build_d}
3527
%files d
3528
%defattr(-,root,root)
3529
%{_prefix}/bin/gdc%{binsuffix}
3530
%{libsubdir}/d21
3531
%versmainlib libgphobos.a
3532
%versmainlib libgphobos.so
3533
%versmainlib libgdruntime.a
3534
%versmainlib libgdruntime.so
3535
%versmainlib libgphobos.spec
3536
%{versmainlibdir}/include/d
3537
%doc %{_mandir}/man1/gdc%{binsuffix}.1.gz
3538
3539
%if %{separate_biarch}
3540
%files d%{separate_biarch_suffix}
3541
%defattr(-,root,root)
3542
%versbiarchlib libgphobos.a
3543
%versbiarchlib libgphobos.so
3544
%versbiarchlib libgdruntime.a
3545
%versbiarchlib libgdruntime.so
3546
%versbiarchlib libgphobos.spec
3547
%endif
3548
3549
%files -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}
3550
%defattr(-,root,root)
3551
%mainlib libgphobos.so.%{libgphobos_sover}*
3552
3553
%if %{separate_biarch}
3554
%files -n libgphobos%{libgphobos_sover}%{libgphobos_suffix}%{separate_biarch_suffix}
3555
%defattr(-,root,root)
3556
%biarchlib libgphobos.so.%{libgphobos_sover}*
3557
%endif
3558
3559
%files -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}
3560
%defattr(-,root,root)
3561
%mainlib libgdruntime.so.%{libgdruntime_sover}*
3562
3563
%if %{separate_biarch}
3564
%files -n libgdruntime%{libgdruntime_sover}%{libgdruntime_suffix}%{separate_biarch_suffix}
3565
%defattr(-,root,root)
3566
%biarchlib libgdruntime.so.%{libgdruntime_sover}*
3567
%endif
3568
%endif
3569
3570
%if %{build_jit}
3571
%files -n libgccjit%{libgccjit_sover}%{libgccjit_suffix}
3572
%defattr(-,root,root)
3573
%{_prefix}/%{_lib}/libgccjit.so.%{libgccjit_sover}*
3574
3575
%files -n libgccjit%{libgccjit_sover}-devel%{libdevel_suffix}
3576
%doc gcc/jit/docs/examples
3577
%{_prefix}/%{_lib}/libgccjit.so
3578
%{_prefix}/include/libgccjit.h
3579
%{_prefix}/include/libgccjit++.h
3580
%{_infodir}/libgccjit.info.gz
3581
%endif
3582
3583
%if 0%{?run_tests:1}
3584
%files -n gcc11-testresults
3585
%defattr(-,root,root)
3586
%doc testresults/test_summary.txt
3587
%doc testresults/*.sum
3588
%doc testresults/*.log
3589
%endif
3590
3591
%changelog
3592