]>
Commit | Line | Data |
---|---|---|
037e7e3e | 1 | Summary: Cross MIPSel GNU binary utility development utilities - binutils |
f0a9346b ER |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - MIPSel binutils |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - MIPSel binutils | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR MIPSel - binutils | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - MIPSel binutils | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - MIPSel binutils | |
ac115d01 | 7 | Name: crossmipsel-binutils |
ebe33b30 | 8 | Version: 2.20.51.0.5 |
bcd52758 | 9 | Release: 1 |
ac115d01 AM |
10 | License: GPL |
11 | Group: Development/Tools | |
96b275b6 | 12 | Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2 |
ebe33b30 | 13 | # Source0-md5: 6d2de7cdf7a8389e70b124e3d73b4d37 |
6f5dc402 | 14 | URL: http://sources.redhat.com/binutils/ |
b8657567 | 15 | BuildRequires: automake |
6f5dc402 | 16 | BuildRequires: bash |
ac115d01 | 17 | BuildRequires: bison |
6f5dc402 | 18 | BuildRequires: flex |
53eade66 | 19 | BuildRequires: gettext-devel |
ac115d01 AM |
20 | %ifarch sparc sparc32 |
21 | BuildRequires: sparc32 | |
22 | %endif | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %define target mipsel-pld-linux | |
26 | %define arch %{_prefix}/%{target} | |
27 | ||
28 | %description | |
29 | Binutils is a collection of binary utilities, including: | |
30 | - ar - create, modify and extract from archives, | |
31 | - nm - lists symbols from object files, | |
32 | - objcopy - copy and translate object files, | |
33 | - objdump - display information from object files, | |
34 | - ranlib - generate an index for the contents of an archive, | |
35 | - size - list the section sizes of an object or archive file, | |
36 | - strings - list printable strings from files, | |
37 | - strip - discard symbols, | |
38 | - c++filt - a filter for demangling encoded C++ symbols, | |
39 | - addr2line - convert addresses to file and line, | |
40 | - nlmconv - convert object code into an NLM. | |
41 | ||
037e7e3e | 42 | This package contains the cross version for MIPS Little Endian. |
ac115d01 | 43 | |
18e62fc0 JR |
44 | %description -l pl.UTF-8 |
45 | Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację | |
46 | programów. Znajdują się tutaj między innymi assembler, konsolidator | |
47 | (linker), a także inne narzędzia do manipulowania binarnymi plikami | |
48 | programów i bibliotek. | |
ac115d01 | 49 | |
18e62fc0 | 50 | Ten pakiet zawiera wersję skrośną generującą kod dla ostrokońcej (ang. |
037e7e3e | 51 | Little Endian) architektury MIPS. |
ac115d01 AM |
52 | |
53 | %prep | |
54 | %setup -q -n binutils-%{version} | |
55 | ||
56 | %build | |
76bed0d8 | 57 | cp -f /usr/share/automake/config.sub . |
b8657567 | 58 | |
ac115d01 | 59 | # ldscripts won't be generated properly if SHELL is not bash... |
6f5dc402 JB |
60 | CFLAGS="%{rpmcflags}" \ |
61 | LDFLAGS="%{rpmldflags}" \ | |
ac115d01 AM |
62 | CONFIG_SHELL="/bin/bash" \ |
63 | %ifarch sparc | |
64 | sparc32 \ | |
65 | %endif | |
c3680e64 AM |
66 | ./configure \ |
67 | --disable-shared \ | |
ac115d01 | 68 | --prefix=%{_prefix} \ |
b8657567 | 69 | --libdir=%{_libdir} \ |
ac115d01 | 70 | --mandir=%{_mandir} \ |
b8657567 | 71 | --infodir=%{_infodir} \ |
ac115d01 AM |
72 | --target=%{target} |
73 | ||
6f5dc402 JB |
74 | %{__make} all \ |
75 | tooldir=%{_prefix} \ | |
76 | EXEEXT="" | |
ac115d01 AM |
77 | |
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | install -d $RPM_BUILD_ROOT%{_prefix} | |
81 | ||
cf42aca1 | 82 | %{__make} install \ |
ac115d01 | 83 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
b8657567 | 84 | mandir=$RPM_BUILD_ROOT%{_mandir} \ |
8085b382 | 85 | infodir=$RPM_BUILD_ROOT%{_infodir} \ |
86 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
ac115d01 | 87 | |
510f169e | 88 | # remove these man pages unless we cross-build for win*/netware platforms. |
89 | # however, this should be done in Makefiles. | |
90 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1 | |
91 | ||
ac115d01 AM |
92 | %clean |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
0134175b | 97 | %doc README |
ac115d01 | 98 | %attr(755,root,root) %{_bindir}/%{target}-* |
c19df1e3 | 99 | %dir %{arch} |
ea02a881 MM |
100 | %dir %{arch}/bin |
101 | %attr(755,root,root) %{arch}/bin/* | |
102 | %dir %{arch}/lib | |
76bed0d8 | 103 | %{arch}/lib/ldscripts |
ac115d01 | 104 | %{_mandir}/man?/%{target}-* |