W32API package
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 7 Jul 2008 21:18:58 +0000 (22:18 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 7 Jul 2008 21:18:58 +0000 (22:18 +0100)
w32api/mingw-w32api.spec [new file with mode: 0644]

diff --git a/w32api/mingw-w32api.spec b/w32api/mingw-w32api.spec
new file mode 100644 (file)
index 0000000..c4752a4
--- /dev/null
@@ -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 <rjones@redhat.com> - 4.3.1-2
+- Initial RPM release, largely based on earlier work from several sources.