parent
44c9143d57
commit
cc451c92a8
@ -53,15 +53,17 @@ populated fonts.
|
||||
%setup -q -c %{name}-%{version} -a1 -a2 -a3 -a4
|
||||
#patch0 -p0 -b .font-util-mapdir-use-datadir-fix
|
||||
#patch1 -p0 -b .autoconf-add-with-fontdir-option
|
||||
pushd mkfontscale-%{mkfontscale}
|
||||
oldpwd=$(pwd)
|
||||
cd mkfontscale-%{mkfontscale}
|
||||
%patch2 -p1 -b .all-encodings
|
||||
popd
|
||||
cd ${oldpwd}
|
||||
|
||||
%build
|
||||
# Build all apps
|
||||
{
|
||||
for app in bdftopcf fonttosfnt mkfontdir mkfontscale font-util ; do
|
||||
pushd $app-*
|
||||
oldpwd=$(pwd)
|
||||
cd $app-*
|
||||
# FIXME: We run autoconf to activate font-util-0.99.1-mapdir-use-datadir-fix.patch
|
||||
case $app in
|
||||
font-util)
|
||||
@ -71,7 +73,7 @@ popd
|
||||
# this --with-mapdir should be redundant?
|
||||
%configure --with-mapdir=%{_datadir}/X11/fonts/util
|
||||
make
|
||||
popd
|
||||
cd ${oldpwd}
|
||||
done
|
||||
}
|
||||
|
||||
@ -80,16 +82,17 @@ rm -rf $RPM_BUILD_ROOT
|
||||
# Install all apps
|
||||
{
|
||||
for app in bdftopcf fonttosfnt mkfontdir mkfontscale font-util; do
|
||||
pushd $app-*
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
popd
|
||||
done
|
||||
for i in */README ; do
|
||||
[ -s $i ] && cp $i README-$(echo $i | sed 's/-[0-9].*//')
|
||||
done
|
||||
for i in */COPYING ; do
|
||||
grep -q stub $i || cp $i COPYING-$(echo $i | sed 's/-[0-9].*//')
|
||||
done
|
||||
oldpwd=$(pwd)
|
||||
cd $app-*
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
cd ${oldpwd}
|
||||
done
|
||||
for i in */README ; do
|
||||
[ -s $i ] && cp $i README-$(echo $i | sed 's/-[0-9].*//')
|
||||
done
|
||||
for i in */COPYING ; do
|
||||
grep -q stub $i || cp $i COPYING-$(echo $i | sed 's/-[0-9].*//')
|
||||
done
|
||||
|
||||
# bdftruncate is part of font-util
|
||||
cp font-util-*/COPYING COPYING-bdftruncate
|
||||
|
@ -51,9 +51,10 @@ fc-cache $fontdir
|
||||
|
||||
if ! [ -z "$encodingsdir" ]; then
|
||||
[ -d "$encodingsdir" ] || mkdir -p "$encodingsdir"
|
||||
pushd "$encodingsdir"
|
||||
oldpwd=$(pwd)
|
||||
cd "$encodingsdir"
|
||||
mkfontscale -n -e "$encodingsdir" -e "$encodingsdir/large"
|
||||
popd
|
||||
cd ${oldpwd}
|
||||
fi
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user