]> git.pld-linux.org Git - packages/crossavr-binutils.git/blob - crossavr-binutils.spec
- synchronized patches with official AVR toolchain 3.4.1.830
[packages/crossavr-binutils.git] / crossavr-binutils.spec
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.22
9 Release:        2
10 Epoch:          1
11 # Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.4.1.830
12 Patch100:       300-binutils-avr-size.patch
13 Patch101:       301-binutils-avr-coff.patch
14 Patch102:       302-binutils-as-dwarf.patch
15 Patch103:       303-binutils-dwarf2-AVRStudio-workaround.patch
16 Patch104:       304-binutils-bug13113.patch
17 Patch105:       305-binutils-new-usb-insns.patch
18 Patch106:       306-binutils-bug15573-AVRTC-419.patch
19 Patch107:       307-binutils-fix-AVRTC-424.patch
20 Patch108:       400-binutils-xmega.patch
21 Patch109:       401-binutils-avrtiny10.patch
22 Patch110:       402-binutils-at90pwm161.patch
23 Patch111:       403-binutils-new-devices.patch
24 Patch112:       404-binutils-attiny1634.patch
25 Patch113:       405-binutils-atmega48pa.patch
26 Patch114:       406-binutils-atxmega_16_32_a4u.patch
27 Patch115:       407-binutils-atxmega64_128_192_256a3u.patch
28 Patch116:       408-binutils-atmegarfr2_a2.patch
29 Patch117:       409-binutils-atmega165pa.patch
30 Patch118:       410-binutils-atxmega384c3.patch
31 Patch119:       412-binutils-atxmega128a4u.patch
32 Patch120:       413-binutils-atxmega64d4.patch
33 Patch121:       414-binutils-atmega164pa_168pa_32a_64a.patch
34 Patch122:       415-binutils-atxmega64_128_b3.patch
35 Patch123:       416-binutils-atxmega64b1.patch
36 Patch124:       417-binutils-atmega_8a_128a_1284.patch
37 Patch125:       418-binutils-atxmega64a4u.patch
38 Patch126:       419-binutils-atxmega128d4.patch
39 Patch127:       420-binutils-atmxt336s.patch
40 Patch128:       421-binutils-atxmega16c4_32c4_128c3_256c3.patch
41 Patch129:       422-binutils-atxmega384d3.patch
42 Patch130:       423-binutils-atmega48hvf.patch
43 Patch131:       424-binutils-atmega26hvg.patch
44 Patch132:       425-binutils-atmxt224_224e.patch
45 Patch133:       426-binutils-atxmega192c3.patch
46 Patch134:       427-binutils-atmxt112sl.patch
47 Patch135:       428-binutils-atxmega64c3.patch
48 Patch136:       429-binutils-ata6285_6286.patch
49 Patch137:       430-binutils-attiny828.patch
50 Patch138:       431-binutils-ata5790_5790N_5795.patch
51 Patch139:       432-binutils-ata5272_5505.patch
52 Patch140:       433-binutils-atmxt540s.patch
53 Patch141:       434-binutils-ata5831.patch
54 Patch142:       435-binutils-attiny841.patch
55 Patch143:       436-binutils-atxmega32_16_8e5.patch
56 Patch144:       500-binutils-bug13789.patch
57 Patch145:       501-binutils-modify-usb-xmega-isa.patch
58 Patch146:       502-binutils-add-config-section-tiny.patch
59 Patch147:       503-binutils-avrtc193-tiny.patch
60 Patch148:       504-binutils-avrtc530-backported.patch
61 Patch149:       505-binutils-avrtc446.patch
62 License:        GPL
63 Group:          Development/Tools
64 Source0:        ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
65 # Source0-md5:  ee0f10756c84979622b992a4a61ea3f5
66 URL:            http://sources.redhat.com/binutils/
67 BuildRequires:  automake
68 BuildRequires:  bash
69 BuildRequires:  bison
70 BuildRequires:  flex
71 BuildRequires:  gettext-devel
72 BuildRequires:  gcc-c++
73 BuildRequires:  perl-tools-pod
74 BuildRequires:  texinfo
75 %ifarch sparc sparc32
76 BuildRequires:  sparc32
77 %endif
78 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79
80 %define         target          avr
81 %define         arch            %{_prefix}/%{target}
82
83 %description
84 Binutils is a collection of binary utilities, including:
85 - ar - create, modify and extract from archives,
86 - nm - lists symbols from object files,
87 - objcopy - copy and translate object files,
88 - objdump - display information from object files,
89 - ranlib - generate an index for the contents of an archive,
90 - size - list the section sizes of an object or archive file,
91 - strings - list printable strings from files,
92 - strip - discard symbols,
93 - c++filt - a filter for demangling encoded C++ symbols,
94 - addr2line - convert addresses to file and line,
95 - nlmconv - convert object code into an NLM.
96
97 This package contains the cross version for Atmel AVR.
98
99 %description -l pl.UTF-8
100 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
101 programów. Znajdują się tutaj między innymi assembler, konsolidator
102 (linker), a także inne narzędzia do manipulowania binarnymi plikami
103 programów i bibliotek.
104
105 Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
106
107 %prep
108 %setup -q -n binutils-%{version}
109 %patch100 -p0
110 %patch101 -p0
111 %patch102 -p0
112 %patch103 -p0
113 %patch104 -p0
114 %patch105 -p0
115 %patch106 -p0
116 %patch107 -p0
117 %patch108 -p0
118 %patch109 -p0
119 %patch110 -p0
120 %patch111 -p0
121 %patch112 -p0
122 %patch113 -p0
123 %patch114 -p0
124 %patch115 -p0
125 %patch116 -p0
126 %patch117 -p0
127 %patch118 -p0
128 %patch119 -p0
129 %patch120 -p0
130 %patch121 -p0
131 %patch122 -p0
132 %patch123 -p0
133 %patch124 -p0
134 %patch125 -p0
135 %patch126 -p0
136 %patch127 -p0
137 %patch128 -p0
138 %patch129 -p0
139 %patch130 -p0
140 %patch131 -p0
141 %patch132 -p0
142 %patch133 -p0
143 %patch134 -p0
144 %patch135 -p0
145 %patch136 -p0
146 %patch137 -p0
147 %patch138 -p0
148 %patch139 -p0
149 %patch140 -p0
150 %patch141 -p0
151 %patch142 -p0
152 %patch143 -p0
153 %patch144 -p0
154 %patch145 -p0
155 %patch146 -p0
156 %patch147 -p0
157 %patch148 -p0
158 %patch149 -p0
159
160 # Remove hacks for specific autoconf version.
161 echo > config/override.m4
162
163 %build
164 %{__aclocal}
165 %{__autoconf}
166 for subdir in bfd binutils ld; do
167         cd $subdir
168         %{__aclocal} -I.. -I../bfd -I../config
169         %{__automake}
170         %{__autoconf}
171         cd -
172 done
173
174 # ldscripts won't be generated properly if SHELL is not bash...
175 CFLAGS="%{rpmcflags}" \
176 LDFLAGS="%{rpmldflags}" \
177 CONFIG_SHELL="/bin/bash" \
178 %ifarch sparc
179 sparc32 \
180 %endif
181 ./configure \
182         --enable-gold \
183         --disable-shared \
184         --disable-werror \
185         --prefix=%{_prefix} \
186         --libdir=%{_libdir} \
187         --mandir=%{_mandir} \
188         --infodir=%{_infodir} \
189         --host=%{_target_platform} \
190         --build=%{_target_platform} \
191         --target=%{target}
192
193 # We have to regenerate headers after patching.
194 %{__make} configure-host \
195         tooldir=%{_prefix} \
196         EXEEXT=""
197
198 %{__make} -C bfd headers \
199         tooldir=%{_prefix} \
200         EXEEXT=""
201
202 %{__make} all \
203         tooldir=%{_prefix} \
204         EXEEXT=""
205
206 %install
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT%{_prefix}
209
210 %{__make} install \
211         prefix=$RPM_BUILD_ROOT%{_prefix} \
212         mandir=$RPM_BUILD_ROOT%{_mandir} \
213         infodir=$RPM_BUILD_ROOT%{_infodir} \
214         libdir=$RPM_BUILD_ROOT%{_libdir}
215
216 # remove these man pages unless we cross-build for win*/netware platforms.
217 # however, this should be done in Makefiles.
218 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
219
220 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
221 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
222 rm -rf $RPM_BUILD_ROOT%{_infodir}
223
224 %clean
225 rm -rf $RPM_BUILD_ROOT
226
227 %files
228 %defattr(644,root,root,755)
229 %doc README
230 %attr(755,root,root) %{_bindir}/%{target}-*
231 %dir %{arch}
232 %dir %{arch}/bin
233 %attr(755,root,root) %{arch}/bin/*
234 %dir %{arch}/lib
235 %dir %{arch}/lib/*
236 %{arch}/lib/*/*
237 %{_mandir}/man?/%{target}-*
This page took 0.058547 seconds and 4 git commands to generate.