rpms/ttmkfdir/devel ttmkfdir.spec,1.21,1.22

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Sep 6 06:15:29 UTC 2006


Author: lizhang

Update of /cvs/dist/rpms/ttmkfdir/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv12651

Modified Files:
	ttmkfdir.spec 
Log Message:
add "%post" in ttmkfdir.spec for fixing bug173591



Index: ttmkfdir.spec
===================================================================
RCS file: /cvs/dist/rpms/ttmkfdir/devel/ttmkfdir.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- ttmkfdir.spec	12 Jul 2006 08:34:06 -0000	1.21
+++ ttmkfdir.spec	6 Sep 2006 06:15:20 -0000	1.22
@@ -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 @@
 %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 at redhat.com> - 3.0.9-20.3
+- add "%post" in ttmkfdir.spec for fixing bug173591
+
 * Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com> - 3.0.9-20.2.1
 - rebuild
 




More information about the fedora-cvs-commits mailing list