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