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