[mingw-webkitgtk: 18/36] Added rpm scriplets for running glib-compile-schemas

Kalev Lember kalev at fedoraproject.org
Tue Mar 6 21:10:56 UTC 2012


commit ff8f7b2d43fe192234277a435461392252661905
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Fri Aug 12 18:28:59 2011 +0300

    Added rpm scriplets for running glib-compile-schemas

 mingw32-webkitgtk.spec |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-webkitgtk.spec b/mingw32-webkitgtk.spec
index 4b5c358..30ee7af 100644
--- a/mingw32-webkitgtk.spec
+++ b/mingw32-webkitgtk.spec
@@ -48,7 +48,7 @@
 
 Name:		mingw32-webkitgtk
 Version:	1.4.2
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	MinGW Windows web content engine library
 
 Group:		Development/Libraries
@@ -178,6 +178,15 @@ install -m 755 Programs/.libs/GtkLauncher.exe %{buildroot}%{_mingw32_bindir}
 %add_to_doc_files Source/JavaScriptCore/icu/LICENSE
 
 
+%postun
+if [ $1 -eq 0 ] ; then
+    /usr/bin/glib-compile-schemas %{_mingw32_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+%posttrans
+/usr/bin/glib-compile-schemas %{_mingw32_datadir}/glib-2.0/schemas &> /dev/null || :
+
+
 %files -f webkit-2.0.lang
 %defattr(-,root,root,-)
 %{_docdir}/%{name}-%{version}/
@@ -198,6 +207,9 @@ install -m 755 Programs/.libs/GtkLauncher.exe %{buildroot}%{_mingw32_bindir}
 
 
 %changelog
+* Sat Jul 30 2011 Kalev Lember <kalevlember at gmail.com> - 1.4.2-2
+- Added rpm scriplets for running glib-compile-schemas
+
 * Thu Jul  7 2011 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.4.2-1
 - Update to 1.4.2
 - Rebuild for win-iconv


More information about the scm-commits mailing list