File cross-arm-linux-gcc-bootstrap.spec of Package master-gcc-bootstrap

Summary: Bootstrap C compiler for the arm-linux architecture
Name: cross-arm-linux-gcc-bootstrap
Version: 4.4.1
Release: 0
License: GPLv2
Group: Development/Cross
URL: http://ftp.gnu.org/gnu/gcc
BuildRequires:	cross-arm-linux-binutils cross-arm-linux-kernel-headers mpfr-devel gmp-devel
Source0: http://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-core-%{version}.tar.bz2
# Re-generate this specfile using
# sed -e 's,@template@,arm-linux,g'
Source1: cross-template-gcc-bootstrap.spec
Patch1:	compile-fixes
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
AutoReqProv:	off

%description 
This package contains the compiler to generate initial programs to run on
arm-linux .

Architectures supported so far include:
arm-linux-gnueabi ppc-linux-gnueabi mips-linux

%prep
%setup -q -n gcc-%{version}
%patch1 -p1
mkdir obj

%build
cd obj
../configure --prefix=/opt/cross --enable-bootstrap=no --build=`arch`-suse-linux --target=arm-linux --disable-libmudflap --disable-nls --disable-c-mbchar --enable-languages=c --disable-threads --disable-shared --disable-multilib --with-float=soft --with-sysroot=/opt/cross/arm-linux --disable-libssp --with-newlib
# --enable-decimal-float=no
make all-gcc all-target-libgcc

%install
rm -rf $RPM_BUILD_ROOT
make -C obj DESTDIR=$RPM_BUILD_ROOT install-gcc install-target-libgcc
rm -rf $RPM_BUILD_ROOT/opt/cross/info $RPM_BUILD_ROOT/opt/cross/lib*/libiberty.a 
rm -rf $RPM_BUILD_ROOT/opt/cross/man $RPM_BUILD_ROOT/opt/cross/share/locale


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
/opt/cross

%changelog
* Mon Apr 20 2009 Torsten Duwe <duwe@suse.de> - kernel-headers
- Initial build.

openSUSE Build Service is sponsored by