# $Id: kde.spec,v 1.36 2006/04/09 20:12:40 rexdieter Exp $

Summary: posttrans-test 
Name:    posttrans-test 
Version: 1.0 
Release: 1

License: GPL	
Group:   User Interface/Desktops
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
#speed build options
%define debug_package   %{nil}
%define __spec_install_post  %{nil}
AutoReq: no

%description
For testing rpm's scriptlet abilities


%prep
#setup -c -T -n %{name}-%{version}

%build


%install
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)


%clean
rm -rf $RPM_BUILD_ROOT


%pre
echo -n "%%pre: " ||:
echo ||:

%preun
echo -n "%%preun: " ||:
echo ||:

%post
echo -n "%%post: " ||:
echo -n "touch" ||:
touch --no-create %{_datadir}/icons/hicolor ||:
echo ||:

%postun
echo -n "%%postun: "
if [ $1 -eq 0 ]; then
echo -n "touch"
touch --no-create %{_datadir}/icons/hicolor ||:
fi
echo ||:

%pretrans
echo -n "%%pretrans: " ||:
echo ||:

%posttrans 
echo -n "%%posttrans: " ||:
echo -n "gtk-update-icon-cache" ||:
gtk-update-icon-cache %{_datadir}/icons/hicolor ||:
echo ||:


%changelog
* Wed Dec 20 2006 Rex Dieter 1.0-1
- foo
