Summary: Binutils, necessary for a system! Name: binutils Version: 2.18 Release: 1 License: GPL Group: System/Base Source0: http://ftp.gnu.org/gnu/binutils/%{name}-%{version}.tar.bz2 Patch0: http://www.linuxfromscratch.org/patches/lfs/development/%{name}-%{version}-configure-1.patch BuildRoot: %{_tmppath}/%{name}-buildroot %description The Binutils package contains a linker, an assembler, and other tools for handling object files. %prep %setup -q -c cd %{name}-%{version} %patch -p1 -b .buildroot %build mkdir binutils-build cd binutils-build CFLAGS="-pipe -O2 -march=i686" \ CXXFLAGS="-pipe -O2 -march=i686" \ ../%{name}-%{version}/configure --prefix=/usr \ --enable-shared make -j6 tooldir=$RPM_BUILD_ROOT/usr %install cd binutils-build make tooldir=$RPM_BUILD_ROOT/usr install %clean %files %defattr(-,root,root) /*