Include the GSettings schema file

and run the proper post/postun scriptlets
This commit is contained in:
Christopher Aillon 2011-02-02 09:35:48 -08:00
parent 79c608b4f4
commit efa5744436

View File

@ -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,-)