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