hi,
rhis patch reenable _mingw32_configure in mingw32-runtime.
is it ok?
--
Levente "Si vis pacem para bellum!"
--- mingw32-runtime.spec 2008-11-21 13:15:52.000000000 +0100
+++ /home/lfarkas/rpm/SPECS/mingw32-runtime.spec 2008-11-21 13:06:58.000000000 +0100
@@ -6,7 +6,7 @@
Name: mingw32-runtime
Version: 3.15.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: MinGW Windows cross-compiler runtime and root filesystem
License: Public Domain
@@ -17,11 +17,10 @@
BuildArch: noarch
-BuildRequires: mingw32-filesystem >= 26
+BuildRequires: mingw32-filesystem >= 38
BuildRequires: mingw32-binutils
BuildRequires: mingw32-gcc
-Requires: mingw32-filesystem >= 26
Requires: mingw32-binutils
Requires: mingw32-gcc
@@ -43,24 +42,16 @@
%build
-# NB: Do not use _mingw32_configure here as it won't work.
-CFLAGS="-I%{_mingw32_includedir}" \
-./configure \
- --build=%_build \
- --host=%{_mingw32_host}
-make
-
+MINGW_CFLAGS="%{_mingw32_cflags} -I%{_mingw32_includedir}"
%{_mingw32_configure}
+%{_mingw32_make}
%install
rm -rf $RPM_BUILD_ROOT
-
-make prefix=$RPM_BUILD_ROOT%{_mingw32_prefix} install
+%{_mingw32_makeinstall}
# make install places these in nonstandard locations, so move them.
mkdir -p $RPM_BUILD_ROOT%{_mingw32_docdir}
mv $RPM_BUILD_ROOT%{_mingw32_prefix}/doc/* $RPM_BUILD_ROOT%{_mingw32_docdir}/
-mkdir -p $RPM_BUILD_ROOT%{_mingw32_mandir}
-mv $RPM_BUILD_ROOT%{_mingw32_prefix}/man/* $RPM_BUILD_ROOT%{_mingw32_mandir}/
%clean
@@ -77,6 +68,9 @@
%changelog
+* Fri Nov 21 2008 Levente Farkas <lfarkas(a)lfarkas.org> - 3.15.1-6
+- Reenable _mingw32_configure
+
* Thu Nov 20 2008 Richard W.M. Jones <rjones(a)redhat.com> - 3.15.1-5
- Don't use _mingw32_configure macro - doesn't work here.