]> git.pld-linux.org Git - packages/fonts-thai-scalable.git/blame - fonts-thai-scalable.spec
- noarch, release 2
[packages/fonts-thai-scalable.git] / fonts-thai-scalable.spec
CommitLineData
0ae66879
JB
1#
2# Conditional build:
09409f71 3%bcond_without latex # LaTeX fonts
0ae66879
JB
4#
5Summary: Collection of Thai scalable fonts
6Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich
7Name: fonts-thai-scalable
af82864a 8Version: 0.7.3
8e5cd638 9Release: 2
0ae66879
JB
10License: MIT (Waree font), GPL v2+ (the rest)
11Group: Fonts
464e34a7 12Source0: https://linux.thai.net/pub/thailinux/software/thaifonts-scalable/fonts-tlwg-%{version}.tar.xz
af82864a 13# Source0-md5: d1de007dd0263acb0e64207b77df7f1c
464e34a7 14URL: https://linux.thai.net/projects/thaifonts-scalable
0d17f0c4
JB
15BuildRequires: autoconf >= 2.59
16BuildRequires: automake
539d73b1
JB
17BuildRequires: fontforge >= 20190801
18BuildRequires: python3 >= 1:3.7
19BuildRequires: python3-fontforge >= 20190801
20BuildRequires: rpmbuild(macros) >= 1.751
f3d94541 21BuildRequires: xorg-app-mkfontscale
09409f71 22%if %{with latex}
539d73b1 23# afm2tfm, vptovf, updmap-sys, mktexlsr
09409f71
JB
24BuildRequires: texlive
25BuildRequires: thailatex >= 0.4.6
26%endif
0d17f0c4
JB
27BuildRequires: tar >= 1:1.22
28BuildRequires: xz
8e5cd638 29BuildArch: noarch
0ae66879
JB
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33thaifonts-scalable is a collection of Thai scalable fonts available in
34free licenses. Its goal is to provide fonts that conform to existing
35standards and recommendations, so that it can be a reference
36implementation.
37
38%description -l pl.UTF-8
39thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
40wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
41istniejącymi standardami i rekomendacjami, aby był implementacją
42wzorcową.
43
44%package -n fonts-OTF-thai
45Summary: Collection of OpenType Thai scalable fonts
46Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie OpenType
47Group: Fonts
48Requires(post,postun): fontpostinst
49
50%description -n fonts-OTF-thai
51thaifonts-scalable is a collection of Thai scalable fonts available in
52free licenses. Its goal is to provide fonts that conform to existing
53standards and recommendations, so that it can be a reference
54implementation.
55
56This package contains fonts in OpenType format.
57
58%description -n fonts-OTF-thai -l pl.UTF-8
59thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
60wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
61istniejącymi standardami i rekomendacjami, aby był implementacją
62wzorcową.
63
64Ten pakiet zawiera fonty w formacie OpenType.
65
66%package -n fonts-TTF-thai
67Summary: Collection of TrueType Thai scalable fonts
68Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie TrueType
69Group: Fonts
70Requires(post,postun): fontpostinst
71
72%description -n fonts-TTF-thai
73thaifonts-scalable is a collection of Thai scalable fonts available in
74free licenses. Its goal is to provide fonts that conform to existing
75standards and recommendations, so that it can be a reference
76implementation.
77
78This package contains fonts in TrueType format.
79
80%description -n fonts-TTF-thai -l pl.UTF-8
81thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
82wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
83istniejącymi standardami i rekomendacjami, aby był implementacją
84wzorcową.
85
86Ten pakiet zawiera fonty w formacie TrueType.
87
88%package -n fonts-Type1-thai
89Summary: Collection of Type1 Thai scalable fonts
90Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich w formacie Type1
91Group: Fonts
92Requires(post,postun): fontpostinst
93
94%description -n fonts-Type1-thai
95thaifonts-scalable is a collection of Thai scalable fonts available in
96free licenses. Its goal is to provide fonts that conform to existing
97standards and recommendations, so that it can be a reference
98implementation.
99
100This package contains fonts in Type1 format.
101
102%description -n fonts-Type1-thai -l pl.UTF-8
103thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
104wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
105istniejącymi standardami i rekomendacjami, aby był implementacją
106wzorcową.
107
108Ten pakiet zawiera fonty w formacie Type1.
109
09409f71
JB
110%package -n thailatex-fonts
111Summary: Collection of Thai scalable fonts for LaTeX
112Summary(pl.UTF-8): Kolekcja skalowalnych fontów tajskich dla LaTeXa
113Group: Fonts
114Requires(post,postun): texlive
115Requires: texlive
29d6eeaf 116Requires: thailatex >= 0.4.7
09409f71
JB
117
118%description -n thailatex-fonts
119thaifonts-scalable is a collection of Thai scalable fonts available in
120free licenses. Its goal is to provide fonts that conform to existing
121standards and recommendations, so that it can be a reference
122implementation.
123
124This package contains LaTeX fonts for use with thailatex.
125
126%description -n thailatex-fonts -l pl.UTF-8
127thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
128wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
129istniejącymi standardami i rekomendacjami, aby był implementacją
130wzorcową.
131
132Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex.
133
0ae66879 134%prep
29d6eeaf 135%setup -q -n fonts-tlwg-%{version}
0ae66879
JB
136
137%build
c08283c2
JR
138%{__aclocal}
139%{__autoconf}
140%{__automake}
0ae66879
JB
141%configure \
142 %{?with_latex:--enable-latex} \
0ae66879 143 --enable-otf \
c073f08b
JB
144 --enable-pfb \
145 --enable-ttf \
0ae66879
JB
146 --with-otfdir=%{_fontsdir}/OTF \
147 --with-ttfdir=%{_fontsdir}/TTF \
148 --with-type1dir=%{_fontsdir}/Type1
09409f71 149%{__make} %{?with_latex:-j1}
0ae66879
JB
150
151%install
152rm -rf $RPM_BUILD_ROOT
153
154%{__make} install \
155 DESTDIR=$RPM_BUILD_ROOT
156
157install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
c073f08b 158%{__mv} $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
0ae66879
JB
159mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1
160
161%clean
162rm -rf $RPM_BUILD_ROOT
163
09409f71
JB
164%post -n fonts-OTF-thai
165fontpostinst OTF
166
167%postun -n fonts-OTF-thai
168fontpostinst OTF
169
170%post -n fonts-TTF-thai
171fontpostinst TTF
172
173%postun -n fonts-TTF-thai
174fontpostinst TTF
175
176%post -n fonts-Type1-thai
177fontpostinst Type1
178
179%postun -n fonts-Type1-thai
180fontpostinst Type1
181
182%post -n thailatex-fonts
539d73b1 183%texhash
09409f71
JB
184
185%postun -n thailatex-fonts
539d73b1 186%texhash
09409f71 187
0ae66879
JB
188%files -n fonts-OTF-thai
189%defattr(644,root,root,755)
c073f08b 190%doc AUTHORS COPYING ChangeLog NEWS README
0ae66879
JB
191%{_fontsdir}/OTF/Garuda*.otf
192%{_fontsdir}/OTF/Kinnari*.otf
d5e36892 193%{_fontsdir}/OTF/Laksaman*.otf
0ae66879
JB
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)
c073f08b 204%doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README
0ae66879
JB
205%{_fontsdir}/TTF/Garuda*.ttf
206%{_fontsdir}/TTF/Kinnari*.ttf
d5e36892 207%{_fontsdir}/TTF/Laksaman*.ttf
0ae66879
JB
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
d5e36892
JB
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
0ae66879
JB
218
219%files -n fonts-Type1-thai
220%defattr(644,root,root,755)
c073f08b 221%doc AUTHORS COPYING ChangeLog NEWS README
0ae66879
JB
222%{_fontsdir}/Type1/Garuda*.pfb
223%{_fontsdir}/Type1/Kinnari*.pfb
d5e36892 224%{_fontsdir}/Type1/Laksaman*.pfb
0ae66879
JB
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
d5e36892 235%{_fontsdir}/Type1/afm/Laksaman*.afm
0ae66879
JB
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
09409f71
JB
243
244%files -n thailatex-fonts
245%defattr(644,root,root,755)
c073f08b 246%doc AUTHORS COPYING ChangeLog NEWS README
29d6eeaf
JB
247%{_datadir}/texmf/fonts/afm/public/fonts-tlwg
248%{_datadir}/texmf/fonts/enc/dvips/fonts-tlwg
249%{_datadir}/texmf/fonts/map/dvips/fonts-tlwg
c073f08b 250%{_datadir}/texmf/fonts/opentype/public/fonts-tlwg
29d6eeaf
JB
251%{_datadir}/texmf/fonts/tfm/public/fonts-tlwg
252%{_datadir}/texmf/fonts/type1/public/fonts-tlwg
253%{_datadir}/texmf/fonts/vf/public/fonts-tlwg
09409f71 254%{_datadir}/texmf/tex/latex/fonts-tlwg
This page took 0.110684 seconds and 4 git commands to generate.