--- /dev/null
+--- libxml2-2.7.2/configure.in~ 2008-10-03 08:09:55.000000000 +0100
++++ libxml2-2.7.2/configure.in 2008-10-25 23:14:18.000000000 +0100
+@@ -751,6 +751,12 @@
+ AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso])
+ ])
+ ;;
++ *-*-mingw*)
++ # If I configured --with-modules then I damn well want
++ # modules and don't try to second-guess me.
++ MODULE_EXTENSION=".dll"
++ WITH_MODULES=1
++ ;;
+ *)
+ AC_CHECK_FUNC(shl_load, libxml_have_shl_load=yes, [
+ AC_CHECK_LIB(dld, shl_load, [
Name: mingw32-libxml2
Version: 2.7.2
-Release: 1%{?dist}
+Release: 3%{?dist}
Summary: MinGW Windows libxml2 XML processing library
License: MIT
# Not required for MinGW.
#Patch0: libxml2-multilib.patch
+# MinGW-specific patches.
+Patch1000: mingw32-libxml2-2.7.2-with-modules.patch
+
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 23
%prep
%setup -q -n libxml2-%{version}
+%patch1000 -p1
%build
-LDFLAGS="-no-undefined" %{_mingw32_configure} --without-python
+LDFLAGS="-no-undefined" %{_mingw32_configure} --without-python --with-modules
make
%changelog
+* Sat Oct 25 2008 Richard W.M. Jones <rjones@redhat.com> - 2.7.2-3
+- Enable modules support for libxslt.
+
* Fri Oct 17 2008 Richard W.M. Jones <rjones@redhat.com> - 2.7.2-1
- Resynch to native Fedora package + patch.