#
+# TODO:
+# - http://gcc.gnu.org/PR11203
+# - http://gcc.gnu.org/PR17384
+# - http://gcc.gnu.org/PR17567
+#
# Conditional build:
%bcond_without ada # build without ADA support
%bcond_without java # build without Java support
%bcond_without objc # build without objc support
+%bcond_with ssp # build with stack-smashing protector support
#
-%define GCC_VERSION 3.4.0
+%define _snap 20041008
#
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
+Version: 3.4.3
+Release: 0.%{_snap}.1
+#Release: 1
Epoch: 5
License: GPL
Group: Development/Languages
-Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5: 85c6fc83d51be0fbb4f8205accbaff59
+#Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/%{name}-%{version}.tar.bz2
+#Source0: ftp://gcc.gnu.org/pub/gcc/prerelease-%{version}-%{_snap}/gcc-%{version}-%{_snap}.tar.bz2
+Source0: ftp://gcc.gnu.org/pub/gcc/snapshots/3.4-%{_snap}/gcc-3.4-%{_snap}.tar.bz2
+# Source0-md5: 9e5a58db111be1b31227b5a1139a740b
Source1: http://ep09.pld-linux.org/~djrzulf/gcc33/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: 4736f3422ddfb808423b745629acc321
+Source2: http://www.trl.ibm.com/projects/security/ssp/gcc2_95_3/gcc_stack_protect.m4.gz
+# Source2-md5: 07d93ad5fc07ca44cdaba46c658820de
Patch0: %{name}-info.patch
Patch1: %{name}-nolocalefiles.patch
Patch2: %{name}-ada-link-new-libgnat.patch
Patch3: %{name}-nodebug.patch
+Patch4: %{name}-ssp.patch
+Patch5: %{name}-ada-link.patch
+Patch6: %{name}-pr15666.patch
+Patch7: %{name}-pr16276.patch
+Patch8: %{name}-ada-bootstrap.patch
+#
+# -fvisibility={default|internal|hidden|protected}
+#
+# Set the default ELF image symbol visibility to the specified option.
+# All symbols will be marked with this unless overrided within the code.
+# Using this feature can very substantially improve linking and load times
+# of shared object libraries, produce more optimised code, provide near-perfect
+# API export and prevent symbol clashes. It is strongly recommended that you
+# use this in any shared objects you distribute.
+#
+# -fvisibility-inlines-hidden
+#
+# Causes all inlined methods to be marked with __attribute__((visibility("hidden")))
+# so that they do not appear in the export table of a DSO and do not require a PLT
+# indirection when used within the DSO. Enabling this option can have a dramatic
+# effect on load and link times of a DSO as it massively reduces the size
+# of the dynamic export table when the library makes heavy use of templates.
+# While it can cause bloating through duplication of code within each DSO
+# where it is used, often the wastage is less than the considerable space
+# occupied by a long symbol name in the export table which is typical when using
+# templates and namespaces.
+#
+# How to Write Shared Libraries: http://people.redhat.com/drepper/dsohowto.pdf
+#
+Patch9: %{name}-visibility.patch
+#
+URL: http://gcc.gnu.org/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: binutils >= 2.14
+BuildRequires: binutils >= 2.15.91.0.2
BuildRequires: bison
BuildRequires: fileutils >= 4.0.41
BuildRequires: flex
%endif
BuildRequires: gettext-devel
BuildRequires: glibc-devel >= 2.2.5-20
+BuildRequires: gzip
BuildRequires: perl-devel
BuildRequires: texinfo >= 4.1
BuildRequires: zlib-devel
-Requires: binutils >= 2.14
-Requires: cpp = %{epoch}:%{version}-%{release}
+Requires: binutils >= 2.15.91.0.2
Requires: libgcc = %{epoch}:%{version}-%{release}
+Provides: cpp = %{epoch}:%{version}-%{release}
%{?with_ada:Provides: gcc(ada)}
+%{?with_ssp:Provides: gcc(ssp)}
+# ksi for gcc > 3.3.x not ready yet
+Obsoletes: cpp
+Obsoletes: egcs-cpp
+Obsoletes: gcc-cpp
+Obsoletes: gcc-ksi
+Obsoletes: gont
Conflicts: glibc-devel < 2.2.5-20
-URL: http://gcc.gnu.org/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _slibdir /%{_lib}
%define _libdir /usr/lib
%define rpmcflags -O2 -mtune=ultrasparc
%endif
-%define specflags -fPIC
%description
A compiler aimed at integrating all the optimizations and features
Summary(pl): Obs³uga C++ dla gcc
Summary(pt_BR): Suporte C++ para o gcc
Group: Development/Languages
+Requires: %{name} = %{epoch}:%{version}-%{release}
Obsoletes: egcc-c++
Obsoletes: egcs-c++
-Requires: gcc = %{epoch}:%{version}-%{release}
%description c++
This package adds C++ support to the GNU Compiler Collection. It
Summary(pl): Obs³uga obiektowego C dla kompilatora gcc
Summary(tr): gcc için Objective C desteði
Group: Development/Languages
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: libobjc = %{epoch}:%{version}-%{release}
Obsoletes: egcc-objc
Obsoletes: egcs-objc
-Requires: libobjc = %{epoch}:%{version}-%{release}
-Requires: gcc = %{epoch}:%{version}-%{release}
%description objc
This package adds Objective C support to the GNU Compiler Collection.
Summary(pl): Obs³uga Fortranu 77 dla gcc
Summary(pt_BR): Suporte Fortran 77 para o GCC
Group: Development/Languages/Fortran
-Obsoletes: egcs-g77
Requires: libg2c = %{epoch}:%{version}-%{release}
+Obsoletes: egcs-g77
%description g77
This package adds support for compiling Fortran 77 programs with the
Summary(pl): Obs³uga Javy dla gcc
Group: Development/Languages/Java
Requires: %{name} = %{epoch}:%{version}-%{release}
-Requires: libgcj >= 3.0.0
-Requires: libgcj-devel >= 3.0.0
+Requires: libgcj = %{epoch}:%{version}-%{release}
+Requires: libgcj-devel = %{epoch}:%{version}-%{release}
Requires: java-shared
Provides: gcj = %{epoch}:%{version}-%{release}
Summary(es): Ficheros de desarrollo para las bibliotecas de clases de Java
Summary(pl): Pliki nag³ówkowe dla Bibliotek Klas Javy
Group: Development/Libraries
+Requires: %{name}-java = %{epoch}:%{version}-%{release}
Requires: libgcj = %{epoch}:%{version}-%{release}
-Requires: %{name}-java
-Requires: pkgconfig
Obsoletes: libgcj3-devel
%description -n libgcj-devel
Summary(es): Bibliotecas estáticas de clases de Java
Summary(pl): Statyczne Biblioteki Klas Javy
Group: Development/Libraries
-Requires: libstdc++-devel = %{epoch}:%{version}-%{release}
Requires: libgcj-devel = %{epoch}:%{version}-%{release}
+Requires: libstdc++-devel = %{epoch}:%{version}-%{release}
%description -n libgcj-static
Static Java Class Libraries.
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
-Requires: libstdc++ = %{epoch}:%{version}-%{release}
Requires: %{name}-c++ = %{epoch}:%{version}-%{release}
+Requires: libstdc++ = %{epoch}:%{version}-%{release}
Obsoletes: libg++-devel
Obsoletes: libstdc++3-devel
Summary(es): Soporte de Ada para gcc
Summary(pl): Obs³uga Ady do gcc
Group: Development/Languages
+Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: libgnat = %{epoch}:%{version}-%{release}
-Requires: gcc = %{epoch}:%{version}-%{release}
Obsoletes: gcc-gnat
Obsoletes: gnat-devel
Ten pakiet zawiera biblioteki statyczne dla programów napisanych w
Adzie.
-%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
-Version: %{GCC_VERSION}
-Obsoletes: egcs-cpp
-Obsoletes: gcc-cpp
-
-%description -n cpp
-The C preprocessor is a "macro processor" that is used automatically
-by the C compiler to transform your program before actual compilation.
-It is called a macro processor because it allows you to define
-"macros", which are brief abbreviations for longer constructs.
-
-The C preprocessor provides four separate facilities that you can use
-as you see fit:
-
-- Inclusion of header files. These are files of declarations that can
- be substituted into your program.
-- Macro expansion. You can define "macros", which are abbreviations
- for arbitrary fragments of C code, and then the C preprocessor will
- replace the macros with their definitions throughout the program.
-- Conditional compilation. Using special preprocessing directives, you
- can include or exclude parts of the program according to various
- conditions.
-- Line control. If you use a program to combine or rearrange source
- files into an intermediate file which is then compiled, you can use
- line control to inform the compiler of where each source line
- originally came from.
-
-%description -n cpp -l es
-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
-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
- indentyfikatora 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.
-
-%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
-permite a você definir "macros", que são abreviações para construções
-mais complicadas.
-
-O preprocessador C fornece quatro funcionalidades básicas: inclusão de
-arquivos de cabeçalho; expansão de macros; compilação condicional; e
-controle da numeração das linhas do programa.
-
%prep
-%setup -q -a1
+# prerelease
+#setup -q -n %{name}-%{version}-%{_snap} -a1
+# snapshot
+%setup -q -n %{name}-3.4-%{_snap} -a1
+# final
+#setup -q -n %{name}-%{version} -a1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%{!?debug:%patch3 -p1}
+%{?with_ssp:%patch4 -p1}
+%patch5 -p1
+%patch6 -p0
+%patch7 -p0
+%ifarch alpha ia64
+# needed for bootstrap using gcc 3.3.x on alpha
+# and even using the same 3.4.x(!) (but not Debian's 3.3.x) on ia64
+%patch8 -p2
+%endif
+%patch9 -p1
# because we distribute modified version of gcc...
-perl -pi -e 's/(version.*)";/$1 (PLD Linux)";/' gcc/version.c
+perl -pi -e 's/(version.*)";/$1 %{?with_ssp:SSP }(PLD Linux)";/' gcc/version.c
perl -pi -e 's@(bug_report_url.*<URL:).*";@$1http://bugs.pld-linux.org/>";@' gcc/version.c
mv ChangeLog ChangeLog.general
%build
-# cd gcc && autoconf; cd ..
-# autoconf is not needed!
-cp /usr/share/automake/config.sub .
+# because pr16276 patch modifies configure.ac
+cd gcc
+%{__autoconf}
+cd ..
+cp -f /usr/share/automake/config.sub .
rm -rf obj-%{_target_platform} && install -d obj-%{_target_platform} && cd obj-%{_target_platform}
PATH=$PATH:/sbin:%{_sbindir}
cd ..
-%{__make} -C obj-%{_target_platform} profiledbootstrap \
+# - on alpha stage1 needs -O0 for 3.3->3.4 bootstrap (gnat from 3.3 is seriously broken)
+# - on ia64 use bootstrap-lean as profiledbootstrap is broken (PR 13882, 15836, 16108)
+%{__make} -C obj-%{_target_platform} \
+%ifarch ia64
+ bootstrap-lean \
+%else
+ profiledbootstrap \
+%endif
GCJFLAGS="%{rpmcflags}" \
BOOT_CFLAGS="%{rpmcflags}" \
+%ifarch alpha
+ STAGE1_CFLAGS="%{rpmcflags} -O0" \
+%else
STAGE1_CFLAGS="%{rpmcflags}" \
+%endif
LDFLAGS_FOR_TARGET="%{rpmldflags}" \
mandir=%{_mandir} \
infodir=%{_infodir}
%if %{with ada}
-%{__make} -C obj-%{_target_platform}/gcc gnatlib gnattools gnatlib-shared \
- CFLAGS="%{rpmcflags}" \
- CXXFLAGS="%{rpmcflags}" \
+# cannot build it in parallel
+for tgt in gnatlib-shared gnattools gnatlib; do
+%{__make} -C obj-%{_target_platform}/gcc $tgt \
+ BOOT_CFLAGS="%{rpmcflags}" \
LDFLAGS_FOR_TARGET="%{rpmldflags}" \
mandir=%{_mandir} \
infodir=%{_infodir}
+done
%endif
+# snapshot doesn't contain these files...
+[ -r "NEWS" ] || touch NEWS
+[ -r "gcc/f/BUGS" ] || touch gcc/f/BUGS
+[ -r "gcc/f/NEWS" ] || touch gcc/f/NEWS
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/lib,%{_datadir},%{_infodir}}
+install -d $RPM_BUILD_ROOT{/lib,%{_aclocaldir},%{_datadir},%{_infodir}}
cd obj-%{_target_platform}
PATH=$PATH:/sbin:%{_sbindir}
-%{__make} install \
+%{__make} -j1 install \
mandir=%{_mandir} \
infodir=%{_infodir} \
DESTDIR=$RPM_BUILD_ROOT
%if %{with ada}
# move ada shared libraries to proper place...
-mv $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/adalib/*.so \
+mv -f $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/adalib/*.so.1 \
$RPM_BUILD_ROOT%{_libdir}
+# check if symlink to be made is valid
+test -f $RPM_BUILD_ROOT%{_libdir}/libgnat-3.4.so.1
+ln -sf libgnat-3.4.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnat-3.4.so
+ln -sf libgnarl-3.4.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnarl-3.4.so
+ln -sf libgnat-3.4.so $RPM_BUILD_ROOT%{_libdir}/libgnat.so
+ln -sf libgnarl-3.4.so $RPM_BUILD_ROOT%{_libdir}/libgnarl.so
%endif
ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
gccdir=$(echo $RPM_BUILD_ROOT%{_libdir}/gcc/*/*/)
mkdir $gccdir/tmp
# we have to save these however
-mv -f $gccdir/include/{%{?with_objc:objc,}g2c.h,syslimits.h%{?with_java:,gcj}} $gccdir/tmp
+mv -f $gccdir/include/{%{?with_objc:objc,}g2c.h,syslimits.h%{?with_java:,libffi/ffitarget.h,gcj}} $gccdir/tmp
rm -rf $gccdir/include
mv -f $gccdir/tmp $gccdir/include
cp $gccdir/install-tools/include/*.h $gccdir/include
%find_lang %{name}
%find_lang libstdc\+\+
+%if %{with ssp}
+zcat %{SOURCE2} > $RPM_BUILD_ROOT%{_aclocaldir}/gcc_stack_protect.m4
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
%postun java
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-%post -n cpp
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
-%postun -n cpp
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
%post -p /sbin/ldconfig -n libgcc
%postun -p /sbin/ldconfig -n libgcc
%post -p /sbin/ldconfig -n libstdc++
%post -p /sbin/ldconfig -n libffi
%postun -p /sbin/ldconfig -n libffi
-%files -f %{name}.lang
+%files -f gcc.lang
%defattr(644,root,root,755)
-%doc ChangeLog.general MAINTAINERS bugs.html faq.html
-%doc gcc/{README.Portability,NEWS,ChangeLog}
+%doc ChangeLog.general MAINTAINERS NEWS bugs.html faq.html
+%doc gcc/{ChangeLog,ONEWS,README.Portability}
%dir %{_libdir}/gcc
%dir %{_libdir}/gcc/*
%dir %{_libdir}/gcc/*/*
%dir %{_libdir}/gcc/*/*/include
+%{?with_ssp:%{_aclocaldir}/gcc_stack_protect.m4}
+
%attr(755,root,root) %{_bindir}/*-gcc*
%attr(755,root,root) %{_bindir}/gcc
%attr(755,root,root) %{_bindir}/gccbug
%attr(755,root,root) %{_bindir}/gcov
%attr(755,root,root) %{_bindir}/cc
+%attr(755,root,root) %{_bindir}/cpp
-%{_mandir}/man1/gcc.1*
%{_mandir}/man1/cc.1*
-%{_mandir}/man1/gcov.1*
+%{_mandir}/man1/cpp.1*
+%lang(ja) %{_mandir}/ja/man1/cpp.1*
+%{_mandir}/man1/gcc.1*
%lang(fr) %{_mandir}/fr/man1/gcc.1*
%lang(ja) %{_mandir}/ja/man1/gcc.1*
+%{_mandir}/man1/gcov.1*
+
+%{_infodir}/cpp*
%{_infodir}/gcc*
+%attr(755,root,root) /lib/cpp
+
%attr(755,root,root) %{_slibdir}*/lib*.so
%{_libdir}/gcc/*/*/libgcov.a
%{_libdir}/gcc/*/*/libgcc.a
%files c++
%defattr(644,root,root,755)
+%doc gcc/cp/{ChangeLog,NEWS}
%attr(755,root,root) %{_bindir}/g++
%attr(755,root,root) %{_bindir}/*-g++
%attr(755,root,root) %{_bindir}/c++
%files -n libstdc++ -f libstdc++.lang
%defattr(644,root,root,755)
+%doc libstdc++-v3/{ChangeLog,README}
%attr(755,root,root) %{_libdir}*/libstdc++.so.*.*.*
%ifarch ppc
%attr(755,root,root) %{_libdir}/nof/libstdc++.so.*.*.*
%if %{with objc}
%files objc
%defattr(644,root,root,755)
-%doc gcc/objc/READ*
+%doc gcc/objc/README
%attr(755,root,root) %{_libdir}/gcc/*/*/cc1obj
%attr(755,root,root) %{_libdir}*/libobjc.so
%{_libdir}*/libobjc.la
%files -n libobjc
%defattr(644,root,root,755)
+%doc libobjc/{ChangeLog,README*}
%attr(755,root,root) %{_libdir}*/libobjc.so.*.*.*
%ifarch ppc
%attr(755,root,root) %{_libdir}/nof/libobjc.so.*.*.*
%files g77
%defattr(644,root,root,755)
+%doc gcc/f/{BUGS,ChangeLog,NEWS}
%attr(755,root,root) %{_bindir}/g77
%attr(755,root,root) %{_bindir}/f77
%{_infodir}/g77*
%files -n libg2c
%defattr(644,root,root,755)
+%doc libf2c/{ChangeLog,README,TODO}
%attr(755,root,root) %{_libdir}*/libg2c.so.*.*.*
%ifarch ppc
%attr(755,root,root) %{_libdir}/nof/libg2c.so.*.*.*
%if %{with java}
%files java
%defattr(644,root,root,755)
-%doc java-doc/*
+%doc gcc/java/ChangeLog java-doc/*
%attr(755,root,root) %{_bindir}/gcj*
%attr(755,root,root) %{_bindir}/gij
%attr(755,root,root) %{_bindir}/jcf-dump
%files -n libgcj
%defattr(644,root,root,755)
+%doc libjava/{ChangeLog,LIBGCJ_LICENSE,NEWS,README,THANKS}
%attr(755,root,root) %{_bindir}/addr2name.awk
%attr(755,root,root) %{_libdir}/lib*cj*.so.*.*.*
%attr(755,root,root) %{_libdir}/lib-org*.so.*.*.*
%ifarch ppc
%attr(755,root,root) %{_libdir}/nof/lib*cj*.so.*
%endif
+%{_libdir}/logging.properties
%files -n libgcj-devel
%defattr(644,root,root,755)
%files -n libffi
%defattr(644,root,root,755)
+%doc libffi/{ChangeLog,ChangeLog.libgcj,LICENSE,README}
%attr(755,root,root) %{_libdir}/libffi-*.so
%files -n libffi-devel
%defattr(644,root,root,755)
+%{_libdir}/gcc/*/*/include/ffitarget.h
%attr(755,root,root) %{_libdir}/libffi.so
%{_libdir}/libffi.la
-%{_includedir}/ffi*
+%{_includedir}/ffi.h
%files -n libffi-static
%defattr(644,root,root,755)
%if %{with ada}
%files ada
%defattr(644,root,root,755)
+%doc gcc/ada/ChangeLog
%attr(755,root,root) %{_bindir}/gnat*
%attr(755,root,root) %{_bindir}/gpr*
+%attr(755,root,root) %{_libdir}/libgnarl*.so
+%attr(755,root,root) %{_libdir}/libgnat*.so
%attr(755,root,root) %{_libdir}/gcc/*/*/gnat1
%{_libdir}/gcc/*/*/adainclude
%dir %{_libdir}/gcc/*/*/adalib
%{_libdir}/gcc/*/*/adalib/*.ali
-%ifnarch ppc
+%{_libdir}/gcc/*/*/adalib/g-trasym.o
+%{_libdir}/gcc/*/*/adalib/libgccprefix.a
+%ifarch %{ix86}
%{_libdir}/gcc/*/*/adalib/libgmem.a
%endif
+%{_datadir}/gnat
%{_infodir}/gnat*
%files -n libgnat
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgnarl*.so
-%attr(755,root,root) %{_libdir}/libgnat*.so
+%attr(755,root,root) %{_libdir}/libgnarl*.so.1
+%attr(755,root,root) %{_libdir}/libgnat*.so.1
%files -n libgnat-static
%defattr(644,root,root,755)
%{_libdir}/gcc/*/*/adalib/libgnarl.a
%{_libdir}/gcc/*/*/adalib/libgnat.a
%endif
-
-%files -n cpp
-%defattr(644,root,root,755)
-%attr(755,root,root) /lib/cpp
-%attr(755,root,root) %{_bindir}/cpp
-%{_mandir}/man1/cpp.1*
-%lang(ja) %{_mandir}/ja/man1/cpp.1*
-%{_infodir}/cpp*