]> git.pld-linux.org Git - packages/crossavr-binutils.git/blobdiff - crossavr-binutils.spec
- release 2 (x32 rebuild)
[packages/crossavr-binutils.git] / crossavr-binutils.spec
index e0ae847e11ebde1d60ad187d4c1e6fae8510c131..ed9eb84ac44d00767c6538b6b8a295ecbbcae2b0 100644 (file)
@@ -5,61 +5,51 @@ Summary(pl.UTF-8):    Skrośne narzędzia programistyczne GNU dla AVR - binutils
 Summary(pt_BR.UTF-8):  Utilitários para desenvolvimento de binários da GNU - AVR binutils
 Summary(tr.UTF-8):     GNU geliştirme araçları - AVR binutils
 Name:          crossavr-binutils
-Version:       2.20.1
-Release:       1
+Version:       2.23.1
+Release:       2
 Epoch:         1
-# Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.3.1.481.
-Patch100:      300-binutils-2.20.1-avr-size.patch
-Patch101:      301-binutils-2.20.1-avr-coff.patch
-Patch102:      302-binutils-2.20.1-new-sections.patch
-Patch103:      303-binutils-2.20.1-as-dwarf.patch
-Patch104:      304-binutils-2.20.1-dwarf2-AVRStudio-workaround.patch
-Patch105:      305-binutils-2.20.1-assembler-options.patch
-Patch106:      400-binutils-2.20.1-xmega.patch
-Patch107:      401-binutils-2.20.1-new-devices.patch
-Patch108:      402-binutils-2.20.1-avrtiny10.patch
-Patch109:      403-binutils-2.20.1-xmega128a1u-64a1u.patch
-Patch110:      404-binutils-2.20.1-atxmega32x1.patch
-Patch111:      405-binutils-2.20.1-atxmega128b1.patch
-Patch112:      406-binutils-2.20.1-atxmega256a3bu.patch
-Patch113:      407-binutils-2.20.1-at90pwm161.patch
-Patch114:      408-binutils-2.20.1-atmega16hvb-32hvb.patch
-Patch115:      409-binutils-2.20.1-atmega32_5_50_90_pa.patch
-Patch116:      410-binutils-2.20.1-attiny1634.patch
-Patch117:      411-binutils-2.20.1-atmega48pa.patch
-Patch118:      412-binutils-2.20.1-atxmega_16_32_a4u.patch
-Patch119:      413-binutils-2.20.1-atxmega64_128_192_256a3u.patch
-Patch120:      414-binutils-2.20.1-atmegarfr2_a2.patch
-Patch121:      415-binutils-2.20.1-atmega165pa.patch
-Patch122:      416-binutils-2.20.1-atxmega384c3.patch
-Patch123:      417-binutils-2.20.1-attiny80.patch
-Patch124:      418-binutils-2.20.1-atxmega128a4u.patch
-Patch125:      419-binutils-2.20.1-atxmega64d4.patch
-Patch126:      420-binutils-2.20.1-atmega164pa_168pa_32a_64a.patch
-Patch127:      421-binutils-2.20.1-atxmega64_128_b3.patch
-Patch128:      422-binutils-2.20.1-atxmega64b1.patch
-Patch129:      423-binutils-2.20.1-atmega_8a_128a_1284.patch
-Patch130:      424-binutils-2.20.1-atxmega64a4u.patch
-Patch131:      425-binutils-2.20.1-atxmega128d4.patch
-Patch132:      426-binutils-2.20.1-atmxt336s.patch
-Patch133:      427-binutils-2.20.1-atxmega16c4_32c4_128c3_256c3.patch
-Patch134:      428-binutils-2.20.1-atxmega384d3.patch
-Patch135:      429-binutils-2.20.1-atmega48hvf.patch
-Patch136:      430-binutils-2.20.1-atmega26hvg.patch
-Patch137:      431-binutils-2.20.1-atmxt224_224e.patch
-Patch138:      431-binutils-2.20.1-atxmega192c3.patch
-Patch139:      500-binutils-2.20.1-bug13789.patch
-Patch140:      501-binutils-2.20.1-bug13113.patch
-License:       GPL
+License:       GPL v3+
 Group:         Development/Tools
