]> git.pld-linux.org Git - packages/crossmipsel-binutils.git/blob - crossmipsel-binutils.spec
- update to 2.11.92.0.12.3 (prev doesn't work)
[packages/crossmipsel-binutils.git] / crossmipsel-binutils.spec
1 Summary:        GNU Binary Utility Development Utilities
2 Summary(de):    GNU Binary Utility Development Utilities
3 Summary(es):    Utilitarios para desarrollo de binarios de la GNU
4 Summary(fr):    Utilitaires de développement binaire de GNU
5 Summary(pl):    Narzêdzia GNU dla programistów
6 Summary(pt_BR): Utilitários para desenvolvimento de binários da GNU
7 Summary(tr):    GNU geliþtirme araçlarý
8 Name:           crossmipsel-binutils
9 Version:        2.11.92.0.12.3
10 Release:        1
11 License:        GPL
12 Group:          Development/Tools
13 Group(de):      Entwicklung/Werkzeuge
14 Group(fr):      Development/Outils
15 Group(pl):      Programowanie/Narzêdzia
16 Source0:        ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2       
17 URL:            http://sourceware.cygnus.com/binutils/
18 Prereq:         /sbin/ldconfig
19 BuildRequires:  flex
20 BuildRequires:  bison
21 BuildRequires:  perl-devel
22 BuildRequires:  bash
23 %ifarch sparc sparc32
24 BuildRequires:  sparc32
25 %endif
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         target          mipsel-pld-linux
29 %define         arch            %{_prefix}/%{target}
30
31 %description
32 Binutils is a collection of binary utilities, including:
33 - ar - create, modify and extract from archives,
34 - nm - lists symbols from object files,
35 - objcopy - copy and translate object files,
36 - objdump - display information from object files,
37 - ranlib - generate an index for the contents of an archive,
38 - size - list the section sizes of an object or archive file,
39 - strings - list printable strings from files,
40 - strip - discard symbols,
41 - c++filt - a filter for demangling encoded C++ symbols,
42 - addr2line - convert addresses to file and line,
43 - nlmconv - convert object code into an NLM.
44
45 Cross version for MIPS Little Endian.
46
47 %description -l pl
48 Pakiet binutils zawiera zestaw narzêdzi umo¿liwiaj±cych kompilacjê
49 programów. Znajduj± siê tutaj miêdzy innymi assembler, konsolidator
50 (linker), a tak¿e inne narzêdzia do manipulowania binarnymi plikami
51 programów i bibliotek.
52
53 Wersja cross generuj±ca dla MIPS Little Endian.
54
55 %prep
56 %setup -q -n binutils-%{version}
57
58 %build
59 # ldscripts won't be generated properly if SHELL is not bash...
60 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
61 CONFIG_SHELL="/bin/bash" \
62 %ifarch sparc
63 sparc32 \
64 %endif
65 ./configure \
66         --disable-shared \
67         --prefix=%{_prefix} \
68         --infodir=%{_infodir} \
69         --mandir=%{_mandir} \
70         --target=%{target}
71
72 %{__make} tooldir=%{_prefix} EXEEXT="" all
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{_prefix}
77
78 %{__make} install install-info \
79         prefix=$RPM_BUILD_ROOT%{_prefix} \
80         tooldir=$RPM_BUILD_ROOT%{_prefix} \
81         mandir=$RPM_BUILD_ROOT%{_mandir} \
82         infodir=$RPM_BUILD_ROOT%{_infodir} \
83         includedir=$RPM_BUILD_ROOT%{_includedir} \
84         libdir=$RPM_BUILD_ROOT%{_libdir}
85
86 # remove these man pages unless we cross-build for win*/netware platforms.
87 # however, this should be done in Makefiles.
88 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
89
90 gzip -9nf README
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files
96 %defattr(644,root,root,755)
97 %doc *.gz
98 %attr(755,root,root) %{_bindir}/%{target}-*
99 %dir %{arch}/bin
100 %attr(755,root,root) %{arch}/bin/*
101 %dir %{arch}/lib
102 %dir %{arch}/lib/*
103 %{_libdir}/ldscripts/*
104 %{_mandir}/man?/%{target}-*
This page took 0.033668 seconds and 4 git commands to generate.