]> git.pld-linux.org Git - packages/fonts-thai-scalable.git/blob - fonts-thai-scalable.spec
- noarch, release 2
[packages/fonts-thai-scalable.git] / fonts-thai-scalable.spec
1 #
2 # Conditional build:
3 %bcond_without  latex   # LaTeX fonts
4 #
5 Summary:        Collection of Thai scalable fonts
6 Summary(pl.UTF-8):      Kolekcja skalowalnych fontów tajskich
7 Name:           fonts-thai-scalable
8 Version:        0.7.3
9 Release:        2
10 License:        MIT (Waree font), GPL v2+ (the rest)
11 Group:          Fonts
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
22 %if %{with latex}
23 # afm2tfm, vptovf, updmap-sys, mktexlsr
24 BuildRequires:  texlive
25 BuildRequires:  thailatex >= 0.4.6
26 %endif
27 BuildRequires:  tar >= 1:1.22
28 BuildRequires:  xz
29 BuildArch:      noarch
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
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
116 Requires:       thailatex >= 0.4.7
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
134 %prep
135 %setup -q -n fonts-tlwg-%{version}
136
137 %build
138 %{__aclocal}
139 %{__autoconf}
140 %{__automake}
141 %configure \
142         %{?with_latex:--enable-latex} \
143         --enable-otf \
144         --enable-pfb \
145         --enable-ttf \
146         --with-otfdir=%{_fontsdir}/OTF \
147         --with-ttfdir=%{_fontsdir}/TTF \
148         --with-type1dir=%{_fontsdir}/Type1
149 %{__make} %{?with_latex:-j1}
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
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
160
161 %clean
162 rm -rf $RPM_BUILD_ROOT
163
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
183 %texhash
184
185 %postun -n thailatex-fonts
186 %texhash
187
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
201
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
218
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
243
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
This page took 0.173407 seconds and 3 git commands to generate.