add icon cache update scriptlets
This commit is contained in:
parent
e7cbeadd72
commit
0dec5e4d48
17
xsane.spec
17
xsane.spec
@ -15,7 +15,7 @@
|
|||||||
Name: xsane
|
Name: xsane
|
||||||
Summary: X Window System front-end for the SANE scanner interface
|
Summary: X Window System front-end for the SANE scanner interface
|
||||||
Version: 0.998
|
Version: 0.998
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz
|
Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz
|
||||||
Source1: xsane-256x256.png
|
Source1: xsane-256x256.png
|
||||||
# distro-specific: use "xdg-open" instead of "netscape" to launch help browser
|
# distro-specific: use "xdg-open" instead of "netscape" to launch help browser
|
||||||
@ -177,6 +177,18 @@ if [ -L "%{gimpplugindir}/xsane" ]; then
|
|||||||
rm -f "%{gimpplugindir}/xsane"
|
rm -f "%{gimpplugindir}/xsane"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%post
|
||||||
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||||
|
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
%files -f XSANE.lang
|
%files -f XSANE.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc xsane.ACCELKEYS xsane.AUTHOR xsane.BEGINNERS-INFO xsane.BUGS xsane.CHANGES xsane.COPYING xsane.FAQ xsane.LANGUAGES xsane.LOGO xsane.NEWS xsane.ONLINEHELP xsane.PROBLEMS xsane.ROOT xsane.TODO
|
%doc xsane.ACCELKEYS xsane.AUTHOR xsane.BEGINNERS-INFO xsane.BUGS xsane.CHANGES xsane.COPYING xsane.FAQ xsane.LANGUAGES xsane.LOGO xsane.NEWS xsane.ONLINEHELP xsane.PROBLEMS xsane.ROOT xsane.TODO
|
||||||
@ -197,6 +209,9 @@ fi
|
|||||||
%{_datadir}/sane/xsane
|
%{_datadir}/sane/xsane
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 26 2012 Nils Philippsen <nils@redhat.com> - 0.998-10
|
||||||
|
- add icon cache update scriptlets
|
||||||
|
|
||||||
* Fri May 25 2012 Nils Philippsen <nils@redhat.com> - 0.998-9
|
* Fri May 25 2012 Nils Philippsen <nils@redhat.com> - 0.998-9
|
||||||
- install and use higher resolution icons (#795085)
|
- install and use higher resolution icons (#795085)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user