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: https://linux.thai.net/pub/thailinux/software/thaifonts-scalable/fonts-tlwg-%{version}.tar.xz
13 # Source0-md5: d1de007dd0263acb0e64207b77df7f1c
14 URL: https://linux.thai.net/projects/thaifonts-scalable
15 BuildRequires: autoconf >= 2.59
16 BuildRequires: automake
17 BuildRequires: fontforge >= 20190801
18 BuildRequires: python3 >= 1:3.7
19 BuildRequires: python3-fontforge >= 20190801
20 BuildRequires: rpmbuild(macros) >= 1.751
21 BuildRequires: xorg-app-mkfontscale
23 # afm2tfm, vptovf, updmap-sys, mktexlsr
24 BuildRequires: texlive
25 BuildRequires: thailatex >= 0.4.6
27 BuildRequires: tar >= 1:1.22
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 thaifonts-scalable is a collection of Thai scalable fonts available in
33 free licenses. Its goal is to provide fonts that conform to existing
34 standards and recommendations, so that it can be a reference
37 %description -l pl.UTF-8
38 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
39 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
40 istniejącymi standardami i rekomendacjami, aby był implementacją
43 %package -n fonts-OTF-thai
44 Summary: Collection of OpenType Thai scalable fonts
45 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie OpenType
47 Requires(post,postun): fontpostinst
49 %description -n fonts-OTF-thai
50 thaifonts-scalable is a collection of Thai scalable fonts available in
51 free licenses. Its goal is to provide fonts that conform to existing
52 standards and recommendations, so that it can be a reference
55 This package contains fonts in OpenType format.
57 %description -n fonts-OTF-thai -l pl.UTF-8
58 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
59 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
60 istniejącymi standardami i rekomendacjami, aby był implementacją
63 Ten pakiet zawiera fonty w formacie OpenType.
65 %package -n fonts-TTF-thai
66 Summary: Collection of TrueType Thai scalable fonts
67 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie TrueType
69 Requires(post,postun): fontpostinst
71 %description -n fonts-TTF-thai
72 thaifonts-scalable is a collection of Thai scalable fonts available in
73 free licenses. Its goal is to provide fonts that conform to existing
74 standards and recommendations, so that it can be a reference
77 This package contains fonts in TrueType format.
79 %description -n fonts-TTF-thai -l pl.UTF-8
80 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
81 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
82 istniejącymi standardami i rekomendacjami, aby był implementacją
85 Ten pakiet zawiera fonty w formacie TrueType.
87 %package -n fonts-Type1-thai
88 Summary: Collection of Type1 Thai scalable fonts
89 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie Type1
91 Requires(post,postun): fontpostinst
93 %description -n fonts-Type1-thai
94 thaifonts-scalable is a collection of Thai scalable fonts available in
95 free licenses. Its goal is to provide fonts that conform to existing
96 standards and recommendations, so that it can be a reference
99 This package contains fonts in Type1 format.
101 %description -n fonts-Type1-thai -l pl.UTF-8
102 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
103 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
104 istniejącymi standardami i rekomendacjami, aby był implementacją
107 Ten pakiet zawiera fonty w formacie Type1.
109 %package -n thailatex-fonts
110 Summary: Collection of Thai scalable fonts for LaTeX
111 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich dla LaTeXa
113 Requires(post,postun): texlive
115 Requires: thailatex >= 0.4.7
117 %description -n thailatex-fonts
118 thaifonts-scalable is a collection of Thai scalable fonts available in
119 free licenses. Its goal is to provide fonts that conform to existing
120 standards and recommendations, so that it can be a reference
123 This package contains LaTeX fonts for use with thailatex.
125 %description -n thailatex-fonts -l pl.UTF-8
126 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
127 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
128 istniejącymi standardami i rekomendacjami, aby był implementacją
131 Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex.
134 %setup -q -n fonts-tlwg-%{version}
141 %{?with_latex:--enable-latex} \
145 --with-otfdir=%{_fontsdir}/OTF \
146 --with-ttfdir=%{_fontsdir}/TTF \
147 --with-type1dir=%{_fontsdir}/Type1
148 %{__make} %{?with_latex:-j1}
151 rm -rf $RPM_BUILD_ROOT
154 DESTDIR=$RPM_BUILD_ROOT
156 install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
157 %{__mv} $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
158 mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1
161 rm -rf $RPM_BUILD_ROOT
163 %post -n fonts-OTF-thai
166 %postun -n fonts-OTF-thai
169 %post -n fonts-TTF-thai
172 %postun -n fonts-TTF-thai
175 %post -n fonts-Type1-thai
178 %postun -n fonts-Type1-thai
181 %post -n thailatex-fonts
184 %postun -n thailatex-fonts
187 %files -n fonts-OTF-thai
188 %defattr(644,root,root,755)
189 %doc AUTHORS COPYING ChangeLog NEWS README
190 %{_fontsdir}/OTF/Garuda*.otf
191 %{_fontsdir}/OTF/Kinnari*.otf
192 %{_fontsdir}/OTF/Laksaman*.otf
193 %{_fontsdir}/OTF/Loma*.otf
194 %{_fontsdir}/OTF/Norasi*.otf
195 %{_fontsdir}/OTF/Purisa*.otf
196 %{_fontsdir}/OTF/Sawasdee*.otf
197 %{_fontsdir}/OTF/Tlwg*.otf
198 %{_fontsdir}/OTF/Umpush*.otf
199 %{_fontsdir}/OTF/Waree*.otf
201 %files -n fonts-TTF-thai
202 %defattr(644,root,root,755)
203 %doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README
204 %{_fontsdir}/TTF/Garuda*.ttf
205 %{_fontsdir}/TTF/Kinnari*.ttf
206 %{_fontsdir}/TTF/Laksaman*.ttf
207 %{_fontsdir}/TTF/Loma*.ttf
208 %{_fontsdir}/TTF/Norasi*.ttf
209 %{_fontsdir}/TTF/Purisa*.ttf
210 %{_fontsdir}/TTF/Sawasdee*.ttf
211 %{_fontsdir}/TTF/Tlwg*.ttf
212 %{_fontsdir}/TTF/Umpush*.ttf
213 %{_fontsdir}/TTF/Waree*.ttf
214 %{_datadir}/fontconfig/conf.avail/64-??-tlwg-*.conf
215 %{_datadir}/fontconfig/conf.avail/64-15-laksaman.conf
216 %{_datadir}/fontconfig/conf.avail/89-tlwg-*-synthetic.conf
218 %files -n fonts-Type1-thai
219 %defattr(644,root,root,755)
220 %doc AUTHORS COPYING ChangeLog NEWS README
221 %{_fontsdir}/Type1/Garuda*.pfb
222 %{_fontsdir}/Type1/Kinnari*.pfb
223 %{_fontsdir}/Type1/Laksaman*.pfb
224 %{_fontsdir}/Type1/Loma*.pfb
225 %{_fontsdir}/Type1/Norasi*.pfb
226 %{_fontsdir}/Type1/Purisa*.pfb
227 %{_fontsdir}/Type1/Sawasdee*.pfb
228 %{_fontsdir}/Type1/Tlwg*.pfb
229 %{_fontsdir}/Type1/Umpush*.pfb
230 %{_fontsdir}/Type1/Waree*.pfb
231 %{_fontsdir}/Type1/fonts.scale.thai-scalable
232 %{_fontsdir}/Type1/afm/Garuda*.afm
233 %{_fontsdir}/Type1/afm/Kinnari*.afm
234 %{_fontsdir}/Type1/afm/Laksaman*.afm
235 %{_fontsdir}/Type1/afm/Loma*.afm
236 %{_fontsdir}/Type1/afm/Norasi*.afm
237 %{_fontsdir}/Type1/afm/Purisa*.afm
238 %{_fontsdir}/Type1/afm/Sawasdee*.afm
239 %{_fontsdir}/Type1/afm/Tlwg*.afm
240 %{_fontsdir}/Type1/afm/Umpush*.afm
241 %{_fontsdir}/Type1/afm/Waree*.afm
243 %files -n thailatex-fonts
244 %defattr(644,root,root,755)
245 %doc AUTHORS COPYING ChangeLog NEWS README
246 %{_datadir}/texmf/fonts/afm/public/fonts-tlwg
247 %{_datadir}/texmf/fonts/enc/dvips/fonts-tlwg
248 %{_datadir}/texmf/fonts/map/dvips/fonts-tlwg
249 %{_datadir}/texmf/fonts/opentype/public/fonts-tlwg
250 %{_datadir}/texmf/fonts/tfm/public/fonts-tlwg
251 %{_datadir}/texmf/fonts/type1/public/fonts-tlwg
252 %{_datadir}/texmf/fonts/vf/public/fonts-tlwg
253 %{_datadir}/texmf/tex/latex/fonts-tlwg