1 Summary: TeX to XML translator
2 Summary(pl.UTF-8): Konwerter z TeXa do XML-a
6 License: LaTeX Project Public License
7 Group: Applications/Publishing/TeX
8 Source0: http://www.ctan.org/tex-archive/support/TeX4ht/%{name}-all.zip
9 # Source0-md5: 26eb8df2d6631794b3df0d6fb87a0219
10 Patch0: %{name}-env-giftrans.patch
12 Requires: ghostscript >= 4.03
14 Requires: netpbm-progs
15 Requires: tetex-dvips >= 0.4
16 Requires: tetex-latex >= 0.4
17 # latex2html is required for pstoimg script, that is provided by it
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Program to convert (La)TeX documents to XML, using (La)TeX to process
26 %description -l pl.UTF-8
27 Program do konwertowania dokumentów (La)TeXa do formatu XML przy
28 użyciu (La)TeXa do przetwarzania obrazów i równań.
37 %{__cc} %{rpmldflags} %{rpmcflags} -o tex4ht tex4ht.c -DHAVE_DIRENT_H
38 %{__cc} %{rpmldflags} %{rpmcflags} -o t4ht t4ht.c -DHAVE_DIRENT_H
39 %{__cc} %{rpmldflags} %{rpmcflags} -o htcmd htcmd.c -DHAVE_DIRENT_H
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_datadir},%{_bindir}}
45 install src/{tex4ht,t4ht,htcmd} $RPM_BUILD_ROOT%{_bindir}
46 for f in bin/unix/* ; do
47 cat $f | sed -e 's!~/tex4ht\.dir!%{_datadir}!' |\
48 sed -e 's! -i! -e%{_datadir}/texmf/tex4ht/base/tex4ht.env -i!' |\
49 sed -e 's!## -d.*$!-e%{_datadir}/texmf/tex4ht/base/tex4ht.env!' >$f.tmp
53 for f in bin/unix/oo* ; do
54 sed -e 's!t4ht -f/$1 $4 -coo!t4ht -f/$1 $4 -coo -e%{_datadir}/texmf/tex4ht/base/tex4ht.env!' -i $f;
57 install bin/unix/* $RPM_BUILD_ROOT%{_bindir}
60 mv *.html *.css *.png docs
62 cp -r texmf $RPM_BUILD_ROOT%{_datadir}
63 cd $RPM_BUILD_ROOT%{_datadir}/texmf/tex4ht/base
65 cat unix/tex4ht.env | sed -e 's!~/tex4ht\.dir!%{_datadir}!' | \
66 sed -e 's!path/tex!%{_datadir}!' >./tex4ht.env
71 rm -rf $RPM_BUILD_ROOT
73 %post -p %{_bindir}/mktexlsr
74 %postun -p %{_bindir}/mktexlsr
77 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_bindir}/*
80 %dir %{_datadir}/texmf/tex/generic/tex4ht
81 %{_datadir}/texmf/tex/generic/tex4ht/*.4ht
82 %{_datadir}/texmf/tex/generic/tex4ht/tex4ht.sty
83 %{_datadir}/texmf/tex4ht