From 05d951a7ca3fce73baf6c8b04feb307084cc64a4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Add post/preun scripts to update various module lists. --- gtk2/mingw-gtk2.spec | 17 ++++++++++++++++- pango/mingw-pango.spec | 21 ++++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/gtk2/mingw-gtk2.spec b/gtk2/mingw-gtk2.spec index 0a90999..d27b241 100644 --- a/gtk2/mingw-gtk2.spec +++ b/gtk2/mingw-gtk2.spec @@ -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 - 2.14.0-3 +- post/preun scripts to update the gdk-pixbuf.loaders list. + * Wed Sep 10 2008 Richard W.M. Jones - 2.14.0-2 - Jasper DLLs now fixed. - Fix source URL. diff --git a/pango/mingw-pango.spec b/pango/mingw-pango.spec index d761ed6..96ad5dd 100644 --- a/pango/mingw-pango.spec +++ b/pango/mingw-pango.spec @@ -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 - 1.21.6-3 +- post/preun scripts to update the pango.modules list. + * Wed Sep 10 2008 Richard W.M. Jones - 1.21.6-2 - Run the correct glib-mkenums. -- 1.8.3.1