]>
Commit | Line | Data |
---|---|---|
1 | Summary: Cross AVR GNU binary utility development utilities - binutils | |
2 | Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - AVR binutils | |
3 | Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - AVR binutils | |
4 | Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR - binutils | |
5 | Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - AVR binutils | |
6 | Summary(tr.UTF-8): GNU geliştirme araçları - AVR binutils | |
7 | Name: crossavr-binutils | |
8 | Version: 2.20.1 | |
9 | Release: 1 | |
10 | Epoch: 1 | |
11 | # Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.3.1.481. | |
12 | Patch100: 300-binutils-2.20.1-avr-size.patch | |
13 | Patch101: 301-binutils-2.20.1-avr-coff.patch | |
14 | Patch102: 302-binutils-2.20.1-new-sections.patch | |
15 | Patch103: 303-binutils-2.20.1-as-dwarf.patch | |
16 | Patch104: 304-binutils-2.20.1-dwarf2-AVRStudio-workaround.patch | |
17 | Patch105: 305-binutils-2.20.1-assembler-options.patch | |
18 | Patch106: 400-binutils-2.20.1-xmega.patch | |
19 | Patch107: 401-binutils-2.20.1-new-devices.patch | |
20 | Patch108: 402-binutils-2.20.1-avrtiny10.patch | |
21 | Patch109: 403-binutils-2.20.1-xmega128a1u-64a1u.patch | |
22 | Patch110: 404-binutils-2.20.1-atxmega32x1.patch | |
23 | Patch111: 405-binutils-2.20.1-atxmega128b1.patch | |
24 | Patch112: 406-binutils-2.20.1-atxmega256a3bu.patch | |
25 | Patch113: 407-binutils-2.20.1-at90pwm161.patch | |
26 | Patch114: 408-binutils-2.20.1-atmega16hvb-32hvb.patch | |
27 | Patch115: 409-binutils-2.20.1-atmega32_5_50_90_pa.patch | |
28 | Patch116: 410-binutils-2.20.1-attiny1634.patch | |
29 | Patch117: 411-binutils-2.20.1-atmega48pa.patch | |
30 | Patch118: 412-binutils-2.20.1-atxmega_16_32_a4u.patch | |
31 | Patch119: 413-binutils-2.20.1-atxmega64_128_192_256a3u.patch | |
32 | Patch120: 414-binutils-2.20.1-atmegarfr2_a2.patch | |
33 | Patch121: 415-binutils-2.20.1-atmega165pa.patch | |
34 | Patch122: 416-binutils-2.20.1-atxmega384c3.patch | |
35 | Patch123: 417-binutils-2.20.1-attiny80.patch | |
36 | Patch124: 418-binutils-2.20.1-atxmega128a4u.patch | |
37 | Patch125: 419-binutils-2.20.1-atxmega64d4.patch | |
38 | Patch126: 420-binutils-2.20.1-atmega164pa_168pa_32a_64a.patch | |
39 | Patch127: 421-binutils-2.20.1-atxmega64_128_b3.patch | |
40 | Patch128: 422-binutils-2.20.1-atxmega64b1.patch | |
41 | Patch129: 423-binutils-2.20.1-atmega_8a_128a_1284.patch | |
42 | Patch130: 424-binutils-2.20.1-atxmega64a4u.patch | |
43 | Patch131: 425-binutils-2.20.1-atxmega128d4.patch | |
44 | Patch132: 426-binutils-2.20.1-atmxt336s.patch | |
45 | Patch133: 427-binutils-2.20.1-atxmega16c4_32c4_128c3_256c3.patch | |
46 | Patch134: 428-binutils-2.20.1-atxmega384d3.patch | |
47 | Patch135: 429-binutils-2.20.1-atmega48hvf.patch | |
48 | Patch136: 430-binutils-2.20.1-atmega26hvg.patch | |
49 | Patch137: 431-binutils-2.20.1-atmxt224_224e.patch | |
50 | Patch138: 431-binutils-2.20.1-atxmega192c3.patch | |
51 | Patch139: 500-binutils-2.20.1-bug13789.patch | |
52 | Patch140: 501-binutils-2.20.1-bug13113.patch | |
53 | License: GPL | |
54 | Group: Development/Tools | |
55 | Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2 | |
56 | # Source0-md5: 2b9dc8f2b7dbd5ec5992c6e29de0b764 | |
57 | URL: http://sources.redhat.com/binutils/ | |
58 | BuildRequires: automake | |
59 | BuildRequires: bash | |
60 | BuildRequires: bison | |
61 | BuildRequires: flex | |
62 | BuildRequires: gettext-devel | |
63 | BuildRequires: perl-tools-pod | |
64 | BuildRequires: texinfo | |
65 | %ifarch sparc sparc32 | |
66 | BuildRequires: sparc32 | |
67 | %endif | |
68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
69 | ||
70 | %define target avr | |
71 | %define arch %{_prefix}/%{target} | |
72 | ||
73 | %description | |
74 | Binutils is a collection of binary utilities, including: | |
75 | - ar - create, modify and extract from archives, | |
76 | - nm - lists symbols from object files, | |
77 | - objcopy - copy and translate object files, | |
78 | - objdump - display information from object files, | |
79 | - ranlib - generate an index for the contents of an archive, | |
80 | - size - list the section sizes of an object or archive file, | |
81 | - strings - list printable strings from files, | |
82 | - strip - discard symbols, | |
83 | - c++filt - a filter for demangling encoded C++ symbols, | |
84 | - addr2line - convert addresses to file and line, | |
85 | - nlmconv - convert object code into an NLM. | |
86 | ||
87 | This package contains the cross version for Atmel AVR. | |
88 | ||
89 | %description -l pl.UTF-8 | |
90 | Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację | |
91 | programów. Znajdują się tutaj między innymi assembler, konsolidator | |
92 | (linker), a także inne narzędzia do manipulowania binarnymi plikami | |
93 | programów i bibliotek. | |
94 | ||
95 | Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR. | |
96 | ||
97 | %prep | |
98 | %setup -q -n binutils-%{version} | |
99 | %patch100 -p0 | |
100 | %patch101 -p0 | |
101 | %patch102 -p0 | |
102 | %patch103 -p0 | |
103 | %patch104 -p0 | |
104 | %patch105 -p0 | |
105 | %patch106 -p0 | |
106 | %patch107 -p0 | |
107 | %patch108 -p0 | |
108 | %patch109 -p0 | |
109 | %patch110 -p0 | |
110 | %patch111 -p0 | |
111 | %patch112 -p0 | |
112 | %patch113 -p0 | |
113 | %patch114 -p0 | |
114 | %patch115 -p0 | |
115 | %patch116 -p0 | |
116 | %patch117 -p0 | |
117 | %patch118 -p0 | |
118 | %patch119 -p0 | |
119 | %patch120 -p0 | |
120 | %patch121 -p0 | |
121 | %patch122 -p0 | |
122 | %patch123 -p0 | |
123 | %patch124 -p0 | |
124 | %patch125 -p0 | |
125 | %patch126 -p0 | |
126 | %patch127 -p0 | |
127 | %patch128 -p0 | |
128 | %patch129 -p0 | |
129 | %patch130 -p0 | |
130 | %patch131 -p0 | |
131 | %patch132 -p0 | |
132 | %patch133 -p0 | |
133 | %patch134 -p0 | |
134 | %patch135 -p0 | |
135 | %patch136 -p0 | |
136 | %patch137 -p0 | |
137 | %patch138 -p0 | |
138 | %patch139 -p0 | |
139 | %patch140 -p0 | |
140 | ||
141 | %build | |
142 | cp /usr/share/automake/config.sub . | |
143 | ||
144 | # ldscripts won't be generated properly if SHELL is not bash... | |
145 | CFLAGS="%{rpmcflags}" \ | |
146 | LDFLAGS="%{rpmldflags}" \ | |
147 | CONFIG_SHELL="/bin/bash" \ | |
148 | %ifarch sparc | |
149 | sparc32 \ | |
150 | %endif | |
151 | ./configure \ | |
152 | --disable-shared \ | |
153 | --disable-werror \ | |
154 | --prefix=%{_prefix} \ | |
155 | --libdir=%{_libdir} \ | |
156 | --mandir=%{_mandir} \ | |
157 | --infodir=%{_infodir} \ | |
158 | --host=%{_target_platform} \ | |
159 | --build=%{_target_platform} \ | |
160 | --target=%{target} | |
161 | ||
162 | # We have to regenerate headers after patching. | |
163 | %{__make} configure-host \ | |
164 | tooldir=%{_prefix} \ | |
165 | EXEEXT="" | |
166 | ||
167 | %{__make} -C bfd headers \ | |
168 | tooldir=%{_prefix} \ | |
169 | EXEEXT="" | |
170 | ||
171 | %{__make} all \ | |
172 | tooldir=%{_prefix} \ | |
173 | EXEEXT="" | |
174 | ||
175 | %install | |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | install -d $RPM_BUILD_ROOT%{_prefix} | |
178 | ||
179 | %{__make} install \ | |
180 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
181 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
182 | infodir=$RPM_BUILD_ROOT%{_infodir} \ | |
183 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
184 | ||
185 | # remove these man pages unless we cross-build for win*/netware platforms. | |
186 | # however, this should be done in Makefiles. | |
187 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1 | |
188 | ||
189 | rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo | |
190 | rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a | |
191 | rm -rf $RPM_BUILD_ROOT%{_infodir} | |
192 | ||
193 | %clean | |
194 | rm -rf $RPM_BUILD_ROOT | |
195 | ||
196 | %files | |
197 | %defattr(644,root,root,755) | |
198 | %doc README | |
199 | %attr(755,root,root) %{_bindir}/%{target}-* | |
200 | %dir %{arch} | |
201 | %dir %{arch}/bin | |
202 | %attr(755,root,root) %{arch}/bin/* | |
203 | %dir %{arch}/lib | |
204 | %dir %{arch}/lib/* | |
205 | %{arch}/lib/*/* | |
206 | %{_mandir}/man?/%{target}-* |