Update scriptlets per packaging guidelines
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#desktop-database http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
This commit is contained in:
parent
2f23e48691
commit
7cb9eaf4c6
25
gimp.spec
25
gimp.spec
@ -38,7 +38,7 @@ Summary: GNU Image Manipulation Program
|
|||||||
Name: gimp
|
Name: gimp
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 2.6.11
|
Version: 2.6.11
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
%define binver 2.6
|
%define binver 2.6
|
||||||
%define gimp_lang_ver 20
|
%define gimp_lang_ver 20
|
||||||
%define interfacever 2.0
|
%define interfacever 2.0
|
||||||
@ -359,21 +359,19 @@ ln -snf gimprc-%{binver}.5 %{buildroot}/%{_mandir}/man5/gimprc.5
|
|||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/usr/bin/update-desktop-database %{_datadir}/applications &> /dev/null || :
|
update-desktop-database &> /dev/null || :
|
||||||
touch --no-create %{_datadir}/icons/hicolor
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
||||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" = "0" ]; then
|
update-desktop-database &> /dev/null || :
|
||||||
/usr/bin/update-desktop-database %{_datadir}/applications &> /dev/null || :
|
if [ $1 -eq 0 ] ; then
|
||||||
fi
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||||
touch --no-create %{_datadir}/icons/hicolor
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
||||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -505,6 +503,9 @@ fi
|
|||||||
%{_libdir}/gimp/%{interfacever}/plug-ins/help-browser
|
%{_libdir}/gimp/%{interfacever}/plug-ins/help-browser
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 2:2.6.11-12
|
||||||
|
- Update desktop database, icon cache scriptlets
|
||||||
|
|
||||||
* Fri May 06 2011 Nils Philippsen <nils@redhat.com> - 2:2.6.11-11
|
* Fri May 06 2011 Nils Philippsen <nils@redhat.com> - 2:2.6.11-11
|
||||||
- simplify poppler-0.17 patch to avoid adding to libgimp (#698157)
|
- simplify poppler-0.17 patch to avoid adding to libgimp (#698157)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user