]>
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 | |
4067f77c | 8 | Version: 0.6.5 |
0d17f0c4 | 9 | Release: 1 |
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 |
4067f77c | 13 | # Source0-md5: 4b3f2f80535681e8f66f78001d84f75d |
464e34a7 | 14 | URL: https://linux.thai.net/projects/thaifonts-scalable |
0d17f0c4 JB |
15 | BuildRequires: autoconf >= 2.59 |
16 | BuildRequires: automake | |
4067f77c | 17 | BuildRequires: fontforge >= 20170730 |
f3d94541 | 18 | BuildRequires: xorg-app-mkfontscale |
09409f71 JB |
19 | %if %{with latex} |
20 | BuildRequires: texlive | |
21 | BuildRequires: thailatex >= 0.4.6 | |
22 | %endif | |
0d17f0c4 JB |
23 | BuildRequires: tar >= 1:1.22 |
24 | BuildRequires: xz | |
0ae66879 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
29 | free licenses. Its goal is to provide fonts that conform to existing | |
30 | standards and recommendations, so that it can be a reference | |
31 | implementation. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
35 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
36 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
37 | wzorcową. | |
38 | ||
39 | %package -n fonts-OTF-thai | |
40 | Summary: Collection of OpenType Thai scalable fonts | |
41 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie OpenType | |
42 | Group: Fonts | |
43 | Requires(post,postun): fontpostinst | |
44 | ||
45 | %description -n fonts-OTF-thai | |
46 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
47 | free licenses. Its goal is to provide fonts that conform to existing | |
48 | standards and recommendations, so that it can be a reference | |
49 | implementation. | |
50 | ||
51 | This package contains fonts in OpenType format. | |
52 | ||
53 | %description -n fonts-OTF-thai -l pl.UTF-8 | |
54 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
55 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
56 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
57 | wzorcową. | |
58 | ||
59 | Ten pakiet zawiera fonty w formacie OpenType. | |
60 | ||
61 | %package -n fonts-TTF-thai | |
62 | Summary: Collection of TrueType Thai scalable fonts | |
63 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie TrueType | |
64 | Group: Fonts | |
65 | Requires(post,postun): fontpostinst | |
66 | ||
67 | %description -n fonts-TTF-thai | |
68 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
69 | free licenses. Its goal is to provide fonts that conform to existing | |
70 | standards and recommendations, so that it can be a reference | |
71 | implementation. | |
72 | ||
73 | This package contains fonts in TrueType format. | |
74 | ||
75 | %description -n fonts-TTF-thai -l pl.UTF-8 | |
76 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
77 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
78 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
79 | wzorcową. | |
80 | ||
81 | Ten pakiet zawiera fonty w formacie TrueType. | |
82 | ||
83 | %package -n fonts-Type1-thai | |
84 | Summary: Collection of Type1 Thai scalable fonts | |
85 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie Type1 | |
86 | Group: Fonts | |
87 | Requires(post,postun): fontpostinst | |
88 | ||
89 | %description -n fonts-Type1-thai | |
90 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
91 | free licenses. Its goal is to provide fonts that conform to existing | |
92 | standards and recommendations, so that it can be a reference | |
93 | implementation. | |
94 | ||
95 | This package contains fonts in Type1 format. | |
96 | ||
97 | %description -n fonts-Type1-thai -l pl.UTF-8 | |
98 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
99 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
100 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
101 | wzorcową. | |
102 | ||
103 | Ten pakiet zawiera fonty w formacie Type1. | |
104 | ||
09409f71 JB |
105 | %package -n thailatex-fonts |
106 | Summary: Collection of Thai scalable fonts for LaTeX | |
107 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich dla LaTeXa | |
108 | Group: Fonts | |
109 | Requires(post,postun): texlive | |
110 | Requires: texlive | |
29d6eeaf | 111 | Requires: thailatex >= 0.4.7 |
09409f71 JB |
112 | |
113 | %description -n thailatex-fonts | |
114 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
115 | free licenses. Its goal is to provide fonts that conform to existing | |
116 | standards and recommendations, so that it can be a reference | |
117 | implementation. | |
118 | ||
119 | This package contains LaTeX fonts for use with thailatex. | |
120 | ||
121 | %description -n thailatex-fonts -l pl.UTF-8 | |
122 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
123 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
124 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
125 | wzorcową. | |
126 | ||
127 | Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex. | |
128 | ||
0ae66879 | 129 | %prep |
29d6eeaf | 130 | %setup -q -n fonts-tlwg-%{version} |
0ae66879 JB |
131 | |
132 | %build | |
c08283c2 JR |
133 | %{__aclocal} |
134 | %{__autoconf} | |
135 | %{__automake} | |
0ae66879 JB |
136 | %configure \ |
137 | %{?with_latex:--enable-latex} \ | |
138 | --enable-pfb \ | |
139 | --enable-otf \ | |
140 | --with-otfdir=%{_fontsdir}/OTF \ | |
141 | --with-ttfdir=%{_fontsdir}/TTF \ | |
142 | --with-type1dir=%{_fontsdir}/Type1 | |
09409f71 | 143 | %{__make} %{?with_latex:-j1} |
0ae66879 JB |
144 | |
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} install \ | |
149 | DESTDIR=$RPM_BUILD_ROOT | |
150 | ||
151 | install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm | |
152 | mv $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm | |
153 | mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1 | |
154 | ||
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
09409f71 JB |
158 | %post -n fonts-OTF-thai |
159 | fontpostinst OTF | |
160 | ||
161 | %postun -n fonts-OTF-thai | |
162 | fontpostinst OTF | |
163 | ||
164 | %post -n fonts-TTF-thai | |
165 | fontpostinst TTF | |
166 | ||
167 | %postun -n fonts-TTF-thai | |
168 | fontpostinst TTF | |
169 | ||
170 | %post -n fonts-Type1-thai | |
171 | fontpostinst Type1 | |
172 | ||
173 | %postun -n fonts-Type1-thai | |
174 | fontpostinst Type1 | |
175 | ||
176 | %post -n thailatex-fonts | |
177 | umask 022 | |
178 | %{_bindir}/texhash | |
179 | ||
180 | %postun -n thailatex-fonts | |
181 | umask 022 | |
182 | %{_bindir}/texhash | |
183 | ||
0ae66879 JB |
184 | %files -n fonts-OTF-thai |
185 | %defattr(644,root,root,755) | |
09409f71 | 186 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
0ae66879 JB |
187 | %{_fontsdir}/OTF/Garuda*.otf |
188 | %{_fontsdir}/OTF/Kinnari*.otf | |
d5e36892 | 189 | %{_fontsdir}/OTF/Laksaman*.otf |
0ae66879 JB |
190 | %{_fontsdir}/OTF/Loma*.otf |
191 | %{_fontsdir}/OTF/Norasi*.otf | |
192 | %{_fontsdir}/OTF/Purisa*.otf | |
193 | %{_fontsdir}/OTF/Sawasdee*.otf | |
194 | %{_fontsdir}/OTF/Tlwg*.otf | |
195 | %{_fontsdir}/OTF/Umpush*.otf | |
196 | %{_fontsdir}/OTF/Waree*.otf | |
197 | ||
198 | %files -n fonts-TTF-thai | |
199 | %defattr(644,root,root,755) | |
09409f71 | 200 | %doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README TODO |
0ae66879 JB |
201 | %{_fontsdir}/TTF/Garuda*.ttf |
202 | %{_fontsdir}/TTF/Kinnari*.ttf | |
d5e36892 | 203 | %{_fontsdir}/TTF/Laksaman*.ttf |
0ae66879 JB |
204 | %{_fontsdir}/TTF/Loma*.ttf |
205 | %{_fontsdir}/TTF/Norasi*.ttf | |
206 | %{_fontsdir}/TTF/Purisa*.ttf | |
207 | %{_fontsdir}/TTF/Sawasdee*.ttf | |
208 | %{_fontsdir}/TTF/Tlwg*.ttf | |
209 | %{_fontsdir}/TTF/Umpush*.ttf | |
210 | %{_fontsdir}/TTF/Waree*.ttf | |
d5e36892 JB |
211 | %{_datadir}/fontconfig/conf.avail/64-??-tlwg-*.conf |
212 | %{_datadir}/fontconfig/conf.avail/64-15-laksaman.conf | |
213 | %{_datadir}/fontconfig/conf.avail/89-tlwg-*-synthetic.conf | |
0ae66879 JB |
214 | |
215 | %files -n fonts-Type1-thai | |
216 | %defattr(644,root,root,755) | |
09409f71 | 217 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
0ae66879 JB |
218 | %{_fontsdir}/Type1/Garuda*.pfb |
219 | %{_fontsdir}/Type1/Kinnari*.pfb | |
d5e36892 | 220 | %{_fontsdir}/Type1/Laksaman*.pfb |
0ae66879 JB |
221 | %{_fontsdir}/Type1/Loma*.pfb |
222 | %{_fontsdir}/Type1/Norasi*.pfb | |
223 | %{_fontsdir}/Type1/Purisa*.pfb | |
224 | %{_fontsdir}/Type1/Sawasdee*.pfb | |
225 | %{_fontsdir}/Type1/Tlwg*.pfb | |
226 | %{_fontsdir}/Type1/Umpush*.pfb | |
227 | %{_fontsdir}/Type1/Waree*.pfb | |
228 | %{_fontsdir}/Type1/fonts.scale.thai-scalable | |
229 | %{_fontsdir}/Type1/afm/Garuda*.afm | |
230 | %{_fontsdir}/Type1/afm/Kinnari*.afm | |
d5e36892 | 231 | %{_fontsdir}/Type1/afm/Laksaman*.afm |
0ae66879 JB |
232 | %{_fontsdir}/Type1/afm/Loma*.afm |
233 | %{_fontsdir}/Type1/afm/Norasi*.afm | |
234 | %{_fontsdir}/Type1/afm/Purisa*.afm | |
235 | %{_fontsdir}/Type1/afm/Sawasdee*.afm | |
236 | %{_fontsdir}/Type1/afm/Tlwg*.afm | |
237 | %{_fontsdir}/Type1/afm/Umpush*.afm | |
238 | %{_fontsdir}/Type1/afm/Waree*.afm | |
09409f71 JB |
239 | |
240 | %files -n thailatex-fonts | |
241 | %defattr(644,root,root,755) | |
242 | %doc AUTHORS COPYING ChangeLog NEWS README TODO | |
29d6eeaf JB |
243 | %{_datadir}/texmf/fonts/afm/public/fonts-tlwg |
244 | %{_datadir}/texmf/fonts/enc/dvips/fonts-tlwg | |
245 | %{_datadir}/texmf/fonts/map/dvips/fonts-tlwg | |
246 | %{_datadir}/texmf/fonts/tfm/public/fonts-tlwg | |
247 | %{_datadir}/texmf/fonts/type1/public/fonts-tlwg | |
248 | %{_datadir}/texmf/fonts/vf/public/fonts-tlwg | |
09409f71 | 249 | %{_datadir}/texmf/tex/latex/fonts-tlwg |