Compile the XML modules support.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 25 Oct 2008 22:44:23 +0000 (23:44 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 25 Oct 2008 22:44:23 +0000 (23:44 +0100)
libxml2/mingw32-libxml2-2.7.2-with-modules.patch [new file with mode: 0644]
libxml2/mingw32-libxml2.spec

diff --git a/libxml2/mingw32-libxml2-2.7.2-with-modules.patch b/libxml2/mingw32-libxml2-2.7.2-with-modules.patch
new file mode 100644 (file)
index 0000000..e26178c
--- /dev/null
@@ -0,0 +1,15 @@
+--- 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, [
index 0fc3ae3..f49f622 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:           mingw32-libxml2
 Version:        2.7.2
-Release:        1%{?dist}
+Release:        3%{?dist}
 Summary:        MinGW Windows libxml2 XML processing library
 
 License:        MIT
@@ -18,6 +18,9 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # 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
@@ -33,10 +36,11 @@ MinGW Windows libxml2 XML processing library.
 
 %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
 
 
@@ -73,6 +77,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %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.