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