]> git.pld-linux.org Git - packages/gcc.git/blobdiff - gcc.spec
- update to 3.3.5, rel 1
[packages/gcc.git] / gcc.spec
index 953e5b743f4c46540531077aaf749d058b78b707..91c04da328d79bf56b5b1366037a77a3870edba2 100644 (file)
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,17 +1,19 @@
 #
 # Conditional build:
-# _with_ada    - build without ADA support
-# _without_java        - build without Java support
-# _without_objc        - build without objc support
-
+%bcond_without ada             # build without ADA support
+%bcond_without java            # build without Java support
+%bcond_without objc            # build without objc support
+%bcond_with    bootstrap       # don't BR gcc(ada) (temporary for Ac upgrade bootstrap)
+#
 %define                DASHED_SNAP     %{nil}
 %define                SNAP            %(echo %{DASHED_SNAP} | sed -e "s#-##g")
-%define                GCC_VERSION     3.3
+%define                GCC_VERSION     3.3.5
 %define                KSI_VERSION     1.1.0.1567
 
-Summary:       GNU C Compiler
-Summary(pl):   Kompilator C GNU
-Summary(pt_BR):        C Compilador GNU (GCC)
+Summary:       GNU Compiler Collection: the C compiler and shared files
+Summary(es):   Colección de compiladores GNU: el compilador C y ficheros compartidos
+Summary(pl):   Kolekcja kompilatorów GNU: kompilator C i pliki wspó³dzielone
+Summary(pt_BR):        Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
 Name:          gcc
 Version:       %{GCC_VERSION}
 Release:       1
@@ -19,12 +21,20 @@ Epoch:              5
 License:       GPL
 Group:         Development/Languages
 Source0:       ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{GCC_VERSION}/%{name}-%{GCC_VERSION}.tar.bz2
-Source1:       ftp://ftp.pld.org.pl/people/malekith/ksi/ksi-%{KSI_VERSION}.tar.gz
-Source2:       %{name}-non-english-man-pages.tar.bz2
+# Source0-md5: 70ee088b498741bb08c779f9617df3a5
+# Source0-size:        23833856
+Source1:       ftp://ftp.pld-linux.org/people/malekith/ksi/ksi-%{KSI_VERSION}.tar.gz
+# Source1-md5: 66f07491b44f06928fd95b0e65bb8cd3
+Source2:       http://ep09.pld-linux.org/~djrzulf/gcc33/%{name}-non-english-man-pages.tar.bz2
+# Source2-md5: 4736f3422ddfb808423b745629acc321
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-paths.patch
 Patch2:                %{name}-nolocalefiles.patch
 Patch3:                %{name}-ada-link-new-libgnat.patch
+Patch4:                %{name}-nodebug.patch
+Patch5:                %{name}-cse-find_best_addr.patch
+Patch6:                %{name}-alpha-regno-mode.patch
+Patch7:                %{name}-amd64-thunk.patch
 # -- stolen patches from RH --
 Patch10:       gcc32-ada-link.patch
 Patch11:       gcc32-boehm-gc-libs.patch
@@ -42,38 +52,66 @@ Patch22:    gcc32-java-no-rpath.patch
 Patch23:       gcc32-test-rh65771.patch
 Patch24:       gcc32-test-rotate.patch
 BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: binutils >= 2:2.15.90.0.3
 BuildRequires: bison
 BuildRequires: fileutils >= 4.0.41
-BuildRequires: gcc
-%{?_with_ada:BuildRequires:    gcc-ada}
+%{?with_ada:%{!?with_bootstrap:BuildRequires:  gcc(ada)}}
+%{?with_ada:BuildRequires: gcc-ada}
+BuildRequires: gettext-devel
 BuildRequires: glibc-devel >= 2.2.5-20
 BuildRequires: perl-devel
 BuildRequires: texinfo >= 4.1
 BuildRequires: zlib-devel
-BuildRequires: gettext-devel
-Requires:      binutils >= 2.12.90.0.4
-Requires:      cpp = %{GCC_VERSION}
-Requires:      libgcc = %{GCC_VERSION}
+Requires:      binutils >= 2:2.15.90.0.3
+Requires:      cpp = %{epoch}:%{GCC_VERSION}-%{release}
+Requires:      gcc-dirs
+Requires:      libgcc = %{epoch}:%{GCC_VERSION}-%{release}
+%{?with_ada:Provides: gcc(ada)}
 Conflicts:     glibc-devel < 2.2.5-20
 URL:           http://gcc.gnu.org/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _slibdir        /lib
+%define                _slibdir        /%{_lib}
+%ifarch sparc64
+%define                _slibdir64      /lib64
+%define                _libdir         /usr/lib
+%define                rpmcflags       -O2 -mtune=ultrasparc
+%endif
 
 %description
 A compiler aimed at integrating all the optimizations and features
 necessary for a high-performance and stable development environment.
 
+This package contains the C compiler and some files shared by various
+parts of the GNU Compiler Collection. In order to use another GCC
+compiler you will need to install the appropriate subpackage.
+
+%description -l es
+Un compilador destinado a la integración de todas las optimalizaciones
+y características necesarias para un entorno de desarrollo eficaz y
+estable.
+
+Este paquete contiene el compilador de C y unos ficheros compartidos
+por varias parted de la colección de compiladores GNU (GCC). Para usar
+otro compilador de GCC será necesario que instale el subpaquete
+adecuado.
+
 %description -l pl
 Kompilator, posiadaj±cy du¿e mo¿liwo¶ci optymalizacyjne niezbêdne do
-wyprodukowania szybkiego i stablinego kodu wynikowego.
+wyprodukowania szybkiego i stabilnego kodu wynikowego.
+
+Ten pakiet zawiera kompilator C i pliki wspó³dzielone przez ró¿ne
+czê¶ci kolekcji kompilatorów GNU (GCC). ¯eby u¿ywaæ innego kompilatora
+z GCC, trzeba zainstalowaæ odpowiedni podpakiet.
 
 %description -l pt_BR
-Este pacote adiciona infraestrutura básica e suporte a linguagem C
-ao Gnu Compiler Collection.
+Este pacote adiciona infraestrutura básica e suporte a linguagem C ao
+GNU Compiler Collection.
 
 %package -n libgcc
 Summary:       Shared gcc library
+Summary(es):   Biblioteca compartida de gcc
 Summary(pl):   Biblioteka gcc
 Summary(pt_BR):        Biblioteca runtime para o GCC
 Group:         Libraries
