1 Summary: A C library intended for use on embedded systems
2 Summary(pl.UTF-8): 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.
25 %description -l pl.UTF-8
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
42 --enable-target-optspace \
43 --disable-newlib-iconv \
44 --disable-newlib-multithread \
45 --disable-newlib-io-float \
46 --disable-newlib-hw-fp \
47 --disable-newlib-supplied-syscalls \
51 CFLAGS_FOR_TARGET="-mthumb -mthumb-interwork"
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} -C build install-target-newlib \
57 CFLAGS_FOR_TARGET="-mthumb -mthumb-interwork" \
58 DESTDIR=$RPM_BUILD_ROOT
60 %{target}-strip -g $RPM_BUILD_ROOT%{arch}/lib/libc.a
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc COPYING* ChangeLog README