delete "%post" and "Requires(post)"in ttmkfdir.spec
This commit is contained in:
parent
23a216f637
commit
8ba9b53866
@ -1,7 +1,7 @@
|
||||
Summary: Utility to create fonts.scale files for truetype fonts
|
||||
Name: ttmkfdir
|
||||
Version: 3.0.9
|
||||
Release: 21
|
||||
Release: 22
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Patch: ttmkfdir-3.0.9-cpp.patch
|
||||
Patch1: ttmkfdir-3.0.9-zlib.patch
|
||||
@ -17,7 +17,6 @@ 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
|
||||
@ -49,23 +48,15 @@ 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
|
||||
[ ! -d $dir ] && continue
|
||||
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
|
||||
* Fri Sep 29 2006 Lingning Zhang <lizhang@redhat.com> - 3.0.9-22
|
||||
- delete "%post" and "Requires(post)" in ttmkfdir.spec
|
||||
|
||||
* Thu Sep 28 2006 Lingning Zhang <lizhang@redhat.com> - 3.0.9-21
|
||||
- modify release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user