fix scripts
This commit is contained in:
parent
5da67f9e00
commit
7b58052c73
35
evince.spec
35
evince.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: evince
|
Name: evince
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Document viewer
|
Summary: Document viewer
|
||||||
|
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -73,23 +73,19 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%pre
|
%pre
|
||||||
if [ "$1" -gt 1 ]; then
|
if [ "$1" -gt 1 ]; then
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
SCHEMAS="evince.schemas evince-thumbnailer.schemas"
|
|
||||||
for S in $SCHEMAS; do
|
|
||||||
gconftool-2 --makefile-uninstall-rule \
|
gconftool-2 --makefile-uninstall-rule \
|
||||||
%{_sysconfdir}/gconf/schemas/$S >/dev/null || :
|
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
||||||
done
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
||||||
killall -HUP gconfd-2 || :
|
>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
SCHEMAS="evince.schemas evince-thumbnailer.schemas"
|
gconftool-2 --makefile-uninstall-rule \
|
||||||
for S in $SCHEMAS; do
|
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
||||||
gconftool-2 --makefile-install-rule \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/$S > /dev/null || :
|
>/dev/null || :
|
||||||
done
|
|
||||||
killall -HUP gconfd-2 2>/dev/null || :
|
|
||||||
|
|
||||||
update-desktop-database &> /dev/null ||:
|
update-desktop-database &> /dev/null ||:
|
||||||
scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
|
scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
|
||||||
@ -99,17 +95,13 @@ if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|||||||
/usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
|
/usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" -eq 0 ]; then
|
if [ "$1" -eq 0 ]; then
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
SCHEMAS="evince.schemas evince-thumbnailer.schemas"
|
gconftool-2 --makefile-uninstall-rule \
|
||||||
for S in $SCHEMAS; do
|
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
||||||
gconftool-2 --makefile-install-rule \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/$S > /dev/null || :
|
>/dev/null || :
|
||||||
done
|
|
||||||
killall -HUP gconfd-2 2>/dev/null || :
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -137,6 +129,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 18 2006 Matthias Clasen <mclasen@redhat.com> - 0.6.0-4
|
||||||
|
- Fix scripts according to the packaging guidelines
|
||||||
|
|
||||||
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 0.6.0-3.fc6
|
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 0.6.0-3.fc6
|
||||||
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user