Summary: The TeX text formatting system. Name: tetex Version: 1.0.6 Release: 7cs Copyright: distributable Group: Applications/Publishing Requires: tmpwatch, dialog, ed Prereq: /sbin/install-info Source0: ftp://ftp.dante.de/pub/tex/systems/unix/teTeX/1.0/distrib/sources/teTeX-src-1.0.6.tar.gz Source1: ftp://ftp.dante.de/pub/tex/systems/unix/teTeX/1.0/distrib/sources/teTeX-texmf-1.0.tar.bz2 Source2: dvi-to-ps.fpi Source3: ftp://ftp.dante.de/pub/tex/systems/unix/teTeX/1.0/distrib/sources/teTeX-texmfsrc-1.0.tar.bz2 Source10: tetex.cron # Czech modification: begin Source51: ftp://math.feld.cvut.cz/pub/cstex/web2c/csfonts-t1.tar.gz Source52: ftp://math.feld.cvut.cz/pub/cstex/web2c/csfonts.tar.gz Source53: ftp://math.feld.cvut.cz/pub/cstex/web2c/cslatex.tar.gz Source54: ftp://math.feld.cvut.cz/pub/cstex/web2c/csplain.tar.gz Source55: ftp://math.feld.cvut.cz/pub/cstex/web2c/cspsfonts.tar.gz Source61: texmf.cnf-1.0.1 Patch51: web2c-tcx.patch Packager: Milan Kerslager # Czech modification: end Patch0: teTeX-1.0-varconfig.patch Patch2: teTeX-1.0-italian.patch Patch3: teTeX-0.9-arm.patch Patch4: teTeX-1.0-texmfcnf.patch Patch5: teTeX-1.0-fmtutil.patch Patch6: teTeX-texmf-pdftex.diff Patch7: teTeX-texmf-dvipsgeneric.diff URL: http://www.tug.org/teTeX/ BuildRoot: /var/tmp/%{name}-root Requires: tetex-fonts = %{version} Obsoletes: tetex-texmf-src %description TeTeX is an implementation of TeX for Linux or UNIX systems. TeX takes a text file and a set of formatting commands as input and creates a typesetter independent .dvi (DeVice Independent) file as output. Usually, TeX is used in conjunction with a higher level formatting package like LaTeX or PlainTeX, since TeX by itself is not very user-friendly. Install tetex if you want to use the TeX text formatting system. If you are installing tetex, you will also need to install tetex-afm (a PostScript(TM) font converter for TeX), tetex-dvilj (for converting .dvi files to HP PCL format for printing on HP and HP compatible printers), tetex-dvips (for converting .dvi files to PostScript format for printing on PostScript printers), tetex-latex (a higher level formatting package which provides an easier-to-use interface for TeX) and tetex-xdvi (for previewing .dvi files in X). Unless you're an expert at using TeX, you'll also want to install the tetex-doc package, which includes the documentation for TeX. %package latex Summary: The LaTeX front end for the TeX text formatting system. Group: Applications/Publishing Requires: tetex = %{PACKAGE_VERSION} %description latex LaTeX is a front end for the TeX text formatting system. Easier to use than TeX, LaTeX is essentially a set of TeX macros which provide convenient, predefined document formats for users. If you are installing tetex, so that you can use the TeX text formatting system, you will also need to install tetex-latex. In addition, you will need to install tetex-afm (for converting PostScript font description files), tetex-dvilj (for converting .dvi files to HP PCL format for printing on HP and HP compatible printers), tetex-dvips (for converting .dvi files to PostScript format for printing on PostScript printers) and tetex-xdvi (for previewing .dvi files in X). If you're not an expert at TeX, you'll probably also want to install the tetex-doc package, which contains documentation for TeX. %package xdvi Summary: An X viewer for DVI files. Group: Applications/Publishing Requires: tetex-fonts = %{version} %description xdvi Xdvi allows you to preview the TeX text formatting system's output .dvi files on an X Window System. If you are installing tetex, so that you can use the TeX text formatting system, you will also need to install tetex-xdvi. In addition, you will need to install tetex-afm (a PostScript font converter for TeX), tetex-dvilj (for converting .dvi files to HP PCL format for printing on HP and HP compatible printers), tetex-dvips (for converting .dvi files to PostScript format for printing on PostScript printers), and tetex-latex (a higher level formatting package which provides an easier-to-use interface for TeX). If you're not a TeX expert, you'll probably also want to install the tetex-doc package, which contains documentation for the TeX text formatting system. %package dvips Summary: A DVI to PostScript converter for the TeX text formatting system. Group: Applications/Publishing Requires: tetex = %{PACKAGE_VERSION} %description dvips Dvips converts .dvi files produced by the TeX text formatting system (or by another processor like GFtoDVI) to PostScript(TM) format. Normally the PostScript file is sent directly to your printer. If you are installing tetex, so that you can use the TeX text formatting system, you will also need to install tetex-dvips. In addition, you will need to install tetex-afm (for converting PostScript font description files), tetex-dvilj (for converting .dvi files to HP PCL format for printing on HP and HP compatible printers), tetex-latex (a higher level formatting package which provides an easier-to-use interface for TeX) and tetex-xdvi (for previewing .dvi files in X). If you're installing TeX and you're not an expert at it, you'll also want to install the tetex-doc package, which contains documentation for the TeX system. %package dvilj Summary: A DVI to HP PCL (Printer Control Language) converter. Group: Applications/Publishing Requires: tetex = %{PACKAGE_VERSION} %description dvilj Dvilj and dvilj's siblings (included in this package) will convert TeX text formatting system output .dvi files to HP PCL (HP Printer Control Language) commands. Using dvilj, you can print TeX files to HP LaserJet+ and fully compatible printers. With dvilj2p, you can print to HP LaserJet IIP and fully compatible printers. And with dvilj4, you can print to HP LaserJet4 and fully compatible printers. If you are installing tetex, so that you can use the TeX text formatting system, you will also need to install tetex-dvilj. In addition, you will need to install tetex-afm (for converting PostScript font description files), tetex-dvips (for converting .dvi files to PostScript format for printing on PostScript printers), tetex-latex (a higher level formatting package which provides an easier-to-use interface for TeX) and tetex-xdvi (for previewing .dvi files in X). If you're installing TeX and you're not a TeX expert, you'll also want to install the tetex-doc package, which contains documentation for TeX. %package afm Summary: A converter for PostScript(TM) font metric files, for use with TeX. Group: Applications/Publishing Requires: tetex = %{PACKAGE_VERSION} %description afm Tetex-afm provides afm2tfm, a converter for PostScript font metric files. PostScript fonts are accompanied by .afm font metric files which describe the characteristics of each font. To use PostScript fonts with TeX, TeX needs .tfm files that contain similar information. Afm2tfm will convert .afm files to .tfm files. If you are installing tetex in order to use the TeX text formatting system, you will need to install tetex-afm. You will also need to install tetex-dvilj (for converting .dvi files to HP PCL format for printing on HP and HP compatible printers), tetex-dvips (for converting .dvi files to PostScript format for printing on PostScript printers), tetex-latex (a higher level formatting package which provides an easier-to-use interface for TeX) and tetex-xdvi (for previewing .dvi files in X). Unless you're an expert at using TeX, you'll probably also want to install the tetex-doc package, which includes documentation for TeX. %package fonts Summary: The font files for the TeX text formatting system. Group: Applications/Publishing %description fonts The tetex-fonts package contains fonts used by both the Xdvi previewer and the TeX text formatting system. You will need to install tetex-fonts if you wish to use either tetex-xdvi (for previewing .dvi files in X) or the tetex package (the core of the TeX text formatting system). %package doc Summary: The documentation files for the TeX text formatting system. Group: Applications/Publishing %description doc The tetex-doc package contains documentation for the TeX text formatting system. If you want to use TeX and you're not an expert at it, you should install the tetex-doc package. You'll also need to install the tetex package, tetex-afm (a PostScript font converter for TeX), tetex-dvilj (for converting .dvi files to HP PCL format for printing on HP and HP compatible printers), tetex-dvips (for converting .dvi files to PostScript format for printing on PostScript printers), tetex-latex (a higher level formatting package which provides an easier-to-use interface for TeX) and tetex-xdvi (for previewing .dvi files). %prep %setup -q -n teTeX-1.0 %patch0 -p1 -b .rhconfig %patch3 -p1 -b .arm %patch5 -p1 -b .fmtutil %patch51 -p1 mkdir texmf bunzip2 -c %{SOURCE1} | tar xf - -C texmf %patch2 -p1 %patch4 -p1 -b .texmfcnf %patch6 -p1 %patch7 -p1 # Czech modification: begin tar xzvf %{SOURCE51} tar xzvf %{SOURCE52} tar xzvf %{SOURCE53} tar xzvf %{SOURCE54} tar xzvf %{SOURCE55} # Czech modification: end %build sh ./reautoconf # Czech modification: begin # Czech hacks # Uncomment Czech hyphenation patterns for babel ( cd ${RPM_BUILD_ROOT}/usr/share/texmf/tex/generic/config; sed -e"s/^%czech/czech/" language.dat >language.dat.new; mv -f language.dat.new language.dat; ) # to CFLAG below add: --with-fonts-dir=/var/lib/texmf --enable-a4 # Czech modification: end CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \ --with-system-ncurses --with-system-zlib --with-system-pnglib \ --disable-multiplatform --without-dialog --without-texinfo \ --datadir=/usr/share --with-fonts-dir=/var/lib/texmf --enable-a4 \ $RPM_ARCH-redhat-linux make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/share/texmf mkdir -p $RPM_BUILD_ROOT/var/lib/texmf tar cf - texmf | tar xf - -C $RPM_BUILD_ROOT/usr/share make install prefix=$RPM_BUILD_ROOT/usr \ texmf=$RPM_BUILD_ROOT/usr/share/texmf \ texmfmain=$RPM_BUILD_ROOT/usr/share/texmf # Czech modification: begin rm -f ${RPM_BUILD_ROOT}/usr/share/texmf/web2c/texmf.cnf install -m 644 %{SOURCE61} ${RPM_BUILD_ROOT}/usr/share/texmf/web2c/texmf.cnf LD_LIBRARY_PATH=${RPM_BUILD_ROOT}/usr/lib PATH=$PATH:$RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT/usr/bin/texconfig init # Czech modification: end rm -f $RPM_BUILD_ROOT/usr/info/dir gzip -9nf $RPM_BUILD_ROOT/usr/info/*info* # install the new magic print filter for converting dvi to ps mkdir -p $RPM_BUILD_ROOT/usr/lib/rhs/rhs-printfilters install -m755 $RPM_SOURCE_DIR/dvi-to-ps.fpi $RPM_BUILD_ROOT/usr/lib/rhs/rhs-printfilters mkdir -p $RPM_BUILD_ROOT/etc/cron.daily install -m755 $RPM_SOURCE_DIR/tetex.cron $RPM_BUILD_ROOT/etc/cron.daily # Strip binaries strip $RPM_BUILD_ROOT/usr/bin/* || : # Czech modification: begin # We want cs formats echo "" >> ${RPM_BUILD_ROOT}/usr/share/texmf/web2c/fmtutil.cnf echo "# - czech/slovak:" >> ${RPM_BUILD_ROOT}/usr/share/texmf/web2c/fmtutil.cnf echo "csplain tex - csplain.ini" >> ${RPM_BUILD_ROOT}/usr/share/texmf/web2c/fmtutil.cnf echo "cslatex tex language.dat cslatex.ini" >> ${RPM_BUILD_ROOT}/usr/share/texmf/web2c/fmtutil.cnf echo "pdfcsplain pdftex - csplain.ini" >> ${RPM_BUILD_ROOT}/usr/share/texmf/web2c/fmtutil.cnf echo "pdfcslatex pdftex language.dat cslatex.ini" >> ${RPM_BUILD_ROOT}/usr/share/texmf/web2c/fmtutil.cnf # Regenerate formats LD_LIBRARY_PATH=${RPM_BUILD_ROOT}/usr/lib \ PATH=${RPM_BUILD_ROOT}/usr/bin:${PATH} \ TEXMFMAIN=${RPM_BUILD_ROOT}/usr/share/texmf \ texconfig init (cd ${RPM_BUILD_ROOT}/usr/bin rm -f csplain cslatex pdfcsplain pdfcslatex; for fmt in csplain cslatex ; do cat <<_END_ >$fmt #!/bin/sh exec tex -fmt $fmt --default-translate-file=il2-cs.tcx \$* _END_ done; for fmt in pdfcsplain pdfcslatex ; do cat <<_END_ >$fmt #!/bin/sh exec pdftex -fmt $fmt --default-translate-file=il2-cs.tcx \$* _END_ done; chmod +x csplain cslatex pdfcsplain pdfcslatex; ) (cd ${RPM_BUILD_ROOT}/usr/share/texmf/pdftex/config; echo "map +csfonts.map" >> pdftex.cfg ) # Czech modification: end ### Files list find $RPM_BUILD_ROOT -type f -or -type l | \ sed -e "s|$RPM_BUILD_ROOT||g" | \ grep -v "^/etc" | grep -v ".orig$" | \ sed -e "s|.*\.cnf$|%config &|" \ -e "s|/usr/share/texmf/dvips/config/config.ps|%config &|" \ -e "s|/usr/share/texmf/xdvi/XDvi|%config &|" > filelist.full # subpackages grep -v "/doc/" filelist.full | grep latex > filelist.latex # XXX move /usr/bin/mfw to tetex-xdvi to remove tetex dependence on XFree86. grep -v "/doc/" filelist.full | grep xdvi | \ grep -v "/usr/share/texmf/tex" > filelist.xdvi echo "/usr/bin/mfw" >> filelist.xdvi grep -v "/doc/" filelist.full | grep dvips | \ grep -v "/usr/share/texmf/tex" > filelist.dvips echo "/usr/bin/dvired" >> filelist.dvips >> filelist.dvips echo "/usr/bin/dvi2fax" >> filelist.dvips >> filelist.dvips echo "/usr/lib/rhs/rhs-printfilters/dvi-to-ps.fpi" >> filelist.dvips grep -v "/doc/" filelist.full | grep dvilj | \ grep -v "/usr/share/texmf/tex/latex" > filelist.dvilj grep -v "/doc/" filelist.full | grep -v afm | \ grep "/usr/share/texmf/fonts" | \ grep -v "/usr/share/texmf/fonts/source" > filelist.fonts grep -v "/doc/" filelist.full | grep afm > filelist.afm grep "/doc/" filelist.full > filelist.doc # now files listed only once are in the main package cat filelist.full filelist.latex filelist.xdvi filelist.dvips \ filelist.dvilj filelist.afm filelist.fonts filelist.doc | \ sort | uniq -u > filelist.main #wmconfig things mkdir -p $RPM_BUILD_ROOT/etc/X11/wmconfig cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/xdvi < $RPM_BUILD_ROOT/etc/X11/applnk/Graphics/xdvi.desktop < /dev/null exit 0 %post latex /sbin/install-info /usr/info/latex.info.gz /usr/info/dir [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %post xdvi [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %post dvips /sbin/install-info /usr/info/dvips.info.gz /usr/info/dir [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %post dvilj [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %post fonts [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %post afm [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun latex [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun xdvi [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun dvips [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun dvilj [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun fonts [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun afm [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %preun if [ "$1" = 0 ]; then /sbin/install-info --delete /usr/info/kpathsea.info.gz /usr/info/dir /sbin/install-info --delete /usr/info/web2c.info.gz /usr/info/dir fi %preun dvips if [ "$1" = 0 ]; then /sbin/install-info --delete /usr/info/dvips.info.gz /usr/info/dir fi %preun latex if [ "$1" = 0 ]; then /sbin/install-info --delete /usr/info/latex.info.gz /usr/info/dir fi %files -f filelist.main %defattr(-,root,root) %attr(1777,root,root) %dir /var/lib/texmf %config /etc/cron.daily/tetex.cron %files -f filelist.latex latex %defattr(-,root,root) %files -f filelist.xdvi xdvi %defattr(-,root,root) %config /etc/X11/wmconfig/xdvi %config /etc/X11/applnk/Graphics/xdvi.desktop %files -f filelist.dvips dvips %defattr(-,root,root) %files -f filelist.dvilj dvilj %defattr(-,root,root) %files -f filelist.fonts fonts %defattr(-,root,root) %files -f filelist.afm afm %defattr(-,root,root) %files -f filelist.doc doc %defattr(-,root,root) %changelog * Sun Oct 3 1999 Milan Kerslager - cs patches to spec file * Fri Sep 3 1999 Jeff Johnson - mark /usr/share/texmf/dvips/config/config.ps as %config (#4842). * Fri Sep 3 1999 Jeff Johnson - Create tetex-fonts to remove dependendency of xdvi on main tetex package. * Mon Aug 30 1999 Jeff Johnson - Integrate Giuseppe's latest. Thanks for the fixes! * Thu Aug 26 1999 Giuseppe Ghibò - fine tuning subpackage package list. - added teTeX dependence to package xdvi (it cannot works without fonts). * Wed Aug 25 1999 Giuseppe Ghibò - cleaned %clean. Now spec file support buildroot. - added support for 'resolution' in dvi-to-ps.fpi as well as the config.generic file. - fixed a problem in manpage links (reported by Dusan Gabrijelcic ). * Tue Aug 17 1999 Jeff Johnson - move /usr/bin/mfw to tetex-xdvi to remove tetex dependence on XFree86. * Sun Aug 15 1999 Jeff Johnson - rebuild with VARTEXFONTS configured correctly. * Thu Aug 12 1999 Jeff Johnson - update to 1.0.6. - merge in Giuseppe Ghibò changes from mandrake package. - dvi-to-ps.fpi: read postcript configuration settings (#3379). * Wed Aug 04 1999 Giuseppe Ghibò - fixed VARTEXFONTS path in config file. * Sat Jun 26 1999 Giuseppe Ghibò - mandrake adaptions. - speed up TEXMFCNF path. * Fri Jun 25 1999 Giuseppe Ghibò - fixed new bugs reported by Thomas Esser (included patch 1.0.5-1.0.6-pre). - added amstex, bamstex and bplain to the list of format files to build. * Wed Jun 23 1999 Giuseppe Ghibò - fixed and removed unneeded things in teTeX-1.0-texmfcnf.patch, according to Thomas Esser suggestions. * Sun Jun 20 1999 Giuseppe Ghibò - upgraded to teTeX 1.0.5. - merged .spec file with Jeff Johnson's 1.0.1 .spec file from rawhide. * Sun Jun 13 1999 Giuseppe Ghibò - upgraded to teTeX 1.0 final. - removed texmf.cnf external config file, and provided as patch. - removed ``texconfig init'' (now it's included into 'make install'). - moved texmf unpacking to buildroot before 'make install'. - added italian hyphenation. * Tue Jun 8 1999 Jeff Johnson - upgrade to 1.0.1. - add buildroot translated texmfmain for install (#1719) - mark /usr/share/texmf/xdvi/XDvi as %config (#1067) - generate texmf.cnf and then merge in old conventions * Thu Jun 03 1999 Kayvan A. Sylvan - upgraded snapshot - Fixed PATH setting for ``texconfig init''. As it was, you could not build a working teTeX on a machine with tetex installed. * Thu Apr 01 1999 Cristian Gafton - upgraded snapshot * Tue Mar 23 1999 Erik Troan - set limits for jadetex * Tue Mar 23 1999 Cristian Gafton - I think I have got the buildroot problems right this time - auto rebuild in the new build environment (release 15) * Fri Mar 19 1999 Cristian Gafton - fix buildroot problems * Mon Mar 15 1999 Michael Maher - fixed BUG: 978 * Thu Mar 11 1999 Cristian Gafton - slight changes in the packaging (unpack texmf directly into the buildroot and build it there) - added texmfsrc source tarball to comply with the license * Mon Mar 07 1999 Michael Maher - updated package * Mon Jan 11 1999 Cristian Gafton - add patch to make it compile on the arm (RmS) - build for glibc 2.1 - use tar hack instead of the cp -a to overcome cp's brokeness re: symlinks handling * Sat Oct 10 1998 Cristian Gafton - strip binaries - enable italian formatting * Mon Oct 05 1998 Cristian Gafton - requires ed - Fixed obsoletes line - credted the doc subpackage - fully buildroot - require dialog in the main package - add support for wmconfig in for the xdvi package * Fri Sep 11 1998 Cristian Gafton - upgrade to 0.9 - texmf-src package is gone - use /var/lib/texmf instead of /var/tmp/texmf * Sat Aug 22 1998 Jeff Johnson - make sub-packages depend on teTeX (problem #214) * Fri Aug 21 1998 Jeff Johnson - eliminate environment when running texhash (problem #849) * Mon Aug 17 1998 Jeff Johnson - build root * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Thu Feb 5 1998 Otto Hammersmith - added install-info support (dvips, fontname and kpathsea) - combined the two changelogs in the spec file. * Tue Oct 14 1997 Michael Fulbright - Fixed dvi-to-ps.fpi to create temp files more safely. * Thu Jul 10 1997 Erik Troan - built against glibc * Tue Apr 8 1997 Michael Fulbright - Removed afmdoit from file list (mistakenly added in release 3 rpm) * Mon Mar 24 1997 Michael Fulbright - Upgraded to tetex-lib to 0.4pl8 and fixed cron tmpwatch entry to not delete /var/lib/texmf/fonts and /var/lib/texmf/texfonts * Fri Mar 07 1997 Michael Fulbright - Upgraded to 0.4pl7. * Mon Feb 17 1997 Michael Fulbright - Upgraded to 0.4pl6, and fixed file permissions on /var/lib/texmf/texfonts so normal users could create fonts on demand.