- Use find_lang macro.
- Remove mingw32-libgsf-1.14.10-better-bz2-detection.patch, now upstream.
- Remove mingw32-libgsf-1.14.10-glib-deprecated.patch, now fixed upstream.
- +BR mingw32-dlfcn.
+++ /dev/null
---- libgsf-1.14.10.orig/configure.in 2008-10-19 13:37:35.000000000 +0100
-+++ libgsf-1.14.10.mingw/configure.in 2008-11-22 17:04:10.000000000 +0000
-@@ -321,30 +321,36 @@
-
- with_bz2=false
- if test "x$test_bz2" = xtrue ; then
-- AC_CHECK_LIB(bz2, BZ2_bzDecompressInit,
-- bz2_ok=yes,
-- bz2_ok=no
-- AC_MSG_WARN(*** BZ2 support disabled (BZ2 library not found) ***))
--
-- if test "$bz2_ok" = yes; then
-- AC_MSG_CHECKING([for bzlib.h])
-- AC_PREPROC_IFELSE(
-- [AC_LANG_SOURCE(
-+ dnl AC_CHECK_LIB doesn't work with the Windows port of libbz2 because
-+ dnl it uses the __stdcall calling convention where the callee cleans
-+ dnl up the stack. You have to include <bzlib.h> in order to get the
-+ dnl right calling convention, and the link fails if not. Since we
-+ dnl require both -lbz2 and <bzlib.h>, just test if a program which
-+ dnl uses both can be compiled.
-+
-+ old_LIBS="$LIBS"
-+ LIBS="-lbz2 $LIBS"
-+ AC_LINK_IFELSE(
-+ [AC_LANG_SOURCE(
- [[#include <stdio.h>
-- #undef PACKAGE
-- #undef VERSION
-- #undef HAVE_STDLIB_H
-- #include <bzlib.h>]])],
-- bz2_ok=yes,
-- bz2_ok=no)
-- AC_MSG_RESULT($bz2_ok)
-- fi
-+ #undef PACKAGE
-+ #undef VERSION
-+ #undef HAVE_STDLIB_H
-+ #include <bzlib.h>
-+ main ()
-+ {
-+ return BZ2_bzDecompressInit (NULL, 0, 0);
-+ }
-+ ]])],
-+ bz2_ok=yes,
-+ bz2_ok=no)
-+ LIBS="$old_LIBS"
-
- if test "$bz2_ok" = yes; then
- AC_DEFINE(HAVE_BZ2, 1, [Is bzip2 available and enabled])
- BZ2_LIBS="-lbz2"
- else
-- AC_MSG_WARN(*** BZ2 support disabled (BZ2 header not found) ***)
-+ AC_MSG_WARN(*** BZ2 support disabled (BZ2 header or library not found) ***)
- fi
- else
- AC_MSG_WARN([BZ2 support disabled, as requested (Use --with-bz2 to enable)])
+++ /dev/null
---- libgsf-1.14.10.orig/gsf/gsf-utils.c 2008-07-01 13:56:53.000000000 +0100
-+++ libgsf-1.14.10.mingw/gsf/gsf-utils.c 2008-11-22 17:01:35.000000000 +0000
-@@ -19,6 +19,11 @@
- * USA
- */
-
-+/* Needed for G_WIN32_DLLMAIN_FOR_DLL_NAME below. Maybe a better
-+ * solution would be to remove that macro use instead.
-+ */
-+#undef G_DISABLE_DEPRECATED
-+
- #include <gsf-config.h>
- #include <gsf/gsf-utils.h>
- #include <gsf/gsf-input.h>
BuildRequires: mingw32-gettext
BuildRequires: mingw32-iconv
BuildRequires: mingw32-zlib
+BuildRequires: mingw32-dlfcn
# We don't have bonobo in MinGW yet:
#BuildRequires: mingw32-libbonobo
# We don't build Python packages yet:
BuildRequires: pkgconfig
BuildRequires: intltool
-Patch1000: mingw32-libgsf-1.14.10-better-bz2-detection.patch
-Patch1001: mingw32-libgsf-1.14.10-glib-deprecated.patch
-
%description
A library for reading and writing structured files (eg MS OLE and Zip).
%prep
%setup -q -n libgsf-%{version}
-%patch1000 -p1
-%patch1001 -p1
-
autoconf
rm -rf $RPM_BUILD_ROOT
-%files -f libgsf.mo
+%files -f libgsf.lang
%defattr(-,root,root)
%{_mingw32_bindir}/gsf.exe
%{_mingw32_bindir}/gsf-vba-dump.exe
* Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.14.11-1
- Rebase to native Fedora version 1.14.11.
- Use find_lang macro.
+- Remove mingw32-libgsf-1.14.10-better-bz2-detection.patch, now upstream.
+- Remove mingw32-libgsf-1.14.10-glib-deprecated.patch, now fixed upstream.
+- +BR mingw32-dlfcn.
* Sat Nov 22 2008 Richard W.M. Jones <rjones@redhat.com> - 1.14.10-2
- +BR intltool.