]> git.pld-linux.org Git - packages/crossavr-binutils.git/blame - crossavr-binutils.spec
- synchronized patches with Atmel official AVR8-GNU toolchain.
[packages/crossavr-binutils.git] / crossavr-binutils.spec
CommitLineData
15547bba 1Summary: Cross AVR GNU binary utility development utilities - binutils
80e2ec2d
ER
2Summary(es.UTF-8): Utilitarios para desarrollo de binarios de la GNU - AVR binutils
3Summary(fr.UTF-8): Utilitaires de développement binaire de GNU - AVR binutils
4Summary(pl.UTF-8): Skrośne narzędzia programistyczne GNU dla AVR - binutils
5Summary(pt_BR.UTF-8): Utilitários para desenvolvimento de binários da GNU - AVR binutils
6Summary(tr.UTF-8): GNU geliştirme araçları - AVR binutils
c31c0377 7Name: crossavr-binutils
3ccd393f 8Version: 2.20.1
c31c0377 9Release: 1
3ccd393f 10Epoch: 1
11# Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.3.1.481.
12Patch100: 300-binutils-2.20.1-avr-size.patch
13Patch101: 301-binutils-2.20.1-avr-coff.patch
14Patch102: 302-binutils-2.20.1-new-sections.patch
15Patch103: 303-binutils-2.20.1-as-dwarf.patch
16Patch104: 304-binutils-2.20.1-dwarf2-AVRStudio-workaround.patch
17Patch105: 305-binutils-2.20.1-assembler-options.patch
18Patch106: 400-binutils-2.20.1-xmega.patch
19Patch107: 401-binutils-2.20.1-new-devices.patch
20Patch108: 402-binutils-2.20.1-avrtiny10.patch
21Patch109: 403-binutils-2.20.1-xmega128a1u-64a1u.patch
22Patch110: 404-binutils-2.20.1-atxmega32x1.patch
23Patch111: 405-binutils-2.20.1-atxmega128b1.patch
24Patch112: 406-binutils-2.20.1-atxmega256a3bu.patch
25Patch113: 407-binutils-2.20.1-at90pwm161.patch
26Patch114: 408-binutils-2.20.1-atmega16hvb-32hvb.patch
27Patch115: 409-binutils-2.20.1-atmega32_5_50_90_pa.patch
28Patch116: 410-binutils-2.20.1-attiny1634.patch
29Patch117: 411-binutils-2.20.1-atmega48pa.patch
30Patch118: 412-binutils-2.20.1-atxmega_16_32_a4u.patch
31Patch119: 413-binutils-2.20.1-atxmega64_128_192_256a3u.patch
32Patch120: 414-binutils-2.20.1-atmegarfr2_a2.patch
33Patch121: 415-binutils-2.20.1-atmega165pa.patch
34Patch122: 416-binutils-2.20.1-atxmega384c3.patch
35Patch123: 417-binutils-2.20.1-attiny80.patch
36Patch124: 418-binutils-2.20.1-atxmega128a4u.patch
37Patch125: 419-binutils-2.20.1-atxmega64d4.patch
38Patch126: 420-binutils-2.20.1-atmega164pa_168pa_32a_64a.patch
39Patch127: 421-binutils-2.20.1-atxmega64_128_b3.patch
40Patch128: 422-binutils-2.20.1-atxmega64b1.patch
41Patch129: 423-binutils-2.20.1-atmega_8a_128a_1284.patch
42Patch130: 424-binutils-2.20.1-atxmega64a4u.patch
43Patch131: 425-binutils-2.20.1-atxmega128d4.patch
44Patch132: 426-binutils-2.20.1-atmxt336s.patch
45Patch133: 427-binutils-2.20.1-atxmega16c4_32c4_128c3_256c3.patch
46Patch134: 428-binutils-2.20.1-atxmega384d3.patch
47Patch135: 429-binutils-2.20.1-atmega48hvf.patch
48Patch136: 430-binutils-2.20.1-atmega26hvg.patch
49Patch137: 431-binutils-2.20.1-atmxt224_224e.patch
50Patch138: 431-binutils-2.20.1-atxmega192c3.patch
51Patch139: 500-binutils-2.20.1-bug13789.patch
52Patch140: 501-binutils-2.20.1-bug13113.patch
c31c0377
WK
53License: GPL
54Group: Development/Tools
323ea808 55Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
3ccd393f 56# Source0-md5: 2b9dc8f2b7dbd5ec5992c6e29de0b764
c3700061 57URL: http://sources.redhat.com/binutils/
4f1d398f 58BuildRequires: automake
c3700061 59BuildRequires: bash
c31c0377 60BuildRequires: bison
c3700061 61BuildRequires: flex
3076856f 62BuildRequires: gettext-devel
e09b612e 63BuildRequires: perl-tools-pod
f4a6ca9d 64BuildRequires: texinfo
c31c0377
WK
65%ifarch sparc sparc32
66BuildRequires: sparc32
67%endif
68BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69
70%define target avr
71%define arch %{_prefix}/%{target}
72
73%description
74Binutils 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
15547bba 87This package contains the cross version for Atmel AVR.
c31c0377 88
f3e2688f
JR
89%description -l pl.UTF-8
90Pakiet binutils zawiera zestaw narzędzi umożliwiających kompilację
91programów. Znajdują się tutaj między innymi assembler, konsolidator
92(linker), a także inne narzędzia do manipulowania binarnymi plikami
93programów i bibliotek.
c31c0377 94
f3e2688f 95Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
c31c0377
WK
96
97%prep
98%setup -q -n binutils-%{version}
3ccd393f 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
c31c0377
WK
140
141%build
4f1d398f 142cp /usr/share/automake/config.sub .
143
c31c0377 144# ldscripts won't be generated properly if SHELL is not bash...
c3700061
JB
145CFLAGS="%{rpmcflags}" \
146LDFLAGS="%{rpmldflags}" \
c31c0377
WK
147CONFIG_SHELL="/bin/bash" \
148%ifarch sparc
149sparc32 \
150%endif
151./configure \
2de3da85 152 --disable-shared \
3ccd393f 153 --disable-werror \
c31c0377 154 --prefix=%{_prefix} \
4f1d398f 155 --libdir=%{_libdir} \
c31c0377 156 --mandir=%{_mandir} \
4f1d398f 157 --infodir=%{_infodir} \
d7e2b08f 158 --host=%{_target_platform} \
159 --build=%{_target_platform} \
c31c0377
WK
160 --target=%{target}
161
323ea808 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
c3700061
JB
171%{__make} all \
172 tooldir=%{_prefix} \
173 EXEEXT=""
c31c0377
WK
174
175%install
176rm -rf $RPM_BUILD_ROOT
177install -d $RPM_BUILD_ROOT%{_prefix}
178
179%{__make} install \
180 prefix=$RPM_BUILD_ROOT%{_prefix} \
f0155d93 181 mandir=$RPM_BUILD_ROOT%{_mandir} \
14538aa8 182 infodir=$RPM_BUILD_ROOT%{_infodir} \
183 libdir=$RPM_BUILD_ROOT%{_libdir}
c31c0377 184
4f1d398f 185# remove these man pages unless we cross-build for win*/netware platforms.
186# however, this should be done in Makefiles.
187rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
188
95d38776
ER
189rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
190rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
191rm -rf $RPM_BUILD_ROOT%{_infodir}
192
c31c0377
WK
193%clean
194rm -rf $RPM_BUILD_ROOT
195
196%files
197%defattr(644,root,root,755)
9959e179 198%doc README
c31c0377 199%attr(755,root,root) %{_bindir}/%{target}-*
9959e179 200%dir %{arch}
c31c0377
WK
201%dir %{arch}/bin
202%attr(755,root,root) %{arch}/bin/*
203%dir %{arch}/lib
204%dir %{arch}/lib/*
f53587c5 205%{arch}/lib/*/*
c31c0377 206%{_mandir}/man?/%{target}-*
This page took 0.082486 seconds and 4 git commands to generate.