]>
Commit | Line | Data |
---|---|---|
0ae66879 JB |
1 | # |
2 | # Conditional build: | |
09409f71 | 3 | %bcond_without latex # LaTeX fonts |
0ae66879 JB |
4 | # |
5 | Summary: Collection of Thai scalable fonts | |
6 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich | |
7 | Name: fonts-thai-scalable | |
29d6eeaf | 8 | Version: 0.5.0 |
0ae66879 JB |
9 | Release: 1 |
10 | License: MIT (Waree font), GPL v2+ (the rest) | |
11 | Group: Fonts | |
29d6eeaf JB |
12 | Source0: http://linux.thai.net/pub/thailinux/software/thaifonts-scalable/fonts-tlwg-%{version}.tar.gz |
13 | # Source0-md5: e407df4a9652aa1555e3dd5894d6ddd8 | |
0ae66879 JB |
14 | URL: http://linux.thai.net/projects/thaifonts-scalable |
15 | BuildRequires: fontforge >= 20080110 | |
f3d94541 | 16 | BuildRequires: xorg-app-mkfontscale |
09409f71 JB |
17 | %if %{with latex} |
18 | BuildRequires: texlive | |
19 | BuildRequires: thailatex >= 0.4.6 | |
20 | %endif | |
0ae66879 JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
25 | free licenses. Its goal is to provide fonts that conform to existing | |
26 | standards and recommendations, so that it can be a reference | |
27 | implementation. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
31 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
32 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
33 | wzorcową. | |
34 | ||
35 | %package -n fonts-OTF-thai | |
36 | Summary: Collection of OpenType Thai scalable fonts | |
37 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie OpenType | |
38 | Group: Fonts | |
39 | Requires(post,postun): fontpostinst | |
40 | ||
41 | %description -n fonts-OTF-thai | |
42 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
43 | free licenses. Its goal is to provide fonts that conform to existing | |
44 | standards and recommendations, so that it can be a reference | |
45 | implementation. | |
46 | ||
47 | This package contains fonts in OpenType format. | |
48 | ||
49 | %description -n fonts-OTF-thai -l pl.UTF-8 | |
50 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
51 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
52 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
53 | wzorcową. | |
54 | ||
55 | Ten pakiet zawiera fonty w formacie OpenType. | |
56 | ||
57 | %package -n fonts-TTF-thai | |
58 | Summary: Collection of TrueType Thai scalable fonts | |
59 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie TrueType | |
60 | Group: Fonts | |
61 | Requires(post,postun): fontpostinst | |
62 | ||
63 | %description -n fonts-TTF-thai | |
64 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
65 | free licenses. Its goal is to provide fonts that conform to existing | |
66 | standards and recommendations, so that it can be a reference | |
67 | implementation. | |
68 | ||
69 | This package contains fonts in TrueType format. | |
70 | ||
71 | %description -n fonts-TTF-thai -l pl.UTF-8 | |
72 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
73 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
74 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
75 | wzorcową. | |
76 | ||
77 | Ten pakiet zawiera fonty w formacie TrueType. | |
78 | ||
79 | %package -n fonts-Type1-thai | |
80 | Summary: Collection of Type1 Thai scalable fonts | |
81 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie Type1 | |
82 | Group: Fonts | |
83 | Requires(post,postun): fontpostinst | |
84 | ||
85 | %description -n fonts-Type1-thai | |
86 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
87 | free licenses. Its goal is to provide fonts that conform to existing | |
88 | standards and recommendations, so that it can be a reference | |
89 | implementation. | |
90 | ||
91 | This package contains fonts in Type1 format. | |
92 | ||
93 | %description -n fonts-Type1-thai -l pl.UTF-8 | |
94 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
95 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
96 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
97 | wzorcową. | |
98 | ||
99 | Ten pakiet zawiera fonty w formacie Type1. | |
100 | ||
09409f71 JB |
101 | %package -n thailatex-fonts |
102 | Summary: Collection of Thai scalable fonts for LaTeX | |
103 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich dla LaTeXa | |
104 | Group: Fonts | |
105 | Requires(post,postun): texlive | |
106 | Requires: texlive | |
29d6eeaf | 107 | Requires: thailatex >= 0.4.7 |
09409f71 JB |
108 | |
109 | %description -n thailatex-fonts | |
110 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
111 | free licenses. Its goal is to provide fonts that conform to existing | |
112 | standards and recommendations, so that it can be a reference | |
113 | implementation. | |
114 | ||
115 | This package contains LaTeX fonts for use with thailatex. | |
116 | ||
117 | %description -n thailatex-fonts -l pl.UTF-8 | |
118 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
119 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
120 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
121 | wzorcową. | |
122 | ||
123 | Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex. | |
124 | ||
0ae66879 | 125 | %prep |
29d6eeaf | 126 | %setup -q -n fonts-tlwg-%{version} |
0ae66879 JB |
127 | |
128 | %build | |
129 | %configure \ | |
130 | %{?with_latex:--enable-latex} \ | |
131 | --enable-pfb \ | |
132 | --enable-otf \ | |
133 | --with-otfdir=%{_fontsdir}/OTF \ | |
134 | --with-ttfdir=%{_fontsdir}/TTF \ | |
135 | --with-type1dir=%{_fontsdir}/Type1 | |
09409f71 | 136 | %{__make} %{?with_latex:-j1} |
0ae66879 JB |
137 | |
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %{__make} install \ | |
142 | DESTDIR=$RPM_BUILD_ROOT | |
143 | ||
144 | install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm | |
145 | mv $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm | |
146 | mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1 | |
147 | ||
148 | %clean | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
09409f71 JB |
151 | %post -n fonts-OTF-thai |
152 | fontpostinst OTF | |
153 | ||
154 | %postun -n fonts-OTF-thai | |
155 | fontpostinst OTF | |
156 | ||
157 | %post -n fonts-TTF-thai | |
158 | fontpostinst TTF | |
159 | ||
160 | %postun -n fonts-TTF-thai | |
161 | fontpostinst TTF | |
162 | ||
163 | %post -n fonts-Type1-thai | |
164 | fontpostinst Type1 | |
165 | ||
166 | %postun -n fonts-Type1-thai | |
167 | fontpostinst Type1 | |
168 | ||
169 | %post -n thailatex-fonts | |
170 | umask 022 | |
171 | %{_bindir}/texhash | |
172 | ||
173 | %postun -n thailatex-fonts | |
174 | umask 022 | |
175 | %{_bindir}/texhash | |
176 | ||
0ae66879 JB |
177 | %files -n fonts-OTF-thai |
178 | %defattr(644,root,root,755) | |
09409f71 | 179 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
0ae66879 JB |
180 | %{_fontsdir}/OTF/Garuda*.otf |
181 | %{_fontsdir}/OTF/Kinnari*.otf | |
182 | %{_fontsdir}/OTF/Loma*.otf | |
183 | %{_fontsdir}/OTF/Norasi*.otf | |
184 | %{_fontsdir}/OTF/Purisa*.otf | |
185 | %{_fontsdir}/OTF/Sawasdee*.otf | |
186 | %{_fontsdir}/OTF/Tlwg*.otf | |
187 | %{_fontsdir}/OTF/Umpush*.otf | |
188 | %{_fontsdir}/OTF/Waree*.otf | |
189 | ||
190 | %files -n fonts-TTF-thai | |
191 | %defattr(644,root,root,755) | |
09409f71 | 192 | %doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README TODO |
0ae66879 JB |
193 | %{_fontsdir}/TTF/Garuda*.ttf |
194 | %{_fontsdir}/TTF/Kinnari*.ttf | |
195 | %{_fontsdir}/TTF/Loma*.ttf | |
196 | %{_fontsdir}/TTF/Norasi*.ttf | |
197 | %{_fontsdir}/TTF/Purisa*.ttf | |
198 | %{_fontsdir}/TTF/Sawasdee*.ttf | |
199 | %{_fontsdir}/TTF/Tlwg*.ttf | |
200 | %{_fontsdir}/TTF/Umpush*.ttf | |
201 | %{_fontsdir}/TTF/Waree*.ttf | |
202 | /etc/fonts/conf.avail/64-ttf-thai-tlwg.conf | |
203 | /etc/fonts/conf.avail/89-ttf-thai-tlwg-synthetic.conf | |
204 | ||
205 | %files -n fonts-Type1-thai | |
206 | %defattr(644,root,root,755) | |
09409f71 | 207 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
0ae66879 JB |
208 | %{_fontsdir}/Type1/Garuda*.pfb |
209 | %{_fontsdir}/Type1/Kinnari*.pfb | |
210 | %{_fontsdir}/Type1/Loma*.pfb | |
211 | %{_fontsdir}/Type1/Norasi*.pfb | |
212 | %{_fontsdir}/Type1/Purisa*.pfb | |
213 | %{_fontsdir}/Type1/Sawasdee*.pfb | |
214 | %{_fontsdir}/Type1/Tlwg*.pfb | |
215 | %{_fontsdir}/Type1/Umpush*.pfb | |
216 | %{_fontsdir}/Type1/Waree*.pfb | |
217 | %{_fontsdir}/Type1/fonts.scale.thai-scalable | |
218 | %{_fontsdir}/Type1/afm/Garuda*.afm | |
219 | %{_fontsdir}/Type1/afm/Kinnari*.afm | |
220 | %{_fontsdir}/Type1/afm/Loma*.afm | |
221 | %{_fontsdir}/Type1/afm/Norasi*.afm | |
222 | %{_fontsdir}/Type1/afm/Purisa*.afm | |
223 | %{_fontsdir}/Type1/afm/Sawasdee*.afm | |
224 | %{_fontsdir}/Type1/afm/Tlwg*.afm | |
225 | %{_fontsdir}/Type1/afm/Umpush*.afm | |
226 | %{_fontsdir}/Type1/afm/Waree*.afm | |
09409f71 JB |
227 | |
228 | %files -n thailatex-fonts | |
229 | %defattr(644,root,root,755) | |
230 | %doc AUTHORS COPYING ChangeLog NEWS README TODO | |
29d6eeaf JB |
231 | %{_datadir}/texmf/fonts/afm/public/fonts-tlwg |
232 | %{_datadir}/texmf/fonts/enc/dvips/fonts-tlwg | |
233 | %{_datadir}/texmf/fonts/map/dvips/fonts-tlwg | |
234 | %{_datadir}/texmf/fonts/tfm/public/fonts-tlwg | |
235 | %{_datadir}/texmf/fonts/type1/public/fonts-tlwg | |
236 | %{_datadir}/texmf/fonts/vf/public/fonts-tlwg | |
09409f71 | 237 | %{_datadir}/texmf/tex/latex/fonts-tlwg |