[cheese] Include the GSettings schema file

Christopher Aillon caillon at fedoraproject.org
Wed Feb 2 17:36:18 UTC 2011


commit efa5744436355a483a11f109fecbf496d55ad05e
Author: Christopher Aillon <caillon at redhat.com>
Date:   Wed Feb 2 09:35:48 2011 -0800

    Include the GSettings schema file
    
    and run the proper post/postun scriptlets

 cheese.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cheese.spec b/cheese.spec
index fcdb8e8..a304266 100644
--- a/cheese.spec
+++ b/cheese.spec
@@ -85,12 +85,16 @@ desktop-file-install --delete-original --vendor="" 	\
 
 %post
 touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
+if [ $1 -eq 1 ] ; then
+    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
 
 
 %postun
 if [ $1 -eq 0 ]; then
   touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
   gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 fi
 
 %posttrans
@@ -108,6 +112,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
 %{_datadir}/cheese
 %{_datadir}/icons/hicolor/*/apps/cheese.png
 %{_datadir}/icons/hicolor/scalable/apps/cheese.svg
+%{_datadir}/glib-2.0/schemas/org.gnome.Cheese.gschema.xml
 
 %files -f %{name}.lang libs
 %defattr(-,root,root,-)


More information about the scm-commits mailing list