1 # This is the bootstrap GCC which is required for bootstrapping
4 %define __os_install_post /usr/lib/rpm/brp-compress %{nil}
6 %define upstream_version 4.4-20090206
8 Name: mingw64-gcc-bootstrap
10 Release: 0.20090206.7%{?dist}
11 Summary: MinGW Windows cross-compiler (GCC) for C
14 Group: Development/Languages
15 URL: http://www.mingw.org/
16 Source0: ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/snapshots/4.4-20090206/gcc-core-4.4-20090206.tar.bz2
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20 BuildRequires: texinfo
21 BuildRequires: mingw64-filesystem >= 6
22 BuildRequires: mingw64-binutils
23 BuildRequires: mingw64-headers
24 BuildRequires: gmp-devel
26 BuildRequires: mpfr-devel
28 BuildRequires: libgomp
31 # NB: Explicit mingw64-filesystem dependency is REQUIRED here.
32 Requires: mingw64-filesystem >= 6
33 Requires: mingw64-binutils
34 Requires: mingw64-headers
35 Requires: mingw64-cpp-bootstrap
39 MinGW Windows cross-compiler (GCC) for C
42 %package -n mingw64-cpp-bootstrap
43 Summary: MinGW Windows cross-C Preprocessor.
44 Group: Development/Languages
47 %description -n mingw64-cpp-bootstrap
48 MinGW Windows cross-C Preprocessor
56 cd gcc-%{upstream_version}
63 CC="%{__cc} ${RPM_OPT_FLAGS}" \
67 --includedir=%{_includedir} \
70 --infodir=%{_infodir} \
71 --datadir=%{_datadir} \
72 --build=%_build --host=%_host \
73 --target=%{_mingw64_target} \
74 --with-gnu-as --with-gnu-ld --verbose \
78 --disable-nls --without-included-gettext \
79 --disable-win32-registry \
80 --enable-version-specific-runtime-libs \
81 --with-sysroot=%{_mingw64_sysroot} \
82 --enable-languages="$languages" $optargs
84 make %{?_smp_mflags} all-gcc
88 rm -rf $RPM_BUILD_ROOT
90 cd gcc-%{upstream_version}
92 make DESTDIR=$RPM_BUILD_ROOT install-gcc
94 # These files conflict with existing installed files.
95 rm -rf $RPM_BUILD_ROOT%{_infodir}
96 rm -f $RPM_BUILD_ROOT%{_mandir}/man7/*
98 mkdir -p $RPM_BUILD_ROOT/lib
99 ln -sf ..%{_prefix}/bin/x86_64-pc-mingw32-cpp \
100 $RPM_BUILD_ROOT/lib/x86_64-pc-mingw32-cpp
103 rm -rf $RPM_BUILD_ROOT
107 %defattr(-,root,root)
108 %{_bindir}/x86_64-pc-mingw32-gcc
109 %{_bindir}/x86_64-pc-mingw32-gcc-%{version}
110 %{_bindir}/x86_64-pc-mingw32-gccbug
111 %{_bindir}/x86_64-pc-mingw32-gcov
112 %dir %{_libdir}/gcc/x86_64-pc-mingw32
113 %dir %{_libdir}/gcc/x86_64-pc-mingw32/%{version}
114 %dir %{_libdir}/gcc/x86_64-pc-mingw32/%{version}/include
115 %dir %{_libdir}/gcc/x86_64-pc-mingw32/%{version}/include-fixed
116 %{_libdir}/gcc/x86_64-pc-mingw32/%{version}/include-fixed/README
117 %{_libdir}/gcc/x86_64-pc-mingw32/%{version}/include-fixed/*.h
118 %{_libdir}/gcc/x86_64-pc-mingw32/%{version}/include/*.h
119 %dir %{_libdir}/gcc/x86_64-pc-mingw32/%{version}/install-tools
120 %{_libdir}/gcc/x86_64-pc-mingw32/%{version}/install-tools/*
121 %dir %{_libexecdir}/gcc/x86_64-pc-mingw32/%{version}/install-tools
122 %{_libexecdir}/gcc/x86_64-pc-mingw32/%{version}/install-tools/*
123 %{_mandir}/man1/x86_64-pc-mingw32-gcc.1*
124 %{_mandir}/man1/x86_64-pc-mingw32-gcov.1*
127 %files -n mingw64-cpp-bootstrap
128 %defattr(-,root,root)
129 /lib/x86_64-pc-mingw32-cpp
130 %{_bindir}/x86_64-pc-mingw32-cpp
131 %{_mandir}/man1/x86_64-pc-mingw32-cpp.1*
132 %dir %{_libdir}/gcc/x86_64-pc-mingw32
133 %dir %{_libdir}/gcc/x86_64-pc-mingw32/%{version}
134 %{_libexecdir}/gcc/x86_64-pc-mingw32/%{version}/cc1
135 %{_libexecdir}/gcc/x86_64-pc-mingw32/%{version}/collect2
139 * Wed Feb 11 2009 Richard W.M. Jones <rjones@redhat.com> - 4.4.0-0.20090206.7
140 - Started mingw64 development.
142 * Mon Nov 24 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.2-12
143 - Rebuild against latest filesystem package.
145 * Fri Nov 21 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.2-11
146 - Remove obsoletes for a long dead package.
148 * Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.2-10
149 - Rebuild against mingw32-filesystem 37
151 * Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.2-9
152 - Rebuild against mingw32-filesystem 36
154 * Thu Oct 30 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.2-8
155 - Don't BR mpfr-devel for RHEL/EPEL-5 (Levente Farkas).
157 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.2-7
158 - Rename mingw -> mingw32.
160 * Thu Sep 4 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.2-6
161 - Use RPM macros from mingw-filesystem.
163 * Mon Jul 7 2008 Richard W.M. Jones <rjones@redhat.com> - 4.3.2-3
164 - Initial RPM release, largely based on earlier work from several sources.