fix scripts
This commit is contained in:
parent
5466e9bfdc
commit
837b987480
20
yelp.spec
20
yelp.spec
@ -19,7 +19,7 @@
|
|||||||
Summary: A system documentation reader from the Gnome project
|
Summary: A system documentation reader from the Gnome project
|
||||||
Name: yelp
|
Name: yelp
|
||||||
Version: 2.16.0
|
Version: 2.16.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
# http://bugzilla.gnome.org/show_bug.cgi?id=319096
|
# http://bugzilla.gnome.org/show_bug.cgi?id=319096
|
||||||
Patch1: yelp-2.15.5-fedora-docs.patch
|
Patch1: yelp-2.15.5-fedora-docs.patch
|
||||||
@ -39,6 +39,7 @@ Requires: libglade2 >= %{libglade_version}
|
|||||||
Requires: libgcrypt
|
Requires: libgcrypt
|
||||||
Requires: gnome-doc-utils
|
Requires: gnome-doc-utils
|
||||||
Requires: scrollkeeper
|
Requires: scrollkeeper
|
||||||
|
Requires(pre): GConf2
|
||||||
Requires(post): GConf2
|
Requires(post): GConf2
|
||||||
Requires(post): desktop-file-utils
|
Requires(post): desktop-file-utils
|
||||||
Requires(preun): GConf2
|
Requires(preun): GConf2
|
||||||
@ -107,7 +108,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null
|
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null || :
|
||||||
update-desktop-database &> /dev/null ||:
|
update-desktop-database &> /dev/null ||:
|
||||||
|
|
||||||
# update icon themes
|
# update icon themes
|
||||||
@ -116,9 +117,17 @@ if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|||||||
/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%pre
|
||||||
|
if [ "$1" -eq 0 ]; then
|
||||||
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
if [ "$1" -eq 0 ]; then
|
||||||
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/yelp.schemas > /dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
update-desktop-database &> /dev/null ||:
|
update-desktop-database &> /dev/null ||:
|
||||||
@ -132,6 +141,9 @@ update-desktop-database &> /dev/null ||:
|
|||||||
%{_datadir}/yelp
|
%{_datadir}/yelp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 18 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.0-5
|
||||||
|
- Fix scripts according to the packaging guidelines
|
||||||
|
|
||||||
* Thu Oct 12 2006 Christopher Aillon <caillon@redhat.com> - 2.16.0-4.fc6
|
* Thu Oct 12 2006 Christopher Aillon <caillon@redhat.com> - 2.16.0-4.fc6
|
||||||
- Update requires to the virtual gecko version instead of a specific app
|
- Update requires to the virtual gecko version instead of a specific app
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user