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
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 thaifonts-scalable is a collection of Thai scalable fonts available in
34 free licenses. Its goal is to provide fonts that conform to existing
35 standards and recommendations, so that it can be a reference
38 %description -l pl.UTF-8
39 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
40 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
41 istniejącymi standardami i rekomendacjami, aby był implementacją
44 %package -n fonts-OTF-thai
45 Summary: Collection of OpenType Thai scalable fonts
46 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie OpenType
48 Requires(post,postun): fontpostinst
50 %description -n fonts-OTF-thai
51 thaifonts-scalable is a collection of Thai scalable fonts available in
52 free licenses. Its goal is to provide fonts that conform to existing
53 standards and recommendations, so that it can be a reference
56 This package contains fonts in OpenType format.
58 %description -n fonts-OTF-thai -l pl.UTF-8
59 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
60 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
61 istniejącymi standardami i rekomendacjami, aby był implementacją
64 Ten pakiet zawiera fonty w formacie OpenType.
66 %package -n fonts-TTF-thai
67 Summary: Collection of TrueType Thai scalable fonts
68 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie TrueType
70 Requires(post,postun): fontpostinst
72 %description -n fonts-TTF-thai
73 thaifonts-scalable is a collection of Thai scalable fonts available in
74 free licenses. Its goal is to provide fonts that conform to existing
75 standards and recommendations, so that it can be a reference
78 This package contains fonts in TrueType format.
80 %description -n fonts-TTF-thai -l pl.UTF-8
81 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
82 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
83 istniejącymi standardami i rekomendacjami, aby był implementacją
86 Ten pakiet zawiera fonty w formacie TrueType.
88 %package -n fonts-Type1-thai
89 Summary: Collection of Type1 Thai scalable fonts
90 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie Type1
92 Requires(post,postun): fontpostinst
94 %description -n fonts-Type1-thai
95 thaifonts-scalable is a collection of Thai scalable fonts available in
96 free licenses. Its goal is to provide fonts that conform to existing
97 standards and recommendations, so that it can be a reference
100 This package contains fonts in Type1 format.
102 %description -n fonts-Type1-thai -l pl.UTF-8
103 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
104 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
105 istniejącymi standardami i rekomendacjami, aby był implementacją
108 Ten pakiet zawiera fonty w formacie Type1.
110 %package -n thailatex-fonts
111 Summary: Collection of Thai scalable fonts for LaTeX
112 Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich dla LaTeXa
114 Requires(post,postun): texlive
116 Requires: thailatex >= 0.4.7
118 %description -n thailatex-fonts
119 thaifonts-scalable is a collection of Thai scalable fonts available in
120 free licenses. Its goal is to provide fonts that conform to existing
121 standards and recommendations, so that it can be a reference
124 This package contains LaTeX fonts for use with thailatex.
126 %description -n thailatex-fonts -l pl.UTF-8
127 thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
128 wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
129 istniejącymi standardami i rekomendacjami, aby był implementacją
132 Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex.
135 %setup -q -n fonts-tlwg-%{version}
142 %{?with_latex:--enable-latex} \
146 --with-otfdir=%{_fontsdir}/OTF \
147 --with-ttfdir=%{_fontsdir}/TTF \
148 --with-type1dir=%{_fontsdir}/Type1
149 %{__make} %{?with_latex:-j1}
152 rm -rf $RPM_BUILD_ROOT
155 DESTDIR=$RPM_BUILD_ROOT
157 install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
158 %{__mv} $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
159 mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1
162 rm -rf $RPM_BUILD_ROOT
164 %post -n fonts-OTF-thai
167 %postun -n fonts-OTF-thai
170 %post -n fonts-TTF-thai
173 %postun -n fonts-TTF-thai
176 %post -n fonts-Type1-thai
179 %postun -n fonts-Type1-thai
182 %post -n thailatex-fonts
185 %postun -n thailatex-fonts
188 %files -n fonts-OTF-thai
189 %defattr(644,root,root,755)
190 %doc AUTHORS COPYING ChangeLog NEWS README
191 %{_fontsdir}/OTF/Garuda*.otf
192 %{_fontsdir}/OTF/Kinnari*.otf
193 %{_fontsdir}/OTF/Laksaman*.otf
194 %{_fontsdir}/OTF/Loma*.otf
195 %{_fontsdir}/OTF/Norasi*.otf
196 %{_fontsdir}/OTF/Purisa*.otf
197 %{_fontsdir}/OTF/Sawasdee*.otf
198 %{_fontsdir}/OTF/Tlwg*.otf
199 %{_fontsdir}/OTF/Umpush*.otf
200 %{_fontsdir}/OTF/Waree*.otf
202 %files -n fonts-TTF-thai
203 %defattr(644,root,root,755)
204 %doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README
205 %{_fontsdir}/TTF/Garuda*.ttf
206 %{_fontsdir}/TTF/Kinnari*.ttf
207 %{_fontsdir}/TTF/Laksaman*.ttf
208 %{_fontsdir}/TTF/Loma*.ttf
209 %{_fontsdir}/TTF/Norasi*.ttf
210 %{_fontsdir}/TTF/Purisa*.ttf
211 %{_fontsdir}/TTF/Sawasdee*.ttf
212 %{_fontsdir}/TTF/Tlwg*.ttf
213 %{_fontsdir}/TTF/Umpush*.ttf
214 %{_fontsdir}/TTF/Waree*.ttf
215 %{_datadir}/fontconfig/conf.avail/64-??-tlwg-*.conf
216 %{_datadir}/fontconfig/conf.avail/64-15-laksaman.conf
217 %{_datadir}/fontconfig/conf.avail/89-tlwg-*-synthetic.conf
219 %files -n fonts-Type1-thai
220 %defattr(644,root,root,755)
221 %doc AUTHORS COPYING ChangeLog NEWS README
222 %{_fontsdir}/Type1/Garuda*.pfb
223 %{_fontsdir}/Type1/Kinnari*.pfb
224 %{_fontsdir}/Type1/Laksaman*.pfb
225 %{_fontsdir}/Type1/Loma*.pfb
226 %{_fontsdir}/Type1/Norasi*.pfb
227 %{_fontsdir}/Type1/Purisa*.pfb
228 %{_fontsdir}/Type1/Sawasdee*.pfb
229 %{_fontsdir}/Type1/Tlwg*.pfb
230 %{_fontsdir}/Type1/Umpush*.pfb
231 %{_fontsdir}/Type1/Waree*.pfb
232 %{_fontsdir}/Type1/fonts.scale.thai-scalable
233 %{_fontsdir}/Type1/afm/Garuda*.afm
234 %{_fontsdir}/Type1/afm/Kinnari*.afm
235 %{_fontsdir}/Type1/afm/Laksaman*.afm
236 %{_fontsdir}/Type1/afm/Loma*.afm
237 %{_fontsdir}/Type1/afm/Norasi*.afm
238 %{_fontsdir}/Type1/afm/Purisa*.afm
239 %{_fontsdir}/Type1/afm/Sawasdee*.afm
240 %{_fontsdir}/Type1/afm/Tlwg*.afm
241 %{_fontsdir}/Type1/afm/Umpush*.afm
242 %{_fontsdir}/Type1/afm/Waree*.afm
244 %files -n thailatex-fonts
245 %defattr(644,root,root,755)
246 %doc AUTHORS COPYING ChangeLog NEWS README
247 %{_datadir}/texmf/fonts/afm/public/fonts-tlwg
248 %{_datadir}/texmf/fonts/enc/dvips/fonts-tlwg
249 %{_datadir}/texmf/fonts/map/dvips/fonts-tlwg
250 %{_datadir}/texmf/fonts/opentype/public/fonts-tlwg
251 %{_datadir}/texmf/fonts/tfm/public/fonts-tlwg
252 %{_datadir}/texmf/fonts/type1/public/fonts-tlwg
253 %{_datadir}/texmf/fonts/vf/public/fonts-tlwg
254 %{_datadir}/texmf/tex/latex/fonts-tlwg