]> git.pld-linux.org Git - packages/crossarm-newlib.git/blame - crossarm-newlib.spec
- tabs in preamble
[packages/crossarm-newlib.git] / crossarm-newlib.spec
CommitLineData
de385267 1Summary: A C library intended for use on embedded systems
74283484 2Summary(pl.UTF-8): Biblioteka C przeznaczona dla systemów wbudowanych
de385267
PS
3Name: crossarm-newlib
4Version: 1.12.0
07fde83b 5Release: 1
de385267
PS
6License: several free software licenses
7Group: Libraries
8Source0: ftp://sources.redhat.com/pub/newlib/newlib-%{version}.tar.gz
9# Source0-md5: c3f1fbb52a4864cf8356c124584bae72
10Patch0: %{name}-configure.patch
11URL: http://sources.redhat.com/newlib/
12BuildRequires: crossarm-gcc
1cdefc68 13Requires: crossarm-binutils
de385267
PS
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%define target arm-pld-linux
17%define arch %{_prefix}/%{target}
18%define _noautostrip .*/lib.*\\.a
19
20%description
21Newlib is a C library intended for use on embedded systems. It is a
22conglomeration of several library parts, all under free software
23licenses that make them easily usable on embedded products.
24
758db4c5
JR
25%description -l pl.UTF-8
26Newlib to biblioteka C przeznaczona dla systemów wbudowanych. Jest to
27połączenie różnych części biblioteki, wszystkich na wolnych
28licencjach, co czyni je łatwo używalnymi w produktach wbudowanych.
1cdefc68 29
de385267
PS
30%prep
31%setup -q -n newlib-%{version}
32%patch0 -p1
33
34%build
35rm -rf build && mkdir build && cd build
07fde83b 36
de385267
PS
37../configure \
38 --prefix=%{_prefix} \
39 --disable-shared \
40 --enable-static \
41 --enable-multilib \
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 \
48 --target=%{target}
49
07fde83b
PS
50%{__make} \
51 CFLAGS_FOR_TARGET="-mthumb -mthumb-interwork"
de385267
PS
52
53%install
54rm -rf $RPM_BUILD_ROOT
de385267 55
1cdefc68 56%{__make} -C build install-target-newlib \
07fde83b 57 CFLAGS_FOR_TARGET="-mthumb -mthumb-interwork" \
de385267
PS
58 DESTDIR=$RPM_BUILD_ROOT
59
60%{target}-strip -g $RPM_BUILD_ROOT%{arch}/lib/libc.a
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
67%doc COPYING* ChangeLog README
68%{arch}/include
69%{arch}/lib/libc.a
This page took 0.124869 seconds and 4 git commands to generate.