ik probeer om met de aanwijzingen op: http://corefonts.sourceforge.net/
de ms fonts te installeren.dit zou moeten gaan met een script msttcorefonts.spec genaamd.
dit gaat tot op zekere hoogte goed,maar ik krijg een bad exit omdat ie de
dir /usr/bin/ttmkfdir niet kan vinden.(deze staat in /usr/X11R6/bin/ttmkfdir)
het gaat denk ik fout op dit punt in het script:
----------------------script--------------------------------------
mkdir fonts
cd fonts
cp ../cab-contents/*.ttf .
%{ttmkfdir} > fonts.dir
python $RPM_SOURCE_DIR/mkfontalias.py
---------------------------------------------------------------------------
hoe kan ik dit aanpassen? het volledige script staat hier onder
--------------------------- script----------------------
%define name msttcorefonts
%define ttmkfdir /usr/bin/ttmkfdir
#please select the server that is closest to you
#define distserver http://osdn.dl.sourceforge.net/sourceforge/corefonts
#define distserver http://telia.dl.sourceforge.net/sourceforge/corefonts
#define distserver http://unc.dl.sourceforge.net/sourceforge/corefonts
#define distserver http://umn.dl.sourceforge.net/sourceforge/corefonts
#define distserver http://twtelecom.dl.sourceforge.net/sourceforge/corefonts
%define distserver http://belnet.dl.sourceforge.net/sourceforge/corefonts
Summary: TrueType core fonts for the web
Name: %{name}
Version: 1.2
Release: 3
License: source rpm is GPL, binary rpm is gratis but non-distributable
Group: User Interface/X
Source0: mkfontalias.py
BuildArchitectures: noarch
BuildRoot: /var/tmp/%{name}-root
BuildPrereq: %{ttmkfdir}
BuildPrereq: python
BuildPrereq: wget
BuildPrereq: cabextract
Prereq: /usr/sbin/chkfontpath
Packager: Daniel Resare <noa@resare.com>
%description
The TrueType core fonts for the web that was once available from
http://www.microsoft.com/typography/fontpack/. The src rpm is cleverly
constructed so that the actual fonts are downloaded from Sourceforge's site
at build time. Therefore this package technically does not 'redistribute'
the fonts, it just makes it easy to install them on a linux system. Another
feature of this package is that it forces the font server not to render
fonts any smaller than 8 points by using clever tricks with the fonts.alias
file. This package depends on the cabextract utility.
%prep
rm -rf %{name}
mkdir %{name}
cd %{name}
for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe
do
wget %{distserver}/$i
done
%build
cd %{name}
mkdir -p %{name}/cab-contents
for i in *.exe *.CAB
do
if test -f $i
then
cabextract --lowercase --directory=cab-contents $i
fi
done
mkdir fonts
cd fonts
cp ../cab-contents/*.ttf .
%{ttmkfdir} > fonts.dir
python $RPM_SOURCE_DIR/mkfontalias.py
%install
cd %{name}/fonts
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/%{name}
cp *.ttf fonts.dir fonts.alias $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
if test $1 -eq 1
then
/usr/sbin/chkfontpath --add /usr/X11R6/lib/X11/fonts/%{name}
fi
%preun
if test $1 -eq 0
then
/usr/sbin/chkfontpath --remove /usr/X11R6/lib/X11/fonts/%{name}
fi
%files
%attr(0755,root,root) /usr/X11R6/lib/X11/fonts/%{name}
%changelog
* Tue Aug 27 2002 Daniel Resare <noa@resare.com> 1.2-3
- fixed spec error when tahoma is not included
* Tue Aug 27 2002 Daniel Resare <noa@resare.com> 1.2-2
- removed tahoma due to unclear licensing
- parametrized ttmkfdir path (for mandrake users)
- changed description text to reflect the new microsoft policy
* Thu Aug 15 2002 Daniel Resare <noa@resare.com> 1.2-1
- changed distserver because microsoft no longer provides them
* Tue Apr 09 2002 Daniel Resare <noa@resare.com> 1.1-3
- fixed post/preun script to actually do what they were supposed to do
* Tue Mar 12 2002 Daniel Resare <noa@resare.com> 1.1-2
- removed cabextact from this package
- added tahoma font from ie5.5 update
* Fri Aug 25 2001 Daniel Resare <noa@metamatrix.se>
- initial version
-----------------------------------------------------------
de ms fonts te installeren.dit zou moeten gaan met een script msttcorefonts.spec genaamd.
dit gaat tot op zekere hoogte goed,maar ik krijg een bad exit omdat ie de
dir /usr/bin/ttmkfdir niet kan vinden.(deze staat in /usr/X11R6/bin/ttmkfdir)
het gaat denk ik fout op dit punt in het script:
----------------------script--------------------------------------
mkdir fonts
cd fonts
cp ../cab-contents/*.ttf .
%{ttmkfdir} > fonts.dir
python $RPM_SOURCE_DIR/mkfontalias.py
---------------------------------------------------------------------------
hoe kan ik dit aanpassen? het volledige script staat hier onder
--------------------------- script----------------------
%define name msttcorefonts
%define ttmkfdir /usr/bin/ttmkfdir
#please select the server that is closest to you
#define distserver http://osdn.dl.sourceforge.net/sourceforge/corefonts
#define distserver http://telia.dl.sourceforge.net/sourceforge/corefonts
#define distserver http://unc.dl.sourceforge.net/sourceforge/corefonts
#define distserver http://umn.dl.sourceforge.net/sourceforge/corefonts
#define distserver http://twtelecom.dl.sourceforge.net/sourceforge/corefonts
%define distserver http://belnet.dl.sourceforge.net/sourceforge/corefonts
Summary: TrueType core fonts for the web
Name: %{name}
Version: 1.2
Release: 3
License: source rpm is GPL, binary rpm is gratis but non-distributable
Group: User Interface/X
Source0: mkfontalias.py
BuildArchitectures: noarch
BuildRoot: /var/tmp/%{name}-root
BuildPrereq: %{ttmkfdir}
BuildPrereq: python
BuildPrereq: wget
BuildPrereq: cabextract
Prereq: /usr/sbin/chkfontpath
Packager: Daniel Resare <noa@resare.com>
%description
The TrueType core fonts for the web that was once available from
http://www.microsoft.com/typography/fontpack/. The src rpm is cleverly
constructed so that the actual fonts are downloaded from Sourceforge's site
at build time. Therefore this package technically does not 'redistribute'
the fonts, it just makes it easy to install them on a linux system. Another
feature of this package is that it forces the font server not to render
fonts any smaller than 8 points by using clever tricks with the fonts.alias
file. This package depends on the cabextract utility.
%prep
rm -rf %{name}
mkdir %{name}
cd %{name}
for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe
do
wget %{distserver}/$i
done
%build
cd %{name}
mkdir -p %{name}/cab-contents
for i in *.exe *.CAB
do
if test -f $i
then
cabextract --lowercase --directory=cab-contents $i
fi
done
mkdir fonts
cd fonts
cp ../cab-contents/*.ttf .
%{ttmkfdir} > fonts.dir
python $RPM_SOURCE_DIR/mkfontalias.py
%install
cd %{name}/fonts
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/%{name}
cp *.ttf fonts.dir fonts.alias $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
if test $1 -eq 1
then
/usr/sbin/chkfontpath --add /usr/X11R6/lib/X11/fonts/%{name}
fi
%preun
if test $1 -eq 0
then
/usr/sbin/chkfontpath --remove /usr/X11R6/lib/X11/fonts/%{name}
fi
%files
%attr(0755,root,root) /usr/X11R6/lib/X11/fonts/%{name}
%changelog
* Tue Aug 27 2002 Daniel Resare <noa@resare.com> 1.2-3
- fixed spec error when tahoma is not included
* Tue Aug 27 2002 Daniel Resare <noa@resare.com> 1.2-2
- removed tahoma due to unclear licensing
- parametrized ttmkfdir path (for mandrake users)
- changed description text to reflect the new microsoft policy
* Thu Aug 15 2002 Daniel Resare <noa@resare.com> 1.2-1
- changed distserver because microsoft no longer provides them
* Tue Apr 09 2002 Daniel Resare <noa@resare.com> 1.1-3
- fixed post/preun script to actually do what they were supposed to do
* Tue Mar 12 2002 Daniel Resare <noa@resare.com> 1.1-2
- removed cabextact from this package
- added tahoma font from ie5.5 update
* Fri Aug 25 2001 Daniel Resare <noa@metamatrix.se>
- initial version
-----------------------------------------------------------