some scriptlet cleanup
This commit is contained in:
parent
492e779fc3
commit
4a548badf6
@ -32,13 +32,9 @@ BuildRequires: GConf2-devel
|
|||||||
BuildRequires: dbus-glib-devel
|
BuildRequires: dbus-glib-devel
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
|
|
||||||
Requires(post): scrollkeeper
|
|
||||||
Requires(pre): GConf2
|
Requires(pre): GConf2
|
||||||
Requires(post): GConf2
|
Requires(post): GConf2
|
||||||
Requires(preun): GConf2
|
Requires(preun): GConf2
|
||||||
|
|
||||||
Requires(postun): scrollkeeper
|
|
||||||
|
|
||||||
Requires: GConf2
|
Requires: GConf2
|
||||||
|
|
||||||
# The context menu API changed in 2.2.0:
|
# The context menu API changed in 2.2.0:
|
||||||
@ -87,10 +83,7 @@ update-desktop-database &> /dev/null || :
|
|||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
gconftool-2 --makefile-install-rule \
|
gconftool-2 --makefile-install-rule \
|
||||||
%{_sysconfdir}/gconf/schemas/file-roller.schemas 2>&1 >/dev/null || :
|
%{_sysconfdir}/gconf/schemas/file-roller.schemas 2>&1 >/dev/null || :
|
||||||
touch --no-create %{_datadir}/icons/hicolor
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
||||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
||||||
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
|
|
||||||
fi
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
if [ "$1" -gt 1 ]; then
|
if [ "$1" -gt 1 ]; then
|
||||||
@ -108,11 +101,14 @@ fi
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
update-desktop-database &> /dev/null || :
|
update-desktop-database &> /dev/null || :
|
||||||
touch --no-create %{_datadir}/icons/hicolor
|
if [ $1 -eq 0 ]; then
|
||||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
||||||
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
|
gtk-update-icon-cache -q %{_datadir}/icons/hicolor &> /dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc README COPYING NEWS AUTHORS
|
%doc README COPYING NEWS AUTHORS
|
||||||
|
Loading…
Reference in New Issue
Block a user