]>
Commit | Line | Data |
---|---|---|
5cdd6cb1 PS |
1 | # |
2 | # Conditional build: | |
7e80e0da | 3 | %bcond_without gnueabi # build without GNU Embedded ABI support |
5cdd6cb1 | 4 | # |
6fa979ca | 5 | Summary: Cross ARM GNU binary utility development utilities - binutils |
f29ebb2e ER |
6 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - ARM binutils |
7 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - ARM binutils | |
8 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla ARM - binutils | |
9 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - ARM binutils | |
10 | Summary(tr.UTF-8): GNU geliştirme araçları - ARM binutils | |
6fa979ca | 11 | Name: crossarm-binutils |
03444c01 | 12 | Version: 2.42 |
badb1fe8 | 13 | Release: 1 |
6fa979ca PS |
14 | License: GPL |
15 | Group: Development/Tools | |
455d5e12 | 16 | Source0: https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.lz |
03444c01 | 17 | # Source0-md5: c1526faed7197b4e79dfe04eded7fc11 |
557aa52f PS |
18 | Source1: crossarm-lpc2104.ld |
19 | Source2: crossarm-lpc2106.ld | |
6fa979ca PS |
20 | URL: http://sources.redhat.com/binutils/ |
21 | BuildRequires: automake | |
22 | BuildRequires: bash | |
23 | BuildRequires: bison | |
24 | BuildRequires: flex | |
8cc23510 JP |
25 | BuildRequires: lzip |
26 | BuildRequires: tar >= 1:1.22 | |
badb1fe8 | 27 | BuildRequires: zlib-devel |
7e80e0da | 28 | %{?with_gnueabi:Provides: crossarm-binutils(gnueabi)} |
6fa979ca PS |
29 | ExcludeArch: arm |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
0fee5e8f | 32 | %define target arm-linux%{?with_gnueabi:-gnueabi} |
6fa979ca PS |
33 | %define arch %{_prefix}/%{target} |
34 | ||
35 | %description | |
36 | Binutils is a collection of binary utilities, including: | |
37 | - ar - create, modify and extract from archives, | |
38 | - nm - lists symbols from object files, | |
39 | - objcopy - copy and translate object files, | |
40 | - objdump - display information from object files, | |
41 | - ranlib - generate an index for the contents of an archive, | |
42 | - size - list the section sizes of an object or archive file, | |
43 | - strings - list printable strings from files, | |
44 | - strip - discard symbols, | |
45 | - c++filt - a filter for demangling encoded C++ symbols, | |
46 | - addr2line - convert addresses to file and line, | |
47 | - nlmconv - convert object code into an NLM. | |
48 | ||
49 | This package contains the cross version for ARM. | |
50 | ||
58f19f2d JR |
51 | %description -l pl.UTF-8 |
52 | Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację | |
53 | programów. Znajdują się tutaj między innymi assembler, konsolidator | |
54 | (linker), a także inne narzędzia do manipulowania binarnymi plikami | |
55 | programów i bibliotek. | |
6fa979ca | 56 | |
58f19f2d | 57 | Ten pakiet zawiera wersję skrośną generującą kod dla ARM. |
6fa979ca PS |
58 | |
59 | %prep | |
60 | %setup -q -n binutils-%{version} | |
6fa979ca PS |
61 | |
62 | %build | |
6fa979ca PS |
63 | |
64 | # ldscripts won't be generated properly if SHELL is not bash... | |
7a2c4ce8 | 65 | CFLAGS="%{rpmcflags} -fno-strict-aliasing" \ |
6fa979ca PS |
66 | LDFLAGS="%{rpmldflags}" \ |
67 | CONFIG_SHELL="/bin/bash" \ | |
68 | ./configure \ | |
69 | --disable-shared \ | |
badb1fe8 | 70 | --disable-silent-rules \ |
6a1828ec | 71 | --disable-nls \ |
6fa979ca PS |
72 | --prefix=%{_prefix} \ |
73 | --libdir=%{_libdir} \ | |
74 | --mandir=%{_mandir} \ | |
75 | --infodir=%{_infodir} \ | |
a52b0c1a | 76 | --target=%{target} \ |
21a8026d | 77 | --with-sysroot=%{_libdir}/%{target} \ |
badb1fe8 JP |
78 | --with-debuginfod=no \ |
79 | --with-msgpack=no \ | |
80 | --with-system-zlib \ | |
81 | --with-zstd=no \ | |
82 | --disable-jansson | |
6fa979ca PS |
83 | |
84 | %{__make} all \ | |
85 | tooldir=%{_prefix} \ | |
86 | EXEEXT="" | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | install -d $RPM_BUILD_ROOT%{_prefix} | |
91 | ||
92 | %{__make} install \ | |
93 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
94 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
95 | infodir=$RPM_BUILD_ROOT%{_infodir} \ | |
96 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
97 | ||
557aa52f PS |
98 | install %{SOURCE1} $RPM_BUILD_ROOT%{arch}/lib/ldscripts/lpc2104.ld |
99 | install %{SOURCE2} $RPM_BUILD_ROOT%{arch}/lib/ldscripts/lpc2106.ld | |
100 | ||
6fa979ca PS |
101 | # remove these man pages unless we cross-build for win*/netware platforms. |
102 | # however, this should be done in Makefiles. | |
103 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1 | |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
110 | %doc README | |
111 | %attr(755,root,root) %{_bindir}/%{target}-* | |
112 | %dir %{arch} | |
113 | %dir %{arch}/bin | |
114 | %attr(755,root,root) %{arch}/bin/* | |
115 | %dir %{arch}/lib | |
116 | %dir %{arch}/lib/* | |
117 | %{arch}/lib/ldscripts/* | |
118 | %{_mandir}/man?/%{target}-* |