diff --git a/devhelp.spec b/devhelp.spec index 754f2d1..417081d 100644 --- a/devhelp.spec +++ b/devhelp.spec @@ -65,6 +65,8 @@ desktop-file-install --vendor gnome \ find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' find ${RPM_BUILD_ROOT} -type f -name "*.a" -exec rm -f {} ';' +rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache + %find_lang %name %clean @@ -72,10 +74,17 @@ rm -rf $RPM_BUILD_ROOT %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` -SCHEMAS="devhelp.schemas" -for S in $SCHEMAS; do - gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null -done +gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null +touch --no-create %{_datadir}/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q %{_datadir}/icons/hicolor +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q %{_datadir}/icons/hicolor +fi %files -f %{name}.lang %defattr(-, root, root) @@ -87,6 +96,9 @@ done %{_datadir}/applications/*.desktop %{_datadir}/devhelp %{_sysconfdir}/gconf/schemas/*.schemas +%{_libdir}/gedit-2/plugins/devhelp +%{_datadir}/icons/hicolor/48x48/apps/devhelp.png +%{_datadir}/icons/hicolor/scalable/apps/devhelp.svg %files devel %defattr(-,root,root)