diff --git a/devhelp.spec b/devhelp.spec index b6f15e0..e680c12 100644 --- a/devhelp.spec +++ b/devhelp.spec @@ -3,7 +3,7 @@ Summary: API document browser Name: devhelp Version: 0.12 -Release: 6%{?dist} +Release: 7%{?dist} License: GPL Group: Development/Tools Url: http://ftp.gnome.org/pub/gnome/sources/devhelp/ @@ -30,6 +30,9 @@ BuildRequires: glib2-devel >= 2.9.5 BuildRequires: libwnck-devel >= 2.10.0 BuildRequires: GConf2-devel >= 2.6.0 +Requires(pre): GConf2 >= 2.14 +Requires(preun): GConf2 >= 2.14 +Requires(post): GConf2 >= 2.14 %description An API document browser for GNOME 2. @@ -42,6 +45,7 @@ Requires: gtk2-devel >= 2.2.0 Requires: libgnomeui-devel >= 2.2.0 Requires: libwnck-devel >= 2.10.0 Requires: gnome-vfs2-devel >= 2.2.0 +Requires: pkgconfig %description devel Library of Devhelp for embedding into other applications. @@ -78,9 +82,21 @@ rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache %clean rm -rf $RPM_BUILD_ROOT +%pre +if [ "$1" -gt 1 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/devhelp.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/devhelp.schemas > /dev/null || : +fi + %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` -gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null +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 @@ -115,6 +131,10 @@ fi %{_libdir}/pkgconfig/* %changelog +* Wed Oct 18 2006 Matthias Clasen - 0.12.6-7 +- Fix scripts according to the packaging guidelines +- Require pkgconfig in the -devel package + * Thu Oct 12 2006 Christopher Aillon - 0.12-6.fc6 - Update requires to the virtual gecko version instead of a specific app