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 Requires(post,postun): fileutils
40 Requires(post,postun): textutils
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define ttffontsdir %{_fontsdir}/TTF
47 Microsoft free TTF fonts collection.
50 Kolekcja darmowych czcionek TTF firmy Microsoft.
54 /usr/bin/cabextract %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
55 %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \
58 %if %{!?_with_license_agreement:1}%{?_with_license_agreement:0}
64 rpm -ba --with license_agreement <specfile>
65 to rebuild the package if you accept the above license.
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{ttffontsdir}
74 install *.ttf *.TTF $RPM_BUILD_ROOT%{ttffontsdir}
76 cd $RPM_BUILD_ROOT%{ttffontsdir}
77 /usr/bin/ttmkfdir |tail +2 >fonts.scale.%{name}
81 rm -rf $RPM_BUILD_ROOT
87 cat fonts.scale.* | sort -u > fonts.scale.tmp
88 cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
89 cat fonts.scale.tmp >> fonts.scale
90 rm -f fonts.scale.tmp fonts.dir
91 ln -sf fonts.scale fonts.dir
92 if [ -x /usr/X11R6/bin/xftcache ]; then
93 /usr/X11R6/bin/xftcache .
100 cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
101 cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
102 cat fonts.scale.tmp >> fonts.scale
103 rm -f fonts.scale.tmp fonts.dir
104 ln -sf fonts.scale fonts.dir
105 if [ -x /usr/X11R6/bin/xftcache ]; then
106 /usr/X11R6/bin/xftcache .
110 %defattr(644,root,root,755)