X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=crossmingw32-w32api.spec;h=c584aeafd6aaa2b5d4ae08463bb3fe8a2a677b2e;hb=b03b9773dd118cc9cd0c910817dc45685737350e;hp=459d0aa8c1e149402950de7e36a3d344e954987f;hpb=54632e3556162ba5fd1ea350b708d58a81dfc01a;p=packages%2Fcrossmingw32-w32api.git diff --git a/crossmingw32-w32api.spec b/crossmingw32-w32api.spec index 459d0aa..c584aea 100644 --- a/crossmingw32-w32api.spec +++ b/crossmingw32-w32api.spec @@ -1,33 +1,44 @@ Summary: Mingw32 Binary Utility Development Utilities - Win32 API libraries Summary(pl): Zestaw narzêdzi mingw32 - biblioteki API Win32 Name: crossmingw32-w32api -Version: 2.4 +Version: 3.2 %define apiver %{version} %define apisrc w32api-%{apiver} -%define runver 3.2 +%define runver 3.7 %define runsrc mingw-runtime-%{runver} -Release: 1 +Release: 2 Epoch: 1 License: Free Group: Development/Libraries Source0: http://dl.sourceforge.net/mingw/%{apisrc}-src.tar.gz -# Source0-md5: 931b25da6223bd72ada13e83443cc6ed +# Source0-md5: c9204f46e6b6deeb1c182bc75ad4d88f # only for headers Source1: http://dl.sourceforge.net/mingw/%{runsrc}-src.tar.gz -# Source1-md5: 9fe85d9ca858fe00c907ed1e3052ee4c +# Source1-md5: d5bb1d754e3315a768fe69056b3ee8d3 +Source2: http://oss.sgi.com/projects/ogl-sample/ABI/glext.h +# NoSource2-md5: 0c40bd4545aa630e139043c2b12f0807 +Patch0: %{name}-include_fix.patch URL: http://www.mingw.org/ +BuildRequires: autoconf +BuildRequires: automake BuildRequires: crossmingw32-gcc -Requires: crossmingw32-binutils >= 2.14.90.0.4.1-2 +Requires: crossmingw32-binutils >= 2.15.91.0.2-2 Obsoletes: crossmingw32-platform BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define target i386-mingw32 %define target_platform i386-pc-mingw32 -%define _prefix /usr/%{target} +%define _prefix /usr/%{target} +%define _libdir %{_prefix}/lib # strip fails on static COFF files %define no_install_post_strip 1 +%ifarch alpha sparc sparc64 sparcv9 +# alpha's -mieee and sparc's -mtune=* are not valid for target's gcc +%define optflags -O2 +%endif + %description crossmingw32 is a complete cross-compiling development system for building stand-alone Microsoft Windows applications under Linux using @@ -60,8 +71,10 @@ DirectX z API Win32 dla MinGW. %prep %setup -q -n w32api-%{version} -a1 +%patch0 -p1 %build +cp /usr/share/automake/config.sub . %{__autoconf} ./configure \ --prefix=%{_prefix} \ @@ -80,6 +93,8 @@ rm -rf $RPM_BUILD_ROOT %{!?debug:%{target}-strip -g $RPM_BUILD_ROOT%{_libdir}/*.a} +install %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/GL + %clean rm -rf $RPM_BUILD_ROOT @@ -90,8 +105,15 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/lib[!d]*.a %{_libdir}/libdlcapi.a %{_libdir}/libdxapi.a +%exclude %{_libdir}/libglut*.a +%exclude %{_includedir}/dxerr*.h +%exclude %{_includedir}/d3d*.h %files dx %defattr(644,root,root,755) %{_libdir}/libd[!lx]*.a %{_libdir}/libdxguid.a +%{_libdir}/libdxerr8.a +%{_libdir}/libdxerr9.a +%{_includedir}/dxerr*.h +%{_includedir}/d3d*.h