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
16 BuildRequires: xorg-app-mkfontscale
18 BuildRequires: texlive
19 BuildRequires: thailatex >= 0.4.6
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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ą
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
39 Requires(post,postun): fontpostinst
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
47 This package contains fonts in OpenType format.
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ą
55 Ten pakiet zawiera fonty w formacie OpenType.
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
61 Requires(post,postun): fontpostinst
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
69 This package contains fonts in TrueType format.
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ą
77 Ten pakiet zawiera fonty w formacie TrueType.
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
83 Requires(post,postun): fontpostinst
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
91 This package contains fonts in Type1 format.
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ą
99 Ten pakiet zawiera fonty w formacie Type1.
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
105 Requires(post,postun): texlive
107 Requires: thailatex >= 0.4.6
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
115 This package contains LaTeX fonts for use with thailatex.
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ą
123 Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex.
126 %setup -q -n thaifonts-scalable-%{version}
130 %{?with_latex:--enable-latex} \
133 --with-otfdir=%{_fontsdir}/OTF \
134 --with-ttfdir=%{_fontsdir}/TTF \
135 --with-type1dir=%{_fontsdir}/Type1
136 %{__make} %{?with_latex:-j1}
139 rm -rf $RPM_BUILD_ROOT
142 DESTDIR=$RPM_BUILD_ROOT
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
149 rm -rf $RPM_BUILD_ROOT
151 %post -n fonts-OTF-thai
154 %postun -n fonts-OTF-thai
157 %post -n fonts-TTF-thai
160 %postun -n fonts-TTF-thai
163 %post -n fonts-Type1-thai
166 %postun -n fonts-Type1-thai
169 %post -n thailatex-fonts
173 %postun -n thailatex-fonts
177 %files -n fonts-OTF-thai
178 %defattr(644,root,root,755)
179 %doc AUTHORS COPYING ChangeLog NEWS README TODO
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
190 %files -n fonts-TTF-thai
191 %defattr(644,root,root,755)
192 %doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README TODO
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
205 %files -n fonts-Type1-thai
206 %defattr(644,root,root,755)
207 %doc AUTHORS COPYING ChangeLog NEWS README TODO
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
228 %files -n thailatex-fonts
229 %defattr(644,root,root,755)
230 %doc AUTHORS COPYING ChangeLog NEWS README TODO
231 %{_datadir}/texmf/fonts/afm/public/tlwg
232 %{_datadir}/texmf/fonts/map/dvips/tlwg
233 # dirs should belogin to texlive?
234 %dir %{_datadir}/texmf/fonts/tfm
235 %dir %{_datadir}/texmf/fonts/tfm/public
236 %{_datadir}/texmf/fonts/tfm/public/tlwg
237 %dir %{_datadir}/texmf/fonts/type1
238 %dir %{_datadir}/texmf/fonts/type1/public
239 %{_datadir}/texmf/fonts/type1/public/tlwg
240 %dir %{_datadir}/texmf/fonts/vf
241 %dir %{_datadir}/texmf/fonts/vf/public
242 %{_datadir}/texmf/fonts/vf/public/tlwg
243 %{_datadir}/texmf/tex/latex/fonts-tlwg