]>
Commit | Line | Data |
---|---|---|
5232285f | 1 | Summary: Cross PPC GNU binary utility development utilities - binutils |
cf2701da JR |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - PPC binutils |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - PPC binutils | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla PPC - binutils | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - PPC binutils | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - PPC binutils | |
5232285f | 7 | Name: crossppc-binutils |
9d5debf7 | 8 | Version: 2.17.50.0.3 |
52d72a3b | 9 | Release: 1 |
5232285f | 10 | License: GPL |
11 | Group: Development/Tools | |
12 | Source0: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2 | |
9d5debf7 | 13 | # Source0-md5: 684c535df0ff8ffaa11fe4aed14539e7 |
5232285f | 14 | URL: http://sources.redhat.com/binutils/ |
ae4ac8d3 | 15 | BuildRequires: automake |
5232285f | 16 | BuildRequires: bash |
17 | BuildRequires: bison | |
18 | BuildRequires: flex | |
ae4ac8d3 | 19 | %ifarch sparc sparc32 |
20 | BuildRequires: sparc32 | |
21 | %endif | |
bccd7d5a | 22 | ExcludeArch: ppc |
5232285f | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %define target ppc-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 | ||
42 | This package contains the cross version for PPC. | |
43 | ||
cf2701da 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. | |
5232285f | 49 | |
cf2701da | 50 | Ten pakiet zawiera wersję skrośną generującą kod dla PPC. |
5232285f | 51 | |
52 | %prep | |
53 | %setup -q -n binutils-%{version} | |
54 | ||
55 | %build | |
ae4ac8d3 | 56 | cp /usr/share/automake/config.sub . |
57 | ||
5232285f | 58 | # ldscripts won't be generated properly if SHELL is not bash... |
a243854e | 59 | CFLAGS="%{rpmcflags} -fno-strict-aliasing" \ |
5232285f | 60 | LDFLAGS="%{rpmldflags}" \ |
61 | CONFIG_SHELL="/bin/bash" \ | |
ae4ac8d3 | 62 | %ifarch sparc |
63 | sparc32 \ | |
64 | %endif | |
5232285f | 65 | ./configure \ |
66 | --disable-shared \ | |
f27c733d | 67 | --disable-nls \ |
5232285f | 68 | --prefix=%{_prefix} \ |
ae4ac8d3 | 69 | --libdir=%{_libdir} \ |
5232285f | 70 | --mandir=%{_mandir} \ |
ae4ac8d3 | 71 | --infodir=%{_infodir} \ |
f27c733d | 72 | --enable-64-bit-bfd \ |
5232285f | 73 | --target=%{target} |
74 | ||
75 | %{__make} all \ | |
76 | tooldir=%{_prefix} \ | |
77 | EXEEXT="" | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | install -d $RPM_BUILD_ROOT%{_prefix} | |
82 | ||
83 | %{__make} install \ | |
84 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
85 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
190a83e2 | 86 | infodir=$RPM_BUILD_ROOT%{_infodir} \ |
87 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
5232285f | 88 | |
89 | # remove these man pages unless we cross-build for win*/netware platforms. | |
90 | # however, this should be done in Makefiles. | |
91 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1 | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %doc README | |
99 | %attr(755,root,root) %{_bindir}/%{target}-* | |
a68c2bad | 100 | %dir %{arch} |
5232285f | 101 | %dir %{arch}/bin |
102 | %attr(755,root,root) %{arch}/bin/* | |
103 | %dir %{arch}/lib | |
104 | %dir %{arch}/lib/* | |
105 | %{arch}/lib/ldscripts/* | |
106 | %{_mandir}/man?/%{target}-* |