3 %define STDC_VERSION 2.10.0
4 %define STDC_RELEASE 30
5 Summary: GNU Compiler Collection
6 Summary(pl): Kolekcja kompilatorów GNU
11 Group: Development/Languages
12 Group(de): Entwicklung/Sprachen
13 Group(pl): Programowanie/Jêzyki
14 Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{rver}/%{name}-%{rver}.tar.gz
16 # generated from binutils' info
18 Source3: %{name}-non-english-man-pages.tar.bz2
19 Patch0: %{name}-info.patch
20 Patch1: %{name}-pld-linux.patch
21 Patch2: %{name}-libstdc++.patch
22 Patch3: %{name}-bootstrap.patch
23 Patch4: %{name}-cpp-macro-doc.patch
24 Patch5: %{name}-default-arch.patch
25 Patch6: %{name}-libstdc++-out-of-mem.patch
26 Patch7: %{name}-libstdc++-wstring.patch
27 Patch8: %{name}-libstdc++-bastring.patch
28 Patch9: %{name}-manpage.patch
29 Patch10: %{name}-cpp-dos-newlines.patch
30 Patch11: %{name}-gpc.patch
31 Patch12: %{name}-m68k-pic.patch
32 Patch13: %{name}-sparc32-rfi.patch
33 Patch14: %{name}-builtin-apply.patch
34 Patch15: %{name}-ppc-ice.patch
35 Patch16: %{name}-ppc-descriptions.patch
36 Patch17: %{name}-alpha-complex-float.patch
37 Patch18: %{name}-gcj-vs-iconv.patch
38 Patch19: %{name}-libobjc.patch
39 #Patch20: %{name}-pointer-arith.patch
40 Patch50: %{name}-%{rver}-%{snap}.patch.bz2
42 BuildRequires: texinfo
43 Requires: binutils >= 2.9.1.0.25
44 Requires: cpp = %{version}
45 URL: http://gcc.gnu.org/
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 A compiler aimed at integrating all the optimizations and features
50 necessary for a high-performance and stable development environment.
53 Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do
54 wyprodukowania szybkiego i stabilnego kodu wynikowego.
57 Summary: C++ support for gcc
58 Summary(fr): Support C++ pour le compilateur gcc
59 Summary(pl): Wspomaganie C++ dla kompilatora gcc
60 Summary(tr): gcc için C++ desteði
61 Group: Development/Languages
62 Group(de): Entwicklung/Sprachen
63 Group(pl): Programowanie/Jêzyki
66 Requires: %{name} = %{version}
69 This package adds C++ support to the GNU C compiler. It includes
70 support for most of the current C++ specification, including templates
71 and exception handling. It does not include a standard C++ library,
72 which is available separately.
74 %description -l de c++
75 Dieses Paket enthält die C++-Unterstützung für den GNU-C-Compiler. Es
76 unterstützt die aktuelle C++-Spezifikation, inkl. Templates und
77 Ausnahmeverarbeitung. Eine C++-Standard-Library ist nicht enthalten -
78 sie ist getrennt erhältlich.
80 %description -l fr c++
81 Ce package ajoute un support C++ au compilateur c GNU. Il comprend un
82 support pour la plupart des spécifications actuelles de C++, dont les
83 modéles et la gestion des exceptions. Il ne comprend pas une
84 bibliothéque C++ standard, qui est disponible séparément.
86 %description -l pl c++
87 Programy z tego pakietu zapewniaj± wsparcie dla C++ do gcc. Posiada
88 wspomaganie dla du¿ej ilo¶ci obecnych specyfikacji C++, nie posiada
89 natomiast standardowych bibliotek C++, które s± w oddzielnym pakiecie.
91 %description -l tr c++
92 Bu paket, GNU C derleyicisine C++ desteði ekler. 'Template'ler ve
93 aykýrý durum iþleme gibi çoðu güncel C++ tanýmlarýna uyar. Standart
94 C++ kitaplýðý bu pakette yer almaz.
97 Summary: Objective C support for gcc
98 Summary(de): Objektive C-Unterstützung für gcc
99 Summary(fr): Gestion d'Objective C pour gcc
100 Summary(pl): Wspomaganie obiektowego C dla kompilatora gcc
101 Summary(tr): gcc için Objective C desteði
102 Group: Development/Languages
103 Group(de): Entwicklung/Sprachen
104 Group(pl): Programowanie/Jêzyki
107 Requires: %{name} = %{version}
110 This package adds Objective C support to the GNU C compiler. Objective
111 C is a object oriented derivative of the C language, mainly used on
112 systems running NeXTSTEP. This package does not include the standard
113 objective C object library.
115 %description -l de objc
116 Dieses Paket ergänzt den GNU-C-Compiler durch Objective-C-Support.
117 Objective C ist ein objektorientiertes Derivat von C, das zur
118 Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt. Die
119 Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets.
121 %description -l fr objc
122 Ce package ajoute un support Objective C au compilateur C GNU.
123 L'Objective C est un langage orienté objetdérivé du langage C,
124 principalement utilisé sur les systèmes NeXTSTEP. Ce package n'inclue
125 pas la bibliothéque Objective C standard.
127 %description -l pl objc
128 Ten pakiet jest wsparciem obiektowego C dla kompilatora gcc. W
129 pakiecie nie ma jeszcze bibliotek C-obj.
131 %description -l tr objc
132 Bu paket, GNU C derleyicisine Objective C desteði ekler. Objective C,
133 C dilinin nesne yönelik bir türevidir ve NeXTSTEP altýnda çalýþan
134 sistemlerde yaygýn olarak kullanýlýr. Standart Objective C nesne
135 kitaplýðý bu pakette yer almaz.
138 Summary: Fortran 77 support for gcc
139 Summary(pl): Wspomaganie Fortran 77 dla gcc
140 Group: Development/Languages
141 Group(de): Entwicklung/Sprachen
142 Group(pl): Programowanie/Jêzyki
146 This apckage adds support for compiling Fortran 77 programs with the
149 %description -l pl g77
150 Ten pakiet jest wsparciem Fortran 77 dla kompilatora gcc. Jest
151 potrzebny do kompilowania programów pisanych w jêzyku Fortran 77.
154 Summary: CHILL support for gcc
155 Summary(pl): Wspomoganie CHILL dla gcc
156 Group: Development/Languages
157 Group(de): Entwicklung/Sprachen
158 Group(pl): Programowanie/Jêzyki
159 Requires: %{name} = %{version}
162 This package adds support for compiling CHILL programs with the GNU
165 Chill is the "CCITT High-Level Language", where CCITT is the old name
166 for what is now ITU, the International Telecommunications Union. It is
167 is language in the Modula2 family, and targets many of the same
168 applications as Ada (especially large embedded systems). Chill was
169 never used much in the United States, but is still being used in
170 Europe, Brazil, Korea, and other places.
172 %description -l pl chill
173 Ten pakiet dodaje do gcc mo¿liwo¶æ kompilowania programów w jêzyku
177 Summary: Java support for gcc
178 Summary(pl): Wspomoganie Java dla gcc
179 Group: Development/Languages
180 Group(de): Entwicklung/Sprachen
181 Group(pl): Programowanie/Jêzyki
182 Requires: %{name} = %{version}
183 Requires: libgcj >= 2.95.1
186 This package adds experimental support for compiling Java(tm) programs
187 and bytecode into native code. To use this you will also need the
190 %description -l pl java
191 Ten pakiet dodaje do gcc (eksperymentaln±) mo¿liwo¶æ kompilowania
192 programów w Javie(tm) i bytecode do kodu procesora. Wymaga pakietu
195 %package -n libstdc++
196 Summary: GNU c++ library
197 Summary(pl): Biblioteki GNU C++
200 Group(fr): Librairies
201 Group(pl): Biblioteki
202 Version: %{STDC_VERSION}
203 Release: %{STDC_RELEASE}
206 %description -n libstdc++
207 This is the GNU implementation of the standard C++ libraries, along
208 with additional GNU tools. This package includes the shared libraries
209 necessary to run C++ applications.
211 %description -l de -n libstdc++
212 Dies ist die GNU-Implementierung der Standard-C++-Libraries mit
213 weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von
214 C++-Anwendungen erforderlichen gemeinsam genutzten Libraries.
216 %description -l fr -n libstdc++
217 Ceci est l'implémentation GNU des librairies C++ standard, ainsi que
218 des outils GNU supplémentaires. Ce package comprend les librairies
219 partagées nécessaires à l'exécution d'application C++.
221 %description -l pl -n libstdc++
222 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
223 bibliotek C++. Znajduj± siê w nim biblioteki dynamiczne niezbêdne do
224 uruchomienia aplikacji napisanych w C++.
226 %description -l tr -n libstdc++
227 Bu paket, standart C++ kitaplýklarýnýn GNU gerçeklemesidir ve C++
228 uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir.
230 %package -n libstdc++-devel
231 Summary: Header files and libraries for C++ development
232 Summary(de): Header-Dateien und Libraries zur Entwicklung mit C++
233 Summary(fr): Fichiers d'en-tête et biblitothèques pour développer en C++
234 Summary(pl): Pliki nag³ówkowe do programowania z u¿yciem bibliotek C++
235 Summary(tr): C++ ile program geliþtirmek için gerekli dosyalar
236 Group: Development/Libraries
237 Group(de): Entwicklung/Libraries
238 Group(fr): Development/Librairies
239 Group(pl): Programowanie/Biblioteki
240 Version: %{STDC_VERSION}
241 Release: %{STDC_RELEASE}
242 Requires: libstdc++ = %{STDC_VERSION}
243 Requires: %{name}-c++
244 Obsoletes: libg++-devel
246 %description -n libstdc++-devel
247 This is the GNU implementation of the standard C++ libraries. This
248 package includes the header files and libraries needed for C++
251 %description -l pl -n libstdc++-devel
252 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
253 bibliotek C++. Znajduj± siê w nim pliki nag³ówkowe wykorzystywane przy
254 programowaniu w jêzyku C++.
256 %package -n libstdc++-static
257 Summary: Static c++ standard library
258 Summary(pl): Biblioteka statyczna c++
259 Group: Development/Libraries
260 Group(de): Entwicklung/Libraries
261 Group(fr): Development/Librairies
262 Group(pl): Programowanie/Biblioteki
263 Version: %{STDC_VERSION}
264 Release: %{STDC_RELEASE}
265 Requires: libstdc++-devel = %{STDC_VERSION}
267 %description -n libstdc++-static
268 Static c++ standard library.
270 %description -l pl -n libstdc++-static
271 Biblioteka statyczna C++.
274 Summary: The C Pre Processor
275 Summary(pl): Preprocesor C
276 Group: Development/Languages
277 Group(de): Entwicklung/Sprachen
278 Group(pl): Programowanie/Jêzyki
283 The C preprocessor is a "macro processor" that is used automatically
284 by the C compiler to transform your program before actual compilation.
285 It is called a macro processor because it allows you to define
286 "macros", which are brief abbreviations for longer constructs.
288 The C preprocessor provides four separate facilities that you can use
291 - Inclusion of header files. These are files of declarations that can
292 be substituted into your program.
293 - Macro expansion. You can define "macros", which are abbreviations
294 for arbitrary fragments of C code, and then the C preprocessor will
295 replace the macros with their definitions throughout the program.
296 - Conditional compilation. Using special preprocessing directives, you
297 can include or exclude parts of the program according to various
299 - Line control. If you use a program to combine or rearrange source
300 files into an intermediate file which is then compiled, you can use
301 line control to inform the compiler of where each source line
302 originally came from.
304 %description -l pl -n cpp
305 Preprocesor C jest "makro procesorem" który jest automatycznie
306 u¿ywany przez kompilator C do obróbki kompilowanego programu przed
307 w³a¶ciw± kompilacj±. Jest on nazywany makroprocesorem, poniewa¿
308 umo¿liwia definiowanie i rozwijanie makr umo¿liwiaj±cych skracanie
309 d³ugich konstrukcji w jêzyku C.
311 Preprocesor C umo¿liwia wykonywanie czterech ró¿nych typów operacji:
313 - Do³±czanie plików (np. nag³ówkowych). Wstawia pliki w miejscu
314 deklaracji polecenia do³±czenia innego pliku.
315 - Rozwijanie makr. Mo¿na definiowaæ "makra" nadaj±c im identyfikatory,
316 których pó¼niejsze u¿ycie powoduje podczas rozwijania podmienienie
317 identyfikatora deklarowan± wcze¶niej warto¶ci±.
318 - Kompilacja warunkowa. W zale¿no¶ci od obecno¶ci symboli i dyrektyw w
319 ¶rodowisku preprocesora s± w³±czane warunkowo, b±d¼ nie, pewne
320 fragmenty obrabianego strumienia tekstów.
321 - Kontrola linii ¼ród³a. Niezale¿nie od tego jakim przeobra¿eniom
322 podlega wynikowy strumieñ danych w wyniku rozwijania makr i do³±czania
323 s± zapamiêtywane informacje o tym, której linii pliku ¼ród³owego
324 odpowiada fragment pliku wynikowego.
327 %setup -q -n %{name}-%{rver}
344 %ifarch sparc sparc32
361 rm -rf obj-%{_target_platform}
362 install -d obj-%{_target_platform} && cd obj-%{_target_platform}
364 CFLAGS="%{rpmcflags}" \
365 CXXFLAGS="%{rpmcflags}" \
366 TEXCONFIG=false ../configure \
367 --prefix=%{_prefix} \
368 --infodir=%{_infodir} \
370 %ifnarch sparc sparc64
371 --enable-threads=posix \
376 --with-gxx-include-dir="\$\{prefix\}/include/g++" \
378 --build=%{_target_platform} \
379 --host=%{_target_platform}
381 PATH=$PATH:/sbin:%{_sbindir}
382 touch ../gcc/c-gperf.h
385 %{__make} -C obj-%{_target_platform} bootstrap \
386 LDFLAGS_FOR_TARGET="%{rpmldflags}" \
391 rm -rf $RPM_BUILD_ROOT
392 install -d $RPM_BUILD_ROOT{/lib,%{_datadir}}
394 cd obj-%{_target_platform}
395 PATH=$PATH:/sbin:%{_sbindir}
398 prefix=$RPM_BUILD_ROOT%{_prefix} \
399 mandir=$RPM_BUILD_ROOT%{_mandir} \
400 infodir=$RPM_BUILD_ROOT%{_infodir}
403 prefix=$RPM_BUILD_ROOT%{_prefix} \
404 mandir=$RPM_BUILD_ROOT%{_mandir} \
405 infodir=$RPM_BUILD_ROOT%{_infodir} -C texinfo
407 ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
409 echo .so g77.1 > $RPM_BUILD_ROOT%{_mandir}/man1/f77.1
410 echo .so cccp.1 > $RPM_BUILD_ROOT%{_mandir}/man1/cpp.1
411 install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
412 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1
413 bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
415 ln -sf g77 $RPM_BUILD_ROOT%{_bindir}/f77
416 (cd $RPM_BUILD_ROOT%{_libdir} ; ln -sf libstdc++.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libstdc++.so)
417 ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
419 gzip -9nf ../READ* ../ChangeLog ../gcc/ch/chill.brochure
422 rm -rf $RPM_BUILD_ROOT
425 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
428 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
431 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
434 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
437 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
440 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
443 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
446 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
448 %post -p /sbin/ldconfig -n libstdc++
449 %postun -p /sbin/ldconfig -n libstdc++
452 %defattr(644,root,root,755)
453 %doc READ* ChangeLog.gz
455 %dir %{_libdir}/gcc-lib
456 %dir %{_libdir}/gcc-lib/%{_target_cpu}*
457 %dir %{_libdir}/gcc-lib/%{_target_cpu}*/*
458 %dir %{_libdir}/gcc-lib/%{_target_cpu}*/*/include
460 %attr(755,root,root) %{_bindir}/%{_target_cpu}*-gcc
461 %attr(755,root,root) %{_bindir}/gcc
462 %attr(755,root,root) %{_bindir}/gcov
463 %attr(755,root,root) %{_bindir}/protoize
464 %attr(755,root,root) %{_bindir}/unprotoize
465 %attr(755,root,root) %{_bindir}/cc
467 %{_mandir}/man1/gcc.1*
468 %{_mandir}/man1/gcov.1*
469 %lang(fr) %{_mandir}/fr/man1/gcc.1*
470 %lang(ja) %{_mandir}/ja/man1/gcc.1*
473 %{_libdir}/gcc-lib/%{_target_cpu}*/*/SYSCALLS.c.X
474 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1
475 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libgcc.a
476 %{_libdir}/gcc-lib/%{_target_cpu}*/*/lib*.map
477 %{_libdir}/gcc-lib/%{_target_cpu}*/*/specs
480 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/crt*.o
483 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/collect2
485 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/float.h
486 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/iso646.h
487 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/limits.h
488 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/proto.h
489 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/stdarg.h
490 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/stdbool.h
491 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/stddef.h
492 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/syslimits.h
493 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/va-*.h
494 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/varargs.h
497 %defattr(644,root,root,755)
499 %{_mandir}/man1/g++.1*
500 %{_mandir}/man1/c++filt.1*
501 %lang(ja) %{_mandir}/ja/man1/g++.1*
502 %lang(es) %{_mandir}/es/man1/c++filt*
504 %attr(755,root,root) %{_bindir}/g++
505 %attr(755,root,root) %{_bindir}/c++
506 %attr(755,root,root) %{_bindir}/c++filt
507 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1plus
509 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/exception
510 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/new
511 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/typeinfo
512 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/new.h
515 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1obj
519 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libobjc.a
520 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/objc
523 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_bindir}/g77
526 %attr(755,root,root) %{_bindir}/f77
530 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/f771
531 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libg2c.a
533 %{_mandir}/man1/g77.1*
534 %{_mandir}/man1/f77.1*
535 %lang(ja) %{_mandir}/ja/man1/g77.1*
536 %lang(ja) %{_mandir}/ja/man1/f77.1*
538 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/g2c.h
541 %defattr(644,root,root,755)
542 %doc gcc/ch/chill.brochure.gz
544 %attr(755,root,root) %{_bindir}/chill
548 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1chill
549 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/chill*.o
550 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libchill.a
553 %defattr(644,root,root,755)
555 %attr(755,root,root) %{_bindir}/gcj
556 %attr(755,root,root) %{_bindir}/gcjh
557 %attr(755,root,root) %{_bindir}/jcf-dump
558 %attr(755,root,root) %{_bindir}/jv-scan
560 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jc1
561 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jvgenmain
564 %defattr(644,root,root,755)
565 %attr(755,root,root) %{_libdir}/libstdc++.so.*.*.*
567 %files -n libstdc++-devel
568 %defattr(644,root,root,755)
570 %attr(755,root,root) %{_libdir}/libstdc++.so
572 %files -n libstdc++-static
573 %defattr(644,root,root,755)
574 %attr(644,root,root) %{_libdir}/libstdc++.a
577 %defattr(644,root,root,755)
578 %attr(755,root,root) /lib/cpp
579 %attr(755,root,root) %{_bindir}/cpp
580 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cpp0
582 %{_mandir}/man1/cpp.1*
583 %{_mandir}/man1/cccp.1*
584 %lang(ja) %{_mandir}/ja/man1/cpp.1*
585 %lang(ja) %{_mandir}/ja/man1/cccp.1*
586 %{_infodir}/cpp.info*.gz