]> git.pld-linux.org Git - SPECS.git/blob - xetex.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / xetex.spec
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
3 Name:           xetex
4 Version:        0.996
5 Release:        3
6 License:        X11 license
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
15 BuildRequires:  bison
16 BuildRequires:  flex
17 BuildRequires:  fontconfig-devel >= 1:2.3
18 BuildRequires:  tetex >= 1:3.0-7
19 BuildRequires:  tetex-latex
20 BuildRequires:  tetex-plain
21 BuildRequires:  unzip
22 Requires(post,preun,postun):    tetex
23 Requires:       fontconfig
24 %requires_eq    tetex
25 %requires_eq    tetex-latex
26 Requires:       tetex-fonts-opentype-lmodern
27 Requires:       xdvipdfmx
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define texmf           %{_datadir}/texmf
31 %define texmfvar        /var/lib/texmf
32
33 %description
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
37 fonts.
38
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
43 i TrueType.
44
45 %prep
46 %setup -q -a1
47 %patch0 -p1
48
49 %build
50 sh ./build-xetex
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
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
58
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
63
64 install -d $RPM_BUILD_ROOT%{texmf}/web2c
65 install Work/texk/web2c/xetex.pool $RPM_BUILD_ROOT%{texmf}/web2c
66
67 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 install Samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
69
70 cat >fmtutil.cnf <<EOF
71 xetex   xetex   -       *xetex.ini
72 xelatex xetex   language.dat    *xelatex.ini
73 EOF
74 cat >language.dat <<EOF
75 american        ushyph1.tex
76 =english
77 ngerman         dehyphn.tex
78 =naustrian
79 german          dehypht.tex
80 =austrian
81 croatian        hrhyph.tex
82 % czech         czhyph.tex
83 danish          dkhyphen.tex
84 irish           gahyph.tex
85 magyar          huhyph.tex
86 polish          plhyph.tex
87 romanian        rohyphen.tex
88 russian         ruhyphen.tex
89 % slovak        skhyph.tex
90 slovene         sihyph23.tex
91 turkish         trhyph.tex
92 % ukrainian     ukrhyph.tex
93 nohyphenation   zerohyph.tex
94 EOF
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
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post
105 texhash
106
107 fmtutil_cnf=`kpsewhich --format="web2c files" fmtutil.cnf`
108 if ! grep -q xetex $fmtutil_cnf; then
109         cat >>$fmtutil_cnf <<-EOF
110
111         # XeTeX formats
112         xetex   xetex   -       *xetex.ini
113         xelatex xetex   language.dat    *xelatex.ini
114
115         EOF
116 fi
117
118 for f in xetex xelatex; do
119         fmtutil-sys --enablefmt $f
120 done
121
122 %preun
123 if [ "$1" = 0 ]; then
124         for f in xetex xelatex; do
125                 [ ! -x %{_bindir}/fmtutil-sys ] || fmtutil-sys --disablefmt $f
126         done
127 fi
128
129 %postun
130 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash
131
132 %files
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
137 %{texmf}/fonts/misc
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
143 %{texmf}/tex/xe*tex
144 %{texmf}/web2c/xetex.pool
145 %config(noreplace) %verify(not md5 mtime size) %{texmfvar}/web2c/xe*tex.fmt
146 %{_examplesdir}/%{name}-%{version}
This page took 0.876285 seconds and 3 git commands to generate.