0413734
%define target avr
0413734
0413734
Name:           %{target}-binutils
20059f9
Version:        2.23.1
20059f9
Release:        1%{?dist}
Thibault North 1e78c31
Epoch:		1
0413734
Summary:        Cross Compiling GNU binutils targeted at %{target}
0413734
Group:          Development/Tools
6ce68d1
License:        GPLv2+
0413734
URL:            http://www.gnu.org/software/binutils/
0413734
Source0:        ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{version}.tar.bz2
0413734
Source1:        README.fedora
20059f9
#add widespread options to avr-size: --format=avr -mcu=XX
20059f9
Patch1: http://distribute.atmel.no/tools/opensource/avr-gcc/binutils-2.20.1/30-binutils-2.20.1-avr-size.patch
0413734
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
6a4beed
BuildRequires:  gawk texinfo
0413734
0413734
%description
0413734
This is a Cross Compiling version of GNU binutils, which can be used to
0413734
assemble and link binaries for the %{target} platform, instead of for the
0413734
native %{_arch} platform.
0413734
0413734
0413734
%prep
0413734
%setup -q -c
20059f9
pushd binutils-%{version}
20059f9
%patch1 -p0 -b .avr-size
20059f9
popd 
0413734
cp %{SOURCE1} .
0413734
0413734
0413734
%build
0413734
mkdir -p build
0413734
pushd build
0413734
CFLAGS="$RPM_OPT_FLAGS" ../binutils-%{version}/configure --prefix=%{_prefix} \
0413734
  --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \
0413734
  --target=%{target} --disable-werror --disable-nls
0413734
make %{?_smp_mflags}
0413734
popd build
0413734
0413734
0413734
%install
0413734
rm -rf $RPM_BUILD_ROOT
0413734
pushd build
0413734
make install DESTDIR=$RPM_BUILD_ROOT
0413734
popd build
0413734
# these are for win targets only
0413734
rm $RPM_BUILD_ROOT%{_mandir}/man1/%{target}-{dlltool,nlmconv,windres}.1
0413734
# we don't want these as we are a cross version
0413734
rm -r $RPM_BUILD_ROOT%{_infodir}
0413734
rm    $RPM_BUILD_ROOT%{_libdir}/libiberty.a
0413734
0413734
0413734
%clean
0413734
rm -rf $RPM_BUILD_ROOT
0413734
0413734
0413734
%files
0413734
%defattr(-,root,root,-)
0413734
%doc binutils-%{version}/COPYING binutils-%{version}/COPYING.LIB
0413734
%doc binutils-%{version}/README README.fedora
0413734
%{_prefix}/%{target}
0413734
%{_bindir}/%{target}-*
0413734
%{_mandir}/man1/%{target}-*.1.gz
0413734
0413734
0413734
%changelog
20059f9
* Thu Nov 15 2012 Michal Hlavinka <mhlavink@redhat.com> - 1:2.23.1-1
20059f9
- updated to 2.23.1
20059f9
- added new option --format=avr to avr-size for compatibility reasons 
20059f9
  with other avr toolchains (#851660)
20059f9
bfb57c8
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.20-3
bfb57c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bfb57c8
Thibault North 1e78c31
* Fri Nov 11 2011 Thibault North <tnorth@fedoraproject.org> - 1:2.20-2
Thibault North 1e78c31
- Downgrade to 2.20 because of BZ#688645
Thibault North 1e78c31
1e4703b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.21-2
1e4703b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1e4703b
9671e6f
* Sun Dec 19 2010 Thibault North <tnorth@fedoraproject.org> - 2.21-1
9671e6f
- New upstream release 2.21
9671e6f
df31568
* Fri Nov 20 2009 Thibault North <tnorth AT fedoraproject DOT org> - 2.20-1
df31568
- New upstream release
5d3b7ef
4eb6b30
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.18-5
4eb6b30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4eb6b30
92d2ea6
* Sat Feb 28 2009 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 2.18-4
92d2ea6
- Rebase patch-coff-avr.patch (Fix F11 rebuild breakdown).
92d2ea6
fb15f50
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.18-3
fb15f50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fb15f50
2fc8727
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.18-2
2fc8727
- Autorebuild for GCC 4.3
2fc8727
74a08b6
* Thu Jan 24 2008 John Voltz <ninevoltz@metalink.net> 2.18-1
74a08b6
- Bump to binutils 2.18 and add coff-avr patch for VMLAB (on Wine)
74a08b6
e4137a9
* Sun Dec  2 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.17-5
e4137a9
- Fix building with texinfo version > 4.9 (4.11 for example)
e4137a9
ada9984
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.17-4
6ce68d1
- Update License tag for new Licensing Guidelines compliance
ada9984
- Fix building with new glibc open checking
6ce68d1
0413734
* Sat Apr  7 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.17-3
0413734
- Use mkdir -p instead of mkdir, to fix rpmbuild --short-circuit (bz 234750)
0413734
0413734
* Fri Apr  6 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.17-2
0413734
- Several specfile improvements / fixes (bz 234750)
0413734
0413734
* Sun Apr  1 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.17-1
0413734
- Revert to GNU 2.17 release as using GNU releases are better for non linux
0413734
  targets
0413734
- Add --disable-nls, to disable translations, so that we don't use the native
0413734
  PO files, as using the PO files of the (different version) native binutils,
0413734
  can lead to all kinda problems when translating formatstrings.
0413734
- Don't use %%configure but DIY, to avoid unwanted side effects of %%configure
0413734
0413734
* Sun Apr  1 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.17.50.0.12-1
0413734
- Bump to 2.17.50.0.12, to sync with rawhide / Fedora 7
0413734
- "Dynamicly Generate" README.fedora so that macros can be used
0413734
0413734
* Thu Mar 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.17.50.0.9-1
0413734
- Bump to 2.17.50.0.9
0413734
- Use %%configure instead of ./configure
0413734
- Various fixups
0413734
0413734
* Wed Mar 28 2007 Koos Termeulen koostermeulen@gmail.com 2.17-1
0413734
- New version and some changes after unofficial review by Hans de Goede
0413734
0413734
* Wed Mar 21 2007 Koos Termeulen koostermeulen@gmail.com 2.16.1-1
0413734
- Initial release