]>
Commit | Line | Data |
---|---|---|
ad7883a7 | 1 | # |
2 | # Conditional build: | |
3 | # _with_license_agreement - generates package | |
4 | # | |
5e6fde32 | 5 | Summary: Microsoft TTF fonts |
6 | Summary(pl): Czcionki TTF firmy Microsoft | |
7 | Name: fonts-TTF-microsoft | |
8 | Version: 20020525 | |
ad7883a7 | 9 | Release: 3 |
10 | License: Microsoft EULA (for non-commercial use) | |
5e6fde32 | 11 | Group: X11/Fonts |
12 | URL: http://www.microsoft.com/truetype/fontpack/ | |
5b104401 | 13 | Source0: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/andale32.exe |
4e7c74e8 | 14 | # Source0-md5: cbdc2fdd7d2ed0832795e86a8b9ee19a |
5b104401 | 15 | Source1: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/arial32.exe |
4e7c74e8 | 16 | # Source1-md5: 9637df0e91703179f0723ec095a36cb5 |
5b104401 | 17 | Source2: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/arialb32.exe |
4e7c74e8 | 18 | # Source2-md5: c9089ae0c3b3d0d8c4b0a95979bb9ff0 |
5b104401 | 19 | Source3: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/comic32.exe |
4e7c74e8 | 20 | # Source3-md5: 2b30de40bb5e803a0452c7715fc835d1 |
5b104401 | 21 | Source4: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/courie32.exe |
4e7c74e8 | 22 | # Source4-md5: 4e412c772294403ab62fb2d247d85c60 |
5b104401 | 23 | Source5: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/georgi32.exe |
4e7c74e8 | 24 | # Source5-md5: 4d90016026e2da447593b41a8d8fa8bd |
5b104401 | 25 | Source6: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/impact32.exe |
4e7c74e8 | 26 | # Source6-md5: 7907c7dd6684e9bade91cff82683d9d7 |
5b104401 | 27 | Source7: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/times32.exe |
4e7c74e8 | 28 | # Source7-md5: ed39c8ef91b9fb80f76f702568291bd5 |
5b104401 | 29 | Source8: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/trebuc32.exe |
4e7c74e8 | 30 | # Source8-md5: 0d7ea16cac6261f8513a061fbfcdb2b5 |
5b104401 | 31 | Source9: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/verdan32.exe |
4e7c74e8 | 32 | # Source9-md5: 12d2a75f8156e10607be1eaa8e8ef120 |
5b104401 | 33 | Source10: ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/webdin32.exe |
4e7c74e8 | 34 | # Source10-md5: 230a1d13a365b22815f502eb24d9149b |
ad7883a7 | 35 | %if %{!?_with_license_agreement:1}%{?_with_license_agreement:0} |
5e6fde32 | 36 | NoSource: 0 |
37 | NoSource: 1 | |
38 | NoSource: 2 | |
39 | NoSource: 3 | |
40 | NoSource: 4 | |
41 | NoSource: 5 | |
42 | NoSource: 6 | |
43 | NoSource: 7 | |
44 | NoSource: 8 | |
45 | NoSource: 9 | |
46 | NoSource: 10 | |
ad7883a7 | 47 | %endif |
5e6fde32 | 48 | BuildRequires: cabextract |
49 | BuildRequires: ttmkfdir | |
1ed1a3e7 JB |
50 | Requires(post,postun): fileutils |
51 | Requires(post,postun): textutils | |
5e6fde32 | 52 | Buildarch: noarch |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %define ttffontsdir %{_fontsdir}/TTF | |
56 | ||
5e6fde32 | 57 | %description |
1ed1a3e7 JB |
58 | Microsoft free TTF fonts collection. |
59 | ||
5e6fde32 | 60 | %description -l pl |
1ed1a3e7 | 61 | Kolekcja darmowych czcionek TTF firmy Microsoft. |
5e6fde32 | 62 | |
63 | %prep | |
64 | %setup -q -c -T | |
65 | /usr/bin/cabextract %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \ | |
66 | %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \ | |
67 | %{SOURCE10} | |
68 | ||
ad7883a7 | 69 | %if %{!?_with_license_agreement:1}%{?_with_license_agreement:0} |
70 | cat Licen.TXT | |
5e6fde32 | 71 | |
ad7883a7 | 72 | cat <<EOF |
73 | ||
74 | Use: | |
75 | rpm -ba --with license_agreement <specfile> | |
76 | to rebuild the package if you accept the above license. | |
77 | ||
78 | EOF | |
79 | exit 1 | |
80 | %endif | |
5e6fde32 | 81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | install -d $RPM_BUILD_ROOT%{ttffontsdir} | |
85 | install *.ttf *.TTF $RPM_BUILD_ROOT%{ttffontsdir} | |
1ed1a3e7 | 86 | |
5e6fde32 | 87 | cd $RPM_BUILD_ROOT%{ttffontsdir} |
5b104401 | 88 | /usr/bin/ttmkfdir |tail +2 >fonts.scale.%{name} |
5e6fde32 | 89 | cd - |
10d0d1da | 90 | |
5e6fde32 | 91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post | |
95 | cd %{ttffontsdir} | |
96 | umask 022 | |
97 | rm -f fonts.scale.bak | |
98 | cat fonts.scale.* | sort -u > fonts.scale.tmp | |
1ed1a3e7 | 99 | cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale |
5e6fde32 | 100 | cat fonts.scale.tmp >> fonts.scale |
101 | rm -f fonts.scale.tmp fonts.dir | |
102 | ln -sf fonts.scale fonts.dir | |
103 | if [ -x /usr/X11R6/bin/xftcache ]; then | |
104 | /usr/X11R6/bin/xftcache . | |
105 | fi | |
106 | ||
107 | %postun | |
108 | cd %{ttffontsdir} | |
109 | umask 022 | |
110 | rm -f fonts.scale.bak | |
111 | cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp | |
1ed1a3e7 | 112 | cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale |
5e6fde32 | 113 | cat fonts.scale.tmp >> fonts.scale |
114 | rm -f fonts.scale.tmp fonts.dir | |
115 | ln -sf fonts.scale fonts.dir | |
116 | if [ -x /usr/X11R6/bin/xftcache ]; then | |
117 | /usr/X11R6/bin/xftcache . | |
118 | fi | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
724d5c23 | 122 | %doc Licen.TXT |
5e6fde32 | 123 | %{ttffontsdir}/* |