3 %bcond_without latex # LaTeX fonts
5 Summary: Thai Arundina scalable fonts
6 Summary(pl.UTF-8): Tajskie fonty skalowalne Arundina
7 Name: fonts-thai-arundina
12 Source0: https://linux.thai.net/pub/thailinux/software/thaifonts-arundina/fonts-arundina-%{version}.tar.xz
13 # Source0-md5: 3a9d44730a9724e6e7a0ed17eff25c17
14 URL: https://linux.thai.net/projects/thaifonts-arundina
15 BuildRequires: fontforge >= 20170731
16 BuildRequires: python3 >= 1:3.7
17 BuildRequires: python3-fontforge >= 20170731
18 BuildRequires: rpmbuild(macros) >= 1.751
19 BuildRequires: tar >= 1:1.22
20 BuildRequires: xorg-app-mkfontscale
23 # afm2tfm, vptovf, updmap-sys, mktexlsr
24 BuildRequires: texlive
25 BuildRequires: thailatex >= 0.4.6
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Arundina fonts were created under SIPA's initiation, aiming at
31 Bitstream Vera / Dejavu compatibility. They were then further modified
32 by TLWG for certain aspects:
33 - Latin glyph size compatiblity,
34 - OpenType conformance.
36 %description -l pl.UTF-8
37 Fonty Arundina powstały z inicjatywy SIPA, gdzie celem była zgodność z
38 fontami Bitstream Vera / Dejavu. Następnie zostały zmodyfikowane przez
39 TLWG pod następującym kątem:
40 - zgodność rozmiaru z glifami łacińskimi,
41 - zgodność z OpenType.
43 %package -n fonts-TTF-thai-arundina
44 Summary: TrueType Thai Arundina fonts
45 Summary(pl.UTF-8): Tajskie fonty Arundina w formacie TrueType
47 Requires(post,postun): fontpostinst
49 %description -n fonts-TTF-thai-arundina
50 Arundina fonts were created under SIPA's initiation, aiming at
51 Bitstream Vera / Dejavu compatibility. They were then further modified
52 by TLWG for certain aspects:
53 - Latin glyph size compatiblity,
54 - OpenType conformance.
56 This package contains fonts in TrueType format.
58 %description -n fonts-TTF-thai-arundina -l pl.UTF-8
59 Fonty Arundina powstały z inicjatywy SIPA, gdzie celem była zgodność z
60 fontami Bitstream Vera / Dejavu. Następnie zostały zmodyfikowane przez
61 TLWG pod następującym kątem:
62 - zgodność rozmiaru z glifami łacińskimi,
63 - zgodność z OpenType.
65 Ten pakiet zawiera fonty w formacie TrueType.
67 %package -n fonts-Type1-thai-arundina
68 Summary: Type1 Thai Arundina fonts
69 Summary(pl.UTF-8): Tajskie fonty Arundina w formacie Type1
71 Requires(post,postun): fontpostinst
73 %description -n fonts-Type1-thai-arundina
74 Arundina fonts were created under SIPA's initiation, aiming at
75 Bitstream Vera / Dejavu compatibility. They were then further modified
76 by TLWG for certain aspects:
77 - Latin glyph size compatiblity,
78 - OpenType conformance.
80 This package contains fonts in Type1 format.
82 %description -n fonts-Type1-thai-arundina -l pl.UTF-8
83 Fonty Arundina powstały z inicjatywy SIPA, gdzie celem była zgodność z
84 fontami Bitstream Vera / Dejavu. Następnie zostały zmodyfikowane przez
85 TLWG pod następującym kątem:
86 - zgodność rozmiaru z glifami łacińskimi,
87 - zgodność z OpenType.
89 Ten pakiet zawiera fonty w formacie Type1.
91 %package -n thailatex-fonts-arundina
92 Summary: Thai Arundina fonts for LaTeX
93 Summary(pl.UTF-8): Tajskie fonty Arundina dla LaTeXa
95 Requires(post,postun): texlive
97 Requires: thailatex >= 0.4.7
99 %description -n thailatex-fonts-arundina
100 Arundina fonts were created under SIPA's initiation, aiming at
101 Bitstream Vera / Dejavu compatibility. They were then further modified
102 by TLWG for certain aspects:
103 - Latin glyph size compatiblity,
104 - OpenType conformance.
106 This package contains LaTeX fonts for use with thailatex.
108 %description -n thailatex-fonts-arundina -l pl.UTF-8
109 Fonty Arundina powstały z inicjatywy SIPA, gdzie celem była zgodność z
110 fontami Bitstream Vera / Dejavu. Następnie zostały zmodyfikowane przez
111 TLWG pod następującym kątem:
112 - zgodność rozmiaru z glifami łacińskimi,
113 - zgodność z OpenType.
115 Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex.
118 %setup -q -n fonts-arundina-%{version}
122 %{?with_latex:--enable-latex} \
124 --with-ttfdir=%{_fontsdir}/TTF \
125 --with-type1dir=%{_fontsdir}/Type1
126 %{__make} %{?with_latex:-j1}
129 rm -rf $RPM_BUILD_ROOT
132 DESTDIR=$RPM_BUILD_ROOT \
133 fontconfigdir=%{_datadir}/fontconfig/conf.avail
135 install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
136 %{__mv} $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
137 mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-arundina $RPM_BUILD_ROOT%{_fontsdir}/Type1
140 rm -rf $RPM_BUILD_ROOT
142 %post -n fonts-TTF-thai-arundina
145 %postun -n fonts-TTF-thai-arundina
148 %post -n fonts-Type1-thai-arundina
151 %postun -n fonts-Type1-thai-arundina
154 %post -n thailatex-fonts-arundina
157 %postun -n thailatex-fonts-arundina
160 %files -n fonts-TTF-thai-arundina
161 %defattr(644,root,root,755)
162 %doc AUTHORS COPYING ChangeLog NEWS README
163 %{_fontsdir}/TTF/Arundina*.ttf
164 %{_datadir}/fontconfig/conf.avail/65-arundina.conf
166 %files -n fonts-Type1-thai-arundina
167 %defattr(644,root,root,755)
168 %doc AUTHORS COPYING ChangeLog NEWS README
169 %{_fontsdir}/Type1/Arundina*.pfb
170 %{_fontsdir}/Type1/fonts.scale.thai-arundina
171 %{_fontsdir}/Type1/afm/Arundina*.afm
173 %files -n thailatex-fonts-arundina
174 %defattr(644,root,root,755)
175 %doc AUTHORS COPYING ChangeLog NEWS README
176 %{_datadir}/texmf/fonts/afm/public/fonts-arundina
177 %{_datadir}/texmf/fonts/enc/dvips/fonts-arundina
178 %{_datadir}/texmf/fonts/map/dvips/fonts-arundina
179 %{_datadir}/texmf/fonts/tfm/public/fonts-arundina
180 %{_datadir}/texmf/fonts/type1/public/fonts-arundina
181 %{_datadir}/texmf/fonts/vf/public/fonts-arundina
182 %{_datadir}/texmf/tex/latex/fonts-arundina