From 6cce292ee3d880dc1229d29c19961d79b1b9f025 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] W32API package --- w32api/mingw-w32api.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 w32api/mingw-w32api.spec diff --git a/w32api/mingw-w32api.spec b/w32api/mingw-w32api.spec new file mode 100644 index 0000000..c4752a4 --- /dev/null +++ b/w32api/mingw-w32api.spec @@ -0,0 +1,66 @@ +%define __os_install_post /usr/lib/rpm/brp-compress %{nil} + +Name: mingw-w32api +Version: 3.11 +Release: 1%{?dist} +Summary: MinGW Windows cross-compiler Win32 header files + +License: Public Domain +Group: Development/Libraries +URL: http://www.mingw.org/ +Source0: http://dl.sourceforge.net/sourceforge/mingw/w32api-%{version}-src.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw-binutils +BuildRequires: mingw-gcc +BuildRequires: mingw-runtime + +Requires: mingw-binutils +Requires: mingw-gcc +Requires: mingw-runtime + +# Once this is installed, mingw-bootstrap (binary bootstrapper) is no +# longer needed. +Obsoletes: mingw-bootstrap + +#%define _use_internal_dependency_generator 0 +#%define __debug_install_post %{nil} + + +%description +MinGW Windows cross-compiler Win32 header files. + + +%prep +%setup -q -n w32api-%{version} + +%build +#CFLAGS="-I%{_prefix}/i686-pc-mingw32/sys-root/mingw/include" \ + +./configure \ + --build=%_build \ + --host=i686-pc-mingw32 + +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make prefix=$RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32/sys-root/mingw install + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_prefix}/i686-pc-mingw32/sys-root/mingw/include/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/* + +%changelog +* Mon Jul 7 2008 Richard W.M. Jones - 4.3.1-2 +- Initial RPM release, largely based on earlier work from several sources. -- 1.8.3.1