]>
Commit | Line | Data |
---|---|---|
0ae66879 JB |
1 | # TODO: LaTeX deps and files |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with latex # build LaTeX fonts | |
5 | # | |
6 | Summary: Collection of Thai scalable fonts | |
7 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich | |
8 | Name: fonts-thai-scalable | |
9 | Version: 0.4.17 | |
10 | Release: 1 | |
11 | License: MIT (Waree font), GPL v2+ (the rest) | |
12 | Group: Fonts | |
13 | Source0: http://linux.thai.net/pub/thailinux/software/thaifonts-scalable/thaifonts-scalable-%{version}.tar.gz | |
14 | # Source0-md5: 4cdbb081bf0d180ead5e0f04149ff023 | |
15 | URL: http://linux.thai.net/projects/thaifonts-scalable | |
16 | BuildRequires: fontforge >= 20080110 | |
17 | %{?with_latex:BuildRequires: afm2tfm, vptovf, kpsewhich, updmap, mktexlsr||texhash, thailatex >= 0.4.6} | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
22 | free licenses. Its goal is to provide fonts that conform to existing | |
23 | standards and recommendations, so that it can be a reference | |
24 | implementation. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
28 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
29 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
30 | wzorcową. | |
31 | ||
32 | %package -n fonts-OTF-thai | |
33 | Summary: Collection of OpenType Thai scalable fonts | |
34 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie OpenType | |
35 | Group: Fonts | |
36 | Requires(post,postun): fontpostinst | |
37 | ||
38 | %description -n fonts-OTF-thai | |
39 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
40 | free licenses. Its goal is to provide fonts that conform to existing | |
41 | standards and recommendations, so that it can be a reference | |
42 | implementation. | |
43 | ||
44 | This package contains fonts in OpenType format. | |
45 | ||
46 | %description -n fonts-OTF-thai -l pl.UTF-8 | |
47 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
48 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
49 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
50 | wzorcową. | |
51 | ||
52 | Ten pakiet zawiera fonty w formacie OpenType. | |
53 | ||
54 | %package -n fonts-TTF-thai | |
55 | Summary: Collection of TrueType Thai scalable fonts | |
56 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie TrueType | |
57 | Group: Fonts | |
58 | Requires(post,postun): fontpostinst | |
59 | ||
60 | %description -n fonts-TTF-thai | |
61 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
62 | free licenses. Its goal is to provide fonts that conform to existing | |
63 | standards and recommendations, so that it can be a reference | |
64 | implementation. | |
65 | ||
66 | This package contains fonts in TrueType format. | |
67 | ||
68 | %description -n fonts-TTF-thai -l pl.UTF-8 | |
69 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
70 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
71 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
72 | wzorcową. | |
73 | ||
74 | Ten pakiet zawiera fonty w formacie TrueType. | |
75 | ||
76 | %package -n fonts-Type1-thai | |
77 | Summary: Collection of Type1 Thai scalable fonts | |
78 | Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie Type1 | |
79 | Group: Fonts | |
80 | Requires(post,postun): fontpostinst | |
81 | ||
82 | %description -n fonts-Type1-thai | |
83 | thaifonts-scalable is a collection of Thai scalable fonts available in | |
84 | free licenses. Its goal is to provide fonts that conform to existing | |
85 | standards and recommendations, so that it can be a reference | |
86 | implementation. | |
87 | ||
88 | This package contains fonts in Type1 format. | |
89 | ||
90 | %description -n fonts-Type1-thai -l pl.UTF-8 | |
91 | thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na | |
92 | wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z | |
93 | istniejącymi standardami i rekomendacjami, aby był implementacją | |
94 | wzorcową. | |
95 | ||
96 | Ten pakiet zawiera fonty w formacie Type1. | |
97 | ||
98 | %prep | |
99 | %setup -q -n thaifonts-scalable-%{version} | |
100 | ||
101 | %build | |
102 | %configure \ | |
103 | %{?with_latex:--enable-latex} \ | |
104 | --enable-pfb \ | |
105 | --enable-otf \ | |
106 | --with-otfdir=%{_fontsdir}/OTF \ | |
107 | --with-ttfdir=%{_fontsdir}/TTF \ | |
108 | --with-type1dir=%{_fontsdir}/Type1 | |
109 | %{__make} | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %{__make} install \ | |
115 | DESTDIR=$RPM_BUILD_ROOT | |
116 | ||
117 | install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm | |
118 | mv $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm | |
119 | mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1 | |
120 | ||
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %files -n fonts-OTF-thai | |
125 | %defattr(644,root,root,755) | |
126 | %{_fontsdir}/OTF/Garuda*.otf | |
127 | %{_fontsdir}/OTF/Kinnari*.otf | |
128 | %{_fontsdir}/OTF/Loma*.otf | |
129 | %{_fontsdir}/OTF/Norasi*.otf | |
130 | %{_fontsdir}/OTF/Purisa*.otf | |
131 | %{_fontsdir}/OTF/Sawasdee*.otf | |
132 | %{_fontsdir}/OTF/Tlwg*.otf | |
133 | %{_fontsdir}/OTF/Umpush*.otf | |
134 | %{_fontsdir}/OTF/Waree*.otf | |
135 | ||
136 | %files -n fonts-TTF-thai | |
137 | %defattr(644,root,root,755) | |
138 | %doc AUTHORS COPYING ChangeLog* NEWS README TODO | |
139 | %{_fontsdir}/TTF/Garuda*.ttf | |
140 | %{_fontsdir}/TTF/Kinnari*.ttf | |
141 | %{_fontsdir}/TTF/Loma*.ttf | |
142 | %{_fontsdir}/TTF/Norasi*.ttf | |
143 | %{_fontsdir}/TTF/Purisa*.ttf | |
144 | %{_fontsdir}/TTF/Sawasdee*.ttf | |
145 | %{_fontsdir}/TTF/Tlwg*.ttf | |
146 | %{_fontsdir}/TTF/Umpush*.ttf | |
147 | %{_fontsdir}/TTF/Waree*.ttf | |
148 | /etc/fonts/conf.avail/64-ttf-thai-tlwg.conf | |
149 | /etc/fonts/conf.avail/89-ttf-thai-tlwg-synthetic.conf | |
150 | ||
151 | %files -n fonts-Type1-thai | |
152 | %defattr(644,root,root,755) | |
153 | %doc AUTHORS COPYING ChangeLog* NEWS README TODO | |
154 | %{_fontsdir}/Type1/Garuda*.pfb | |
155 | %{_fontsdir}/Type1/Kinnari*.pfb | |
156 | %{_fontsdir}/Type1/Loma*.pfb | |
157 | %{_fontsdir}/Type1/Norasi*.pfb | |
158 | %{_fontsdir}/Type1/Purisa*.pfb | |
159 | %{_fontsdir}/Type1/Sawasdee*.pfb | |
160 | %{_fontsdir}/Type1/Tlwg*.pfb | |
161 | %{_fontsdir}/Type1/Umpush*.pfb | |
162 | %{_fontsdir}/Type1/Waree*.pfb | |
163 | %{_fontsdir}/Type1/fonts.scale.thai-scalable | |
164 | %{_fontsdir}/Type1/afm/Garuda*.afm | |
165 | %{_fontsdir}/Type1/afm/Kinnari*.afm | |
166 | %{_fontsdir}/Type1/afm/Loma*.afm | |
167 | %{_fontsdir}/Type1/afm/Norasi*.afm | |
168 | %{_fontsdir}/Type1/afm/Purisa*.afm | |
169 | %{_fontsdir}/Type1/afm/Sawasdee*.afm | |
170 | %{_fontsdir}/Type1/afm/Tlwg*.afm | |
171 | %{_fontsdir}/Type1/afm/Umpush*.afm | |
172 | %{_fontsdir}/Type1/afm/Waree*.afm |