@@ -83,6 +121,9 @@ Obsoletes:   libgcc1
 %description -n libgcc
 Shared gcc library.
 
+%description -n libgcc -l es
+Biblioteca compartida de gcc.
+
 %description -n libgcc -l pl
 Biblioteka dynamiczna gcc.
 
@@ -91,30 +132,38 @@ Biblioteca runtime para o GCC.
 
 %package c++
 Summary:       C++ support for gcc
+Summary(es):   Soporte de C++ para gcc
 Summary(pl):   Obs³uga C++ dla gcc
 Summary(pt_BR):        Suporte C++ para o gcc
 Group:         Development/Languages
+Requires:      %{name} = %{epoch}:%{GCC_VERSION}-%{release}
 Obsoletes:     egcc-c++
 Obsoletes:     egcs-c++
-Requires:      gcc = %{GCC_VERSION}
 
 %description c++
-This package adds C++ support to the GNU C compiler. It includes
-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.
+This package adds C++ support to the GNU Compiler Collection. It
+includes 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
-Ausnahmeverarbeitung. Eine C++-Standard-Library ist nicht enthalten -
-sie ist getrennt erhältlich.
+Dieses Paket enthält die C++-Unterstützung für den
+GNU-Compiler-Collection. Es unterstützt die aktuelle
+C++-Spezifikation, inkl. Templates und Ausnahmeverarbeitung. Eine
+C++-Standard-Library ist nicht enthalten - sie ist getrennt
+erhältlich.
+
+%description c++ -l es
+Este paquete añade soporte de C++ al GCC (colección de compiladores
+GNU). Ello incluye el soporte para la mayoría de la especificación
+actual de C++, incluyendo plantillas y manejo de excepciones. No
+incluye la biblioteca estándar de C++, la que es disponible separada.
 
 %description c++ -l fr
-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.
+Ce package ajoute un support C++ a la collection de compilateurs 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.
 
 %description c++ -l pl
 Ten pakiet dodaje obs³ugê C++ do kompilatora gcc. Ma wsparcie dla
@@ -132,32 +181,40 @@ C++ kitapl
 %package objc
 Summary:       Objective C support for gcc
 Summary(de):   Objektive C-Unterstützung für gcc
+Summary(es):   Soporte de Objective C para gcc
 Summary(fr):   Gestion d'Objective C pour gcc
 Summary(pl):   Obs³uga obiektowego C dla kompilatora gcc
 Summary(tr):   gcc için Objective C desteði
 Group:         Development/Languages
+Requires:      %{name} = %{epoch}:%{GCC_VERSION}-%{release}
+Requires:      libobjc = %{epoch}:%{GCC_VERSION}-%{release}
 Obsoletes:     egcc-objc
 Obsoletes:     egcs-objc
-Requires:      libobjc = %{GCC_VERSION}
-Requires:      gcc = %{GCC_VERSION}
 
 %description objc
-This package adds Objective C support to the GNU C compiler. Objective
-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.
+This package adds Objective C support to the GNU Compiler Collection.
+Objective 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.
-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.
+Dieses Paket ergänzt den GNU-Compiler-Collection 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 es
+Este paquete añade soporte de Objective C al GCC (colección de
+compiladores GNU). Objective C es un lenguaje orientado a objetos
+derivado de C, principalmente usado en sistemas que funcionan bajo
+NeXTSTEP. El paquete no incluye la biblioteca de objetos estándar de
+Objective C.
 
 %description objc -l fr
-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.
+Ce package ajoute un support Objective C a la collection de
+compilateurs 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.
 
 %description objc -l pl
 Ten pakiet dodaje obs³ugê obiektowego C do kompilatora gcc. Obiektowe
@@ -173,6 +230,7 @@ kitapl
 
 %package -n libobjc
 Summary:       Objective C Libraries
+Summary(es):   Bibliotecas de Objective C
 Summary(pl):   Biblioteki Obiektowego C
 Group:         Libraries
 Version:       %{GCC_VERSION}
@@ -181,35 +239,48 @@ Obsoletes:        libobjc1
 %description -n libobjc
 Objective C Libraries.
 
+%description -n libobjc -l es
+Bibliotecas de Objective C.
+
 %description -n libobjc -l pl
 Biblioteki Obiektowego C.
 
 %package -n libobjc-static
 Summary:       Static Objective C Libraries
+Summary(es):   Bibliotecas estáticas de Objective C
 Summary(pl):   Statyczne Biblioteki Obiektowego C
 Group:         Development/Libraries
 Version:       %{GCC_VERSION}
-Requires:      libobjc = %{GCC_VERSION}
+Requires:      libobjc = %{epoch}:%{GCC_VERSION}-%{release}
 
 %description -n libobjc-static
 Static Objective C Libraries.
 
+%description -n libobjc-static -l es
+Bibliotecas estáticas de Objective C.
+
 %description -n libobjc-static -l pl
 Statyczne biblioteki Obiektowego C.
 
 %package g77
 Summary:       Fortran 77 support for gcc
+Summary(es):   Soporte de Fortran 77 para gcc
 Summary(pl):   Obs³uga Fortranu 77 dla gcc
 Summary(pt_BR):        Suporte Fortran 77 para o GCC
 Group:         Development/Languages/Fortran
 Version:       %{GCC_VERSION}
+Requires:      %{name} = %{epoch}:%{GCC_VERSION}-%{release}
+Requires:      libg2c = %{epoch}:%{GCC_VERSION}-%{release}
 Obsoletes:     egcs-g77
-Requires:      libg2c = %{GCC_VERSION}
 
 %description g77
-This apckage adds support for compiling Fortran 77 programs with the
+This package adds support for compiling Fortran 77 programs with the
 GNU compiler.
 
+%description g77 -l es
+Este paquete añade soporte para compilar programas escritos en Fortran
+77 con el compilador GNU.
+
 %description g77 -l pl
 Ten pakiet dodaje obs³ugê Fortranu 77 do kompilatora gcc. Jest
 potrzebny do kompilowania programów pisanych w jêzyku Fortran 77.
@@ -219,6 +290,7 @@ Suporte Fortran 77 para o GCC.
 
 %package -n libg2c
 Summary:       Fortran 77 Libraries
