LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cross-spu-newlib.spec of Package cross-spu-newlib (Project DISCONTINUED:openSUSE:11.1)

# spec file for package cross-spu-newlib (Version
# 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
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

GNU newlib C library

%setup -q -n newlib
%patch0 -p1

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'`
	CC="$CC" \
	../configure \
	--prefix=%{_prefix} \
	--disable-shared \
	--disable-threads \
	--disable-checking \
	--with-headers \
	--disable-multilib \
	--disable-nls \
make %{?jobs:-j%jobs}

export PATH=/opt/cross/bin:$PATH
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



* 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