X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gcc2.spec;h=597a5da7e96e1fae243d50cf21f6eba9c0c7e40b;hb=refs%2Fheads%2Fmaster;hp=5dcaaef5d14079c9d9047833fa1138b4a89ec294;hpb=c07707394ffbfc029c4a09e92abb6dbc03339073;p=packages%2Fgcc2.git diff --git a/gcc2.spec b/gcc2.spec index 5dcaaef..597a5da 100644 --- a/gcc2.spec +++ b/gcc2.spec @@ -4,13 +4,14 @@ %define STDC_VERSION 2.10.0 %define STDC_RELEASE 5 Summary: GNU Compiler Collection -Summary(pl): Kolekcja kompilatorów GNU +Summary(pl.UTF-8): Kolekcja kompilatorów GNU Name: %{rname}2 Version: 2.95.4 -Release: 0.%{snap}.5 +Release: 0.%{snap}.6 License: GPL Group: Development/Languages Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{rver}/%{rname}-%{rver}.tar.bz2 +# Source0-md5: 87ee083a830683e2aaa57463940a0c3c Patch0: %{name}-info.patch Patch1: %{name}-pld-linux.patch Patch2: %{name}-libstdc++.patch @@ -35,13 +36,15 @@ Patch19: %{name}-libobjc.patch Patch21: %{name}-suffix.patch Patch22: %{name}-athlon-option.patch Patch50: gcc-%{rver}-%{snap}.patch.bz2 +# Patch50-md5: 83f4163aa5b8492d27cbfc9eb8ea419c +BuildRequires: autoconf +BuildRequires: automake BuildRequires: bison BuildRequires: texinfo -BuildRequires: automake -Requires: binutils >= 2.9.1.0.25 +Requires: binutils Requires: cpp2 = %{version} %ifarch alpha -Conflicts: glibc-devel < 2.2.5 +Conflicts: glibc-devel < 2.2.5 %endif URL: http://gcc.gnu.org/ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -50,19 +53,19 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) A compiler aimed at integrating all the optimizations and features necessary for a high-performance and stable development environment. -%description -l pl -Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do -wyprodukowania szybkiego i stablinego kodu wynikowego. +%description -l pl.UTF-8 +Kompilator, posiadający duże możliwości optymalizacyjne niezbędne do +wyprodukowania szybkiego i stabilnego kodu wynikowego. %package c++ Summary: C++ support for gcc -Summary(fr): Support C++ pour le compilateur gcc -Summary(pl): Wspomaganie C++ dla kompilatora gcc -Summary(tr): gcc için C++ desteði +Summary(fr.UTF-8): Support C++ pour le compilateur gcc +Summary(pl.UTF-8): Wspomaganie C++ dla kompilatora gcc +Summary(tr.UTF-8): gcc için C++ desteği Group: Development/Languages +Requires: %{name} = %{version}-%{release} Obsoletes: egcc-c++ Obsoletes: egcs-c++ -Requires: %{name} = %{version} %description c++ This package adds C++ support to the GNU C compiler. It includes @@ -70,38 +73,38 @@ support for most of the current C++ specification, including templates and exception handling. It does not include a standard C++ library, which is available separately. -%description c++ -l de -Dieses Paket enthält die C++-Unterstützung für den GNU-C-Compiler. Es -unterstützt die aktuelle C++-Spezifikation, inkl. Templates und +%description c++ -l de.UTF-8 +Dieses Paket enthält die C++-Unterstützung für den GNU-C-Compiler. Es +unterstützt die aktuelle C++-Spezifikation, inkl. Templates und Ausnahmeverarbeitung. Eine C++-Standard-Library ist nicht enthalten - -sie ist getrennt erhältlich. +sie ist getrennt erhältlich. -%description c++ -l fr +%description c++ -l fr.UTF-8 Ce package ajoute un support C++ au compilateur c GNU. Il comprend un -support pour la plupart des spécifications actuelles de C++, dont les -modéles et la gestion des exceptions. Il ne comprend pas une -bibliothéque C++ standard, qui est disponible séparément. +support pour la plupart des spécifications actuelles de C++, dont les +modéles et la gestion des exceptions. Il ne comprend pas une +bibliothéque C++ standard, qui est disponible séparément. -%description c++ -l pl -Programy z tego pakietu zapewniaj± wsparcie dla C++ do gcc. Posiada -wspomaganie dla du¿ej ilo¶ci obecnych specyfikacji C++, nie posiada -natomiast standardowych bibliotek C++, które s± w oddzielnym pakiecie. +%description c++ -l pl.UTF-8 +Programy z tego pakietu zapewniają wsparcie dla C++ do gcc. Posiada +wspomaganie dla dużej ilości obecnych specyfikacji C++, nie posiada +natomiast standardowych bibliotek C++, które są w oddzielnym pakiecie. -%description c++ -l tr -Bu paket, GNU C derleyicisine C++ desteði ekler. 'Template'ler ve -aykýrý durum iþleme gibi çoðu güncel C++ tanýmlarýna uyar. Standart -C++ kitaplýðý bu pakette yer almaz. +%description c++ -l tr.UTF-8 +Bu paket, GNU C derleyicisine C++ desteği ekler. 'Template'ler ve +aykırı durum işleme gibi çoğu güncel C++ tanımlarına uyar. Standart +C++ kitaplığı bu pakette yer almaz. %package objc Summary: Objective C support for gcc -Summary(de): Objektive C-Unterstützung für gcc -Summary(fr): Gestion d'Objective C pour gcc -Summary(pl): Wspomaganie obiektowego C dla kompilatora gcc -Summary(tr): gcc için Objective C desteði +Summary(de.UTF-8): Objektive C-Unterstützung für gcc +Summary(fr.UTF-8): Gestion d'Objective C pour gcc +Summary(pl.UTF-8): Wspomaganie obiektowego C dla kompilatora gcc +Summary(tr.UTF-8): gcc için Objective C desteği Group: Development/Languages +Requires: %{name} = %{version}-%{release} Obsoletes: egcc-objc Obsoletes: egcs-objc -Requires: %{name} = %{version} %description objc This package adds Objective C support to the GNU C compiler. Objective @@ -109,31 +112,31 @@ C is a object oriented derivative of the C language, mainly used on systems running NeXTSTEP. This package does not include the standard objective C object library. -%description objc -l de -Dieses Paket ergänzt den GNU-C-Compiler durch Objective-C-Support. +%description objc -l de.UTF-8 +Dieses Paket ergänzt den GNU-C-Compiler durch Objective-C-Support. Objective C ist ein objektorientiertes Derivat von C, das zur Hauptsache auf Systemen mit NeXTSTEP zum Einsatz kommt. Die Standard-Objective-C-Objekt-Library ist nicht Teil des Pakets. -%description objc -l fr +%description objc -l fr.UTF-8 Ce package ajoute un support Objective C au compilateur C GNU. -L'Objective C est un langage orienté objetdérivé du langage C, -principalement utilisé sur les systèmes NeXTSTEP. Ce package n'inclue -pas la bibliothéque Objective C standard. +L'Objective C est un langage orienté objetdérivé du langage C, +principalement utilisé sur les systèmes NeXTSTEP. Ce package n'inclue +pas la bibliothéque Objective C standard. -%description objc -l pl +%description objc -l pl.UTF-8 Ten pakiet jest wsparciem obiektowego C dla kompilatora gcc. W pakiecie nie ma jeszcze bibliotek C-obj. -%description objc -l tr -Bu paket, GNU C derleyicisine Objective C desteði ekler. Objective C, -C dilinin nesne yönelik bir türevidir ve NeXTSTEP altýnda çalýþan -sistemlerde yaygýn olarak kullanýlýr. Standart Objective C nesne -kitaplýðý bu pakette yer almaz. +%description objc -l tr.UTF-8 +Bu paket, GNU C derleyicisine Objective C desteği ekler. Objective C, +C dilinin nesne yönelik bir türevidir ve NeXTSTEP altında çalışan +sistemlerde yaygın olarak kullanılır. Standart Objective C nesne +kitaplığı bu pakette yer almaz. %package g77 Summary: Fortran 77 support for gcc -Summary(pl): Wspomaganie Fortran 77 dla gcc +Summary(pl.UTF-8): Wspomaganie Fortran 77 dla gcc Group: Development/Languages Obsoletes: egcs-g77 @@ -141,15 +144,15 @@ Obsoletes: egcs-g77 This apckage adds support for compiling Fortran 77 programs with the GNU compiler. -%description g77 -l pl +%description g77 -l pl.UTF-8 Ten pakiet jest wsparciem Fortran 77 dla kompilatora gcc. Jest -potrzebny do kompilowania programów pisanych w jêzyku Fortran 77. +potrzebny do kompilowania programów pisanych w języku Fortran 77. %package chill Summary: CHILL support for gcc -Summary(pl): Wspomoganie CHILL dla gcc +Summary(pl.UTF-8): Wspomoganie CHILL dla gcc Group: Development/Languages -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} %description chill This package adds support for compiling CHILL programs with the GNU @@ -162,33 +165,16 @@ applications as Ada (especially large embedded systems). Chill was never used much in the United States, but is still being used in Europe, Brazil, Korea, and other places. -%description chill -l pl -Ten pakiet dodaje do gcc mo¿liwo¶æ kompilowania programów w jêzyku +%description chill -l pl.UTF-8 +Ten pakiet dodaje do gcc możliwość kompilowania programów w języku CHILL. -%package java -Summary: Java support for gcc -Summary(pl): Wspomoganie Java dla gcc -Group: Development/Languages -Requires: %{name} = %{version} -Requires: libgcj2 >= 2.95.1 - -%description java -This package adds experimental support for compiling Java(tm) programs -and bytecode into native code. To use this you will also need the -libgcj package. - -%description java -l pl -Ten pakiet dodaje do gcc (eksperymentaln±) mo¿liwo¶æ kompilowania -programów w Javie(tm) i bytecode do kodu procesora. Wymaga pakietu -libgcj. - %package -n libstdc++2 Summary: GNU c++ library -Summary(pl): Biblioteki GNU C++ -Group: Libraries +Summary(pl.UTF-8): Biblioteki GNU C++ Version: %{STDC_VERSION} Release: %{STDC_RELEASE} +Group: Libraries Obsoletes: libg++ %description -n libstdc++2 @@ -196,36 +182,36 @@ This is the GNU implementation of the standard C++ libraries, along with additional GNU tools. This package includes the shared libraries necessary to run C++ applications. -%description -n libstdc++2 -l de +%description -n libstdc++2 -l de.UTF-8 Dies ist die GNU-Implementierung der Standard-C++-Libraries mit -weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von +weiteren GNU-Tools. Dieses Paket enthält die zum Ausführen von C++-Anwendungen erforderlichen gemeinsam genutzten Libraries. -%description -n libstdc++2 -l fr -Ceci est l'implémentation GNU des librairies C++ standard, ainsi que -des outils GNU supplémentaires. Ce package comprend les librairies -partagées nécessaires à l'exécution d'application C++. +%description -n libstdc++2 -l fr.UTF-8 +Ceci est l'implémentation GNU des librairies C++ standard, ainsi que +des outils GNU supplémentaires. Ce package comprend les librairies +partagées nécessaires à l'exécution d'application C++. -%description -n libstdc++2 -l pl -Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych -bibliotek C++. Znajduj± siê w nim biblioteki dynamiczne niezbêdne do +%description -n libstdc++2 -l pl.UTF-8 +Pakiet ten zawiera biblioteki będące implementacją standardowych +bibliotek C++. Znajdują się w nim biblioteki dynamiczne niezbędne do uruchomienia aplikacji napisanych w C++. -%description -n libstdc++2 -l tr -Bu paket, standart C++ kitaplýklarýnýn GNU gerçeklemesidir ve C++ -uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir. +%description -n libstdc++2 -l tr.UTF-8 +Bu paket, standart C++ kitaplıklarının GNU gerçeklemesidir ve C++ +uygulamalarının koşturulması için gerekli kitaplıkları içerir. %package -n libstdc++2-devel Summary: Header files and libraries for C++ development -Summary(de): Header-Dateien und Libraries zur Entwicklung mit C++ -Summary(fr): Fichiers d'en-tête et biblitothèques pour développer en C++ -Summary(pl): Pliki nag³ówkowe do programowania z u¿yciem bibliotek C++ -Summary(tr): C++ ile program geliþtirmek için gerekli dosyalar -Group: Development/Libraries +Summary(de.UTF-8): Header-Dateien und Libraries zur Entwicklung mit C++ +Summary(fr.UTF-8): Fichiers d'en-tête et biblitothèques pour développer en C++ +Summary(pl.UTF-8): Pliki nagłówkowe do programowania z użyciem bibliotek C++ +Summary(tr.UTF-8): C++ ile program geliştirmek için gerekli dosyalar Version: %{STDC_VERSION} Release: %{STDC_RELEASE} -Requires: libstdc++2 = %{STDC_VERSION} +Group: Development/Libraries Requires: %{name}-c++ +Requires: libstdc++2 = %{STDC_VERSION} Obsoletes: libg++-devel %description -n libstdc++2-devel @@ -233,28 +219,28 @@ This is the GNU implementation of the standard C++ libraries. This package includes the header files and libraries needed for C++ development. -%description -n libstdc++2-devel -l pl -Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych -bibliotek C++. Znajduj± siê w nim pliki nag³ówkowe wykorzystywane przy -programowaniu w jêzyku C++. +%description -n libstdc++2-devel -l pl.UTF-8 +Pakiet ten zawiera biblioteki będące implementacją standardowych +bibliotek C++. Znajdują się w nim pliki nagłówkowe wykorzystywane przy +programowaniu w języku C++. %package -n libstdc++2-static Summary: Static c++ standard library -Summary(pl): Biblioteka statyczna c++ -Group: Development/Libraries +Summary(pl.UTF-8): Biblioteka statyczna c++ Version: %{STDC_VERSION} Release: %{STDC_RELEASE} +Group: Development/Libraries Requires: libstdc++2-devel = %{STDC_VERSION} %description -n libstdc++2-static Static c++ standard library. -%description -n libstdc++2-static -l pl +%description -n libstdc++2-static -l pl.UTF-8 Biblioteka statyczna C++. %package -n cpp2 Summary: The C Pre Processor -Summary(pl): Preprocesor C +Summary(pl.UTF-8): Preprocesor C Group: Development/Languages Obsoletes: egcs-cpp @@ -280,26 +266,26 @@ as you see fit: line control to inform the compiler of where each source line originally came from. -%description -n cpp2 -l pl -Preprocesor C jest "makro procesorem" który jest automatycznie u¿ywany -przez kompilator C do obróbki kompilowanego programu przed w³a¶ciw± -kompilacj±. Jest on nazywany makroprocesorem, poniewa¿ umo¿liwia -definiowanie i rozwijanie makr umo¿liwiaj±cych skracanie d³ugich -konstrukcji w jêzyku C. - -Preprocesor C umo¿liwia wykonywanie czterech ró¿nych typów operacji: - -- Do³±czanie plików (np. nag³ówkowych). Wstawia pliki w miejscu - deklaracji polecenia do³±czenia innego pliku. -- Rozwijanie makr. Mo¿na definiowaæ "makra" nadaj±c im identyfikatory, - których pó¼niejsze u¿ycie powoduje podczas rozwijania podmienienie - identyfikatora deklarowan± wcze¶niej warto¶ci±. -- Kompilacja warunkowa. W zale¿no¶ci od obecno¶ci symboli i dyrektyw w - ¶rodowisku preprocesora s± w³±czane warunkowo, b±d¼ nie, pewne - fragmenty obrabianego strumienia tekstów. -- Kontrola linii ¼ród³a. Niezale¿nie od tego jakim przeobra¿eniom - podlega wynikowy strumieñ danych w wyniku rozwijania makr i do³±czania - s± zapamiêtywane informacje o tym, której linii pliku ¼ród³owego +%description -n cpp2 -l pl.UTF-8 +Preprocesor C jest "makro procesorem" który jest automatycznie używany +przez kompilator C do obróbki kompilowanego programu przed właściwą +kompilacją. Jest on nazywany makroprocesorem, ponieważ umożliwia +definiowanie i rozwijanie makr umożliwiających skracanie długich +konstrukcji w języku C. + +Preprocesor C umożliwia wykonywanie czterech różnych typów operacji: + +- Dołączanie plików (np. nagłówkowych). Wstawia pliki w miejscu + deklaracji polecenia dołączenia innego pliku. +- Rozwijanie makr. Można definiować "makra" nadając im identyfikatory, + których późniejsze użycie powoduje podczas rozwijania podmienienie + identyfikatora deklarowaną wcześniej wartością. +- Kompilacja warunkowa. W zależności od obecności symboli i dyrektyw w + środowisku preprocesora są włączane warunkowo, bądź nie, pewne + fragmenty obrabianego strumienia tekstów. +- Kontrola linii źródła. Niezależnie od tego jakim przeobrażeniom + podlega wynikowy strumień danych w wyniku rozwijania makr i dołączania + są zapamiętywane informacje o tym, której linii pliku źródłowego odpowiada fragment pliku wynikowego. %prep @@ -338,7 +324,11 @@ Preprocesor C umo %patch22 -p1 %build -(cd gcc; autoconf; cp -f /usr/share/automake/config.* .) +rm -rf gcc/java +cd gcc +%{__autoconf} +cp -f /usr/share/automake/config.* . +cd .. cp -f /usr/share/automake/config.* . rm -rf obj-%{_target_platform} install -d obj-%{_target_platform} && cd obj-%{_target_platform} @@ -397,48 +387,43 @@ mv $RPM_BUILD_ROOT%{_libdir}/libstdc++.a \ ln -sf %{_bindir}/cpp2 $RPM_BUILD_ROOT/lib/cpp2 -gzip -9nf ../READ* ../ChangeLog ../gcc/ch/chill.brochure - cd $RPM_BUILD_ROOT%{_bindir} mv chill chill2 mv %{_target_platform}-gcc %{_target_platform}-gcc2 -mv jcf-dump jcf-dump2 -mv jv-scan jv-scan2 -mv gcjh gcjh2 -%post -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%postun -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%postun -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%post g77 -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%post g77 -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%postun g77 -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%postun g77 -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%post chill -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%post chill -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%postun chill -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%postun chill -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%post -n cpp2 -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%post -n cpp2 -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%postun -n cpp2 -[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +%postun -n cpp2 -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} %post -p /sbin/ldconfig -n libstdc++2 %postun -p /sbin/ldconfig -n libstdc++2 -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(644,root,root,755) -%doc READ* ChangeLog.gz +%doc READ* ChangeLog %dir %{_libdir}/gcc-lib %dir %{_libdir}/gcc-lib/%{_target_cpu}* @@ -506,7 +491,7 @@ rm -rf $RPM_BUILD_ROOT %files chill %defattr(644,root,root,755) -%doc gcc/ch/chill.brochure.gz +%doc gcc/ch/chill.brochure %attr(755,root,root) %{_bindir}/chill2 @@ -516,17 +501,6 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/chill*.o %{_libdir}/gcc-lib/%{_target_cpu}*/*/libchill.a -%files java -%defattr(644,root,root,755) - -%attr(755,root,root) %{_bindir}/gcj2 -%attr(755,root,root) %{_bindir}/gcjh2 -%attr(755,root,root) %{_bindir}/jcf-dump2 -%attr(755,root,root) %{_bindir}/jv-scan2 - -%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jc1 -%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jvgenmain - %files -n libstdc++2 %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libstdc++.so.*.*.* @@ -538,7 +512,7 @@ rm -rf $RPM_BUILD_ROOT %files -n libstdc++2-static %defattr(644,root,root,755) -%attr(644,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/libstdc++.a +%{_libdir}/gcc-lib/%{_target_cpu}*/*/libstdc++.a %files -n cpp2 %defattr(644,root,root,755)