From 72c0796c47a86d7944b9a9302a00b07d68d44f38 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Added binary bootstrap package. --- README | 19 ++++++++++++- bootstrap/mingw-bootstrap.spec | 61 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 bootstrap/mingw-bootstrap.spec diff --git a/README b/README index bf93f87..79e93fc 100644 --- a/README +++ b/README @@ -10,4 +10,21 @@ Other useful information: Build order & package notes: - * mingw-binutils + (1) mingw-bootstrap + + This is not a real Fedora package. Instead it is a binary + package which is just needed first time if you are building + from scratch. It contains some Windows binaries and header + files which are needed to bootstrap everything, and which + would normally be built by the packages below (specifically + by mingw-runtime and mingw-w32api). + + (2) mingw-binutils + + (3) mingw-gcc + + (4) mingw-runtime + (5) mingw-w32api + + Note that once built and installed, these last two replace the + files built from binaries in mingw-bootstrap. diff --git a/bootstrap/mingw-bootstrap.spec b/bootstrap/mingw-bootstrap.spec new file mode 100644 index 0000000..a3adc35 --- /dev/null +++ b/bootstrap/mingw-bootstrap.spec @@ -0,0 +1,61 @@ +# NOTE: NOT a Fedora package. This contains binaries which are needed +# just to bootstrap the whole system if you build everything from scratch. + +%define runtime_version 3.14 +%define w32api_version 3.11 + +Name: mingw-bootstrap +Version: 1 +Release: 1%{?dist} +Summary: MinGW Windows bootstrap (binary package) + +Group: Development/Libraries +License: Public Domain +URL: http://www.mingw.org/ + +Source0: http://dl.sourceforge.net/sourceforge/mingw/mingw-runtime-%{runtime_version}.tar.gz +Source1: http://dl.sourceforge.net/sourceforge/mingw/w32api-%{w32api_version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Provides: mingw-runtime = %{runtime_version} +Provides: mingw-w32api = %{w32api_version} + + +%description +MinGW bootstrap (binary package). + + +%prep +%setup -q -c +%setup -q -D -T -a1 + + +%build +rm -rf i686-pc-mingw32 + +# Setup sys-root. +mkdir -p i686-pc-mingw32/sys-root/mingw +cp -a include lib i686-pc-mingw32/sys-root/mingw + + +%install +rm -rf $RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT%{_prefix} +cp -a i686-pc-mingw32 $RPM_BUILD_ROOT%{_prefix} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%dir %{_prefix}/i686-pc-mingw32 +%{_prefix}/i686-pc-mingw32/sys-root + + +%changelog +* Mon Jul 7 2008 Richard W.M. Jones - 1-1 +- Initial RPM release. -- 1.8.3.1