4 Summary: MinGW Windows cross-compiler (GCC) for C and C++
7 Group: Development/Libraries
8 URL: http://www.mingw.org/
9 Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-core-%{version}.tar.bz2
10 Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-g++-%{version}.tar.bz2
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 BuildRequires: texinfo
15 BuildRequires: mingw-binutils
16 BuildRequires: mingw-runtime
17 BuildRequires: mingw-w32api
18 BuildRequires: gmp-devel
19 BuildRequires: mpfr-devel
20 BuildRequires: libgomp
22 Requires: mingw-binutils
23 Requires: mingw-runtime
24 Requires: mingw-w32api
28 MinGW Windows cross-compiler (GCC) for C and C++.
44 # XXX C++ disabled for now because of a strange GCC bug.
46 CC="%{__cc} ${RPM_OPT_FLAGS}" \
50 --includedir=%{_includedir} \
53 --infodir=%{_infodir} \
54 --datadir=%{_datadir} \
55 --build=%_build --host=%_host \
56 --target=i686-pc-mingw32 \
57 --with-gnu-as --with-gnu-ld --verbose \
61 --disable-nls --without-included-gettext \
62 --disable-win32-registry \
63 --enable-version-specific-runtime-libs \
64 --with-sysroot=%{_prefix}/i686-pc-mingw32/sys-root \
65 --enable-languages="$languages" $optargs
71 rm -rf $RPM_BUILD_ROOT
75 make DESTDIR=$RPM_BUILD_ROOT install
77 # These files conflict with existing installed files.
78 rm -rf $RPM_BUILD_ROOT%{_infodir}
79 rm -f $RPM_BUILD_ROOT%{_libdir}/libiberty*
80 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/*
84 rm -rf $RPM_BUILD_ROOT
89 %{_prefix}/i686-pc-mingw32/lib/libiberty.a
90 %{_libdir}/gcc/i686-pc-mingw32
91 %{_libexecdir}/gcc/i686-pc-mingw32
92 %{_bindir}/i686-pc-mingw32-*
93 %{_mandir}/man1/i686-pc-mingw32-*
97 * Mon Jul 7 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.1-1
98 - Initial RPM release, largely based on earlier work from several sources.