Name: mingw32-libxml2
Version: 2.7.2
-Release: 1%{?dist}
+Release: 5%{?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
BuildRequires: mingw32-zlib
BuildRequires: mingw32-gettext
+Requires: pkgconfig
+
%description
MinGW Windows libxml2 XML processing library.
%prep
%setup -q -n libxml2-%{version}
+%patch1000 -p1
%build
-LDFLAGS="-no-undefined" %{_mingw32_configure} --without-python
-make
+LDFLAGS="-no-undefined" \
+%{_mingw32_configure} --without-python --with-modules --disable-static
+make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
-rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libxml2.a
-
# Remove manpages which duplicate Fedora native.
rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
%changelog
+* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.7.2-5
+- Use _smp_mflags.
+- Disable static libraries.
+
+* Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 2.7.2-4
+- Requires pkgconfig.
+
+* 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.