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