1 Summary: A C library intended for use on embedded systems
2 Summary(pl): Biblioteka C przeznaczona dla systemów wbudowanych
6 License: several free software licenses
8 Source0: ftp://sources.redhat.com/pub/newlib/newlib-%{version}.tar.gz
9 # Source0-md5: c3f1fbb52a4864cf8356c124584bae72
10 Patch0: %{name}-configure.patch
11 URL: http://sources.redhat.com/newlib/
12 BuildRequires: crossarm-gcc
13 Requires: crossarm-binutils
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define target arm-pld-linux
17 %define arch %{_prefix}/%{target}
18 %define _noautostrip .*/lib.*\\.a
21 Newlib is a C library intended for use on embedded systems. It is a
22 conglomeration of several library parts, all under free software
23 licenses that make them easily usable on embedded products.
26 Newlib to biblioteka C przeznaczona dla systemów wbudowanych. Jest to
27 po³±czenie ró¿nych czê¶ci biblioteki, wszystkich na wolnych
28 licencjach, co czyni je ³atwo u¿ywalnymi w produktach wbudowanych.
31 %setup -q -n newlib-%{version}
35 rm -rf build && mkdir build && cd build
41 --enable-target-optspace \
42 --disable-newlib-iconv \
43 --disable-newlib-multithread \
44 --disable-newlib-io-float \
45 --disable-newlib-hw-fp \
46 --disable-newlib-supplied-syscalls \
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} -C build install-target-newlib \
55 DESTDIR=$RPM_BUILD_ROOT
57 %{target}-strip -g $RPM_BUILD_ROOT%{arch}/lib/libc.a
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc COPYING* ChangeLog README