add "%post" in ttmkfdir.spec for fixing bug173591

This commit is contained in:
Lingning Zhang 2006-09-06 06:15:20 +00:00
parent bc72933f3e
commit 8d458e5f12

View File

@ -1,7 +1,7 @@
Summary: Utility to create fonts.scale files for truetype fonts
Name: ttmkfdir
Version: 3.0.9
Release: 20.2.1
Release: 20.3
Source0: %{name}-%{version}.tar.bz2
Patch: ttmkfdir-3.0.9-cpp.patch
Patch1: ttmkfdir-3.0.9-zlib.patch
@ -48,12 +48,25 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
for dir in $(/usr/sbin/chkfontpath --list | sed -e '/^Current/d;s#^[0-9]*:##g;s#:unscaled$##g;/^[[:space:]]*$/d' | sort | uniq) ;
do
if ls $dir | grep -Eiqs '\.(ot[cf]|tt[cf])$';
then
touch $dir
fi
done
service xfs restart
%files
%defattr(-,root,root)
%doc README
%{_bindir}/ttmkfdir
%changelog
* Wed Sep 06 2006 Lingning Zhang <lizhang@redhat.com> - 3.0.9-20.3
- add "%post" in ttmkfdir.spec for fixing bug173591
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.0.9-20.2.1
- rebuild