Name: mingw32-pango
Version: 1.22.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: MinGW Windows Pango library
License: LGPLv2+
# wine %{_mingw32_bindir}/pango-querymodules.exe > pango.modules
Source1: pango.modules
+Patch1000: pango_enable_static_build.patch
+
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw32-glib2
BuildRequires: pkgconfig
+# These are required for the patch
+BuildRequires: autoconf, automake, libtool
+
Requires: pkgconfig
MinGW Windows Pango library.
+%package static
+Summary: Static version of the MinGW Windows Pango library
+Requires: %{name} = %{version}-%{release}
+Group: Development/Libraries
+
+%description static
+Static version of the MinGW Windows Pango library.
+
+
%prep
%setup -q -n pango-%{version}
+%patch1000
+
+# Regenerate the configure script
+autoreconf --install --force
+libtoolize --install --force
%build
# Need to run the correct version of glib-mkenums.
PATH=%{_mingw32_bindir}:$PATH \
-%{_mingw32_configure} --disable-static
+%{_mingw32_configure} --enable-static --enable-shared
make %{?_smp_mflags}
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
%doc COPYING
%{_mingw32_bindir}/libpango-1.0-0.dll
%{_mingw32_bindir}/libpangocairo-1.0-0.dll
%{_mingw32_libdir}/pangocairo-1.0.def
%{_mingw32_libdir}/pangoft2-1.0.def
%{_mingw32_libdir}/pangowin32-1.0.def
-%{_mingw32_libdir}/pango/
+%dir %{_mingw32_libdir}/pango
+%dir %{_mingw32_libdir}/pango/1.6.0
+%dir %{_mingw32_libdir}/pango/1.6.0/modules
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-win32.dll
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-win32.dll.a
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-win32.la
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-lang.dll
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-lang.dll.a
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-lang.la
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-lang.dll
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-lang.dll.a
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-lang.la
%{_mingw32_libdir}/pkgconfig/pango.pc
%{_mingw32_libdir}/pkgconfig/pangocairo.pc
%{_mingw32_libdir}/pkgconfig/pangoft2.pc
%{_mingw32_sysconfdir}/pango/
+%files static
+%defattr(-,root,root,-)
+%{_mingw32_libdir}/libpango-1.0.a
+%{_mingw32_libdir}/libpangocairo-1.0.a
+%{_mingw32_libdir}/libpangoft2-1.0.a
+%{_mingw32_libdir}/libpangowin32-1.0.a
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-basic-win32.a
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-arabic-lang.a
+%{_mingw32_libdir}/pango/1.6.0/modules/pango-indic-lang.a
+
+
%changelog
+* Fri Feb 20 2009 Erik van Pienbroek <info@nntpgrab.nl> - 1.22.1-6
+- Added -static subpackage
+
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.22.1-5
- Rebuild for mingw32-gcc 4.4
--- /dev/null
+--- configure.in.orig 2009-02-20 20:37:09.166924103 +0100
++++ configure.in 2009-02-20 20:37:20.893924816 +0100
+@@ -123,16 +123,16 @@
+ AC_LIBTOOL_WIN32_DLL
+ AM_DISABLE_STATIC
+
+-if test "$pango_os_win32" = "yes"; then
+- if test x$enable_static = xyes -o x$enable_static = x; then
+- AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
+- enable_static=no
+- fi
+- if test x$enable_shared = xno; then
+- AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
+- fi
+- enable_shared=yes
+-fi
++#if test "$pango_os_win32" = "yes"; then
++# if test x$enable_static = xyes -o x$enable_static = x; then
++# AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
++# enable_static=no
++# fi
++# if test x$enable_shared = xno; then
++# AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
++# fi
++# enable_shared=yes
++#fi
+
+ AM_PROG_LIBTOOL
+ dnl when using libtool 2.x create libtool early, because it's used in configure