]> git.pld-linux.org Git - packages/fonts-TTF-microsoft.git/blob - fonts-TTF-microsoft.spec
- working URL
[packages/fonts-TTF-microsoft.git] / fonts-TTF-microsoft.spec
1 #
2 # Conditional build:
3 %bcond_with     license_agreement       # generates package
4 #
5 Summary:        Microsoft True Type fonts
6 Summary(pl):    Fonty True Type firmy Microsoft
7 Name:           fonts-TTF-microsoft
8 Version:        20020525
9 Release:        4
10 License:        Microsoft EULA (for non-commercial use)
11 Group:          Fonts
12 Source0:        http://dl.sourceforge.net/corefonts/andale32.exe
13 # NoSource0-md5:        cbdc2fdd7d2ed0832795e86a8b9ee19a
14 Source1:        http://dl.sourceforge.net/corefonts/arial32.exe
15 # NoSource1-md5:        9637df0e91703179f0723ec095a36cb5
16 Source2:        http://dl.sourceforge.net/corefonts/arialb32.exe
17 # NoSource2-md5:        c9089ae0c3b3d0d8c4b0a95979bb9ff0
18 Source3:        http://dl.sourceforge.net/corefonts/comic32.exe
19 # NoSource3-md5:        2b30de40bb5e803a0452c7715fc835d1
20 Source4:        http://dl.sourceforge.net/corefonts/courie32.exe
21 # NoSource4-md5:        4e412c772294403ab62fb2d247d85c60
22 Source5:        http://dl.sourceforge.net/corefonts/georgi32.exe
23 # NoSource5-md5:        4d90016026e2da447593b41a8d8fa8bd
24 Source6:        http://dl.sourceforge.net/corefonts/impact32.exe
25 # NoSource6-md5:        7907c7dd6684e9bade91cff82683d9d7
26 Source7:        http://dl.sourceforge.net/corefonts/times32.exe
27 # NoSource7-md5:        ed39c8ef91b9fb80f76f702568291bd5
28 Source8:        http://dl.sourceforge.net/corefonts/trebuc32.exe
29 # NoSource8-md5:        0d7ea16cac6261f8513a061fbfcdb2b5
30 Source9:        http://dl.sourceforge.net/corefonts/verdan32.exe
31 # NoSource9-md5:        12d2a75f8156e10607be1eaa8e8ef120
32 Source10:       http://dl.sourceforge.net/corefonts/webdin32.exe
33 # NoSource10-md5:       230a1d13a365b22815f502eb24d9149b
34 %if ! %{with license_agreement}
35 NoSource:       0
36 NoSource:       1
37 NoSource:       2
38 NoSource:       3
39 NoSource:       4
40 NoSource:       5
41 NoSource:       6
42 NoSource:       7
43 NoSource:       8
44 NoSource:       9
45 NoSource:       10
46 %endif
47 URL:            http://corefonts.sourceforge.net/
48 BuildRequires:  cabextract
49 Requires(post,postun):  fontpostinst
50 Requires:       %{_fontsdir}/TTF
51 BuildArch:      noarch
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %define         ttffontsdir     %{_fontsdir}/TTF
55
56 %description
57 Microsoft free True Type fonts collection.
58
59 %description -l pl
60 Kolekcja darmowych fontów True Type firmy Microsoft.
61
62 %prep
63 %setup -q -c -T
64 /usr/bin/cabextract -L %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
65 %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \
66 %{SOURCE10}
67
68 %if ! %{with license_agreement}
69 cat licen.txt
70
71 cat <<EOF
72
73 Use:
74   rpmbuild -ba --with license_agreement <specfile>
75 to rebuild the package if you accept the above license.
76
77 EOF
78 exit 1
79 %endif
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{ttffontsdir}
84 install *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post
90 fontpostinst TTF
91
92 %postun
93 fontpostinst TTF
94
95 %files
96 %defattr(644,root,root,755)
97 %doc licen.txt
98 %{ttffontsdir}/*
This page took 0.066501 seconds and 3 git commands to generate.