]>
Commit | Line | Data |
---|---|---|
5e6fde32 | 1 | Summary: Microsoft TTF fonts |
2 | Summary(pl): Czcionki TTF firmy Microsoft | |
3 | Name: fonts-TTF-microsoft | |
4 | Version: 20020525 | |
10d0d1da | 5 | Release: 2 |
5e6fde32 | 6 | License: Microsoft EULA |
7 | Group: X11/Fonts | |
8 | URL: http://www.microsoft.com/truetype/fontpack/ | |
5b104401 | 9 | Source0: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/andale32.exe |
10 | Source1: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/arial32.exe | |
11 | Source2: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/arialb32.exe | |
12 | Source3: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/comic32.exe | |
13 | Source4: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/courie32.exe | |
14 | Source5: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/georgi32.exe | |
15 | Source6: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/impact32.exe | |
16 | Source7: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/times32.exe | |
17 | Source8: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/trebuc32.exe | |
18 | Source9: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/verdan32.exe | |
19 | Source10: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/webdin32.exe | |
5e6fde32 | 20 | NoSource: 0 |
21 | NoSource: 1 | |
22 | NoSource: 2 | |
23 | NoSource: 3 | |
24 | NoSource: 4 | |
25 | NoSource: 5 | |
26 | NoSource: 6 | |
27 | NoSource: 7 | |
28 | NoSource: 8 | |
29 | NoSource: 9 | |
30 | NoSource: 10 | |
31 | BuildRequires: cabextract | |
32 | BuildRequires: ttmkfdir | |
33 | BuildRequires: util-linux | |
34 | BuildRequires: textutils | |
35 | Requires(post,postun):fileutils | |
36 | Requires(post,postun):sed | |
37 | Buildarch: noarch | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %define ttffontsdir %{_fontsdir}/TTF | |
41 | ||
42 | %define _prefix /usr/X11R6 | |
43 | %define _mandir %{_prefix}/man | |
44 | ||
45 | %description | |
bb0dde11 | 46 | Microsoft free TTF fonts collection |
5e6fde32 | 47 | %description -l pl |
bb0dde11 | 48 | Kolekcja darmowych czcionek TTF firmy Microsoft |
5e6fde32 | 49 | |
50 | %prep | |
51 | %setup -q -c -T | |
52 | /usr/bin/cabextract %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \ | |
53 | %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \ | |
54 | %{SOURCE10} | |
55 | ||
56 | cat Licen.TXT |more | |
57 | ||
58 | reply= | |
59 | while [ x$reply = x ]; do | |
bb0dde11 | 60 | echo "Type (a)gree or (d)isagree and then press ENTER" |
5e6fde32 | 61 | read reply leftover |
62 | case $reply in | |
63 | a|A) | |
64 | reply=1 | |
65 | ;; | |
66 | d|D) | |
67 | exit 1 | |
68 | ;; | |
69 | esac | |
70 | done | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | install -d $RPM_BUILD_ROOT%{ttffontsdir} | |
75 | install *.ttf *.TTF $RPM_BUILD_ROOT%{ttffontsdir} | |
76 | cd $RPM_BUILD_ROOT%{ttffontsdir} | |
5b104401 | 77 | /usr/bin/ttmkfdir |tail +2 >fonts.scale.%{name} |
5e6fde32 | 78 | cd - |
10d0d1da | 79 | |
80 | gzip -9nf Licen.TXT | |
81 | ||
5e6fde32 | 82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post | |
86 | cd %{ttffontsdir} | |
87 | umask 022 | |
88 | rm -f fonts.scale.bak | |
89 | cat fonts.scale.* | sort -u > fonts.scale.tmp | |
90 | cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale | |
91 | cat fonts.scale.tmp >> fonts.scale | |
92 | rm -f fonts.scale.tmp fonts.dir | |
93 | ln -sf fonts.scale fonts.dir | |
94 | if [ -x /usr/X11R6/bin/xftcache ]; then | |
95 | /usr/X11R6/bin/xftcache . | |
96 | fi | |
97 | ||
98 | %postun | |
99 | cd %{ttffontsdir} | |
100 | umask 022 | |
101 | rm -f fonts.scale.bak | |
102 | cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp | |
103 | cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale | |
104 | cat fonts.scale.tmp >> fonts.scale | |
105 | rm -f fonts.scale.tmp fonts.dir | |
106 | ln -sf fonts.scale fonts.dir | |
107 | if [ -x /usr/X11R6/bin/xftcache ]; then | |
108 | /usr/X11R6/bin/xftcache . | |
109 | fi | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
10d0d1da | 113 | %doc Licen.TXT.gz |
5e6fde32 | 114 | %{ttffontsdir}/* |