1 | %define _fontdir %{_datadir}/fonts/TrueType-cwtex |
---|
2 | |
---|
3 | %define _name TrueType-cwTeX |
---|
4 | %define archivename cwttf |
---|
5 | %define _version v1.0 |
---|
6 | |
---|
7 | %define fontdir_base %{_fontdir}/baseline/ |
---|
8 | %define fontdir_center %{_fontdir}/center/ |
---|
9 | |
---|
10 | Name: TrueType-cwtex |
---|
11 | Version: 1.0 |
---|
12 | Release: 2%{?_dist_release} |
---|
13 | Summary: cwTeX TrueType Fonts |
---|
14 | Summary(ja): cwTeX TrueType フォント |
---|
15 | Group: User Interface/X |
---|
16 | License: GPLv2+ |
---|
17 | URL: http://cle.linux.org.tw/fonts/cwttf/ |
---|
18 | Source: %{archivename}-%{_version}.tar.gz |
---|
19 | |
---|
20 | BuildArch: noarch |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{_version}-root |
---|
22 | |
---|
23 | Requires: TrueType-cwtex-baseline = %{version} |
---|
24 | Requires: TrueType-cwtex-baseline-doc = %{version} |
---|
25 | Requires: TrueType-cwtex-center = %{version} |
---|
26 | Requires: TrueType-cwtex-center-doc = %{version} |
---|
27 | |
---|
28 | %description |
---|
29 | cwTeX TrueType fonts are transformed fonts |
---|
30 | from cwTeX Traditional Chinese Type 1 fonts. |
---|
31 | |
---|
32 | %description -l ja |
---|
33 | cwTeX TrueType フォントは cwTeX 繁体字中国語の |
---|
34 | Type1 フォントから変換したフォントです。 |
---|
35 | このパッケージは baseline, center 両パッケージを |
---|
36 | インストールするためのメタパッケージです。 |
---|
37 | |
---|
38 | #for baseline section start |
---|
39 | %package baseline |
---|
40 | Summary: cwTeX TrueType Fonts (baseline) |
---|
41 | Summary(ja): cwTeX TrueType フォント (baseline) |
---|
42 | Group: User Interface/X |
---|
43 | BuildArch: noarch |
---|
44 | Requires: TrueType-cwtex-baseline-doc |
---|
45 | |
---|
46 | %description baseline |
---|
47 | cwTeX TrueType Fonts are transformed from |
---|
48 | cwTeX Traditional Chinese Type 1 fonts. |
---|
49 | This package contains baseline fonts. |
---|
50 | |
---|
51 | %description -l ja baseline |
---|
52 | cwTeX TrueType フォントは cwTeX 繁体字中国語の |
---|
53 | Type1 フォントから変換したフォントです。 |
---|
54 | このパッケージは baseline フォントを含んでいます。 |
---|
55 | |
---|
56 | #for center section start |
---|
57 | %package center |
---|
58 | Summary: cwTeX TrueType Font (center) |
---|
59 | Summary(ja): cwTeX TrueType フォント (center) |
---|
60 | Group: User Interface/X |
---|
61 | BuildArch: noarch |
---|
62 | Requires: TrueType-cwtex-center-doc |
---|
63 | |
---|
64 | %description center |
---|
65 | cwTeX TrueType Fonts are transformed from |
---|
66 | cwTeX Traditional Chinese Type 1 fonts. |
---|
67 | This package contains center fonts. |
---|
68 | |
---|
69 | %description -l ja center |
---|
70 | cwTeX TrueType フォントは cwTeX 繁体字中国語の |
---|
71 | Type1 フォントから変換したフォントです。 |
---|
72 | このパッケージは center フォントを含んでいます。 |
---|
73 | |
---|
74 | %package baseline-doc |
---|
75 | Summary: cwTeX TrueType Font Documents (baseline) |
---|
76 | Summary(ja): cwTeX フォントドキュメント (baseline) |
---|
77 | Group: User Interface/X |
---|
78 | |
---|
79 | %description baseline-doc |
---|
80 | This package includes important documents |
---|
81 | for cwTeX baseline fonts includes enduser license. |
---|
82 | |
---|
83 | %package center-doc |
---|
84 | Summary: cwTeX TrueType Font Documents (center) |
---|
85 | Summary(ja): cwTeX フォントドキュメント (center) |
---|
86 | Group: User Interface/X |
---|
87 | |
---|
88 | %description center-doc |
---|
89 | This package includes important documents |
---|
90 | for cwTeX center fonts includes enduser license. |
---|
91 | |
---|
92 | %prep |
---|
93 | %setup -q -n %{archivename} |
---|
94 | |
---|
95 | %build |
---|
96 | |
---|
97 | %install |
---|
98 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
99 | |
---|
100 | #fonts |
---|
101 | mkdir -p $RPM_BUILD_ROOT%{fontdir_base} |
---|
102 | mkdir -p $RPM_BUILD_ROOT%{fontdir_center} |
---|
103 | install -m 0644 ./baseline/*.ttf $RPM_BUILD_ROOT%{fontdir_base} |
---|
104 | install -m 0644 ./center/*.ttf $RPM_BUILD_ROOT%{fontdir_center} |
---|
105 | |
---|
106 | %clean |
---|
107 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
---|
108 | rm -rf ${RPM_BUILD_ROOT} |
---|
109 | fi |
---|
110 | |
---|
111 | %post baseline |
---|
112 | %__font_install_post %{fontdir_base} |
---|
113 | |
---|
114 | %post center |
---|
115 | %__font_install_post %{fontdir_center} |
---|
116 | |
---|
117 | %postun baseline |
---|
118 | %__font_install_postun %{fontdir_base} |
---|
119 | |
---|
120 | %postun center |
---|
121 | %__font_install_postun %{fontdir_center} |
---|
122 | |
---|
123 | %files |
---|
124 | |
---|
125 | %files baseline-doc |
---|
126 | %doc ./baseline/*.pdf *.html |
---|
127 | %doc AUTHORS COPYING Readme*.* *.txt |
---|
128 | |
---|
129 | %files center-doc |
---|
130 | %doc ./center/*.pdf *.html |
---|
131 | %doc AUTHORS COPYING Readme*.* *.txt |
---|
132 | |
---|
133 | %files baseline |
---|
134 | %{fontdir_base}/*.ttf |
---|
135 | |
---|
136 | %files center |
---|
137 | %{fontdir_center}/*.ttf |
---|
138 | |
---|
139 | %changelog |
---|
140 | |
---|
141 | * Mon Sep 21 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0-2 |
---|
142 | - rebuild to fix broken dependency (vine-users:079665) |
---|
143 | |
---|
144 | * Fri Jun 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.0-1 |
---|
145 | - initial build for VineSeed |
---|