# TODO:
# - http://gcc.gnu.org/PR11203
# - http://gcc.gnu.org/PR14776
-# - http://gcc.gnu.org/PR17567
-#
-# - after 3.4.3 release snaps should go to DEVEL branch
+# - http://gcc.gnu.org/PR18648
+# - http://gcc.gnu.org/PR18676
#
# Conditional build:
%bcond_without ada # build without ADA support
%bcond_without java # build without Java support
-%bcond_without objc # build without objc support
+%bcond_without objc # build without ObjC support
%bcond_with ssp # build with stack-smashing protector support
#
-%define _snap 20041029
-#
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: 3.4.3
-Release: 0.%{_snap}.1
-#Release: 1
+Release: 2
Epoch: 5
License: GPL
Group: Development/Languages
-#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: f804426952f69c0b27d75d3e7cda03fc
-# Source0-size: 25077382
+Source0: ftp://gcc.gnu.org/pub/gcc/releases/gcc-%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: e744b30c834360fccac41eb7269a3011
Source1: http://ep09.pld-linux.org/~djrzulf/gcc33/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: 4736f3422ddfb808423b745629acc321
-# Source1-size: 63307
Source2: http://www.trl.ibm.com/projects/security/ssp/gcc2_95_3/gcc_stack_protect.m4.gz
# Source2-md5: 07d93ad5fc07ca44cdaba46c658820de
-# Source2-size: 667
Source3: gcc_visibility.m4
Patch0: %{name}-info.patch
Patch1: %{name}-nolocalefiles.patch
BuildRequires: texinfo >= 4.1
BuildRequires: zlib-devel
Requires: binutils >= 2:2.15.91.0.2
+Requires: gcc-dirs >= 1.0-3
Requires: libgcc = %{epoch}:%{version}-%{release}
Provides: cpp = %{epoch}:%{version}-%{release}
%{?with_ada:Provides: gcc(ada)}
Adzie.
%prep
-# prerelease
-#setup -q -n %{name}-%{version}-%{_snap} -a1
-# snapshot
-%setup -q -n %{name}-3.4-%{_snap} -a1
-# final
-#setup -q -n %{name}-%{version} -a1
+%setup -q -a1
%patch0 -p1
%patch1 -p1
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,%{_aclocaldir},%{_datadir},%{_infodir}}
%defattr(644,root,root,755)
%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}