LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

#
# spec file for package cross-spu-newlib-headers (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-headers
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
# When building the cross-toolchain, reset prefix directory and use sysroot
%define _prefix /opt/cross
%define CrossHost `../config.guess`
Source0:        newlib-%{cvs_version}.tar.bz2
Source1:        cross-spu-newlib-rpmlintrc
Patch0:         newlib.fix-missing-include.patch

%description
header files for GNU newlib C library



%prep
%setup -q -n newlib
%patch0 -p1

%build
#need to run configure because it generates newlib.h
cd newlib
./configure --build=%{CrossHost} --with-cross-host=%{CrossHost} --host=spu --target=spu
cd ..

%install
mkdir -p $RPM_BUILD_ROOT%{_prefix}/spu/include/machine
mkdir -p $RPM_BUILD_ROOT%{_prefix}/spu/include/sys
for i in newlib/libc/include/*.h; do \
   if [ -f $i ]; then \
     cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/`basename $i`; \
   else true; fi ; \
done
for i in newlib/libc/include/machine/*.h; do \
   if [ -f $i ]; then \
     cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/machine/`basename $i`; \
   else true; fi ; \
done
for i in newlib/libc/include/sys/*.h; do \
   if [ -f $i ]; then \
     cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/sys/`basename $i`; \
   else true; fi ; \
done
for i in newlib/libc/machine/spu/sys/*.h; do \
   if [ -f $i ]; then \
     cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/sys/`basename $i`; \
   else true; fi ; \
done
for i in newlib/libc/machine/spu/include/*.h; do \
   if [ -f $i ]; then \
     cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/`basename $i`; \
   else true; fi ; \
done
for i in newlib/libc/machine/spu/machine/*.h; do \
   if [ -f $i ]; then \
     cp $i ${RPM_BUILD_ROOT}%{_prefix}/spu/include/machine/`basename $i`; \
   else true; fi ; \
done
cp newlib/newlib.h $RPM_BUILD_ROOT%{_prefix}/spu/include/newlib.h

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir %{_prefix}
%dir %{_prefix}/spu
%dir %{_prefix}/spu/include
%dir %{_prefix}/spu/include/machine
%dir %{_prefix}/spu/include/sys
%{_prefix}/spu/include/*.h
%{_prefix}/spu/include/machine/*.h
%{_prefix}/spu/include/sys/*.h

%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
* Thu Oct 30 2008 sassmann@suse.de
- copy header files manually, instead of make and delete
  unnecesarry files, to avoid unwanted BuildRequires
* 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