%build
PATH=%{_mingw32_bindir}:$PATH \
-%{_mingw32_configure} --without-python --enable-shared --disable-static
+%{_mingw32_configure} --without-python --enable-shared
make %{?_smp_mflags}
gzip -9 ChangeLog
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
+# Remove static libraries but DON'T remove *.dll.a files.
+# Note that ./configure --disable-static doesn't work.
+rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libexslt.a
+rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libxslt.a
+
# Remove doc and man which duplicate stuff already in Fedora native package.
rm -r $RPM_BUILD_ROOT%{_mingw32_docdir}
rm -r $RPM_BUILD_ROOT%{_mingw32_mandir}
%changelog
* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.1.24-3
-- Disable static libraries.
- Use _smp_mflags.
* Sat Oct 25 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1.24-2