Include the GSettings schema file
and run the proper post/postun scriptlets
This commit is contained in:
parent
79c608b4f4
commit
efa5744436
@ -85,12 +85,16 @@ desktop-file-install --delete-original --vendor="" \
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
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
|
%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
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
@ -108,6 +112,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
|||||||
%{_datadir}/cheese
|
%{_datadir}/cheese
|
||||||
%{_datadir}/icons/hicolor/*/apps/cheese.png
|
%{_datadir}/icons/hicolor/*/apps/cheese.png
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/cheese.svg
|
%{_datadir}/icons/hicolor/scalable/apps/cheese.svg
|
||||||
|
%{_datadir}/glib-2.0/schemas/org.gnome.Cheese.gschema.xml
|
||||||
|
|
||||||
%files -f %{name}.lang libs
|
%files -f %{name}.lang libs
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user