Christopher Aillon 14 years ago
parent 0a5a5f31c0
commit 08bde278d4

@ -15,7 +15,7 @@ Summary: Free Software Productivity Suite
Name: libreoffice Name: libreoffice
Epoch: 1 Epoch: 1
Version: 3.3.99.4 Version: 3.3.99.4
Release: 1%{?dist} Release: 2%{?dist}
License: LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and (CDDL or GPLv2) and Public Domain License: LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and (CDDL or GPLv2) and Public Domain
Group: Applications/Productivity Group: Applications/Productivity
URL: http://www.documentfoundation.org/develop URL: http://www.documentfoundation.org/develop
@ -1661,31 +1661,26 @@ rm -rf $RPM_BUILD_ROOT
%post core %post core
update-mime-database %{_datadir}/mime &> /dev/null || : update-mime-database %{_datadir}/mime &> /dev/null || :
update-desktop-database %{_datadir}/applications &> /dev/null || : update-desktop-database %{_datadir}/applications &> /dev/null || :
if [ -x /usr/bin/gtk-update-icon-cache ]; then for theme in hicolor locolor; do
for theme in hicolor locolor; do touch --no-create %{_datadir}/icons/$theme &>/dev/null || :
if test -d "%{_datadir}/icons/$theme"; then done
if test -f "%{_datadir}/icons/$theme/index.theme"; then
touch --no-create %{_datadir}/icons/$theme
gtk-update-icon-cache -q %{_datadir}/icons/$theme
fi
fi
done
fi
%postun core %postun core
update-mime-database %{_datadir}/mime &> /dev/null || : update-mime-database %{_datadir}/mime &> /dev/null || :
update-desktop-database %{_datadir}/applications &> /dev/null || : update-desktop-database %{_datadir}/applications &> /dev/null || :
if [ -x /usr/bin/gtk-update-icon-cache ]; then if [ $1 -eq 0 ] ; then
for theme in hicolor locolor; do for theme in hicolor locolor; do
if test -d "%{_datadir}/icons/$theme"; then touch --no-create %{_datadir}/icons/$theme &>/dev/null || :
if test -f "%{_datadir}/icons/$theme/index.theme"; then gtk-update-icon-cache -q %{_datadir}/icons/$theme &>/dev/null || :
touch --no-create %{_datadir}/icons/$theme done
gtk-update-icon-cache -q %{_datadir}/icons/$theme
fi
fi
done
fi fi
%posttrans core
for theme in hicolor locolor; do
gtk-update-icon-cache -q %{_datadir}/icons/$theme &>/dev/null || :
done
%files base %files base
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{basisinstdir} %dir %{basisinstdir}
@ -2009,6 +2004,9 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
%{basisinstdir}/program/kde-open-url %{basisinstdir}/program/kde-open-url
%changelog %changelog
* Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 3.3.99.4-2
- Update icon cache scriptlet
* Sat May 07 2011 David Tardon <dtardon@redhat.com> 3.3.99.4-1 * Sat May 07 2011 David Tardon <dtardon@redhat.com> 3.3.99.4-1
- 3.4 beta4 - 3.4 beta4
- drop integrated 0001-Removed-duplicate-code-block-mis-merge-prolly.patch - drop integrated 0001-Removed-duplicate-code-block-mis-merge-prolly.patch

Loading…
Cancel
Save