1 %define binutils_version 2.18.50
2 %define mingw32_binutils_version 20080109-2
3 %define mingw32_binutils_rpmvers %{expand:%(echo %{mingw32_binutils_version} | tr - _)}
6 Version: %{binutils_version}_%{mingw32_binutils_rpmvers}
8 Summary: MinGW Windows binutils
10 License: GPLv2+ and LGPLv2+ and GPLv3+ and LGPLv3+
11 Group: Development/Libraries
12 URL: http://www.mingw.org/
13 Source0: http://dl.sourceforge.net/sourceforge/mingw/binutils-%{binutils_version}-%{mingw32_binutils_version}-src.tar.gz
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18 BuildRequires: texinfo
19 BuildRequires: mingw32-filesystem >= 26
21 Requires: mingw32-filesystem >= 26
23 Provides: mingw-binutils = %{version}-%{release}
24 Obsoletes: mingw-binutils < 2.18.50_20080109_2-8
28 MinGW Windows binutils (utilities like 'strip', 'as', 'ld') which
29 understand Windows executables and DLLs.
33 %setup -q -n binutils-%{binutils_version}
39 CFLAGS="$RPM_OPT_FLAGS" \
41 --build=%_build --host=%_host \
42 --target=%{_mingw32_target} \
43 --verbose --disable-nls \
44 --without-included-gettext \
45 --disable-win32-registry \
47 --with-sysroot=%{_mingw32_sysroot} \
48 --prefix=%{_prefix} --bindir=%{_bindir} \
49 --includedir=%{_includedir} --libdir=%{_libdir} \
50 --mandir=%{_mandir} --infodir=%{_infodir}
56 rm -rf $RPM_BUILD_ROOT
59 make DESTDIR=$RPM_BUILD_ROOT install
61 # These files conflict with ordinary binutils.
62 rm -rf $RPM_BUILD_ROOT%{_infodir}
63 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
67 rm -rf $RPM_BUILD_ROOT
73 %{_bindir}/i686-pc-mingw32-*
74 %{_prefix}/i686-pc-mingw32/bin
75 %{_prefix}/i686-pc-mingw32/lib/ldscripts
79 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.18.50_20080109_2-8
80 - Rename mingw -> mingw32.
81 - BR mingw32-filesystem >= 26.
83 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 2.18.50_20080109_2-7
84 - Use mingw-filesystem.
86 * Mon Jul 7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.18.50_20080109_2-5
87 - Initial RPM release, largely based on earlier work from several sources.