1 %define STDC_VERSION 2.10.0
3 Summary: GNU Compiler Collection
4 Summary(pl): Kolekcja kompilatorów GNU
9 Group: Development/Languages
10 Group(de): Entwicklung/Sprachen
11 Group(pl): Programowanie/Jêzyki
12 Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/%{release}/%{name}-%{release}.tar.gz
13 Patch0: gcc-stage.patch
15 BuildRequires: texinfo
16 BuildRequires: zlib-devel
17 Requires: binutils >= 2.9.1.0.25
18 Requires: cpp = %{version}
19 URL: http://gcc.gnu.org/
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 A compiler aimed at integrating all the optimizations and features
24 necessary for a high-performance and stable development environment.
27 Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do
28 wyprodukowania szybkiego i stablinego kodu wynikowego.
31 Summary: C++ support for gcc
32 Summary(fr): Support C++ pour le compilateur gcc
33 Summary(pl): Wspomaganie C++ dla kompilatora gcc
34 Summary(tr): gcc için C++ desteði
35 Group: Development/Languages
36 Group(de): Entwicklung/Sprachen
37 Group(pl): Programowanie/Jêzyki
42 This package adds C++ support to the GNU C compiler. It includes
43 support for most of the current C++ specification, including templates
44 and exception handling. It does not include a standard C++ library,
45 which is available separately.
47 %description -l de c++
48 Dieses Paket enthält die C++-Unterstützung für den GNU-C-Compiler. Es
49 unterstützt die aktuelle C++-Spezifikation, inkl. Templates und
50 Ausnahmeverarbeitung. Eine C++-Standard-Library ist nicht enthalten -
51 sie ist getrennt erhältlich.
53 %description -l fr c++
54 Ce package ajoute un support C++ au compilateur c GNU. Il comprend un
55 support pour la plupart des spécifications actuelles de C++, dont les
56 modéles et la gestion des exceptions. Il ne comprend pas une
57 bibliothéque C++ standard, qui est disponible séparément.
59 %description -l pl c++
60 Programy z tego pakietu zapewniaj± wsparcie dla C++ do gcc. Posiada
61 wspomaganie dla du¿ej ilo¶ci obecnych specyfikacji C++, nie posiada
62 natomiast standardowych bibliotek C++, które s± w oddzielnym pakiecie.
64 %description -l tr c++
65 Bu paket, GNU C derleyicisine C++ desteði ekler. 'Template'ler ve
66 aykýrý durum iþleme gibi çoðu güncel C++ tanýmlarýna uyar. Standart
67 C++ kitaplýðý bu pakette yer almaz.
70 Summary: Objective C support for gcc
71 Summary(de): Objektive C-Unterstützung für gcc
72 Summary(fr): Gestion d'Objective C pour gcc
73 Summary(pl): Wspomaganie obiektowego C dla kompilatora gcc
74 Summary(tr): gcc için Objective C desteði
75 Group: Development/Languages
76 Group(de): Entwicklung/Sprachen
77 Group(pl): Programowanie/Jêzyki
82 This package adds Objective C support to the GNU C compiler. Objective
83 C is a object oriented derivative of the C language, mainly used on
84 systems running NeXTSTEP. This package does not include the standard
85 objective C object library.
87 %description -l de objc
88 Dieses Paket ergänzt den GNU-C-Compiler durch Objective-C-Support.
89 Objective C ist ein objektorientiertes Derivat von C, das zur
90 Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt. Die
91 Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets.
93 %description -l fr objc
94 Ce package ajoute un support Objective C au compilateur C GNU.
95 L'Objective C est un langage orienté objetdérivé du langage C,
96 principalement utilisé sur les systèmes NeXTSTEP. Ce package n'inclue
97 pas la bibliothéque Objective C standard.
99 %description -l pl objc
100 Ten pakiet jest wsparciem obiektowego C dla kompilatora gcc. W
101 pakiecie nie ma jeszcze bibliotek C-obj.
103 %description -l tr objc
104 Bu paket, GNU C derleyicisine Objective C desteði ekler. Objective C,
105 C dilinin nesne yönelik bir türevidir ve NeXTSTEP altýnda çalýþan
106 sistemlerde yaygýn olarak kullanýlýr. Standart Objective C nesne
107 kitaplýðý bu pakette yer almaz.
110 Summary: Fortran 77 support for gcc
111 Summary(pl): Wspomaganie Fortran 77 dla gcc
112 Group: Development/Languages
113 Group(de): Entwicklung/Sprachen
114 Group(pl): Programowanie/Jêzyki
118 This apckage adds support for compiling Fortran 77 programs with the
121 %description -l pl g77
122 Ten pakiet jest wsparciem Fortran 77 dla kompilatora gcc. Jest
123 potrzebny do kompilowania programów pisanych w jêzyku Fortran 77.
126 Summary: CHILL support for gcc
127 Summary(pl): Wspomoganie CHILL dla gcc
128 Group: Development/Languages
129 Group(de): Entwicklung/Sprachen
130 Group(pl): Programowanie/Jêzyki
131 Requires: %{name} = %{version}
134 This package adds support for compiling CHILL programs with the GNU
137 Chill is the "CCITT High-Level Language", where CCITT is the old name
138 for what is now ITU, the International Telecommunications Union. It is
139 is language in the Modula2 family, and targets many of the same
140 applications as Ada (especially large embedded systems). Chill was
141 never used much in the United States, but is still being used in
142 Europe, Brazil, Korea, and other places.
145 Summary: Java support for gcc
146 Summary(pl): Wspomoganie Java dla gcc
147 Group: Development/Languages
148 Group(de): Entwicklung/Sprachen
149 Group(pl): Programowanie/Jêzyki
150 Requires: %{name} = %{version}
151 Requires: libgcj >= 2.95.1
154 This package adds experimental support for compiling Java(tm) programs
155 and bytecode into native code. To use this you will also need the
158 %package -n libstdc++
159 Summary: GNU c++ library
160 Summary(pl): Biblioteki GNU C++
163 Group(fr): Librairies
164 Group(pl): Biblioteki
165 Version: %{STDC_VERSION}
168 %description -n libstdc++
169 This is the GNU implementation of the standard C++ libraries, along
170 with additional GNU tools. This package includes the shared libraries
171 necessary to run C++ applications.
173 %description -l de -n libstdc++
174 Dies ist die GNU-Implementierung der Standard-C++-Libraries mit
175 weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von
176 C++-Anwendungen erforderlichen gemeinsam genutzten Libraries.
178 %description -l fr -n libstdc++
179 Ceci est l'implémentation GNU des librairies C++ standard, ainsi que
180 des outils GNU supplémentaires. Ce package comprend les librairies
181 partagées nécessaires à l'exécution d'application C++.
183 %description -l pl -n libstdc++
184 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
185 bibliotek C++. Znajduj± siê w nim biblioteki dynamiczne niezbêdne do
186 uruchomienia aplikacji napisanych w C++.
188 %description -l tr -n libstdc++
189 Bu paket, standart C++ kitaplýklarýnýn GNU gerçeklemesidir ve C++
190 uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir.
192 %package -n libstdc++-devel
193 Summary: Header files and libraries for C++ development
194 Summary(de): Header-Dateien und Libraries zur Entwicklung mit C++
195 Summary(fr): Fichiers d'en-tête et biblitothèques pour développer en C++.
196 Summary(tr): C++ ile program geliþtirmek için gerekli dosyalar
197 Group: Development/Libraries
198 Group(de): Entwicklung/Libraries
199 Group(fr): Development/Librairies
200 Group(pl): Programowanie/Biblioteki
201 Version: %{STDC_VERSION}
202 Requires: libstdc++ = %{STDC_VERSION}
203 Requires: %{name}-c++
204 Obsoletes: libg++-devel
206 %description -n libstdc++-devel
207 This is the GNU implementation of the standard C++ libraries. This
208 package includes the header files and libraries needed for C++
211 %description -l pl -n libstdc++-devel
212 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
213 bibliotek C++. Znajduj± siê w nim pliki nag³ówkowe wykorzystywane przy
214 programowaniu w jêzyku C++.
216 %package -n libstdc++-static
217 Summary: Static c++ standard library
218 Summary(pl): Biblioeka statyczna c++
219 Group: Development/Libraries
220 Group(de): Entwicklung/Libraries
221 Group(fr): Development/Librairies
222 Group(pl): Programowanie/Biblioteki
223 Version: %{STDC_VERSION}
224 Requires: libstdc++-devel = %{STDC_VERSION}
226 %description -n libstdc++-static
227 Static c++ standard library.
229 %description -l pl -n libstdc++-static
230 Biblioteka statyczna C++.
233 Summary: The C Pre Processor
234 Summary(pl): Preprocesor C
235 Group: Development/Languages
236 Group(de): Entwicklung/Sprachen
237 Group(pl): Programowanie/Jêzyki
241 The C preprocessor is a "macro processor" that is used automatically
242 by the C compiler to transform your program before actual compilation.
243 It is called a macro processor because it allows you to define
244 "macros", which are brief abbreviations for longer constructs.
246 The C preprocessor provides four separate facilities that you can use
249 - Inclusion of header files. These are files of declarations that can
250 be substituted into your program.
251 - Macro expansion. You can define "macros", which are abbreviations
252 for arbitrary fragments of C code, and then the C preprocessor will
253 replace the macros with their definitions throughout the program.
254 - Conditional compilation. Using special preprocessing directives, you
255 can include or exclude parts of the program according to various
257 - Line control. If you use a program to combine or rearrange source
258 files into an intermediate file which is then compiled, you can use
259 line control to inform the compiler of where each source line
260 originally came from.
262 %description -l pl -n cpp
263 Przeprocesor C jest "makro procesorem" który jest automatycznie
264 u¿ywany przez kompilator C do obróbki kompilowanego programu przed
265 w³a¶ciw± kompilacj±. Jest on nazywany makroprocesorem, poniewa¿
266 umo¿liwia definiowanie i rozwijanie makr umo¿liwiaj±cych skracanie
267 d³ugich konstrukcji w jêzyku C.
269 Preprocesor C umo¿liwia wykonywanie czterech ró¿nych typów operacji:
271 - Do³±czanie plików (np. nag³ówkowych). Wstawia pliki w miejscu
272 deklaracji polecenia do³±czenia innego pliku.
273 - Rozwijanie makr. Mo¿na definiowaæ "makra" nadaj±c im identyfikatory,
274 których pó¼niejsze u¿ycie powoduje podczas rozwijania podmienienie
275 indentyfikatora deklarowan± wcze¶niej warto¶ci±.
276 - Kompilacja warunkowa. W zale¿no¶ci od obecno¶ci symboli i dyrektyw w
277 ¶rodowisku preprocesora s± w³±czane warunkowo, b±d¼ nie, pewne
278 fragmenty obrabianego strumienia tekstów.
279 - Kontrola linii ¼ród³a. Niezale¿nie od tego jakim przeobra¿eniom
280 podlega wynikowy strumieñ danych w wyniku rozwijania makr i do³±czania
281 s± zapamiêtywane informacje o tym, której linii pliku ¼ród³owego
282 odpowiada fragment pliku wynikowego.
285 %setup -q -n %{name}-%{release}
289 rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform}
291 CFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}" \
292 CXXFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}" \
293 TEXCONFIG=false ../configure \
294 --prefix=%{_prefix} \
295 --infodir=%{_infodir} \
296 --mandir=%{_mandir} \
302 --with-cpu=ultrasparc \
304 %ifnarch sparc sparc64
305 --enable-threads=posix \
310 --with-gxx-include-dir="\$\{prefix\}/include/g++" \
312 --enable-java-gc=boehm \
314 --enable-cshadow-headers \
315 --enable-namespaces \
320 PATH=$PATH:/sbin:%{_sbindir}
323 %{__make} -C obj-%{_target_platform} bootstrap-lean \
324 LDFLAGS_FOR_TARGET="%{!?debug:-s}" \
329 rm -rf $RPM_BUILD_ROOT
330 install -d $RPM_BUILD_ROOT{/lib,%{_datadir}}
332 cd obj-%{_target_platform}
333 PATH=$PATH:/sbin:%{_sbindir}
336 prefix=$RPM_BUILD_ROOT%{_prefix} \
337 mandir=$RPM_BUILD_ROOT%{_mandir} \
338 infodir=$RPM_BUILD_ROOT%{_infodir}
341 prefix=$RPM_BUILD_ROOT%{_prefix} \
342 mandir=$RPM_BUILD_ROOT%{_mandir} \
343 infodir=$RPM_BUILD_ROOT%{_infodir} -C texinfo
345 ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
347 echo .so g77.1 > $RPM_BUILD_ROOT%{_mandir}/man1/f77.1
348 echo .so cccp.1 > $RPM_BUILD_ROOT%{_mandir}/man1/cpp.1
350 ln -sf g77 $RPM_BUILD_ROOT%{_bindir}/f77
351 (cd $RPM_BUILD_ROOT%{_libdir} ; ln -sf libstdc++.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libstdc++.so)
352 ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
354 gzip -9nf ../READ* ../ChangeLog ../gcc/ch/chill.brochure
357 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
360 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
363 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
366 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
369 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
372 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
375 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
378 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
380 %post -p /sbin/ldconfig -n libstdc++
381 %postun -p /sbin/ldconfig -n libstdc++
384 rm -rf $RPM_BUILD_ROOT
387 %defattr(644,root,root,755)
388 %doc READ* ChangeLog.gz
390 %dir %{_libdir}/gcc-lib
391 %dir %{_libdir}/gcc-lib/%{_target_cpu}*
392 %dir %{_libdir}/gcc-lib/%{_target_cpu}*/*
393 %dir %{_libdir}/gcc-lib/%{_target_cpu}*/*/include
395 %attr(755,root,root) %{_bindir}/%{_target_cpu}*-gcc
396 %attr(755,root,root) %{_bindir}/gcc
397 %attr(755,root,root) %{_bindir}/gcov
398 %attr(755,root,root) %{_bindir}/protoize
399 %attr(755,root,root) %{_bindir}/unprotoize
400 %attr(755,root,root) %{_bindir}/cc
402 %{_mandir}/man1/gcc.1*
403 %{_mandir}/man1/gcov.1*
406 %{_libdir}/gcc-lib/%{_target_cpu}*/*/SYSCALLS.c.X
407 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1
408 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libgcc.a
409 %{_libdir}/gcc-lib/%{_target_cpu}*/*/lib*.map
410 %{_libdir}/gcc-lib/%{_target_cpu}*/*/specs
413 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/crt*.o
416 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/collect2
418 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/float.h
419 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/iso646.h
420 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/limits.h
421 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/proto.h
422 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/stdarg.h
423 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/stdbool.h
424 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/stddef.h
425 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/syslimits.h
426 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/va-*.h
427 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/varargs.h
430 %defattr(644,root,root,755)
432 %{_mandir}/man1/g++.1.gz
434 %attr(755,root,root) %{_bindir}/g++
435 %attr(755,root,root) %{_bindir}/c++
436 %attr(755,root,root) %{_bindir}/c++filt
437 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1plus
439 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/exception
440 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/new
441 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/typeinfo
442 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/new.h
445 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1obj
449 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libobjc.a
450 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/objc
453 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_bindir}/g77
456 %attr(755,root,root) %{_bindir}/f77
460 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/f771
461 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libg2c.a
463 %{_mandir}/man1/g77.1*
464 %{_mandir}/man1/f77.1*
466 %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/g2c.h
469 %defattr(644,root,root,755)
470 %doc gcc/ch/chill.brochure.gz
472 %attr(755,root,root) %{_bindir}/chill
476 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1chill
477 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/chill*.o
478 %{_libdir}/gcc-lib/%{_target_cpu}*/*/libchill.a
481 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_bindir}/gcj
484 %attr(755,root,root) %{_bindir}/gcjh
485 %attr(755,root,root) %{_bindir}/jcf-dump
486 %attr(755,root,root) %{_bindir}/jv-scan
488 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jc1
489 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jvgenmain
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_libdir}/libstdc++.so.*.*.*
495 %files -n libstdc++-devel
496 %defattr(644,root,root,755)
498 %attr(755,root,root) %{_libdir}/libstdc++.so
500 %files -n libstdc++-static
501 %defattr(644,root,root,755)
502 %attr(644,root,root) %{_libdir}/libstdc++.a
505 %defattr(644,root,root,755)
506 %attr(755,root,root) /lib/cpp
507 %attr(755,root,root) %{_bindir}/cpp
508 %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cpp0
510 %{_mandir}/man1/cpp.1*
511 %{_mandir}/man1/cccp.1*
512 %{_infodir}/cpp.info*.gz