1 Summary: An extension of TeX (and LaTeX/ConTeXt) with Unicode and OpenType support
2 Summary(pl.UTF-8): Rozszerzenie TeXa (i LaTeXa/ConTeXtu) wspierające Unicode i OpenType
7 Group: Applications/Publishing/TeX
8 Source0: http://scripts.sil.org/svn-view/xetex/TAGS/%{name}-%{version}.tar.gz
9 # Source0-md5: 2f1f09337e22e0fb42d9caed225d6052
10 # http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=xetex_doc_094&filename=XeTeX_doc.zip
11 Source1: XeTeX_doc.zip
12 # Source1-md5: 46946f4092eaced3a634c20522b58b8e
13 Patch0: %{name}-discretionary.patch
14 URL: http://scripts.sil.org/xetex
17 BuildRequires: fontconfig-devel >= 1:2.3
18 BuildRequires: tetex >= 1:3.0-7
19 BuildRequires: tetex-latex
20 BuildRequires: tetex-plain
22 Requires(post,preun,postun): tetex
25 %requires_eq tetex-latex
26 Requires: tetex-fonts-opentype-lmodern
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define texmf %{_datadir}/texmf
31 %define texmfvar /var/lib/texmf
34 XeTeX extends the TeX typesetting system (and macro packages such as
35 LaTeX and ConTeXt) to have native support for the Unicode character
36 set, including complex Asian scripts, and for OpenType and TrueType
39 %description -l pl.UTF-8
40 XeTeX rozszerza system składu TeX (i systemy makr, takie jak LaTeX
41 i ConTeXt) o natywne wsparcie zestawu znaków Unicode, w tym alfabety
42 azjatyckie wymagające specjalnego traktowania, i o fonty OpenType
53 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_bindir}
56 install Work/texk/web2c/xetex $RPM_BUILD_ROOT%{_bindir}
57 ln -s xetex $RPM_BUILD_ROOT%{_bindir}/xelatex
59 install -d $RPM_BUILD_ROOT%{_datadir}
60 cp -a texmf $RPM_BUILD_ROOT%{_datadir}
61 rm $RPM_BUILD_ROOT%{texmf}/doc/xetex/xetexref.pdf # a 24-byte text file
62 install Documentation/XeTeX-notes.pdf $RPM_BUILD_ROOT%{texmf}/doc/xetex
64 install -d $RPM_BUILD_ROOT%{texmf}/web2c
65 install Work/texk/web2c/xetex.pool $RPM_BUILD_ROOT%{texmf}/web2c
67 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 install Samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 cat >fmtutil.cnf <<EOF
71 xetex xetex - *xetex.ini
72 xelatex xetex language.dat *xelatex.ini
74 cat >language.dat <<EOF
92 % ukrainian ukrhyph.tex
93 nohyphenation zerohyph.tex
95 PATH=$RPM_BUILD_ROOT%{_bindir}:$PATH \
96 TEXMFHOME=$RPM_BUILD_ROOT%{texmf} \
97 TEXMFSYSVAR=$RPM_BUILD_ROOT%{texmfvar} \
98 TEXMFSYSCONFIG=$RPM_BUILD_ROOT%{texmf} \
99 fmtutil-sys --cnffile fmtutil.cnf --all
102 rm -rf $RPM_BUILD_ROOT
107 fmtutil_cnf=`kpsewhich --format="web2c files" fmtutil.cnf`
108 if ! grep -q xetex $fmtutil_cnf; then
109 cat >>$fmtutil_cnf <<-EOF
112 xetex xetex - *xetex.ini
113 xelatex xetex language.dat *xelatex.ini
118 for f in xetex xelatex; do
119 fmtutil-sys --enablefmt $f
123 if [ "$1" = 0 ]; then
124 for f in xetex xelatex; do
125 [ ! -x %{_bindir}/fmtutil-sys ] || fmtutil-sys --disablefmt $f
130 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/xe*tex
135 %doc %{texmf}/doc/generic/ifxetex
136 %doc %{texmf}/doc/xe*tex
138 %{texmf}/scripts/xetex
139 # tetex doesn't include texmfsrc: %{texmf}/source/xelatex
140 # conflicts with tetex: %{texmf}/tex/generic/hyphen/*
141 %{texmf}/tex/generic/ifxetex
142 %{texmf}/tex/generic/xetex
144 %{texmf}/web2c/xetex.pool
145 %config(noreplace) %verify(not md5 mtime size) %{texmfvar}/web2c/xe*tex.fmt
146 %{_examplesdir}/%{name}-%{version}