add %%preun
This commit is contained in:
parent
b70a7bd7d3
commit
f0c4695639
@ -11,7 +11,7 @@
|
|||||||
Summary: File Roller is a tool for viewing and creating archives
|
Summary: File Roller is a tool for viewing and creating archives
|
||||||
Name: file-roller
|
Name: file-roller
|
||||||
Version: 2.15.93
|
Version: 2.15.93
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/Archiving
|
Group: Applications/Archiving
|
||||||
@ -90,15 +90,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
update-desktop-database -q
|
update-desktop-database -q
|
||||||
scrollkeeper-update -q
|
scrollkeeper-update -q
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
SCHEMAS="file-roller.schemas"
|
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/file-roller.schemas 2>&1 >/dev/null
|
||||||
for S in $SCHEMAS; do
|
|
||||||
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
|
|
||||||
done
|
|
||||||
touch --no-create %{_datadir}/icons/hicolor
|
touch --no-create %{_datadir}/icons/hicolor
|
||||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||||
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
|
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ "$1" -eq 0 ]; then
|
||||||
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/file-roller.schemas 2>&1 >/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
update-desktop-database -q
|
update-desktop-database -q
|
||||||
scrollkeeper-update -q
|
scrollkeeper-update -q
|
||||||
@ -120,6 +123,10 @@ fi
|
|||||||
%{_libdir}/nautilus/extensions-1.0/libnautilus-fileroller.so
|
%{_libdir}/nautilus/extensions-1.0/libnautilus-fileroller.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 22 2006 Matthias Clasen <mclasen@rehdat.com> - 2.15.93-2.fc6
|
||||||
|
- Add a %%preun script
|
||||||
|
- Silence %%post and %%preun
|
||||||
|
|
||||||
* Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.15.93-1.fc6
|
* Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.15.93-1.fc6
|
||||||
- Update to 2.15.93
|
- Update to 2.15.93
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user