Name: mingw64-headers
Version: 0.1
-Release: 0.svn%{svn_revision}.2%{?dist}
+Release: 0.svn%{svn_revision}.6%{?dist}
Summary: Win32 header files and stubs
License: Public Domain and LGPLv2+
BuildArch: noarch
-BuildRequires: mingw64-filesystem >= 2
+BuildRequires: mingw64-filesystem >= 6
-Requires: mingw64-filesystem >= 2
+Requires: mingw64-filesystem >= 6
%description
cp -a trunk/mingw-w64-headers/include/* $RPM_BUILD_ROOT%{_mingw64_includedir}/
cp -a trunk/mingw-w64-headers/direct-x/include/* $RPM_BUILD_ROOT%{_mingw64_includedir}/
-# This link is a temporary hack to get builds working. Eventually
-# upstream will sort this out so the link is no longer necessary.
-pushd $RPM_BUILD_ROOT%{_mingw64_sysroot}
-ln -s mingw %{_mingw64_target}
+# XXX We don't know why this is required, but gcc/cc1 fails
+# to find the header files without it.
+pushd $RPM_BUILD_ROOT%{_mingw64_exec_prefix}
+ln -s include include64
popd
%files
%defattr(-,root,root)
%{_mingw64_includedir}/*
-%{_mingw64_sysroot}/%{_mingw64_target}
+%{_mingw64_exec_prefix}/include64
%changelog
-* Wed Feb 11 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1-0.svn607.2
+* Wed Feb 11 2009 Richard W.M. Jones <rjones@redhat.com> - 0.1-0.svn607.6
- Started mingw64 development.
* Mon Dec 15 2008 Richard W.M. Jones <rjones@redhat.com> - 3.13-1