1 %define __os_install_post /usr/lib/rpm/brp-compress %{nil}
6 Summary: MinGW Windows cross-compiler (GCC) for C and C++
9 Group: Development/Libraries
10 URL: http://www.mingw.org/
11 Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-core-%{version}.tar.bz2
12 Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-g++-%{version}.tar.bz2
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16 BuildRequires: texinfo
17 BuildRequires: mingw-binutils
18 BuildRequires: mingw-runtime
19 BuildRequires: mingw-w32api
20 BuildRequires: gmp-devel
21 BuildRequires: mpfr-devel
22 BuildRequires: libgomp
24 Requires: mingw-binutils
25 Requires: mingw-runtime
26 Requires: mingw-w32api
30 MinGW Windows cross-compiler (GCC) for C and C++.
46 # XXX C++ disabled for now because of a strange GCC bug.
48 CC="%{__cc} ${RPM_OPT_FLAGS}" \
52 --includedir=%{_includedir} \
55 --infodir=%{_infodir} \
56 --datadir=%{_datadir} \
57 --build=%_build --host=%_host \
58 --target=i686-pc-mingw32 \
59 --with-gnu-as --with-gnu-ld --verbose \
63 --disable-nls --without-included-gettext \
64 --disable-win32-registry \
65 --enable-version-specific-runtime-libs \
66 --with-sysroot=%{_prefix}/i686-pc-mingw32/sys-root \
67 --enable-languages="$languages" $optargs
73 rm -rf $RPM_BUILD_ROOT
77 make DESTDIR=$RPM_BUILD_ROOT install
79 # These files conflict with existing installed files.
80 rm -rf $RPM_BUILD_ROOT%{_infodir}
81 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty*
82 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/*
86 rm -rf $RPM_BUILD_ROOT
91 %{_prefix}/i686-pc-mingw32/lib/libiberty.a
92 %{_libdir}/gcc/i686-pc-mingw32
93 %{_libexecdir}/gcc/i686-pc-mingw32
94 %{_bindir}/i686-pc-mingw32-*
95 %{_mandir}/man1/i686-pc-mingw32-*
99 * Mon Jul 7 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.1-3
100 - Initial RPM release, largely based on earlier work from several sources.