]> git.pld-linux.org Git - packages/crossavr-binutils.git/blob - crossavr-binutils.spec
crossavr-binutils: Synchronized with official AVR toolchain 3.4.0.663.
[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:        1
10 Epoch:          1
11 # Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.4.0.633
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:       411-binutils-attiny80.patch
32 Patch120:       412-binutils-atxmega128a4u.patch
33 Patch121:       413-binutils-atxmega64d4.patch
34 Patch122:       414-binutils-atmega164pa_168pa_32a_64a.patch
35 Patch123:       415-binutils-atxmega64_128_b3.patch
36 Patch124:       416-binutils-atxmega64b1.patch
37 Patch125:       417-binutils-atmega_8a_128a_1284.patch
38 Patch126:       418-binutils-atxmega64a4u.patch
39 Patch127:       419-binutils-atxmega128d4.patch
40 Patch128:       420-binutils-atmxt336s.patch
41 Patch129:       421-binutils-atxmega16c4_32c4_128c3_256c3.patch
42 Patch130:       422-binutils-atxmega384d3.patch
43 Patch131:       423-binutils-atmega48hvf.patch
44 Patch132:       424-binutils-atmega26hvg.patch
45 Patch133:       425-binutils-atmxt224_224e.patch
46 Patch134:       426-binutils-atxmega192c3.patch
47 Patch135:       427-binutils-atmxt112sl.patch
48 Patch136:       428-binutils-atxmega64c3.patch
49 Patch137:       429-binutils-ata6285_6286.patch
50 Patch138:       430-binutils-attiny828.patch
51 Patch139:       431-binutils-ata5790_5790N_5795.patch
52 Patch140:       432-binutils-ata5272_5505.patch
53 Patch141:       500-binutils-bug13789.patch
54 Patch142:       501-binutils-modify-usb-xmega-isa.patch
55 Patch143:       502-binutils-add-config-section-tiny.patch
56 Patch144:       503-binutils-avrtc193-tiny.patch
57 License:        GPL
58 Group:          Development/Tools
59 Source0:        ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
60 # Source0-md5:  ee0f10756c84979622b992a4a61ea3f5
61 URL:            http://sources.redhat.com/binutils/
62 BuildRequires:  automake
63 BuildRequires:  bash
64 BuildRequires:  bison
65 BuildRequires:  flex
66 BuildRequires:  gettext-devel
67 BuildRequires:  gcc-c++
68 BuildRequires:  perl-tools-pod
69 BuildRequires:  texinfo
70 %ifarch sparc sparc32
71 BuildRequires:  sparc32
72 %endif
73 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74
75 %define         target          avr
76 %define         arch            %{_prefix}/%{target}
77
78 %description
79 Binutils is a collection of binary utilities, including:
80 - ar - create, modify and extract from archives,
81 - nm - lists symbols from object files,
82 - objcopy - copy and translate object files,
83 - objdump - display information from object files,
84 - ranlib - generate an index for the contents of an archive,
85 - size - list the section sizes of an object or archive file,
86 - strings - list printable strings from files,
87 - strip - discard symbols,
88 - c++filt - a filter for demangling encoded C++ symbols,
89 - addr2line - convert addresses to file and line,
90 - nlmconv - convert object code into an NLM.
91
92 This package contains the cross version for Atmel AVR.
93
94 %description -l pl.UTF-8
95 Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
96 programów. Znajdują się tutaj między innymi assembler, konsolidator
97 (linker), a także inne narzędzia do manipulowania binarnymi plikami
98 programów i bibliotek.
99
100 Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
101
102 %prep
103 %setup -q -n binutils-%{version}
104 %patch100 -p0
105 %patch101 -p0
106 %patch102 -p0
107 %patch103 -p0
108 %patch104 -p0
109 %patch105 -p0
110 %patch106 -p0
111 %patch107 -p0
112 %patch108 -p0
113 %patch109 -p0
114 %patch110 -p0
115 %patch111 -p0
116 %patch112 -p0
117 %patch113 -p0
118 %patch114 -p0
119 %patch115 -p0
120 %patch116 -p0
121 %patch117 -p0
122 %patch118 -p0
123 %patch119 -p0
124 %patch120 -p0
125 %patch121 -p0
126 %patch122 -p0
127 %patch123 -p0
128 %patch124 -p0
129 %patch125 -p0
130 %patch126 -p0
131 %patch127 -p0
132 %patch128 -p0
133 %patch129 -p0
134 %patch130 -p0
135 %patch131 -p0
136 %patch132 -p0
137 %patch133 -p0
138 %patch134 -p0
139 %patch135 -p0
140 %patch136 -p0
141 %patch137 -p0
142 %patch138 -p0
143 %patch139 -p0
144 %patch140 -p0
145 %patch141 -p0
146 %patch142 -p0
147 %patch143 -p0
148 %patch144 -p0
149
150 %build
151 cp /usr/share/automake/config.sub .
152
153 # ldscripts won't be generated properly if SHELL is not bash...
154 CFLAGS="%{rpmcflags}" \
155 LDFLAGS="%{rpmldflags}" \
156 CONFIG_SHELL="/bin/bash" \
157 %ifarch sparc
158 sparc32 \
159 %endif
160 ./configure \
161         --enable-gold \
162         --disable-shared \
163         --disable-werror \
164         --prefix=%{_prefix} \
165         --libdir=%{_libdir} \
166         --mandir=%{_mandir} \
167         --infodir=%{_infodir} \
168         --host=%{_target_platform} \
169         --build=%{_target_platform} \
170         --target=%{target}
171
172 # We have to regenerate headers after patching.
173 %{__make} configure-host \
174         tooldir=%{_prefix} \
175         EXEEXT=""
176
177 %{__make} -C bfd headers \
178         tooldir=%{_prefix} \
179         EXEEXT=""
180
181 %{__make} all \
182         tooldir=%{_prefix} \
183         EXEEXT=""
184
185 %install
186 rm -rf $RPM_BUILD_ROOT
187 install -d $RPM_BUILD_ROOT%{_prefix}
188
189 %{__make} install \
190         prefix=$RPM_BUILD_ROOT%{_prefix} \
191         mandir=$RPM_BUILD_ROOT%{_mandir} \
192         infodir=$RPM_BUILD_ROOT%{_infodir} \
193         libdir=$RPM_BUILD_ROOT%{_libdir}
194
195 # remove these man pages unless we cross-build for win*/netware platforms.
196 # however, this should be done in Makefiles.
197 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
198
199 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
200 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
201 rm -rf $RPM_BUILD_ROOT%{_infodir}
202
203 %clean
204 rm -rf $RPM_BUILD_ROOT
205
206 %files
207 %defattr(644,root,root,755)
208 %doc README
209 %attr(755,root,root) %{_bindir}/%{target}-*
210 %dir %{arch}
211 %dir %{arch}/bin
212 %attr(755,root,root) %{arch}/bin/*
213 %dir %{arch}/lib
214 %dir %{arch}/lib/*
215 %{arch}/lib/*/*
216 %{_mandir}/man?/%{target}-*
This page took 0.104976 seconds and 4 git commands to generate.