add "%post" in ttmkfdir.spec for fixing bug173591
This commit is contained in:
parent
bc72933f3e
commit
8d458e5f12
@ -1,7 +1,7 @@
|
|||||||
Summary: Utility to create fonts.scale files for truetype fonts
|
Summary: Utility to create fonts.scale files for truetype fonts
|
||||||
Name: ttmkfdir
|
Name: ttmkfdir
|
||||||
Version: 3.0.9
|
Version: 3.0.9
|
||||||
Release: 20.2.1
|
Release: 20.3
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Patch: ttmkfdir-3.0.9-cpp.patch
|
Patch: ttmkfdir-3.0.9-cpp.patch
|
||||||
Patch1: ttmkfdir-3.0.9-zlib.patch
|
Patch1: ttmkfdir-3.0.9-zlib.patch
|
||||||
@ -48,12 +48,25 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README
|
%doc README
|
||||||
%{_bindir}/ttmkfdir
|
%{_bindir}/ttmkfdir
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.0.9-20.2.1
|
||||||
- rebuild
|
- rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user