[gedit-plugins] Add gsettings schema compilation scriptlets for subpackages where needed

Kalev Lember kalev at fedoraproject.org
Fri Jun 13 18:08:18 UTC 2014


commit 643e2c8669a5300081dc9848825e7618bde92a49
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Fri Jun 13 20:00:25 2014 +0200

    Add gsettings schema compilation scriptlets for subpackages where needed

 gedit-plugins.spec |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/gedit-plugins.spec b/gedit-plugins.spec
index 86f8133..04f1b50 100644
--- a/gedit-plugins.spec
+++ b/gedit-plugins.spec
@@ -209,18 +209,35 @@ make install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT/%{_libdir}/gedit/plugins -name "*.la" -exec rm {} \;
 
 
-%postun
+%check
+[ -f ${RPM_BUILD_ROOT}%{_libdir}/gedit/plugins/terminal.py ]
+
+
+%postun -n gedit-plugin-drawspaces
 if [ $1 -eq 0 ]; then
   glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 fi
 
+%posttrans -n gedit-plugin-drawspaces
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 
-%posttrans
+
+%postun -n gedit-plugin-terminal
+if [ $1 -eq 0 ]; then
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
+fi
+
+%posttrans -n gedit-plugin-terminal
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 
 
-%check
-[ -f ${RPM_BUILD_ROOT}%{_libdir}/gedit/plugins/terminal.py ]
+%postun -n gedit-plugin-wordcompletion
+if [ $1 -eq 0 ]; then
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
+fi
+
+%posttrans -n gedit-plugin-wordcompletion
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 
 
 # Empty files section for the metapackage to make sure it's created


More information about the scm-commits mailing list