+Summary(es):   Bibliotecas de Fortran 77
 Summary(pl):   Biblioteki Fortranu 77
 Group:         Libraries
 Version:       %{GCC_VERSION}
@@ -226,30 +298,37 @@ Version:  %{GCC_VERSION}
 %description -n libg2c
 Fortran 77 Libraries.
 
+%description -n libg2c -l es
+Bibliotecas de Fortran 77.
+
 %description -n libg2c -l pl
 Biblioteki Fortranu 77.
 
 %package -n libg2c-static
 Summary:       Static Fortran 77 Libraries
+Summary(es):   Bibliotecas estáticas de Fortran 77
 Summary(pl):   Statyczne Biblioteki Fortranu 77
 Group:         Development/Libraries
 Version:       %{GCC_VERSION}
-Requires:      libg2c = %{GCC_VERSION}
+Requires:      libg2c = %{epoch}:%{GCC_VERSION}-%{release}
 
 %description -n libg2c-static
 Static Fortran 77 Libraries.
 
+%description -n libg2c -l es
+Bibliotecas estáticas de Fortran 77.
+
 %description -n libg2c-static -l pl
 Statyczne biblioteki Fortranu 77.
 
 %package java
 Summary:       Java support for gcc
+Summary(es):   Soporte de Java para gcc
 Summary(pl):   Obs³uga Javy dla gcc
 Group:         Development/Languages/Java
 Version:       %{GCC_VERSION}
-Requires:      %{name} = %{version}
-Requires:      libgcj >= 3.0.0
-Requires:      libgcj-devel >= 3.0.0
+Requires:      %{name} = %{epoch}:%{GCC_VERSION}-%{release}
+Requires:      libgcj-devel = %{epoch}:%{GCC_VERSION}-%{release}
 Requires:      java-shared
 Provides:      gcj = %{epoch}:%{GCC_VERSION}-%{release}
 
@@ -258,32 +337,43 @@ 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 -l pl java
-Wsparcie dla kompilowania programów Java(tm) zrówno do bajt-kodu jak i
+%description java -l es
+Este paquete añade soporte experimental para compilar programas
+Java(tm) y su bytecode en código nativo. Para usarlo también va a
+necesitar el paquete libgcj.
+
+%description java -l pl
+Wsparcie dla kompilowania programów Java(tm) zarówno do bajt-kodu jak i
 do natywnego kodu. Dodatkowo wymagany jest pakiet libgcj, aby mo¿na
 by³o przeprowadziæ kompilacjê.
 
 %package java-tools
 Summary:       Shared java tools
+Summary(es):   Herramientas compartidas de Java
 Summary(pl):   Wspó³dzielone narzêdzia javy
 Group:         Development/Languages/Java
 Version:       %{GCC_VERSION}
 Provides:      jar = %{epoch}:%{GCC_VERSION}-%{release}
 Provides:      java-shared
 Obsoletes:     fastjar
-Obsoletes:     java-shared
 Obsoletes:     jar
+Obsoletes:     java-shared
 
 %description java-tools
-This package contains tools that are common for every Java(tm) implementation,
-such as rmic or jar.
+This package contains tools that are common for every Java(tm)
+implementation, such as rmic or jar.
+
+%description java-tools -l es
+Este paquete contiene herramientas que son comunes para cada
+implementación de Java(tm), como rmic o jar.
 
 %description java-tools -l pl
-Pakiet ten zawiera narzêdzia wspólne dla ka¿dej implementacji Javy(tm), takie
-jak rmic czy jar.
+Pakiet ten zawiera narzêdzia wspólne dla ka¿dej implementacji
+Javy(tm), takie jak rmic czy jar.
 
 %package -n libgcj
 Summary:       Java Class Libraries
+Summary(es):   Bibliotecas de clases de Java
 Summary(pl):   Biblioteki Klas Javy
 Group:         Libraries
 Version:       %{GCC_VERSION}
@@ -293,40 +383,52 @@ Obsoletes:        libgcj3
 %description -n libgcj
 Java Class Libraries.
 
+%description -n libgcj -l es
+Bibliotecas de clases de Java.
+
 %description -n libgcj -l pl
 Biblioteki Klas Javy.
 
 %package -n libgcj-devel
 Summary:       Development files for Java Class Libraries
+Summary(es):   Ficheros de desarrollo para las bibliotecas de clases de Java
 Summary(pl):   Pliki nag³ówkowe dla Bibliotek Klas Javy
 Group:         Development/Libraries
 Version:       %{GCC_VERSION}
-Requires:      libgcj = %{GCC_VERSION}
-Requires:      %{name}-java
+Requires:      %{name}-java = %{epoch}:%{GCC_VERSION}-%{release}
+Requires:      libgcj = %{epoch}:%{GCC_VERSION}-%{release}
 Obsoletes:     libgcj3-devel
 
 %description -n libgcj-devel
 Development files for Java Class Libraries.
 
+%description -n libgcj-devel -l es
+Ficheros de desarrollo para las bibliotecas de clases de Java.
+
 %description -n libgcj-devel -l pl
 Pliki nag³ówkowe dla Bibliotek Klas Javy.
 
 %package -n libgcj-static
 Summary:       Static Java Class Libraries
+Summary(es):   Bibliotecas estáticas de clases de Java
 Summary(pl):   Statyczne Biblioteki Klas Javy
 Group:         Development/Libraries
 Version:       %{GCC_VERSION}
-Requires:      libstdc++-devel = %{GCC_VERSION}
-Requires:      libgcj-devel = %{GCC_VERSION}
+Requires:      libgcj-devel = %{epoch}:%{GCC_VERSION}-%{release}
+Requires:      libstdc++-devel = %{epoch}:%{GCC_VERSION}-%{release}
 
 %description -n libgcj-static
 Static Java Class Libraries.
 
+%description -n libgcj-static -l es
+Bibliotecas estáticas de clases de Java.
+
 %description -n libgcj-static -l pl
 Statyczne Biblioteki Klas Javy.
 
 %package -n libstdc++
 Summary:       GNU c++ library
+Summary(es):   Biblioteca C++ de GNU
 Summary(pl):   Biblioteki GNU C++
 Summary(pt_BR):        Biblioteca C++ GNU
 Group:         Libraries
@@ -368,16 +470,17 @@ Bu paket, standart C++ kitapl
 uygulamalarýnýn koþturulmasý için gerekli kitaplýklarý içerir.
 
 %package -n libstdc++-devel
