Update scriptlets per packaging guidelines
This commit is contained in:
parent
747d7b464f
commit
b0a8569286
25
gimp.spec
25
gimp.spec
@ -31,7 +31,7 @@ Summary: GNU Image Manipulation Program
|
||||
Name: gimp
|
||||
Epoch: 2
|
||||
Version: 2.6.11
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
%define binver 2.6
|
||||
%define gimp_lang_ver 20
|
||||
%define interfacever 2.0
|
||||
@ -342,21 +342,19 @@ ln -snf gimprc-%{binver}.5 %{buildroot}/%{_mandir}/man5/gimprc.5
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
/usr/bin/update-desktop-database %{_datadir}/applications &> /dev/null || :
|
||||
touch --no-create %{_datadir}/icons/hicolor
|
||||
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
fi
|
||||
update-desktop-database &> /dev/null || :
|
||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%postun
|
||||
if [ "$1" = "0" ]; then
|
||||
/usr/bin/update-desktop-database %{_datadir}/applications &> /dev/null || :
|
||||
fi
|
||||
touch --no-create %{_datadir}/icons/hicolor
|
||||
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
update-desktop-database &> /dev/null || :
|
||||
if [ $1 -eq 0 ] ; then
|
||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
@ -488,6 +486,9 @@ fi
|
||||
%{_libdir}/gimp/%{interfacever}/plug-ins/help-browser
|
||||
|
||||
%changelog
|
||||
* Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 2:2.6.11-9
|
||||
- Update desktop database, icon cache scriptlets
|
||||
|
||||
* Sun Mar 13 2011 Marek Kasik <mkasik@redhat.com> - 2:2.6.11-8
|
||||
- Rebuild (poppler-0.16.3)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user