-Source0:       ftp://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
-# Source0-md5: 2b9dc8f2b7dbd5ec5992c6e29de0b764
+Source0:       http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
+# Source0-md5: 33adb18c3048d057ac58d07a3f1adb38
+Patch0:                am.patch
+# Patches 1xx are taken form Atmel official AVR8-GNU toolchain version 3.4.2
+# http://distribute.atmel.no/tools/opensource/Atmel-AVR-Toolchain-3.4.2/avr/avr-patches.tar.gz
+Patch100:      001-xmega-Makefile_am-typo.patch
+Patch101:      002-tinycore-support.patch
+Patch102:      003-RMW-insn-constriant.patch
+Patch103:      004-new-part-supports.patch
+Patch104:      005-additional-part-supports.patch
+Patch105:      006-xmega-showuage-typo.patch
+Patch106:      007-ata6289-architecture-correction.patch
+Patch107:      008-add-usersig-section.patch
+Patch108:      009-dwarf-relax-fix.patch
+Patch109:      010-disable-demand-paging.patch
+Patch110:      200-binutils-avr-size.patch
+Patch111:      201-binutils-dwarf2-AVRStudio-workaround.patch
+Patch112:      202-binutils-bug13113.patch
+Patch113:      400-binutils-atmxt336s.patch
+Patch114:      401-binutils-atmega48hvf.patch
+Patch115:      402-binutils-atmega26hvg.patch
+Patch116:      403-binutils-atmxt224_224e.patch
+Patch117:      404-binutils-atmxt112sl.patch
+Patch118:      405-binutils-atmxt540s.patch
+Patch119:      406-binutils-ata5831.patch
+Patch120:      407-binutils-attiny841.patch
+Patch121:      408-binutils-atmegarfa2.patch
+Patch122:      409-binutils-ata5790n.patch
+Patch123:      410-binutils-atmega64hve2.patch
+Patch124:      411-binutils-attiny474.patch
+Patch125:      412-binutils-atmxts200.patch
+Patch126:      500-binutils-avrtc530-backported.patch
 URL:           http://sources.redhat.com/binutils/
-BuildRequires: automake
+BuildRequires: autoconf >= 2.64
+BuildRequires: automake >= 1:1.9
 BuildRequires: bash
 BuildRequires: bison
 BuildRequires: flex
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
+BuildRequires: gcc-c++
 BuildRequires: perl-tools-pod
 BuildRequires: texinfo
 %ifarch sparc sparc32
@@ -68,7 +58,9 @@ BuildRequires:        sparc32
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                target          avr
-%define                arch            %{_prefix}/%{target}
+%define                archprefix      %{_prefix}/%{target}
+%define                archbindir      %{archprefix}/bin
+%define                archlibdir      %{archprefix}/lib
 
 %description
 Binutils is a collection of binary utilities, including:
@@ -81,8 +73,7 @@ Binutils is a collection of binary utilities, including:
 - strings - list printable strings from files,
 - strip - discard symbols,
 - c++filt - a filter for demangling encoded C++ symbols,
-- addr2line - convert addresses to file and line,
-- nlmconv - convert object code into an NLM.
+- addr2line - convert addresses to file and line.
 
 This package contains the cross version for Atmel AVR.
 
@@ -96,6 +87,7 @@ Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
 
 %prep
 %setup -q -n binutils-%{version}
+%patch0 -p1
 %patch100 -p0
 %patch101 -p0
 %patch102 -p0
@@ -123,41 +115,37 @@ Ten pakiet zawiera wersję skrośną generującą kod dla Atmel AVR.
 %patch124 -p0
 %patch125 -p0
 %patch126 -p0
-%patch127 -p0
-%patch128 -p0
-%patch129 -p0
-%patch130 -p0
-%patch131 -p0
-%patch132 -p0
-%patch133 -p0
-%patch134 -p0
-%patch135 -p0
-%patch136 -p0
-%patch137 -p0
-%patch138 -p0
-%patch139 -p0
-%patch140 -p0
+
+# Remove hacks for specific autoconf version.
+echo > config/override.m4
 
 %build
-cp /usr/share/automake/config.sub .
+%{__aclocal}
+%{__autoconf}
+for subdir in bfd binutils ld; do
+       cd $subdir
+       %{__aclocal} -I.. -I../bfd -I../config
+       %{__automake}
+       %{__autoconf}
+       cd -
+done
 
 # ldscripts won't be generated properly if SHELL is not bash...
 CFLAGS="%{rpmcflags}" \
 LDFLAGS="%{rpmldflags}" \
 CONFIG_SHELL="/bin/bash" \
-%ifarch sparc
-sparc32 \
-%endif
 ./configure \
