templates/kde4: minor updates

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2011-12-29 14:52:47 +01:00
parent d8923cb9d8
commit e9af2cf8eb
2 changed files with 11 additions and 3 deletions

View File

@ -5,6 +5,10 @@ Changes in version 1.8.2
* templates/library - Davide Madrisan: * templates/library - Davide Madrisan:
Add a missing requirement. Add a missing requirement.
+ update
* templates/kde4 - Davide Madrisan:
Minor updates.
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 1.8.1 - Christmas Release Changes in version 1.8.1 - Christmas Release

View File

@ -47,22 +47,24 @@ BuildRoot: @rpm_default_buildroot@
/sbin/ldconfig /sbin/ldconfig
@fi:shared_libraries @fi:shared_libraries
@if:icons_mimetypes @if:icons_mimetypes
## remove the following line if this package has no hicolor icons
touch --no-create %{_kde4_icondir}/hicolor &>/dev/null touch --no-create %{_kde4_icondir}/hicolor &>/dev/null
## remove the following line if this package has no oxygen icons
touch --no-create %{_kde4_icondir}/oxygen &>/dev/null touch --no-create %{_kde4_icondir}/oxygen &>/dev/null
@fi:icons_mimetypes @fi:icons_mimetypes
exit 0 exit 0
@if:icons_mimetypes @if:icons_mimetypes
%posttrans %posttrans
@fi:icons_mimetypes
@if:shared_libraries @if:shared_libraries
## remove the following line if no dynamic libraries are provided by this package ## remove the following line if no dynamic libraries are provided by this package
/sbin/ldconfig /sbin/ldconfig
@fi:shared_libraries @fi:shared_libraries
@if:icons_mimetypes
update-desktop-database -q &>/dev/null update-desktop-database -q &>/dev/null
update-mime-database %{_kde4_mimedir} &>/dev/null update-mime-database %{_kde4_mimedir} &>/dev/null
## remove the following line if this package has no hicolor icons
gtk-update-icon-cache %{_kde4_icondir}/hicolor &>/dev/null gtk-update-icon-cache %{_kde4_icondir}/hicolor &>/dev/null
## remove the following line if this package has no oxygen icons
gtk-update-icon-cache %{_kde4_icondir}/oxygen &>/dev/null gtk-update-icon-cache %{_kde4_icondir}/oxygen &>/dev/null
exit 0 exit 0
@fi:icons_mimetypes @fi:icons_mimetypes
@ -76,9 +78,11 @@ exit 0
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
\ update-desktop-database -q &>/dev/null \ update-desktop-database -q &>/dev/null
\ update-mime-database %{_kde4_mimedir} &>/dev/null \ update-mime-database %{_kde4_mimedir} &>/dev/null
## remove the following two lines if this package has no hicolor icons
\ touch --no-create %{_kde4_icondir}/hicolor &>/dev/null \ touch --no-create %{_kde4_icondir}/hicolor &>/dev/null
\ touch --no-create %{_kde4_icondir}/oxygen &>/dev/null
\ gtk-update-icon-cache %{_kde4_icondir}/hicolor &>/dev/null \ gtk-update-icon-cache %{_kde4_icondir}/hicolor &>/dev/null
## remove the following two lines if this package has no oxygen icons
\ touch --no-create %{_kde4_icondir}/oxygen &>/dev/null
\ gtk-update-icon-cache %{_kde4_icondir}/oxygen &>/dev/null \ gtk-update-icon-cache %{_kde4_icondir}/oxygen &>/dev/null
fi fi
@fi:icons_mimetypes @fi:icons_mimetypes