]> git.pld-linux.org Git - packages/fonts-TTF-microsoft.git/blob - fonts-TTF-microsoft.spec
- massive attack: source-md5
[packages/fonts-TTF-microsoft.git] / fonts-TTF-microsoft.spec
1 #
2 # Conditional build:
3 # _with_license_agreement       - generates package
4 #
5 Summary:        Microsoft TTF fonts
6 Summary(pl):    Czcionki TTF firmy Microsoft
7 Name:           fonts-TTF-microsoft
8 Version:        20020525
9 Release:        3
10 License:        Microsoft EULA (for non-commercial use)
11 Group:          X11/Fonts
12 URL:            http://www.microsoft.com/truetype/fontpack/
13 Source0:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/andale32.exe
14 # Source0-md5:  cbdc2fdd7d2ed0832795e86a8b9ee19a
15 Source1:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/arial32.exe
16 # Source1-md5:  9637df0e91703179f0723ec095a36cb5
17 Source2:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/arialb32.exe
18 # Source2-md5:  c9089ae0c3b3d0d8c4b0a95979bb9ff0
19 Source3:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/comic32.exe
20 # Source3-md5:  2b30de40bb5e803a0452c7715fc835d1
21 Source4:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/courie32.exe
22 # Source4-md5:  4e412c772294403ab62fb2d247d85c60
23 Source5:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/georgi32.exe
24 # Source5-md5:  4d90016026e2da447593b41a8d8fa8bd
25 Source6:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/impact32.exe
26 # Source6-md5:  7907c7dd6684e9bade91cff82683d9d7
27 Source7:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/times32.exe
28 # Source7-md5:  ed39c8ef91b9fb80f76f702568291bd5
29 Source8:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/trebuc32.exe
30 # Source8-md5:  0d7ea16cac6261f8513a061fbfcdb2b5
31 Source9:        ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/verdan32.exe
32 # Source9-md5:  12d2a75f8156e10607be1eaa8e8ef120
33 Source10:       ftp://cvsup.pl.freebsd.org/pub/FreeBSD/ports/distfiles/webfonts/webdin32.exe
34 # Source10-md5: 230a1d13a365b22815f502eb24d9149b
35 %if %{!?_with_license_agreement:1}%{?_with_license_agreement:0}
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
47 %endif
48 BuildRequires:  cabextract
49 BuildRequires:  ttmkfdir
50 Requires(post,postun):  fileutils
51 Requires(post,postun):  textutils
52 Buildarch:      noarch
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %define         ttffontsdir     %{_fontsdir}/TTF
56
57 %description
58 Microsoft free TTF fonts collection.
59
60 %description -l pl
61 Kolekcja darmowych czcionek TTF firmy Microsoft.
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
69 %if %{!?_with_license_agreement:1}%{?_with_license_agreement:0}
70 cat Licen.TXT
71
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
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT%{ttffontsdir}
85 install *.ttf *.TTF $RPM_BUILD_ROOT%{ttffontsdir}
86
87 cd $RPM_BUILD_ROOT%{ttffontsdir}
88 /usr/bin/ttmkfdir |tail +2 >fonts.scale.%{name}
89 cd -
90
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
99 cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
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
112 cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
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)
122 %doc Licen.TXT
123 %{ttffontsdir}/*
This page took 0.134526 seconds and 4 git commands to generate.