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