diff --git a/ttmkfdir.spec b/ttmkfdir.spec index 7a24e8f..ddb0e41 100644 --- a/ttmkfdir.spec +++ b/ttmkfdir.spec @@ -1,7 +1,7 @@ Summary: Utility to create fonts.scale files for truetype fonts Name: ttmkfdir Version: 3.0.9 -Release: 20.3 +Release: 20.4 Source0: %{name}-%{version}.tar.bz2 Patch: ttmkfdir-3.0.9-cpp.patch Patch1: ttmkfdir-3.0.9-zlib.patch @@ -17,6 +17,7 @@ BuildRoot: %{_tmppath}/%{name}-root BuildRequires: freetype-devel >= 2.0 BuildRequires: zlib-devel flex BuildRequires: libtool +Requires(post): coreutils, chkfontpath, /sbin/service # ttmkfdir used to be in the following packages at one point Conflicts: XFree86-font-utils < 4.2.99.2-0.20021126.3 @@ -50,10 +51,11 @@ 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 +do + [ ! -d $dir ] && continue + if ls $dir | grep -Eiqs '\.(ot[cf]|tt[cf])$'; + then + touch $dir fi done service xfs restart @@ -64,6 +66,9 @@ service xfs restart %{_bindir}/ttmkfdir %changelog +* Wed Sep 27 2006 Lingning Zhang - 3.0.9-20.4 +- modify "%post" and add "Requires(post)" in ttmkfdir.spec for fixing bug173591, bug207279, bug208122 + * Wed Sep 06 2006 Lingning Zhang - 3.0.9-20.3 - add "%post" in ttmkfdir.spec for fixing bug173591