Update gsettings scriptlet

http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema
This commit is contained in:
Christopher Aillon 2011-05-07 18:58:39 -07:00
parent 0d73f793b2
commit d6c2f2ffb4

View File

@ -1,7 +1,7 @@
Summary: Color management tools for GNOME
Name: gnome-color-manager
Version: 3.1.1
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: Applications/System
URL: http://projects.gnome.org/gnome-color-manager/
@ -40,9 +40,6 @@ BuildRequires: clutter-gtk-devel
# GNOME and KDE have different session policy agents
Provides: color-policy-agent
Requires(post): /usr/bin/gtk-update-icon-cache
Requires(postun): /usr/bin/gtk-update-icon-cache
# obsolete sub-package
Obsoletes: gnome-color-manager-devel <= 3.1.1
Provides: gnome-color-manager-devel
@ -73,19 +70,19 @@ done
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
update-desktop-database %{_datadir}/applications &> /dev/null || :
update-mime-database %{_datadir}/mime &> /dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%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
update-desktop-database %{_datadir}/applications &> /dev/null || :
update-mime-database %{_datadir}/mime &> /dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%files -f %{name}.lang
%defattr(-,root,root,-)
@ -113,6 +110,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%{_datadir}/dbus-1/interfaces/org.gnome.ColorManager.xml
%changelog
* Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 3.1.1-2
- Update gsettings scriptlet
* Fri May 06 2011 Richard Hughes <rhughes@redhat.com> - 3.1.1-1
- New upstream version.