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