]>
Commit | Line | Data |
---|---|---|
0ae66879 JB |
1 | # |
2 | # Conditional build: | |
09409f71 | 3 | %bcond_without latex # LaTeX fonts |
0ae66879 JB |
4 | # |
5 | Summary: Collection of Thai scalable fonts | |
6 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich | |
7 | Name: fonts-thai-scalable | |
af82864a | 8 | Version: 0.7.3 |
8e5cd638 | 9 | Release: 2 |
0ae66879 JB |
10 | License: MIT (Waree font), GPL v2+ (the rest) |
11 | Group: Fonts | |
464e34a7 | 12 | Source0: https://linux.thai.net/pub/thailinux/software/thaifonts-scalable/fonts-tlwg-%{version}.tar.xz |
af82864a | 13 | # Source0-md5: d1de007dd0263acb0e64207b77df7f1c |
464e34a7 | 14 | URL: https://linux.thai.net/projects/thaifonts-scalable |
0d17f0c4 JB |
15 | BuildRequires: autoconf >= 2.59 |
16 | BuildRequires: automake | |
539d73b1 JB |
17 | BuildRequires: fontforge >= 20190801 |
18 | BuildRequires: python3 >= 1:3.7 | |
19 | BuildRequires: python3-fontforge >= 20190801 | |
20 | BuildRequires: rpmbuild(macros) >= 1.751 | |
f3d94541 | 21 | BuildRequires: xorg-app-mkfontscale |
09409f71 | 22 | %if %{with latex} |
539d73b1 | 23 | # afm2tfm, vptovf, updmap-sys, mktexlsr |
09409f71 JB |
24 | BuildRequires: texlive |
25 | BuildRequires: thailatex >= 0.4.6 | |
26 | %endif | |
0d17f0c4 JB |
27 | BuildRequires: tar >= 1:1.22 |
28 | BuildRequires: xz | |
8e5cd638 | 29 | BuildArch: noarch |
0ae66879 JB |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
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 | |
36 | implementation. | |
37 | ||
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ą | |
42 | wzorcową. | |
43 | ||
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 | |
47 | Group: Fonts | |
48 | Requires(post,postun): fontpostinst | |
49 | ||
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 | |
54 | implementation. | |
55 | ||
56 | This package contains fonts in OpenType format. | |
57 | ||
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ą | |
62 | wzorcową. | |
63 | ||
64 | Ten pakiet zawiera fonty w formacie OpenType. | |
65 | ||
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 | |
69 | Group: Fonts | |
70 | Requires(post,postun): fontpostinst | |
71 | ||
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 | |
76 | implementation. | |
77 | ||
78 | This package contains fonts in TrueType format. | |
79 | ||
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ą | |
84 | wzorcową. | |
85 | ||
86 | Ten pakiet zawiera fonty w formacie TrueType. | |
87 | ||
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 | |
91 | Group: Fonts | |
92 | Requires(post,postun): fontpostinst | |
93 | ||
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 | |
98 | implementation. | |
99 | ||
100 | This package contains fonts in Type1 format. | |
101 | ||
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ą | |
106 | wzorcową. | |
107 | ||
108 | Ten pakiet zawiera fonty w formacie Type1. | |
109 | ||
09409f71 JB |
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 | |
113 | Group: Fonts | |
114 | Requires(post,postun): texlive | |
115 | Requires: texlive | |
29d6eeaf | 116 | Requires: thailatex >= 0.4.7 |
09409f71 JB |
117 | |
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 | |
122 | implementation. | |
123 | ||
124 | This package contains LaTeX fonts for use with thailatex. | |
125 | ||
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ą | |
130 | wzorcową. | |
131 | ||
132 | Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex. | |
133 | ||
0ae66879 | 134 | %prep |
29d6eeaf | 135 | %setup -q -n fonts-tlwg-%{version} |
0ae66879 JB |
136 | |
137 | %build | |
c08283c2 JR |
138 | %{__aclocal} |
139 | %{__autoconf} | |
140 | %{__automake} | |
0ae66879 JB |
141 | %configure \ |
142 | %{?with_latex:--enable-latex} \ | |
0ae66879 | 143 | --enable-otf \ |
c073f08b JB |
144 | --enable-pfb \ |
145 | --enable-ttf \ | |
0ae66879 JB |
146 | --with-otfdir=%{_fontsdir}/OTF \ |
147 | --with-ttfdir=%{_fontsdir}/TTF \ | |
148 | --with-type1dir=%{_fontsdir}/Type1 | |
09409f71 | 149 | %{__make} %{?with_latex:-j1} |
0ae66879 JB |
150 | |
151 | %install | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
154 | %{__make} install \ | |
155 | DESTDIR=$RPM_BUILD_ROOT | |
156 | ||
157 | install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm | |
c073f08b | 158 | %{__mv} $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm |
0ae66879 JB |
159 | mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1 |
160 | ||
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
09409f71 JB |
164 | %post -n fonts-OTF-thai |
165 | fontpostinst OTF | |
166 | ||
167 | %postun -n fonts-OTF-thai | |
168 | fontpostinst OTF | |
169 | ||
170 | %post -n fonts-TTF-thai | |
171 | fontpostinst TTF | |
172 | ||
173 | %postun -n fonts-TTF-thai | |
174 | fontpostinst TTF | |
175 | ||
176 | %post -n fonts-Type1-thai | |
177 | fontpostinst Type1 | |
178 | ||
179 | %postun -n fonts-Type1-thai | |
180 | fontpostinst Type1 | |
181 | ||
182 | %post -n thailatex-fonts | |
539d73b1 | 183 | %texhash |
09409f71 JB |
184 | |
185 | %postun -n thailatex-fonts | |
539d73b1 | 186 | %texhash |
09409f71 | 187 | |
0ae66879 JB |
188 | %files -n fonts-OTF-thai |
189 | %defattr(644,root,root,755) | |
c073f08b | 190 | %doc AUTHORS COPYING ChangeLog NEWS README |
0ae66879 JB |
191 | %{_fontsdir}/OTF/Garuda*.otf |
192 | %{_fontsdir}/OTF/Kinnari*.otf | |
d5e36892 | 193 | %{_fontsdir}/OTF/Laksaman*.otf |
0ae66879 JB |
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 | |
201 | ||
202 | %files -n fonts-TTF-thai | |
203 | %defattr(644,root,root,755) | |
c073f08b | 204 | %doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README |
0ae66879 JB |
205 | %{_fontsdir}/TTF/Garuda*.ttf |
206 | %{_fontsdir}/TTF/Kinnari*.ttf | |
d5e36892 | 207 | %{_fontsdir}/TTF/Laksaman*.ttf |
0ae66879 JB |
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 | |
d5e36892 JB |
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 | |
0ae66879 JB |
218 | |
219 | %files -n fonts-Type1-thai | |
220 | %defattr(644,root,root,755) | |
c073f08b | 221 | %doc AUTHORS COPYING ChangeLog NEWS README |
0ae66879 JB |
222 | %{_fontsdir}/Type1/Garuda*.pfb |
223 | %{_fontsdir}/Type1/Kinnari*.pfb | |
d5e36892 | 224 | %{_fontsdir}/Type1/Laksaman*.pfb |
0ae66879 JB |
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 | |
d5e36892 | 235 | %{_fontsdir}/Type1/afm/Laksaman*.afm |
0ae66879 JB |
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 | |
09409f71 JB |
243 | |
244 | %files -n thailatex-fonts | |
245 | %defattr(644,root,root,755) | |
c073f08b | 246 | %doc AUTHORS COPYING ChangeLog NEWS README |
29d6eeaf JB |
247 | %{_datadir}/texmf/fonts/afm/public/fonts-tlwg |
248 | %{_datadir}/texmf/fonts/enc/dvips/fonts-tlwg | |
249 | %{_datadir}/texmf/fonts/map/dvips/fonts-tlwg | |
c073f08b | 250 | %{_datadir}/texmf/fonts/opentype/public/fonts-tlwg |
29d6eeaf JB |
251 | %{_datadir}/texmf/fonts/tfm/public/fonts-tlwg |
252 | %{_datadir}/texmf/fonts/type1/public/fonts-tlwg | |
253 | %{_datadir}/texmf/fonts/vf/public/fonts-tlwg | |
09409f71 | 254 | %{_datadir}/texmf/tex/latex/fonts-tlwg |