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/fonts-tlwg-%{version}.tar.gz
13 # Source0-md5: e407df4a9652aa1555e3dd5894d6ddd8
14 Patch0: fontconfig-2.10.patch
15 URL: http://linux.thai.net/projects/thaifonts-scalable
16 BuildRequires: fontforge >= 20080110
17 BuildRequires: xorg-app-mkfontscale
19 BuildRequires: texlive
20 BuildRequires: thailatex >= 0.4.6
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 thaifonts-scalable is a collection of Thai scalable fonts available in
26 free licenses. Its goal is to provide fonts that conform to existing
27 standards and recommendations, so that it can be a reference
30 %description -l pl.UTF-8
31 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
32 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
33 istniejącymi standardami i rekomendacjami, aby był implementacją
36 %package -n fonts-OTF-thai
37 Summary: Collection of OpenType Thai scalable fonts
38 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie OpenType
40 Requires(post,postun): fontpostinst
42 %description -n fonts-OTF-thai
43 thaifonts-scalable is a collection of Thai scalable fonts available in
44 free licenses. Its goal is to provide fonts that conform to existing
45 standards and recommendations, so that it can be a reference
48 This package contains fonts in OpenType format.
50 %description -n fonts-OTF-thai -l pl.UTF-8
51 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
52 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
53 istniejącymi standardami i rekomendacjami, aby był implementacją
56 Ten pakiet zawiera fonty w formacie OpenType.
58 %package -n fonts-TTF-thai
59 Summary: Collection of TrueType Thai scalable fonts
60 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie TrueType
62 Requires(post,postun): fontpostinst
64 %description -n fonts-TTF-thai
65 thaifonts-scalable is a collection of Thai scalable fonts available in
66 free licenses. Its goal is to provide fonts that conform to existing
67 standards and recommendations, so that it can be a reference
70 This package contains fonts in TrueType format.
72 %description -n fonts-TTF-thai -l pl.UTF-8
73 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
74 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
75 istniejącymi standardami i rekomendacjami, aby był implementacją
78 Ten pakiet zawiera fonty w formacie TrueType.
80 %package -n fonts-Type1-thai
81 Summary: Collection of Type1 Thai scalable fonts
82 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie Type1
84 Requires(post,postun): fontpostinst
86 %description -n fonts-Type1-thai
87 thaifonts-scalable is a collection of Thai scalable fonts available in
88 free licenses. Its goal is to provide fonts that conform to existing
89 standards and recommendations, so that it can be a reference
92 This package contains fonts in Type1 format.
94 %description -n fonts-Type1-thai -l pl.UTF-8
95 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
96 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
97 istniejącymi standardami i rekomendacjami, aby był implementacją
100 Ten pakiet zawiera fonty w formacie Type1.
102 %package -n thailatex-fonts
103 Summary: Collection of Thai scalable fonts for LaTeX
104 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich dla LaTeXa
106 Requires(post,postun): texlive
108 Requires: thailatex >= 0.4.7
110 %description -n thailatex-fonts
111 thaifonts-scalable is a collection of Thai scalable fonts available in
112 free licenses. Its goal is to provide fonts that conform to existing
113 standards and recommendations, so that it can be a reference
116 This package contains LaTeX fonts for use with thailatex.
118 %description -n thailatex-fonts -l pl.UTF-8
119 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
120 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
121 istniejącymi standardami i rekomendacjami, aby był implementacją
124 Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex.
127 %setup -q -n fonts-tlwg-%{version}
135 %{?with_latex:--enable-latex} \
138 --with-otfdir=%{_fontsdir}/OTF \
139 --with-ttfdir=%{_fontsdir}/TTF \
140 --with-type1dir=%{_fontsdir}/Type1
141 %{__make} %{?with_latex:-j1}
144 rm -rf $RPM_BUILD_ROOT
147 DESTDIR=$RPM_BUILD_ROOT
149 install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
150 mv $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
151 mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1
154 rm -rf $RPM_BUILD_ROOT
156 %post -n fonts-OTF-thai
159 %postun -n fonts-OTF-thai
162 %post -n fonts-TTF-thai
165 %postun -n fonts-TTF-thai
168 %post -n fonts-Type1-thai
171 %postun -n fonts-Type1-thai
174 %post -n thailatex-fonts
178 %postun -n thailatex-fonts
182 %files -n fonts-OTF-thai
183 %defattr(644,root,root,755)
184 %doc AUTHORS COPYING ChangeLog NEWS README TODO
185 %{_fontsdir}/OTF/Garuda*.otf
186 %{_fontsdir}/OTF/Kinnari*.otf
187 %{_fontsdir}/OTF/Loma*.otf
188 %{_fontsdir}/OTF/Norasi*.otf
189 %{_fontsdir}/OTF/Purisa*.otf
190 %{_fontsdir}/OTF/Sawasdee*.otf
191 %{_fontsdir}/OTF/Tlwg*.otf
192 %{_fontsdir}/OTF/Umpush*.otf
193 %{_fontsdir}/OTF/Waree*.otf
195 %files -n fonts-TTF-thai
196 %defattr(644,root,root,755)
197 %doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README TODO
198 %{_fontsdir}/TTF/Garuda*.ttf
199 %{_fontsdir}/TTF/Kinnari*.ttf
200 %{_fontsdir}/TTF/Loma*.ttf
201 %{_fontsdir}/TTF/Norasi*.ttf
202 %{_fontsdir}/TTF/Purisa*.ttf
203 %{_fontsdir}/TTF/Sawasdee*.ttf
204 %{_fontsdir}/TTF/Tlwg*.ttf
205 %{_fontsdir}/TTF/Umpush*.ttf
206 %{_fontsdir}/TTF/Waree*.ttf
207 %{_datadir}/fontconfig/conf.avail/64-ttf-thai-tlwg.conf
208 %{_datadir}/fontconfig/conf.avail/89-ttf-thai-tlwg-synthetic.conf
210 %files -n fonts-Type1-thai
211 %defattr(644,root,root,755)
212 %doc AUTHORS COPYING ChangeLog NEWS README TODO
213 %{_fontsdir}/Type1/Garuda*.pfb
214 %{_fontsdir}/Type1/Kinnari*.pfb
215 %{_fontsdir}/Type1/Loma*.pfb
216 %{_fontsdir}/Type1/Norasi*.pfb
217 %{_fontsdir}/Type1/Purisa*.pfb
218 %{_fontsdir}/Type1/Sawasdee*.pfb
219 %{_fontsdir}/Type1/Tlwg*.pfb
220 %{_fontsdir}/Type1/Umpush*.pfb
221 %{_fontsdir}/Type1/Waree*.pfb
222 %{_fontsdir}/Type1/fonts.scale.thai-scalable
223 %{_fontsdir}/Type1/afm/Garuda*.afm
224 %{_fontsdir}/Type1/afm/Kinnari*.afm
225 %{_fontsdir}/Type1/afm/Loma*.afm
226 %{_fontsdir}/Type1/afm/Norasi*.afm
227 %{_fontsdir}/Type1/afm/Purisa*.afm
228 %{_fontsdir}/Type1/afm/Sawasdee*.afm
229 %{_fontsdir}/Type1/afm/Tlwg*.afm
230 %{_fontsdir}/Type1/afm/Umpush*.afm
231 %{_fontsdir}/Type1/afm/Waree*.afm
233 %files -n thailatex-fonts
234 %defattr(644,root,root,755)
235 %doc AUTHORS COPYING ChangeLog NEWS README TODO
236 %{_datadir}/texmf/fonts/afm/public/fonts-tlwg
237 %{_datadir}/texmf/fonts/enc/dvips/fonts-tlwg
238 %{_datadir}/texmf/fonts/map/dvips/fonts-tlwg
239 %{_datadir}/texmf/fonts/tfm/public/fonts-tlwg
240 %{_datadir}/texmf/fonts/type1/public/fonts-tlwg
241 %{_datadir}/texmf/fonts/vf/public/fonts-tlwg
242 %{_datadir}/texmf/tex/latex/fonts-tlwg