Add post/preun scripts to update various module lists.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 11 Sep 2008 12:52:50 +0000 (13:52 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 11 Sep 2008 12:52:50 +0000 (13:52 +0100)
gtk2/mingw-gtk2.spec
pango/mingw-pango.spec

index 0a90999..d27b241 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:           mingw-gtk2
 Version:        2.14.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        MinGW Windows Gtk2 library
 
 License:        LGPLv2+
@@ -30,6 +30,9 @@ BuildRequires:  mingw-libjpeg
 BuildRequires:  mingw-pango
 BuildRequires:  mingw-atk
 
+Requires(post): wine
+
+
 %description
 MinGW Windows Gtk2 library.
 
@@ -57,6 +60,14 @@ rm -f $RPM_BUILD_ROOT/%{_mingw_libdir}/charset.alias
 rm -rf $RPM_BUILD_ROOT
 
 
+%post
+wine %{_mingw_bindir}/gdk-pixbuf-query-loaders.exe \
+  > %{_mingw_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
+
+%preun
+rm -f %{_mingw_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
+
+
 %files
 %defattr(-,root,root)
 %{_mingw_datadir}/gtk-doc/html/gail-libgail-util
@@ -105,7 +116,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mingw_mandir}/man1/gtk-query-immodules-2.0.1*
 %{_mingw_mandir}/man1/gtk-update-icon-cache.1*
 
+
 %changelog
+* Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-3
+- post/preun scripts to update the gdk-pixbuf.loaders list.
+
 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-2
 - Jasper DLLs now fixed.
 - Fix source URL.
index d761ed6..96ad5dd 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:           mingw-pango
 Version:        1.21.6
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        MinGW Windows Pango library
 
 License:        LGPLv2+
@@ -26,6 +26,9 @@ BuildRequires:  mingw-cairo
 BuildRequires:  mingw-freetype
 BuildRequires:  mingw-fontconfig
 
+Requires(post): wine
+
+
 %description
 MinGW Windows Pango library.
 
@@ -46,12 +49,23 @@ rm -rf $RPM_BUILD_ROOT
 
 make DESTDIR=$RPM_BUILD_ROOT install
 
+mkdir -p $RPM_BUILD_ROOT%{_mingw_sysconfdir}/pango/
+
 rm -f $RPM_BUILD_ROOT/%{_mingw_libdir}/charset.alias
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
+%post
+wine %{_mingw_bindir}/pango-querymodules.exe \
+  > %{_mingw_sysconfdir}/pango/pango.modules
+
+%preun
+rm -f %{_mingw_sysconfdir}/pango/pango.modules
+
+
 %files
 %defattr(-,root,root)
 %{_mingw_bindir}/libpango-1.0-0.dll
@@ -79,8 +93,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_mingw_libdir}/pkgconfig/pangowin32.pc
 %{_mingw_datadir}/gtk-doc/html/pango/
 %{_mingw_mandir}/man1/pango-querymodules.1*
+%{_mingw_sysconfdir}/pango/
+
 
 %changelog
+* Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 1.21.6-3
+- post/preun scripts to update the pango.modules list.
+
 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.21.6-2
 - Run the correct glib-mkenums.