- Update the GTK+ theme icon cache on (un)install

This commit is contained in:
Christopher Aillon 2005-03-25 14:46:41 +00:00
parent 602cb9df14
commit fcae093a37

View File

@ -22,7 +22,7 @@ ExclusiveArch: i386 x86_64 ppc
Summary: %{pkg_summary} Summary: %{pkg_summary}
Name: eclipse Name: eclipse
Version: %{eclipse_majmin}.%{eclipse_micro}_fc Version: %{eclipse_majmin}.%{eclipse_micro}_fc
Release: 0.M5.13 Release: 0.M5.14
License: CPL License: CPL
Group: Text Editors/Integrated Development Environments (IDE) Group: Text Editors/Integrated Development Environments (IDE)
URL: http://www.eclipse.org/ URL: http://www.eclipse.org/
@ -132,6 +132,7 @@ Requires: /usr/bin/perl
Requires: gcc-java >= 4.0.0-0.35 Requires: gcc-java >= 4.0.0-0.35
Requires: %{libname}-gtk2 = %{epoch}:%{version}-%{release} Requires: %{libname}-gtk2 = %{epoch}:%{version}-%{release}
Requires: /usr/bin/mozilla Requires: /usr/bin/mozilla
PreReq: gtk2 >= 2.6
Requires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging Requires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging
#Requires: ant-apache-bsf ant-commons-net ant-jsch lucene #Requires: ant-apache-bsf ant-commons-net ant-jsch lucene
@ -743,6 +744,10 @@ fi
if [ -n "`find %{_libdir}/%{name}/mappings -name \*.db`" ]; then if [ -n "`find %{_libdir}/%{name}/mappings -name \*.db`" ]; then
gcj-dbtool -m $dbLocation `find %{_libdir}/%{name}/mappings -name \*.db` $dbLocation gcj-dbtool -m $dbLocation `find %{_libdir}/%{name}/mappings -name \*.db` $dbLocation
fi fi
touch --no-create %{_datadir}/icons/hicolor
if [-x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache %{_datadir}/icons/hicolor
fi
%post -n %{libname}-gtk2 %post -n %{libname}-gtk2
dbLocation=`gcj-dbtool -p` dbLocation=`gcj-dbtool -p`
@ -778,6 +783,10 @@ dbLocation=`gcj-dbtool -p`
if [ -n "`find %{_libdir}/%{name}/mappings -name \*.db`" ]; then if [ -n "`find %{_libdir}/%{name}/mappings -name \*.db`" ]; then
gcj-dbtool -m $dbLocation `find %{_libdir}/%{name}/mappings -name \*.db` $dbLocation gcj-dbtool -m $dbLocation `find %{_libdir}/%{name}/mappings -name \*.db` $dbLocation
fi fi
touch --no-create %{_datadir}/icons/hicolor
if [-x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache %{_datadir}/icons/hicolor
fi
%postun -n %{libname}-gtk2 %postun -n %{libname}-gtk2
dbLocation=`gcj-dbtool -p` dbLocation=`gcj-dbtool -p`
@ -1012,6 +1021,9 @@ fi
%{_datadir}/%{name}/plugins/org.eclipse.platform.source.linux.gtk.*_3.1.0 %{_datadir}/%{name}/plugins/org.eclipse.platform.source.linux.gtk.*_3.1.0
%changelog %changelog
* Fri Mar 25 2005 Christopher Aillon <caillon@redhat.com> 3.1.0_fc-0.M5.14
- Update the GTK+ theme icon cache on (un)install
* Fri Mar 18 2005 Andrew Overholt <overholt@redhat.com> 3.1.0_fc-0.M5.13 * Fri Mar 18 2005 Andrew Overholt <overholt@redhat.com> 3.1.0_fc-0.M5.13
- Re-add compilation of resources.jar. - Re-add compilation of resources.jar.
- Backport bootstrapping patch. - Backport bootstrapping patch.