-Summary:       Header files and documentatino for C++ development
+Summary:       Header files and documentation for C++ development
 Summary(de):   Header-Dateien zur Entwicklung mit C++
+Summary(es):   Ficheros de cabecera y documentación para desarrollo C++
 Summary(fr):   Fichiers d'en-tête et biblitothèques pour développer en C++
 Summary(pl):   Pliki nag³ówkowe i dokumentacja do biblioteki standardowej C++
 Summary(pt_BR):        Arquivos de inclusão e bibliotecas para o desenvolvimento em C++
 Summary(tr):   C++ ile program geliþtirmek için gerekli dosyalar
 Group:         Development/Libraries
 Version:       %{GCC_VERSION}
-Requires:      libstdc++ = %{GCC_VERSION}
-Requires:      %{name}-c++ = %{GCC_VERSION}
+Requires:      %{name}-c++ = %{epoch}:%{GCC_VERSION}-%{release}
+Requires:      libstdc++ = %{epoch}:%{GCC_VERSION}-%{release}
 Obsoletes:     libg++-devel
 Obsoletes:     libstdc++3-devel
 
@@ -387,9 +490,9 @@ package includes the header files needed for C++ development and
 library documentation.
 
 %description -n libstdc++-devel -l es
-Este es el soporte de las bibliotecas padrón del lenguaje C++. Este paquete
-incluye los archivos de inclusión y bibliotecas necesarios para desarrollo de
-programas en lenguaje C++.
+Este es el soporte de las bibliotecas padrón del lenguaje C++. Este
+paquete incluye los archivos de inclusión y bibliotecas necesarios
+para desarrollo de programas en lenguaje C++.
 
 %description -n libstdc++-devel -l pl
 Pakiet ten zawiera biblioteki bêd±ce implementacj± standardowych
@@ -397,24 +500,29 @@ bibliotek C++. Znajduj
 programowaniu w jêzyku C++ oraz dokumentacja biblioteki standardowej.
 
 %description -n libstdc++-devel -l pt_BR
-Este pacote inclui os arquivos de inclusão e bibliotecas necessárias para
-desenvolvimento de programas C++.
+Este pacote inclui os arquivos de inclusão e bibliotecas necessárias
+para desenvolvimento de programas C++.
 
 %package -n libstdc++-static
 Summary:       Static C++ standard library
+Summary(es):   Biblioteca estándar estática de C++
 Summary(pl):   Statyczna biblioteka standardowa C++
 Group:         Development/Libraries
 Version:       %{GCC_VERSION}
-Requires:      libstdc++-devel = %{GCC_VERSION}
+Requires:      libstdc++-devel = %{epoch}:%{GCC_VERSION}-%{release}
 
 %description -n libstdc++-static
 Static C++ standard library.
 
+%description -n libstdc++-static -l es
+Biblioteca estándar estática de C++.
+
 %description -n libstdc++-static -l pl
-Statycza biblioteka standardowa C++.
+Statyczna biblioteka standardowa C++.
 
 %package -n libffi
 Summary:       Foreign Function Interface library
+Summary(es):   Biblioteca de interfaz de funciones ajenas
 Summary(pl):   Biblioteka zewnêtrznych wywo³añ funkcji
 Group:         Libraries
 Version:       %{GCC_VERSION}
@@ -425,56 +533,77 @@ interface to various calling conventions. This allows a programmer to
 call any function specified by a call interface description at run
 time.
 
+%description -n libffi -l es
+La biblioteca libffi provee una interfaz portable de programación de
+alto nivel para varias convenciones de llamada. Ello permite que un
+programador llame una función cualquiera especificada por una
+descripción de interfaz de llamada en el tiempo de ejecución.
+
 %description -n libffi -l pl
-Biblioteka libffi dostarcza przno¶nego, wysokopoziomowego miêdzymordzia
-do ró¿nych konwencji wywo³añ funkcji. Pozwala to programi¶cie wywo³ywaæ
-dowolne funkcje podaj±c konwencjê wywo³ania w czasie wykonania.
+Biblioteka libffi dostarcza przeno¶nego, wysokopoziomowego
+miêdzymordzia do ró¿nych konwencji wywo³añ funkcji. Pozwala to
+programi¶cie wywo³ywaæ dowolne funkcje podaj±c konwencjê wywo³ania w
+czasie wykonania.
 
 %package -n libffi-devel
 Summary:       Development files for Foreign Function Interface library
+Summary(es):   Ficheros de desarrollo para libffi
 Summary(pl):   Pliki nag³ówkowe dla libffi
 Group:         Development/Libraries
 Version:       %{GCC_VERSION}
-Requires:      libffi = %{GCC_VERSION}
+Requires:      libffi = %{epoch}:%{GCC_VERSION}-%{release}
 
 %description -n libffi-devel
 Development files for Foreign Function Interface library.
 
+%description -n libffi-devel -l es
+Ficheros de desarrollo para libffi.
+
 %description -n libffi-devel -l pl
 Pliki nag³ówkowe dla libffi.
 
 %package -n libffi-static
 Summary:       Static Foreign Function Interface library
+Summary(es):   Biblioteca libffi estática
 Summary(pl):   Statyczna biblioteka libffi
 Group:         Development/Libraries
 Version:       %{GCC_VERSION}
-Requires:      libffi-devel = %{GCC_VERSION}
+Requires:      libffi-devel = %{epoch}:%{GCC_VERSION}-%{release}
 
 %description -n libffi-static
 Static Foreign Function Interface library.
 
+%description -n libffi-static -l es
+Biblioteca libffi estática.
+
 %description -n libffi-static -l pl
 Statyczna biblioteka libffi.
 
 %package ada
 Summary:       Ada support for gcc
+Summary(es):   Soporte de Ada para gcc
 Summary(pl):   Obs³uga Ady do gcc
 Group:         Development/Languages
 Version:       %{GCC_VERSION}
-Requires:      libgnat = %{GCC_VERSION}
-Requires:      gcc = %{GCC_VERSION}
+Requires:      %{name} = %{epoch}:%{GCC_VERSION}-%{release}
+Requires:      libgnat = %{epoch}:%{GCC_VERSION}-%{release}
 Obsoletes:     gcc-gnat
 Obsoletes:     gnat-devel
 
 %description ada
 This package adds experimental support for compiling Ada programs.
 
