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