All pastes #900467 Raw Edit

Something

public text v1 · immutable
·published 2008-02-11 22:43 UTC
rendered paste body

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=/usr

%install
cd binutils-build
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc

make install_root=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
/*