-%description -l pl ada
-Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów
-w Adzie.
+%description ada -l es
+Este paquete añade soporte experimental para compilar programas en
+Ada.
+
+%description ada -l pl
+Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów w
+Adzie.
 
 %package -n libgnat
 Summary:       Ada standard libraries
+Summary(es):   Bibliotecas estándares de Ada
 Summary(pl):   Biblioteki standardowe dla Ady
 Group:         Libraries
 Version:       %{GCC_VERSION}
@@ -485,9 +614,13 @@ Obsoletes: libgnat1
 This package contains shared libraries needed to run programs written
 in Ada.
 
+%description -n libgnat -l es
+Este paquete contiene las bibliotecas compartidas necesarias para
+ejecutar programas escritos en Ada.
+
 %description -n libgnat -l pl
-Ten pakiet zawiera biblioteki potrzebne do uruchamiania programów napisanych
-w Adzie.
+Ten pakiet zawiera biblioteki potrzebne do uruchamiania programów
+napisanych w Adzie.
 
 %package -n libgnat-static
 Summary:       Static Ada standard libraries
@@ -505,25 +638,33 @@ Adzie.
 
 %package ksi
 Summary:       Ksi support for gcc
+Summary(es):   Soporte de Ksi para gcc
 Summary(pl):   Obs³uga Ksi dla gcc
 Version:       %{GCC_VERSION}.%{KSI_VERSION}
 Group:         Development/Languages
-Requires:      gcc = %{GCC_VERSION}
+Requires:      %{name} = %{epoch}:%{GCC_VERSION}-%{release}
 
 %description ksi
-This package adds experimental support for compiling Ksi programs
-into native code. You proabably don't need it, unless your are going
-to develop a compiler using Ksi as intermediate representation or
-you are using such compiler (like Gont).
+This package adds experimental support for compiling Ksi programs into
+native code. You proabably don't need it, unless your are going to
+develop a compiler using Ksi as intermediate representation or you are
+using such compiler (like Gont).
+
+%description ksi -l es
+Este paquete añade soporte experimental para compilar programas de Ksi
+en código nativo. Probablemento no lo necesitará, a menos que vaya a
+desarrollar un compilador que use Ksi como representación intermedia o
+use tal compilador (como Gont).
 
 %description ksi -l pl
-Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów
-w Ksi do kodu maszynowego. Prawdopodobnie nie potrzebujesz go, chyba
-¿e zamierzasz pisaæ kompilator u¿ywaj±cy Ksi jako reprezentacji
+Ten pakiet dodaje eksperymentalne wsparcie dla kompilacji programów w
+Ksi do kodu maszynowego. Prawdopodobnie nie potrzebujesz go, chyba ¿e
+zamierzasz pisaæ kompilator u¿ywaj±cy Ksi jako reprezentacji
 po¶rednicz±cej, lub u¿ywasz takiego kompilatora (jak Gont).
 
 %package -n cpp
 Summary:       The C Pre Processor
+Summary(es):   El preprocesador de C
 Summary(pl):   Preprocesor C
 Summary(pt_BR):        Preprocessador para a linguagem C
 Group:         Development/Languages
@@ -554,10 +695,30 @@ as you see fit:
   originally came from.
 
 %description -n cpp -l es
-Um preprocessador para a linguagem C.
+El preprocesador de C es un "procesador de macros" que es usado
+automáticamente por el compilador C para transformar su programa antes
+de que éste se actualmente compile. Se llama procesador de macros
+porque permite definir "macros", los que son abreviaciones concisas
+para construcciones más largas.
+
+El preprocesador C provee cuatro cualidadedes distintas que puede usar
+como le convenga:
+
+- Inclusión de ficheros de cabecera. Éstos son ficheros de
+  declaraciones que pueden incorporarse a su programa.
+- Expansión de macros. Puede definir "macros", los que son
+  abreviaciones para fragmentos arbitrarios de código C, y a lo largo
+  del programa el preprocesador sustituirá los macros con sus
+  definiciones.
+- Compilación condicional. Usando especiales directivas del preproceso
+  puede incluir o excluir partes del programa según varias condiciones.
+- Control de líneas. Si usa un programa para combinar o reorganizar el
+  código fuente en un fichero intermedio que luego es compilado, puede
+  usar control de líneas para informar el compilador de dónde origina
+  cada línea.
 
 %description -n cpp -l pl
-Przeprocesor C jest "makro procesorem" który jest automatycznie
+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
@@ -578,7 +739,7 @@ Preprocesor C umo
   s± zapamiêtywane informacje o tym, której linii pliku ¼ród³owego
   odpowiada fragment pliku wynikowego.
 
-%description  -n cpp -l pt_BR
+%description -n cpp -l pt_BR
 O preprocessador C é um "processador de macros", que é utilizado pelo
 compilador C para fazer algumas modificações no seu programa, antes da
 compilação em si. Ele é chamado de "processador de macros" porque
@@ -586,8 +747,8 @@ permite a voc
 mais complicadas.
 
 O preprocessador C fornece quatro funcionalidades básicas: inclusão de
-arquivos de cabeçalho; expansão de macros; compilação condicional;
-controle da numeração das linhas do programa.
+arquivos de cabeçalho; expansão de macros; compilação condicional; e
+controle da numeração das linhas do programa.
 
 %prep
 %setup -q -a1 -n %{name}-%{GCC_VERSION}
@@ -597,10 +758,19 @@ mv ksi-%{KSI_VERSION} gcc/ksi
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%{!?debug:%patch4 -p1}
+%patch5 -p1
+%ifarch alpha
+%patch6 -p1
+%endif
+%ifarch amd64
+# not sure if it wouldn't break x86 (it shouldn't, but better safe than sorry)
+%patch7 -p1
+%endif
 
 %patch10 -p1
-#%patch11
-#%patch12
+%patch11
+%patch12
 %patch13
 %patch14
 %patch15
@@ -617,26 +787,34 @@ mv ksi-%{KSI_VERSION} gcc/ksi
 
 # because we distribute modified version of gcc...
 perl -pi -e 's/(version.*)";/$1 (PLD Linux)";/' gcc/version.c
-perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld.org.pl/>";@' gcc/version.c
+perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld-linux.org/>";@' gcc/version.c
 
 %build
 # cd gcc && autoconf; cd ..
 # autoconf is not needed!
