3 %bcond_without latex # LaTeX fonts
5 Summary: Collection of Thai scalable fonts
6 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich
7 Name: fonts-thai-scalable
10 License: MIT (Waree font), GPL v2+ (the rest)
12 Source0: http://linux.thai.net/pub/thailinux/software/thaifonts-scalable/thaifonts-scalable-%{version}.tar.gz
13 # Source0-md5: 4cdbb081bf0d180ead5e0f04149ff023
14 URL: http://linux.thai.net/projects/thaifonts-scalable
15 BuildRequires: fontforge >= 20080110
17 BuildRequires: texlive
18 BuildRequires: thailatex >= 0.4.6
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 thaifonts-scalable is a collection of Thai scalable fonts available in
24 free licenses. Its goal is to provide fonts that conform to existing
25 standards and recommendations, so that it can be a reference
28 %description -l pl.UTF-8
29 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
30 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
31 istniejącymi standardami i rekomendacjami, aby był implementacją
34 %package -n fonts-OTF-thai
35 Summary: Collection of OpenType Thai scalable fonts
36 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie OpenType
38 Requires(post,postun): fontpostinst
40 %description -n fonts-OTF-thai
41 thaifonts-scalable is a collection of Thai scalable fonts available in
42 free licenses. Its goal is to provide fonts that conform to existing
43 standards and recommendations, so that it can be a reference
46 This package contains fonts in OpenType format.
48 %description -n fonts-OTF-thai -l pl.UTF-8
49 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
50 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
51 istniejącymi standardami i rekomendacjami, aby był implementacją
54 Ten pakiet zawiera fonty w formacie OpenType.
56 %package -n fonts-TTF-thai
57 Summary: Collection of TrueType Thai scalable fonts
58 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie TrueType
60 Requires(post,postun): fontpostinst
62 %description -n fonts-TTF-thai
63 thaifonts-scalable is a collection of Thai scalable fonts available in
64 free licenses. Its goal is to provide fonts that conform to existing
65 standards and recommendations, so that it can be a reference
68 This package contains fonts in TrueType format.
70 %description -n fonts-TTF-thai -l pl.UTF-8
71 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
72 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
73 istniejącymi standardami i rekomendacjami, aby był implementacją
76 Ten pakiet zawiera fonty w formacie TrueType.
78 %package -n fonts-Type1-thai
79 Summary: Collection of Type1 Thai scalable fonts
80 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie Type1
82 Requires(post,postun): fontpostinst
84 %description -n fonts-Type1-thai
85 thaifonts-scalable is a collection of Thai scalable fonts available in
86 free licenses. Its goal is to provide fonts that conform to existing
87 standards and recommendations, so that it can be a reference
90 This package contains fonts in Type1 format.
92 %description -n fonts-Type1-thai -l pl.UTF-8
93 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
94 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
95 istniejącymi standardami i rekomendacjami, aby był implementacją
98 Ten pakiet zawiera fonty w formacie Type1.
100 %package -n thailatex-fonts
101 Summary: Collection of Thai scalable fonts for LaTeX
102 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich dla LaTeXa
104 Requires(post,postun): texlive
106 Requires: thailatex >= 0.4.6
108 %description -n thailatex-fonts
109 thaifonts-scalable is a collection of Thai scalable fonts available in
110 free licenses. Its goal is to provide fonts that conform to existing
111 standards and recommendations, so that it can be a reference
114 This package contains LaTeX fonts for use with thailatex.
116 %description -n thailatex-fonts -l pl.UTF-8
117 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
118 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
119 istniejącymi standardami i rekomendacjami, aby był implementacją
122 Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex.
125 %setup -q -n thaifonts-scalable-%{version}
129 %{?with_latex:--enable-latex} \
132 --with-otfdir=%{_fontsdir}/OTF \
133 --with-ttfdir=%{_fontsdir}/TTF \
134 --with-type1dir=%{_fontsdir}/Type1
135 %{__make} %{?with_latex:-j1}
138 rm -rf $RPM_BUILD_ROOT
141 DESTDIR=$RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
144 mv $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
145 mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1
148 rm -rf $RPM_BUILD_ROOT
150 %post -n fonts-OTF-thai
153 %postun -n fonts-OTF-thai
156 %post -n fonts-TTF-thai
159 %postun -n fonts-TTF-thai
162 %post -n fonts-Type1-thai
165 %postun -n fonts-Type1-thai
168 %post -n thailatex-fonts
172 %postun -n thailatex-fonts
176 %files -n fonts-OTF-thai
177 %defattr(644,root,root,755)
178 %doc AUTHORS COPYING ChangeLog NEWS README TODO
179 %{_fontsdir}/OTF/Garuda*.otf
180 %{_fontsdir}/OTF/Kinnari*.otf
181 %{_fontsdir}/OTF/Loma*.otf
182 %{_fontsdir}/OTF/Norasi*.otf
183 %{_fontsdir}/OTF/Purisa*.otf
184 %{_fontsdir}/OTF/Sawasdee*.otf
185 %{_fontsdir}/OTF/Tlwg*.otf
186 %{_fontsdir}/OTF/Umpush*.otf
187 %{_fontsdir}/OTF/Waree*.otf
189 %files -n fonts-TTF-thai
190 %defattr(644,root,root,755)
191 %doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README TODO
192 %{_fontsdir}/TTF/Garuda*.ttf
193 %{_fontsdir}/TTF/Kinnari*.ttf
194 %{_fontsdir}/TTF/Loma*.ttf
195 %{_fontsdir}/TTF/Norasi*.ttf
196 %{_fontsdir}/TTF/Purisa*.ttf
197 %{_fontsdir}/TTF/Sawasdee*.ttf
198 %{_fontsdir}/TTF/Tlwg*.ttf
199 %{_fontsdir}/TTF/Umpush*.ttf
200 %{_fontsdir}/TTF/Waree*.ttf
201 /etc/fonts/conf.avail/64-ttf-thai-tlwg.conf
202 /etc/fonts/conf.avail/89-ttf-thai-tlwg-synthetic.conf
204 %files -n fonts-Type1-thai
205 %defattr(644,root,root,755)
206 %doc AUTHORS COPYING ChangeLog NEWS README TODO
207 %{_fontsdir}/Type1/Garuda*.pfb
208 %{_fontsdir}/Type1/Kinnari*.pfb
209 %{_fontsdir}/Type1/Loma*.pfb
210 %{_fontsdir}/Type1/Norasi*.pfb
211 %{_fontsdir}/Type1/Purisa*.pfb
212 %{_fontsdir}/Type1/Sawasdee*.pfb
213 %{_fontsdir}/Type1/Tlwg*.pfb
214 %{_fontsdir}/Type1/Umpush*.pfb
215 %{_fontsdir}/Type1/Waree*.pfb
216 %{_fontsdir}/Type1/fonts.scale.thai-scalable
217 %{_fontsdir}/Type1/afm/Garuda*.afm
218 %{_fontsdir}/Type1/afm/Kinnari*.afm
219 %{_fontsdir}/Type1/afm/Loma*.afm
220 %{_fontsdir}/Type1/afm/Norasi*.afm
221 %{_fontsdir}/Type1/afm/Purisa*.afm
222 %{_fontsdir}/Type1/afm/Sawasdee*.afm
223 %{_fontsdir}/Type1/afm/Tlwg*.afm
224 %{_fontsdir}/Type1/afm/Umpush*.afm
225 %{_fontsdir}/Type1/afm/Waree*.afm
227 %files -n thailatex-fonts
228 %defattr(644,root,root,755)
229 %doc AUTHORS COPYING ChangeLog NEWS README TODO
230 %{_datadir}/texmf/fonts/afm/public/tlwg
231 %{_datadir}/texmf/fonts/map/dvips/tlwg
232 # dirs should belogin to texlive?
233 %dir %{_datadir}/texmf/fonts/tfm
234 %dir %{_datadir}/texmf/fonts/tfm/public
235 %{_datadir}/texmf/fonts/tfm/public/tlwg
236 %dir %{_datadir}/texmf/fonts/type1
237 %dir %{_datadir}/texmf/fonts/type1/public
238 %{_datadir}/texmf/fonts/type1/public/tlwg
239 %dir %{_datadir}/texmf/fonts/vf
240 %dir %{_datadir}/texmf/fonts/vf/public
241 %{_datadir}/texmf/fonts/vf/public/tlwg
242 %{_datadir}/texmf/tex/latex/fonts-tlwg