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