+cp /usr/share/automake/config.sub .
+
 rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform}
 
 CFLAGS="%{rpmcflags}" \
 CXXFLAGS="%{rpmcflags}" \
 TEXCONFIG=false ../configure \
        --prefix=%{_prefix} \
+       --libdir=%{_libdir} \
+       --libexecdir=%{_libexecdir} \
        --infodir=%{_infodir} \
        --mandir=%{_mandir} \
        --enable-shared \
        --enable-threads=posix \
        --enable-__cxa_atexit \
-       --enable-languages="c,c++,f77%{?!_without_objc:,objc}%{?_with_ada:,ada}%{!?_without_java:,java},ksi" \
+       --enable-languages="c,c++,f77%{?with_objc:,objc}%{?with_ada:,ada}%{?with_java:,java},ksi" \
        --enable-c99 \
        --enable-long-long \
+%ifarch amd64
+       --disable-multilib \
+%else
        --enable-multilib \
+%endif
        --enable-nls \
        --with-gnu-as \
        --with-gnu-ld \
@@ -647,24 +825,20 @@ TEXCONFIG=false ../configure \
 
 PATH=$PATH:/sbin:%{_sbindir}
 
-# this dirty hack is relict of setting, where objdir is subdir of srcdir
-%if 0%{?_with_ada:1}
-sed -e 's/srcdir=\$(fsrcdir)/srcdir=\$(fsrcdir) VPATH=\$(fsrcdir)/' \
-       gcc/ada/Makefile > makefile.tmp
-mv -f makefile.tmp gcc/ada/Makefile
-%endif
-
 cd ..
 %{__make} -C obj-%{_target_platform} bootstrap-lean \
+       GCJFLAGS="%{rpmcflags}" \
        LDFLAGS_FOR_TARGET="%{rpmldflags}" \
        mandir=%{_mandir} \
        infodir=%{_infodir}
 
-%if 0%{?_with_ada:0}
-%{__make} -C obj-%{_target_platform}/gcc gnatlib gnattools gnatlib-shared \
+%if %{with ada}
+for tgt in gnatlib gnattools gnatlib-shared; do
+%{__make} -C obj-%{_target_platform}/gcc $tgt \
        LDFLAGS_FOR_TARGET="%{rpmldflags}" \
        mandir=%{_mandir} \
        infodir=%{_infodir}
+done
 %endif
 
 %install
@@ -675,18 +849,25 @@ cd obj-%{_target_platform}
 PATH=$PATH:/sbin:%{_sbindir}
 
 %{__make} install \
+       mandir=%{_mandir} \
+       infodir=%{_infodir} \
        DESTDIR=$RPM_BUILD_ROOT
 
+%ifarch sparc64
+ln -f $RPM_BUILD_ROOT%{_bindir}/sparc64-pld-linux-gcc \
+       $RPM_BUILD_ROOT%{_bindir}/sparc-pld-linux-gcc
+%endif
+
 ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
 echo ".so gcc.1" > $RPM_BUILD_ROOT%{_mandir}/man1/cc.1
 
 ln -sf g77 $RPM_BUILD_ROOT%{_bindir}/f77
 echo ".so g77.1" > $RPM_BUILD_ROOT%{_mandir}/man1/f77.1
 
-%if 0%{?_with_ada:1}
+%if %{with ada}
 # move ada shared libraries to proper place...
-mv $RPM_BUILD_ROOT%{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/*.so.1 \
-       $RPM_BUILD_ROOT%{_libdir}/
+mv $RPM_BUILD_ROOT%{_libdir}/gcc-lib/*/*/adalib/*.so.1 \
+       $RPM_BUILD_ROOT%{_libdir}
 # check if symlink to be made is valid
 test -f $RPM_BUILD_ROOT%{_libdir}/libgnat-3.15.so.1
 ln -sf libgnat-3.15.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnat-3.15.so
@@ -699,7 +880,7 @@ ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
 
 cd ..
 
-%if %{!?_without_java:1}%{?_without_java:0}
+%if %{with java}
 install -d java-doc
 cp -f libjava/doc/cni.sgml libjava/READ* java-doc
 cp -f fastjar/README java-doc/README.fastjar
@@ -707,19 +888,19 @@ cp -f libffi/README java-doc/README.libffi
 cp -f libffi/LICENSE java-doc/LICENSE.libffi
 %endif
 
-%if %{?!_without_objc:1}0
+%if %{with objc}
 cp -f libobjc/README gcc/objc/README.libobjc
 %endif
 
 # avoid -L poisoning in *.la - there should be only -L%{_libdir}/gcc-lib/*/%{version}
-for f in libstdc++.la libsupc++.la %{!?_without_java:libgcj.la} ; do
+for f in libstdc++.la libsupc++.la %{?with_java:libgcj.la} ; do
        perl -pi -e 's@-L[^ ]*[acs.] @@g' $RPM_BUILD_ROOT%{_libdir}/$f
 done
 # normalize libdir, to avoid propagation of unnecessary RPATHs by libtool
 for f in libstdc++.la libsupc++.la libg2c.la \
-       %{!?_without_java:libgcj.la lib-org-w3c-dom.la lib-org-xml-sax.la libffi.la} \
-       %{!?_without_objc:libobjc.la}; do
-       perl -pi -e "s@^libdir='.*@libdir='/usr/lib'@" $RPM_BUILD_ROOT%{_libdir}/$f
+       %{?with_java:libgcj.la lib-org-w3c-dom.la lib-org-xml-sax.la libffi.la} \
+       %{?with_objc:libobjc.la}; do
+       perl -pi -e "s@^libdir='.*@libdir='/usr/%{_lib}'@" $RPM_BUILD_ROOT%{_libdir}/$f
 done
 
 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
@@ -727,15 +908,15 @@ mv -f $RPM_BUILD_ROOT%{_mandir}/ja/man1/{cccp,cpp}.1
 
 # include/ contains install-tools/include/* and headers that were fixed up
 # by fixincludes, we don't want former
-gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc-lib/%{_target_cpu}*/*/)
+gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc-lib/*/*/)
 mkdir $gccdir/tmp
 # we have to save these however
