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