]> git.pld-linux.org Git - packages/fonts-TTF-microsoft.git/blob - fonts-TTF-microsoft.spec
- switched post/postun to fontpostinst
[packages/fonts-TTF-microsoft.git] / fonts-TTF-microsoft.spec
1 #
2 # Conditional build:
3 # _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:          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 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 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
65 %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \
66 %{SOURCE10}
67
68 %if %{!?_with_license_agreement:1}%{?_with_license_agreement:0}
69 cat Licen.TXT
70
71 cat <<EOF
72
73 Use:
74   rpm -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 *.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.073325 seconds and 4 git commands to generate.