-mv -f $gccdir/include/{%{?!_without_objc:objc,}g2c.h,syslimits.h%{?!_without_java:,gcj}} $gccdir/tmp
+mv -f $gccdir/include/{%{?with_objc:objc,}g2c.h,syslimits.h%{?with_java:,gcj}} $gccdir/tmp
 rm -rf $gccdir/include
 mv -f $gccdir/tmp $gccdir/include
 cp $gccdir/install-tools/include/*.h $gccdir/include
 # but we don't want anything more from install-tools
-rm -rf $gccdir/install-tools/
+rm -rf $gccdir/install-tools
 
 %find_lang %{name}
 %find_lang libstdc\+\+
@@ -791,11 +972,9 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc READ* ChangeLog
-%dir %{_libdir}/gcc-lib
-%dir %{_libdir}/gcc-lib/%{_target_cpu}*
-%dir %{_libdir}/gcc-lib/%{_target_cpu}*/*
-%dir %{_libdir}/gcc-lib/%{_target_cpu}*/*/include
-%attr(755,root,root) %{_bindir}/%{_target_cpu}*-gcc
+%dir %{_libdir}/gcc-lib/*/*
+%dir %{_libdir}/gcc-lib/*/*/include
+%attr(755,root,root) %{_bindir}/*-gcc*
 %attr(755,root,root) %{_bindir}/gcc
 %attr(755,root,root) %{_bindir}/gccbug
 %attr(755,root,root) %{_bindir}/gcov
@@ -808,46 +987,51 @@ rm -rf $RPM_BUILD_ROOT
 %lang(ja) %{_mandir}/ja/man1/gcc.1*
 %{_infodir}/gcc*
 
-%attr(755,root,root) %{_slibdir}/lib*.so
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/libgcc.a
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/libgcc_eh.a
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/specs
-%attr(644,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/crt*.o
+%attr(755,root,root) %{_slibdir}*/lib*.so
+%{_libdir}/gcc-lib/*/*/libgcc.a
+%{_libdir}/gcc-lib/*/*/libgcc_eh.a
+%{_libdir}/gcc-lib/*/*/specs
+%{_libdir}*/gcc-lib/*/*/crt*.o
+%ifarch sparc64
+%{_libdir}/gcc-lib/*/*/*/libgcc.a
+%{_libdir}/gcc-lib/*/*/*/libgcc_eh.a
+%{_libdir}*/gcc-lib/*/*/*/crt*.o
+%endif
 %ifarch ppc
