modify "%post" and add "Requires(post)" in ttmkfdir.spec for fixing bug173591, bug207279, bug208122

This commit is contained in:
Lingning Zhang 2006-09-27 02:51:13 +00:00
parent 8d458e5f12
commit 0a536f0477

View File

@ -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.3 Release: 20.4
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
@ -17,6 +17,7 @@ BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: freetype-devel >= 2.0 BuildRequires: freetype-devel >= 2.0
BuildRequires: zlib-devel flex BuildRequires: zlib-devel flex
BuildRequires: libtool BuildRequires: libtool
Requires(post): coreutils, chkfontpath, /sbin/service
# ttmkfdir used to be in the following packages at one point # ttmkfdir used to be in the following packages at one point
Conflicts: XFree86-font-utils < 4.2.99.2-0.20021126.3 Conflicts: XFree86-font-utils < 4.2.99.2-0.20021126.3
@ -51,6 +52,7 @@ rm -rf $RPM_BUILD_ROOT
%post %post
for dir in $(/usr/sbin/chkfontpath --list | sed -e '/^Current/d;s#^[0-9]*:##g;s#:unscaled$##g;/^[[:space:]]*$/d' | sort | uniq) ; for dir in $(/usr/sbin/chkfontpath --list | sed -e '/^Current/d;s#^[0-9]*:##g;s#:unscaled$##g;/^[[:space:]]*$/d' | sort | uniq) ;
do do
[ ! -d $dir ] && continue
if ls $dir | grep -Eiqs '\.(ot[cf]|tt[cf])$'; if ls $dir | grep -Eiqs '\.(ot[cf]|tt[cf])$';
then then
touch $dir touch $dir
@ -64,6 +66,9 @@ service xfs restart
%{_bindir}/ttmkfdir %{_bindir}/ttmkfdir
%changelog %changelog
* Wed Sep 27 2006 Lingning Zhang <lizhang@redhat.com> - 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 <lizhang@redhat.com> - 3.0.9-20.3 * Wed Sep 06 2006 Lingning Zhang <lizhang@redhat.com> - 3.0.9-20.3
- add "%post" in ttmkfdir.spec for fixing bug173591 - add "%post" in ttmkfdir.spec for fixing bug173591