Name: gcc Version: 4.5 Release: 1%{?dist} Summary: Various compilers (C, C++, Objective-C, Java, ...) Group: Development/Languages License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions URL: http://gcc.gnu.org Source0: gcc4.5.tar BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) #BuildRequires: #Requires: Patch0: gcc44-build-id.patch Patch1: gcc44-libtool-no-rpath.patch %description The gcc package contains the GNU Compiler Collection version 4.5. You'll need this package in order to compile C code %prep %setup -q %patch0 -p0 -b .build-id~ %patch1 -p0 -b .libtool-no-rpath~ %build ./configure --disable-rpath --disable-multilib make %{?_smp_mflags} %install echo "INSTALL" rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %changelog