diff --git a/.gitignore b/.gitignore index e69de29..b8f8abc 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,5 @@ +binutils-2.20.1.tar.bz2 +/binutils-2.20.51.0.10.tar.bz2 +/binutils-2.21.tar.bz2 +/binutils-2.22.tar.bz2 +/binutils-2.22.52.tar.bz2 diff --git a/mingw32-binutils.spec b/mingw32-binutils.spec new file mode 100644 index 0000000..8c39404 --- /dev/null +++ b/mingw32-binutils.spec @@ -0,0 +1,142 @@ +Name: mingw32-binutils +Version: 2.22.52 +Release: 1%{?dist} +Summary: MinGW Windows binutils + +License: GPLv2+ and LGPLv2+ and GPLv3+ and LGPLv3+ +Group: Development/Libraries +URL: http://www.gnu.org/software/binutils/ +Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2 + +BuildRequires: flex +BuildRequires: bison +BuildRequires: texinfo +BuildRequires: mingw32-filesystem >= 95 + +# NB: This must be left in. +Requires: mingw32-filesystem >= 95 + + +%description +MinGW Windows binutils (utilities like 'strip', 'as', 'ld') which +understand Windows executables and DLLs. + + +%prep +%setup -q -n binutils-%{version} + + +%build +mkdir -p build +cd build +CFLAGS="$RPM_OPT_FLAGS" \ +../configure \ + --build=%_build --host=%_host \ + --target=%{_mingw32_target} \ + --disable-nls \ + --with-sysroot=%{_mingw32_sysroot} \ + --prefix=%{_prefix} \ + --bindir=%{_bindir} \ + --includedir=%{_includedir} \ + --libdir=%{_libdir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} + +make all %{?_smp_mflags} + + +%install +cd build +make DESTDIR=$RPM_BUILD_ROOT install + +# These files conflict with ordinary binutils. +rm -rf $RPM_BUILD_ROOT%{_infodir} +rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty* + +# Temporary provide mingw-strip, mingw-objdump and mingw-objcopy +# in preparation for win32+win64 support +ln -s %{_mingw32_strip} $RPM_BUILD_ROOT%{_bindir}/%{mingw_strip} +ln -s %{_mingw32_objdump} $RPM_BUILD_ROOT%{_bindir}/%{mingw_objdump} +ln -s %{_mingw32_objcopy} $RPM_BUILD_ROOT%{_bindir}/%{mingw_objcopy} + + +%files +%{_mandir}/man1/* +%{_bindir}/%{mingw_strip} +%{_bindir}/%{mingw_objdump} +%{_bindir}/%{mingw_objcopy} +%{_bindir}/%{_mingw32_target}-* +%{_prefix}/%{_mingw32_target}/bin/* +%{_prefix}/%{_mingw32_target}/lib/ldscripts + + +%changelog +* Sat Feb 25 2012 Erik van Pienbroek - 2.22.52-1 +- Update to 2.22.52 20120225 snapshot +- Bump the BR/R: mingw32-filesystem to >= 95 +- Rebuild using the i686-w64-mingw32 triplet +- Dropped some obsolete configure arguments +- Temporary provide mingw-strip, mingw-objdump and mingw-objcopy + in preparation for win32+win64 support + +* Tue Jan 10 2012 Erik van Pienbroek - 2.22-1 +- Update to 2.22 +- Dropped unneeded RPM tags +- Use parallel make + +* Tue May 10 2011 Kalev Lember - 2.21-2 +- Default to runtime pseudo reloc v2 now that mingw32-runtime 3.18 is in + +* Thu Mar 17 2011 Kalev Lember - 2.21-1 +- Update to 2.21 +- Added a patch to use runtime pseudo reloc v1 by default as the version of + mingw32-runtime we have does not support v2. +- Don't own the /usr/i686-pc-mingw32/bin/ directory + +* Tue Feb 08 2011 Fedora Release Engineering - 2.20.51.0.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Sep 7 2010 Richard W.M. Jones - 2.20.51.0.10-1 +- Synchronize with Fedora native version (2.20.51.0.10). +- Note however that we are not using any Fedora patches. + +* Thu May 13 2010 Kalev Lember - 2.20.1-1 +- Update to 2.20.1 + +* Wed Sep 16 2009 Kalev Lember - 2.19.51.0.14-1 +- Update to 2.19.51.0.14 + +* Sat Jul 25 2009 Fedora Release Engineering - 2.19.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Mar 10 2009 Richard W.M. Jones - 2.19.1-4 +- Switch to using upstream (GNU) binutils 2.19.1. It's exactly the + same as the MinGW version now. + +* Wed Feb 25 2009 Fedora Release Engineering - 2.19.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 Richard W.M. Jones - 2.19.1-2 +- Rebuild for mingw32-gcc 4.4 + +* Tue Feb 10 2009 Richard W.M. Jones - 2.19.1-1 +- New upstream version 2.19.1. + +* Mon Dec 15 2008 Richard W.M. Jones - 2.19-1 +- New upstream version 2.19. + +* Sat Nov 29 2008 Richard W.M. Jones - 2.18.50_20080109_2-10 +- Must runtime-require mingw32-filesystem. + +* Fri Nov 21 2008 Levente Farkas - 2.18.50_20080109_2-9 +- BR mingw32-filesystem >= 38 + +* Wed Sep 24 2008 Richard W.M. Jones - 2.18.50_20080109_2-8 +- Rename mingw -> mingw32. +- BR mingw32-filesystem >= 26. + +* Thu Sep 4 2008 Richard W.M. Jones - 2.18.50_20080109_2-7 +- Use mingw-filesystem. + +* Mon Jul 7 2008 Richard W.M. Jones - 2.18.50_20080109_2-5 +- Initial RPM release, largely based on earlier work from several sources. diff --git a/sources b/sources index e69de29..22f4014 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3e3a3dd1eb98a4b2e3bc18eb775c6b3c binutils-2.22.52.tar.bz2