#
# Conditional build:
-#
%bcond_without ada # build without ADA support
%bcond_without fortran # build without Fortran support
%bcond_without java # build without Java support
%bcond_without objc # build without ObjC support
+
+%bcond_with bootstrap
+
+%if %{with bootstrap}
+%undefine with_fortran
+%undefine with_java
+%undefine with_objc
+%endif
+
#
# TODO:
# - http://gcc.gnu.org/PR11203 (inline-asm)
# - disable internal zlib usage
# - translations from gcc.spec:HEAD
#
-%define _snap 20050102
+%define _snap 20050213
#
Summary: GNU Compiler Collection: the C compiler and shared files
Summary(pl): Kolekcja kompilatorów GNU: kompilator C i pliki wspó³dzielone
Name: gcc
Epoch: 5
Version: 4.0.0
-Release: 0.%{_snap}.0.4
+Release: 0.%{_snap}.1
License: GPL
Group: Development/Languages
#Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/gcc-%{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/4.0-%{_snap}/%{name}-4.0-%{_snap}.tar.bz2
-# Source0-md5: d5bf439e5a0653f503aaf6bf28609e33
+# Source0-md5: 56c68edf4047dc42aeda22186cedb40b
Patch0: %{name}-info.patch
Patch1: %{name}-nolocalefiles.patch
Patch2: %{name}-nodebug.patch
Patch3: %{name}-ada-link-new-libgnat.patch
Patch4: %{name}-ada-link.patch
-Patch5: %{name}-pr18910.patch
-Patch6: %{name}-pr19030.patch
-Patch7: %{name}-pr18241.patch
URL: http://gcc.gnu.org/
BuildRequires: autoconf
BuildRequires: automake
# final
#setup -q -n gcc-%{version}
-#patch0 -p1 NEEDS UPDATE
+%patch0 -p1
%patch1 -p1
%{!?debug:%patch2 -p1}
%patch3 -p1
%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
# because we distribute modified version of gcc...
perl -pi -e 's/(version.*)";/$1 (PLD Linux)";/' gcc/version.c
--enable-nls \
--with-gnu-as \
--with-gnu-ld \
+ --with-demangler-in-ld \
--with-system-zlib \
--with-slibdir=%{_slibdir} \
--without-x \
cd ..
%{__make} -C obj-%{_target_platform} \
- profiledbootstrap \
+ %{!?with_bootstrap:profiledbootstrap} \
GCJFLAGS="%{rpmcflags}" \
BOOT_CFLAGS="%{rpmcflags}" \
- STAGE1_CFLAGS="%{rpmcflags}" \
+ STAGE1_CFLAGS="%{rpmcflags} -O0" \
LDFLAGS_FOR_TARGET="%{rpmldflags}" \
mandir=%{_mandir} \
infodir=%{_infodir}
$RPM_BUILD_ROOT%{_bindir}/sparc-pld-linux-gcc
%endif
+ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
ln -sf gcc $RPM_BUILD_ROOT%{_bindir}/cc
echo ".so gcc.1" > $RPM_BUILD_ROOT%{_mandir}/man1/cc.1
ln -sf libgnarl-4.0.so.1 $RPM_BUILD_ROOT%{_libdir}/libgnarl-4.0.so
ln -sf libgnat-4.0.so $RPM_BUILD_ROOT%{_libdir}/libgnat.so
ln -sf libgnarl-4.0.so $RPM_BUILD_ROOT%{_libdir}/libgnarl.so
-ln -sf %{_bindir}/cpp $RPM_BUILD_ROOT/lib/cpp
%endif
cd ..
%{?with_objc:mv -f $gccdir/include/objc $gccdir/tmp}
mv -f $gccdir/include/syslimits.h $gccdir/tmp
rm -rf $gccdir/include
- mv -f $gccdir/tmp $gccdir/include
+mv -f $gccdir/tmp $gccdir/include
cp -f $gccdir/install-tools/include/*.h $gccdir/include
# but we don't want anything more from install-tools
rm -rf $gccdir/install-tools
%{_libdir}/gcc/*/*/include/gcj
%dir %{_libdir}/security
%{_libdir}/security/*
-%dir %{_datadir}/java
-%{_datadir}/java/libgcj*.jar
+%{_javadir}/libgcj*.jar
%{_libdir}/lib*cj.spec
%{_libdir}/lib*cj*.la
%attr(755,root,root) %{_libdir}/lib*cj*.so