3 # _with_license_agreement - generates package
5 Summary: Microsoft TTF fonts
6 Summary(pl): Czcionki TTF firmy Microsoft
7 Name: fonts-TTF-microsoft
10 License: Microsoft EULA (for non-commercial use)
12 URL: http://www.microsoft.com/truetype/fontpack/
13 Source0: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/andale32.exe
14 Source1: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/arial32.exe
15 Source2: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/arialb32.exe
16 Source3: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/comic32.exe
17 Source4: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/courie32.exe
18 Source5: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/georgi32.exe
19 Source6: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/impact32.exe
20 Source7: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/times32.exe
21 Source8: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/trebuc32.exe
22 Source9: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/verdan32.exe
23 Source10: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/webdin32.exe
24 %if %{!?_with_license_agreement:1}%{?_with_license_agreement:0}
37 BuildRequires: cabextract
38 BuildRequires: ttmkfdir
39 BuildRequires: util-linux
40 BuildRequires: textutils
41 Requires(post,postun):fileutils
42 Requires(post,postun):sed
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define ttffontsdir %{_fontsdir}/TTF
50 Microsoft free TTF fonts collection
52 Kolekcja darmowych czcionek TTF firmy Microsoft
56 /usr/bin/cabextract %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
57 %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \
60 %if %{!?_with_license_agreement:1}%{?_with_license_agreement:0}
66 rpm -ba --with license_agreement <specfile>
67 to rebuild the package if you accept the above license.
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT%{ttffontsdir}
76 install *.ttf *.TTF $RPM_BUILD_ROOT%{ttffontsdir}
77 cd $RPM_BUILD_ROOT%{ttffontsdir}
78 /usr/bin/ttmkfdir |tail +2 >fonts.scale.%{name}
82 rm -rf $RPM_BUILD_ROOT
88 cat fonts.scale.* | sort -u > fonts.scale.tmp
89 cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
90 cat fonts.scale.tmp >> fonts.scale
91 rm -f fonts.scale.tmp fonts.dir
92 ln -sf fonts.scale fonts.dir
93 if [ -x /usr/X11R6/bin/xftcache ]; then
94 /usr/X11R6/bin/xftcache .
100 rm -f fonts.scale.bak
101 cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
102 cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
103 cat fonts.scale.tmp >> fonts.scale
104 rm -f fonts.scale.tmp fonts.dir
105 ln -sf fonts.scale fonts.dir
106 if [ -x /usr/X11R6/bin/xftcache ]; then
107 /usr/X11R6/bin/xftcache .
111 %defattr(644,root,root,755)