-%attr(644,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/ecrt*.o
-%attr(644,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/ncrt*.o
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/nof
+%{_libdir}/gcc-lib/*/*/ecrt*.o
+%{_libdir}/gcc-lib/*/*/ncrt*.o
+%{_libdir}/gcc-lib/*/*/nof
 %dir %{_libdir}/nof
 %endif
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/collect2
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/cc1
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/collect2
 
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/include/*.h
-%exclude %{_libdir}/gcc-lib/%{_target_cpu}*/*/include/g2c.h
+%{_libdir}/gcc-lib/*/*/include/*.h
+%exclude %{_libdir}/gcc-lib/*/*/include/g2c.h
 
 %files -n libgcc
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_slibdir}/lib*.so.*
+%attr(755,root,root) %{_slibdir}*/lib*.so.*
 
 %files c++
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/g++
-%attr(755,root,root) %{_bindir}/%{_target_cpu}*-g++
+%attr(755,root,root) %{_bindir}/*-g++
 %attr(755,root,root) %{_bindir}/c++
-%attr(755,root,root) %{_bindir}/%{_target_cpu}*-c++
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1plus
-%{_libdir}/libsupc++.la
+%attr(755,root,root) %{_bindir}/*-c++
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/cc1plus
+%{_libdir}*/libsupc++.la
 %ifarch ppc
 %{_libdir}/nof/libsupc++.la
 %{_libdir}/nof/libsupc++.a
 %endif
-%{_libdir}/libsupc++.a
+%{_libdir}*/libsupc++.a
 %{_mandir}/man1/g++.1*
 %lang(ja) %{_mandir}/ja/man1/g++.1*
 
 %files -n libstdc++ -f libstdc++.lang
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libstdc++.so.*.*.*
+%attr(755,root,root) %{_libdir}*/libstdc++.so.*.*.*
 %ifarch ppc
 %attr(755,root,root) %{_libdir}/nof/libstdc++.so.*.*.*
 %endif
@@ -857,8 +1041,8 @@ rm -rf $RPM_BUILD_ROOT
 %doc libstdc++-v3/docs/html
 %dir %{_includedir}/c++
 %{_includedir}/c++/%{GCC_VERSION}
-%attr(755,root,root) %{_libdir}/libstdc++.so
-%{_libdir}/libstdc++.la
+%attr(755,root,root) %{_libdir}*/libstdc++.so
+%{_libdir}*/libstdc++.la
 %ifarch ppc
 %attr(755,root,root) %{_libdir}/nof/libstdc++.so
 %{_libdir}/nof/libstdc++.la
@@ -866,34 +1050,34 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n libstdc++-static
 %defattr(644,root,root,755)
-%{_libdir}/libstdc++.a
+%{_libdir}*/libstdc++.a
 %ifarch ppc
 %{_libdir}/nof/libstdc++.a
 %endif
 
-%if %{?!_without_objc:1}0
+%if %{with objc}
 %files objc
 %defattr(644,root,root,755)
 %doc gcc/objc/READ*
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/cc1obj
-%attr(755,root,root) %{_libdir}/libobjc.so
-%{_libdir}/libobjc.la
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/cc1obj
+%attr(755,root,root) %{_libdir}*/libobjc.so
+%{_libdir}*/libobjc.la
 %ifarch ppc
 %attr(755,root,root) %{_libdir}/nof/libobjc.so
 %{_libdir}/nof/libobjc.la
 %endif
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/include/objc
+%{_libdir}/gcc-lib/*/*/include/objc
 
 %files -n libobjc
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libobjc.so.*.*.*
+%attr(755,root,root) %{_libdir}*/libobjc.so.*.*.*
 %ifarch ppc
 %attr(755,root,root) %{_libdir}/nof/libobjc.so.*.*.*
 %endif
 
 %files -n libobjc-static
 %defattr(644,root,root,755)
-%{_libdir}/libobjc.a
+%{_libdir}*/libobjc.a
 %ifarch ppc
 %{_libdir}/nof/libobjc.a
 %endif
@@ -904,16 +1088,16 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/g77
 %attr(755,root,root) %{_bindir}/f77
 %{_infodir}/g77*
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/f771
-%{_libdir}/libfrtbegin.a
-%{_libdir}/libg2c.la
-%attr(755,root,root) %{_libdir}/libg2c.so
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/f771
+%{_libdir}*/libfrtbegin.a
+%{_libdir}*/libg2c.la
+%attr(755,root,root) %{_libdir}*/libg2c.so
 %ifarch ppc
 %{_libdir}/nof/libfrtbegin.a
 %{_libdir}/nof/libg2c.la
 %attr(755,root,root) %{_libdir}/nof/libg2c.so
 %endif
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/include/g2c.h
+%{_libdir}/gcc-lib/*/*/include/g2c.h
 %{_mandir}/man1/g77.1*
 %{_mandir}/man1/f77.1*
 %lang(ja) %{_mandir}/ja/man1/g77.1*
@@ -921,19 +1105,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n libg2c
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libg2c.so.*.*.*
+%attr(755,root,root) %{_libdir}*/libg2c.so.*.*.*
 %ifarch ppc
 %attr(755,root,root) %{_libdir}/nof/libg2c.so.*.*.*
 %endif
 
 %files -n libg2c-static
 %defattr(644,root,root,755)
-%{_libdir}/libg2c.a
+%{_libdir}*/libg2c.a
 %ifarch ppc
 %{_libdir}/nof/libg2c.a
 %endif
 
-%if %{!?_without_java:1}%{?_without_java:0}
+%if %{with java}
 %files java
 %defattr(644,root,root,755)
 %doc java-doc/*
@@ -941,23 +1125,23 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/gij
 %attr(755,root,root) %{_bindir}/jcf-dump
 %attr(755,root,root) %{_bindir}/jv-*
-%attr(755,root,root) %{_bindir}/grepjar
-%attr(755,root,root) %{_bindir}/%{_target_cpu}*-gcj
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jc1
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/jvgenmain
+%attr(755,root,root) %{_bindir}/*-gcj
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/jc1
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/jvgenmain
 %{_infodir}/gcj*
 %{_mandir}/man1/jcf-*
 %{_mandir}/man1/jv-*
 %{_mandir}/man1/gij*
 %{_mandir}/man1/gcj*
-%{_mandir}/man1/grepjar*
 
 %files java-tools
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/rmi*
 %attr(755,root,root) %{_bindir}/jar
+%attr(755,root,root) %{_bindir}/grepjar
 %{_mandir}/man1/rmi*
 %{_mandir}/man1/jar*
+%{_mandir}/man1/grepjar*
 %{_infodir}/fastjar*
 
 %files -n libgcj
@@ -967,6 +1151,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/lib-org*.so.*.*.*
 %ifarch ppc
 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so.*
+%attr(755,root,root) %{_libdir}/nof/lib-org*.so.*
 %endif
 
 %files -n libgcj-devel
@@ -977,19 +1162,21 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/gcj
 %{_includedir}/j*.h
 %{_includedir}/gnu/*
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/include/gcj
+%{_libdir}/gcc-lib/*/*/include/gcj
 %dir %{_libdir}/security
 %{_libdir}/security/*
 %dir %{_datadir}/java
 %{_datadir}/java/libgcj*.jar
 %{_libdir}/lib*cj.spec
-%{_libdir}/lib*cj*.la
 %attr(755,root,root) %{_libdir}/lib*cj*.so
 %attr(755,root,root) %{_libdir}/lib-org-*.so
+%{_libdir}/lib*cj*.la
 %{_libdir}/lib-org-*.la
 %ifarch ppc
-%{_libdir}/nof/lib*cj*.la
 %attr(755,root,root) %{_libdir}/nof/lib*cj*.so
+%attr(755,root,root) %{_libdir}/nof/lib-org-*.so
+%{_libdir}/nof/lib*cj*.la
+%{_libdir}/nof/lib-org-*.la
 %endif
 
 %files -n libgcj-static
@@ -998,34 +1185,45 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/lib-org-*.a
 %ifarch ppc
 %{_libdir}/nof/lib*cj*.a
+%{_libdir}/nof/lib-org-*.a
 %endif
 
 %files -n libffi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libffi-*.so
+%ifarch ppc
+%attr(755,root,root) %{_libdir}/nof/libffi-*.so
+%endif
 
 %files -n libffi-devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libffi.so
 %{_libdir}/libffi.la
+%ifarch ppc
+%attr(755,root,root) %{_libdir}/nof/libffi.so
+%{_libdir}/nof/libffi.la
+%endif
 %{_includedir}/ffi*
 
 %files -n libffi-static
 %defattr(644,root,root,755)
 %{_libdir}/libffi.a
+%ifarch ppc
+%{_libdir}/nof/libffi.a
+%endif
 %endif
 
-%if 0%{?_with_ada:1}
+%if %{with ada}
 %files ada
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/gnat1
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/adainclude
-%dir %{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/*.ali
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/gnat1
+%{_libdir}/gcc-lib/*/*/adainclude
+%dir %{_libdir}/gcc-lib/*/*/adalib
+%{_libdir}/gcc-lib/*/*/adalib/*.ali
 %ifnarch ppc
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/libgmem.a
+%{_libdir}/gcc-lib/*/*/adalib/libgmem.a
 %endif
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/Makefile.adalib
+%{_libdir}/gcc-lib/*/*/adalib/Makefile.adalib
 %attr(755,root,root) %{_bindir}/gnat*
 %{_infodir}/gnat*
 %attr(755,root,root) %{_libdir}/libgnat*.so
@@ -1037,18 +1235,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n libgnat-static
 %defattr(644,root,root,755)
-%{_libdir}/gcc-lib/%{_target_cpu}*/*/adalib/libgna*.a
+%{_libdir}/gcc-lib/*/*/adalib/libgna*.a
 %endif
 
 %files ksi
 %defattr(644,root,root,755)
 %doc gcc/ksi/README gcc/ksi/NEWS gcc/ksi/t/*.{ksi,c,foo}
 %{_infodir}/ksi*
-%attr(755,root,root) %{_libdir}/gcc-lib/%{_target_cpu}*/*/ksi1
+%attr(755,root,root) %{_libdir}/gcc-lib/*/*/ksi1
 
 %files -n cpp
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_slibdir}/cpp
+%attr(755,root,root) /lib/cpp
 %attr(755,root,root) %{_bindir}/cpp
 %{_mandir}/man1/cpp.1*
 %lang(ja) %{_mandir}/ja/man1/cpp.1*
This page took 1.828538 seconds and 4 git commands to generate.