File cross-spu-newlib.spec of Package cross-spu-newlib
#
# spec file for package cross-spu-newlib (Version 1.17.0.2008_09_12)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cross-spu-newlib
Summary: GNU newlib C library
Version: 1.17.0.2008_09_12
Release: 6
%define cvs_version 2008-09-12
License: GPL v2 or later
Group: Development/Libraries/Cross
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: cross-spu-binutils cross-spu-gcc-static texinfo
Requires: cross-spu-newlib-headers
# When building the cross-toolchain, reset prefix directory and use sysroot
%define _prefix /opt/cross
Source0: newlib-%{cvs_version}.tar.bz2
Source1: cross-spu-newlib-rpmlintrc
Patch0: newlib.fix-missing-include.patch
%description
GNU newlib C library
%prep
%setup -q -n newlib
%patch0 -p1
%build
export PATH=/opt/cross/bin:$PATH
%define TARGET_ARCH spu
mkdir obj-%{TARGET_ARCH}
cd obj-%{TARGET_ARCH}
OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g'`
SPU_OPT_FLAGS="-O2 -g -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
CC="gcc $OPT_FLAGS"
CC="$CC" \
CFLAGS="$SPU_OPT_FLAGS" \
CXXFLAGS="$SPU_OPT_FLAGS" \
XCFLAGS="$OPT_FLAGS" \
TCFLAGS="$SPU_OPT_FLAGS" \
../configure \
--prefix=%{_prefix} \
--disable-shared \
--disable-threads \
--disable-checking \
--with-headers \
--disable-multilib \
--disable-nls \
--target=%{TARGET_ARCH}
make %{?jobs:-j%jobs}
%install
export PATH=/opt/cross/bin:$PATH
make -C obj-%{TARGET_ARCH} DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{TARGET_ARCH}/include
rm -rf $RPM_BUILD_ROOT%{_prefix}/share
rm -rf $RPM_BUILD_ROOT%{_prefix}/info
find $RPM_BUILD_ROOT%{_prefix} -type f -print0 | xargs -0 chmod -v 644
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_prefix}
%changelog
* Mon Dec 01 2008 sassmann@suse.de
- configure still not correct, add new options from (bnc #446587)
* Tue Nov 18 2008 sassmann@suse.de
- add "--target=spu" to configure for correct handling
(bnc #446587)
* Thu Nov 06 2008 rguenther@suse.de
- do not use sysroot
* Tue Oct 14 2008 sassmann@suse.de
- added missing include (newlib.fix-missing-include.patch)
* Wed Oct 08 2008 sassmann@suse.de
- updated to cvs version date "2008-09-12 08:00 GMT"
* compile fix if newlib gets compiled with GCC 4.3
* rebase against current simdmath (part of libm on the SPU)
* support for determining the SPU timebase
* Mon Sep 15 2008 sassmann@suse.de
- cross-spu-newlib-headers included generic header
files instead of specific spu header files
* Fri Jul 25 2008 sassmann@suse.de
- updated to cvs version date "2008-07-19 08:00 GMT"
(feature #304010)
* Mon Mar 17 2008 olh@suse.de
- accept all makeinfo versions, not just 4.9
* Tue Nov 13 2007 olh@suse.de
- update rpmlintrc to ignore binaries properly
* Fri Nov 09 2007 olh@suse.de
- build as noarch because the packages do not contain runtime binaries
split cross-spu-newlib-headers for cross-spu-gcc-static
* Mon May 14 2007 schwab@suse.de
- Make proper use of sys-root.
* Wed Apr 11 2007 sassmann@suse.de
- add new version 1.15