From b5b9281b4d5d318c2a7e9d516c0bc0c9b372a44d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Dec 06 2007 13:06:22 +0000 Subject: Fix file lists --- diff --git a/gucharmap.spec b/gucharmap.spec index bed30a2..cd87c90 100644 --- a/gucharmap.spec +++ b/gucharmap.spec @@ -86,7 +86,8 @@ touch --no-create %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor fi - +export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` +gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null || : %postun /sbin/ldconfig @@ -97,6 +98,17 @@ if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor fi +%pre +if [ "$1" -gt 1 -a -f %{_sysconfdir}/gconf/schemas/gucharmap.schemas ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null || : +fi + +%preun +if [ "$1" -eq 0 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gucharmap.schemas > /dev/null || : +fi %files -f gucharmap.lang %defattr(-,root,root,-) @@ -107,7 +119,7 @@ fi %{_libdir}/libgucharmap.so.* %{_datadir}/applications/gnome-gucharmap.desktop %{_datadir}/icons/hicolor/48x48/apps/gucharmap.png -%{_datadir}/omf/gucharmap/ +%{_sysconfdir}/gconf/schemas/gucharmap.schemas %files devel