-       --disable-shared \
-       --disable-werror \
+       MAKEINFO=/bin/true \
        --prefix=%{_prefix} \
        --libdir=%{_libdir} \
        --mandir=%{_mandir} \
        --infodir=%{_infodir} \
        --host=%{_target_platform} \
        --build=%{_target_platform} \
-       --target=%{target}
+       --target=%{target} \
+       --enable-gold \
+       --disable-shared \
+       --disable-werror
 
 # We have to regenerate headers after patching.
 %{__make} configure-host \
@@ -177,6 +165,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_prefix}
 
 %{__make} install \
+       MAKEINFO=/bin/true \
        prefix=$RPM_BUILD_ROOT%{_prefix} \
        mandir=$RPM_BUILD_ROOT%{_mandir} \
        infodir=$RPM_BUILD_ROOT%{_infodir} \
@@ -184,11 +173,13 @@ install -d $RPM_BUILD_ROOT%{_prefix}
 
 # remove these man pages unless we cross-build for win*/netware platforms.
 # however, this should be done in Makefiles.
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windmc,*windres}.1
+
+# rely on system locales and info documentation
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}
+%{__rm} -r $RPM_BUILD_ROOT%{_infodir}
 
-rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/*.mo
-rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty.a
-rm -rf $RPM_BUILD_ROOT%{_infodir}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libiberty.a
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -196,11 +187,47 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(755,root,root) %{_bindir}/%{target}-*
-%dir %{arch}
-%dir %{arch}/bin
-%attr(755,root,root) %{arch}/bin/*
-%dir %{arch}/lib
-%dir %{arch}/lib/*
-%{arch}/lib/*/*
-%{_mandir}/man?/%{target}-*
+%attr(755,root,root) %{_bindir}/%{target}-addr2line
+%attr(755,root,root) %{_bindir}/%{target}-ar
+%attr(755,root,root) %{_bindir}/%{target}-as
+%attr(755,root,root) %{_bindir}/%{target}-c++filt
+%attr(755,root,root) %{_bindir}/%{target}-elfedit
+%attr(755,root,root) %{_bindir}/%{target}-gprof
+%attr(755,root,root) %{_bindir}/%{target}-ld
+%attr(755,root,root) %{_bindir}/%{target}-ld.bfd
+%attr(755,root,root) %{_bindir}/%{target}-nm
+%attr(755,root,root) %{_bindir}/%{target}-objcopy
+%attr(755,root,root) %{_bindir}/%{target}-objdump
+%attr(755,root,root) %{_bindir}/%{target}-ranlib
+%attr(755,root,root) %{_bindir}/%{target}-readelf
+%attr(755,root,root) %{_bindir}/%{target}-size
+%attr(755,root,root) %{_bindir}/%{target}-strings
+%attr(755,root,root) %{_bindir}/%{target}-strip
+%dir %{archprefix}
+%dir %{archbindir}
+%attr(755,root,root) %{archbindir}/ar
+%attr(755,root,root) %{archbindir}/as
+%attr(755,root,root) %{archbindir}/ld
+%attr(755,root,root) %{archbindir}/ld.bfd
+%attr(755,root,root) %{archbindir}/nm
+%attr(755,root,root) %{archbindir}/objcopy
+%attr(755,root,root) %{archbindir}/objdump
+%attr(755,root,root) %{archbindir}/ranlib
+%attr(755,root,root) %{archbindir}/strip
+%dir %{archlibdir}
+%{archlibdir}/ldscripts
+%{_mandir}/man1/%{target}-addr2line.1*
+%{_mandir}/man1/%{target}-ar.1*
+%{_mandir}/man1/%{target}-as.1*
+%{_mandir}/man1/%{target}-c++filt.1*
+%{_mandir}/man1/%{target}-elfedit.1*
+%{_mandir}/man1/%{target}-gprof.1*
+%{_mandir}/man1/%{target}-ld.1*
+%{_mandir}/man1/%{target}-nm.1*
+%{_mandir}/man1/%{target}-objcopy.1*
+%{_mandir}/man1/%{target}-objdump.1*
+%{_mandir}/man1/%{target}-ranlib.1*
+%{_mandir}/man1/%{target}-readelf.1*
+%{_mandir}/man1/%{target}-size.1*
+%{_mandir}/man1/%{target}-strings.1*
+%{_mandir}/man1/%{target}-strip.1*
This page took 0.081957 seconds and 4 git commands to generate.