[caribou: 7/8] Update scriptlets per packaging guidelines
Christopher Aillon
caillon at fedoraproject.org
Sun May 8 01:06:47 UTC 2011
commit 278a1dcf02ab9c73103d0b6a30ebfc7a620e7784
Author: Christopher Aillon <caillon at redhat.com>
Date: Fri May 6 15:44:20 2011 -0700
Update scriptlets per packaging guidelines
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema
caribou.spec | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/caribou.spec b/caribou.spec
index af2fc85..e9bfc17 100644
--- a/caribou.spec
+++ b/caribou.spec
@@ -2,7 +2,7 @@
Name: caribou
Version: 0.2.00
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A simplified in-place on-screen keyboard
Group: User Interface/Desktops
@@ -53,13 +53,13 @@ desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/caribou-autost
%find_lang caribou
%postun
-glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
-
-%post
-if [ $1 -eq 1 ] ; then
+if [ $1 -eq 0 ] ; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
+%posttrans
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
%files -f caribou.lang
%defattr(-,root,root,-)
%doc NEWS COPYING README
@@ -71,6 +71,9 @@ fi
%{_datadir}/glib-2.0/schemas
%changelog
+* Fri May 6 2011 Christopher Aillon <caillon at redhat.com> - 0.2.00-3
+- Update scriptlets per packaging guidelines
+
* Thu May 05 2011 Parag Nemade <pnemade AT redhat.com> - 0.2.00-2
- Caribou now only be shown in GNOME. (rh#698603)
- Add desktop-file-validate for caribou-autostart.desktop
More information about the scm-commits
mailing list