From 0e364b0ecbbf417049dcf6b9be223362adccdfdd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:27:44 +0100 Subject: [PATCH] update to 20130530 texlive: require texi2html texlive-fonts: require(post) texlive [release 20130530-1mamba;Mon Aug 19 2013] --- README.md | 2 + texlive-fonts.conf | 9 + texlive-texmf.cnf-openmamba | 763 +++++++++++++++++++++++++++++ texlive.spec | 922 ++++++++++++++++++++++++++++++++++++ 4 files changed, 1696 insertions(+) create mode 100644 texlive-fonts.conf create mode 100644 texlive-texmf.cnf-openmamba create mode 100644 texlive.spec diff --git a/README.md b/README.md index 820c253..5129b93 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # texlive +The TeX Live package is a comprehensive TeX document production system. It includes TEX, LaTeX2e, ConTEXt, Metafont, MetaPost, BibTeX and many other programs; an extensive collection of macros, fonts and documentation; and support for typesetting in many different scripts from around the world. + diff --git a/texlive-fonts.conf b/texlive-fonts.conf new file mode 100644 index 0000000..f870fbd --- /dev/null +++ b/texlive-fonts.conf @@ -0,0 +1,9 @@ + + + + /usr/share/texmf-dist/fonts/opentype + /usr/share/texmf-dist/fonts/truetype + /usr/local/share/texmf/fonts/opentype + /usr/local/share/texmf/fonts/truetype + + diff --git a/texlive-texmf.cnf-openmamba b/texlive-texmf.cnf-openmamba new file mode 100644 index 0000000..935d3bd --- /dev/null +++ b/texlive-texmf.cnf-openmamba @@ -0,0 +1,763 @@ +% texmf.cnf for openmamba GNU/Linu -- runtime path configuration file for kpathsea. +% Public domain. +% +% If you modify this original file, YOUR CHANGES WILL BE LOST when it is +% updated. Instead, put your changes -- and only your changes, not an +% entire copy of the full texmf.cnf! -- in ../../texmf.cnf. That is, if +% this file is installed in /some/path/to/texlive/2012/texmf/web2c/texmf.cnf, +% add your custom settings to /some/path/to/texlive/2012/texmf.cnf. +% +% What follows is a super-summary of what this .cnf file can +% contain. Please read the Kpathsea manual for more information. +% +% Any identifier (sticking to A-Za-z_ for names is safest) can be assigned. +% The `=' (and surrounding spaces) is optional. +% $foo (or ${foo}) in a value expands to the envvar or cnf value of foo. +% Long lines can be continued with a \. +% +% Earlier entries (in the same or another file) override later ones, and +% an environment variable foo overrides any texmf.cnf definition of foo. +% +% All definitions are read before anything is expanded, so you can use +% variables before they are defined. +% +% If a variable assignment is qualified with `.PROGRAM', it is ignored +% unless the current executable (last filename component of argv[0]) is +% named PROGRAM. This foo.PROGRAM construct is not recognized on the +% right-hand side. For environment variables, use FOO_PROGRAM. +% +% Which file formats use which paths for searches is described in the +% various programs' and the Kpathsea documentation (http://tug.org/kpathsea). +% +% // means to search subdirectories (recursively). +% A leading !! means to look only in the ls-R db, never on the disk. +% In this file, either ; or : can be used to separate path components. +% A leading/trailing/doubled path separator in the paths will be +% expanded into the compile-time default. Probably not what you want. +% +% Brace notation is supported, for example: /usr/local/{mytex,othertex} +% expands to /usr/local/mytex:/usr/local/othertex. We make extensive +% use of this. + + +% Part 1: Search paths and directories. + +% This is the parent directory of our several trees, i.e., +% /usr/local/texlive/YYYY in the original TeX Live distribution. +% +% All trees must be organized according to the TeX Directory Structure +% (http://tug.org/tds), or files may not be found. +% +% Redistributors will probably want $SELFAUTODIR/share, i.e., /usr/share. +% Kpathsea sets SELFAUTOLOC (the directory with the binary), +% SELFAUTODIR (its parent), and SELFAUTOPARENT (its grandparent). +TEXMFROOT = $SELFAUTODIR/share + +% The tree containing runtime files related to the specific +% distribution and version. +TEXMFMAIN = $TEXMFROOT/texmf-dist + +% The main tree of packages, distribution-agnostic: +TEXMFDIST = $TEXMFROOT/texmf-dist + +% Local additions to the distribution trees. +TEXMFLOCAL = /usr/local/share/texmf + +% TEXMFSYSVAR, where *-sys store cached runtime data. +TEXMFSYSVAR = /var/lib/texmf + +% TEXMFSYSCONFIG, where *-sys store configuration data. +TEXMFSYSCONFIG = /etc/texmf + +% Per-user texmf tree(s) -- organized per the TDS, as usual. To define +% more than one per-user tree, set this to a list of directories in +% braces, as described above. (This used to be HOMETEXMF.) ~ expands +% to %USERPROFILE% on Windows, $HOME otherwise. +TEXMFHOME = ~/texmf + +% TEXMFVAR, where texconfig/updmap/fmtutil store cached runtime data. +TEXMFVAR = ~/.texlive/texmf-var + +% TEXMFCONFIG, where texconfig/updmap/fmtutil store configuration data. +TEXMFCONFIG = ~/.texlive/texmf-config + +% List all the texmf trees. +% +% For texconfig to work properly, TEXMFCONFIG and TEXMFVAR should be named +% explicitly and before all other trees. +% +% TEXMFLOCAL follows TEXMFMAIN (and precedes TEXMFDIST) because the +% files in TEXMFMAIN are tightly coupled with the particular version of +% the distribution, such as configuration files. Overriding them would +% be more likely to cause trouble than help. On the other hand, the +% bulk of packages and fonts are in TEXMFDIST, and locally-installed +% versions should take precedence over those -- although it is generally +% a source of confusion to have different versions of a package +% installed, whatever the trees, so try to avoid it. +TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST} + +% Where to look for ls-R files. There need not be an ls-R in the +% directories in this path, but if there is one, Kpathsea will use it. +% By default, this is only the !! elements of TEXMF, so that mktexlsr +% does not create ls-R files in the non-!! elements -- because if an +% ls-R is present, it will be used, and the disk will not be searched. +% This is arguably a bug in kpathsea. +TEXMFDBS = {!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST} + +% The system trees. These are the trees that are shared by all users. +% If a tree appears in this list, the mktex* scripts will use +% VARTEXFONTS for generated files, if the original tree isn't writable; +% otherwise the current working directory is used. +SYSTEXMF = $TEXMFSYSVAR;$TEXMFMAIN;$TEXMFLOCAL;$TEXMFDIST + +% Where generated fonts may be written. This tree is used when the sources +% were found in a system tree and either that tree wasn't writable, or the +% varfonts feature was enabled in MT_FEATURES in mktex.cnf. +VARTEXFONTS = $TEXMFVAR/fonts + +% On some systems, there will be a system tree which contains all the font +% files that may be created as well as the formats. For example +% TEXMFVAR = /var/lib/texmf +% is used in many distros. In this case, set VARTEXFONTS like this +%VARTEXFONTS = $TEXMFVAR/fonts +% and do not mention it in TEXMFDBS (but _do_ mention TEXMFVAR). +% +% Remove $VARTEXFONTS from TEXMFDBS if the VARTEXFONTS directory is below +% one of the TEXMF directories (avoids overlapping ls-R files). + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Usually you will not need to edit any of the following variables. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% WEB2C is for Web2C specific files. The current directory may not be +% a good place to look for them. +WEB2C = $TEXMF/web2c + +% TEXINPUTS is for TeX input files -- i.e., anything to be found by \input +% or \openin, including .sty, .eps, etc. We specify paths for all known +% formats, past or present. Not all of them are built these days. + +% Plain TeX. Have the command tex check all directories as a last +% resort, we may have plain-compatible stuff anywhere. +TEXINPUTS.tex = .;$TEXMF/tex/{plain,generic,}// + +% Fontinst needs to read afm files. +TEXINPUTS.fontinst = .;$TEXMF/{tex,fonts/afm}// + +% Other plain-based formats. +TEXINPUTS.amstex = .;$TEXMF/tex/{amstex,plain,generic,}// +TEXINPUTS.csplain = .;$TEXMF/tex/{csplain,plain,generic,}// +TEXINPUTS.eplain = .;$TEXMF/tex/{eplain,plain,generic,}// +TEXINPUTS.ftex = .;$TEXMF/tex/{formate,plain,generic,}// +TEXINPUTS.mex = .;$TEXMF/tex/{mex,plain,generic,}// +TEXINPUTS.texinfo = .;$TEXMF/tex/{texinfo,plain,generic,}// + +% LaTeX 2e specific macros are stored in latex/, macros that can only be +% used with 2.09 in latex209/. In addition, we look in the directory +% latex209, useful for macros that were written for 2.09 and do not +% mention 2e at all, but can be used with 2e. +TEXINPUTS.cslatex = .;$TEXMF/tex/{cslatex,csplain,latex,generic,}// +TEXINPUTS.latex = .;$TEXMF/tex/{latex,generic,}// +TEXINPUTS.latex209 = .;$TEXMF/tex/{latex209,generic,latex,}// +TEXINPUTS.olatex = .;$TEXMF/tex/{latex,generic,}// + +% MLTeX. +TEXINPUTS.frlatex = .;$TEXMF/tex/{french,latex,generic,}// +TEXINPUTS.frtex = .;$TEXMF/tex/{french,plain,generic,}// +TEXINPUTS.mllatex = .;$TEXMF/tex/{latex,generic,}// +TEXINPUTS.mltex = .;$TEXMF/tex/{plain,generic,}// + +% e-TeX. +TEXINPUTS.elatex = .;$TEXMF/tex/{latex,generic,}// +TEXINPUTS.etex = .;$TEXMF/tex/{plain,generic,}// + +% pdfTeX. +TEXINPUTS.pdfcslatex = .;$TEXMF/tex/{cslatex,csplain,latex,generic,}// +TEXINPUTS.pdfcsplain = .;$TEXMF/tex/{csplain,plain,generic,}// +TEXINPUTS.pdflatex = .;$TEXMF/tex/{latex,generic,}// +TEXINPUTS.pdfmex = .;$TEXMF/tex/{mex,plain,generic,}// +TEXINPUTS.utf8mex = .;$TEXMF/tex/{mex,plain,generic,}// +TEXINPUTS.pdftex = .;$TEXMF/tex/{plain,generic,}// +TEXINPUTS.pdftexinfo = .;$TEXMF/tex/{texinfo,plain,generic,}// +TEXINPUTS.pdfamstex = .;$TEXMF/tex/{amstex,plain,generic,}// + +% pdfeTeX. +TEXINPUTS.pdfelatex = .;$TEXMF/tex/{latex,generic,}// +TEXINPUTS.pdfetex = .;$TEXMF/tex/{plain,generic,}// + +% pdfxTeX. +TEXINPUTS.pdfxlatex = .;$TEXMF/tex/{latex,generic,}// +TEXINPUTS.pdfxmex = .;$TEXMF/tex/{mex,plain,generic,}// +TEXINPUTS.pdfxtex = .;$TEXMF/tex/{plain,generic,}// + +% LuaTeX. +TEXINPUTS.lualatex = .;$TEXMF/tex/{lualatex,latex,luatex,generic,}// +TEXINPUTS.luatex = .;$TEXMF/tex/{luatex,plain,generic,}// +TEXINPUTS.dvilualatex = .;$TEXMF/tex/{lualatex,latex,luatex,generic,}// +TEXINPUTS.dviluatex = .;$TEXMF/tex/{luatex,plain,generic,}// + +% XeTeX. +TEXINPUTS.xelatex = .;$TEXMF/tex/{xelatex,latex,xetex,generic,}// +TEXINPUTS.xeplain = .;$TEXMF/tex/{xeplain,eplain,plain,xetex,generic,}// +TEXINPUTS.xetex = .;$TEXMF/tex/{xetex,plain,generic,}// + +% Omega / Aleph. +TEXINPUTS.aleph = .;$TEXMF/tex/{plain,generic,}// +TEXINPUTS.elambda = .;$TEXMF/tex/{lambda,latex,generic,}// +TEXINPUTS.eomega = .;$TEXMF/tex/{plain,generic,}// +TEXINPUTS.lambda = .;$TEXMF/tex/{lambda,latex,generic,}// +TEXINPUTS.lamed = .;$TEXMF/tex/{lamed,lambda,latex,generic,}// +TEXINPUTS.omega = .;$TEXMF/tex/{plain,generic,}// + +% p(La)TeX. +TEXINPUTS.ptex = .;$TEXMF/tex/{ptex,plain,generic,}// +TEXINPUTS.platex = .;$TEXMF/tex/{platex,latex,generic,}// + +% epTeX, and for pmpost. +TEXINPUTS.eptex = .;$TEXMF/tex/{ptex,plain,generic,}// +TEX.pmpost = eptex + +% (e)up(La)TeX. +TEXINPUTS.uplatex = .;$TEXMF/tex/{uplatex,platex,latex,generic,}// +TEXINPUTS.uptex = .;$TEXMF/tex/{uptex,ptex,plain,generic,}// +TEXINPUTS.euptex = .;$TEXMF/tex/{uptex,ptex,plain,generic}// + +% pBibTeX bibliographies and style files. +BIBINPUTS.pbibtex = .;$TEXMF/{pbibtex,bibtex}/bib// +BSTINPUTS.pbibtex = .;$TEXMF/{pbibtex,bibtex}/bst// + +% ConTeXt. +TEXINPUTS.context = .;$TEXMF/tex/{context,plain,generic}// + +% jadetex. +TEXINPUTS.jadetex = .;$TEXMF/tex/{jadetex,latex,generic,}// +TEXINPUTS.pdfjadetex = .;$TEXMF/tex/{jadetex,latex,generic,}// + +% XMLTeX. +TEXINPUTS.xmltex = .;$TEXMF/tex/{xmltex,latex,generic,}// +TEXINPUTS.pdfxmltex = .;$TEXMF/tex/{xmltex,latex,generic,}// + +% Miscellany, no longer built. +TEXINPUTS.lamstex = .;$TEXMF/tex/{lamstex,plain,generic,}// +TEXINPUTS.lollipop = .;$TEXMF/tex/{lollipop,plain,generic,}// +TEXINPUTS.frpdflatex = .;$TEXMF/tex/{french,latex,generic,}// +TEXINPUTS.frpdftex = .;$TEXMF/tex/{french,plain,generic,}// + +% Earlier entries override later ones, so put this generic one last. +TEXINPUTS = .;$TEXMF/tex/{$progname,generic,}// + +% ttf2tfm. +TTF2TFMINPUTS = .;$TEXMF/ttf2pk// + +% Metafont, MetaPost inputs. +MFINPUTS = .;$TEXMF/metafont//;{$TEXMF/fonts,$VARTEXFONTS}/source// +MPINPUTS = .;$TEXMF/metapost// + +% Dump files (fmt/base/mem) for vir{tex,mf,mp} to read. +% We want to find the engine-specific file, e.g., cont-en.fmt can +% exist under both pdftex/ and xetex/. But just in case some formats +% end up without an engine directory, look directly in web2c/ too. +% We repeat the same definition three times because of the way fmtutil +% is implemented; if we use ${TEXFORMATS}, the mpost/mf/etc. formats +% will not be found. +TEXFORMATS = .;$TEXMF/web2c{/$engine,} +MFBASES = .;$TEXMF/web2c{/$engine,} +MPMEMS = .;$TEXMF/web2c{/$engine,} +% +% As of 2008, pool files don't exist any more (the strings are compiled +% into the binaries), but just in case something expects to find these: +TEXPOOL = .;$TEXMF/web2c +MFPOOL = ${TEXPOOL} +MPPOOL = ${TEXPOOL} + +% support the original xdvi. Must come before the generic settings. +PKFONTS.XDvi = .;$TEXMF/%s;$VARTEXFONTS/pk/{%m,modeless}// +VFFONTS.XDvi = .;$TEXMF/%s +PSHEADERS.XDvi = .;$TEXMF/%q{dvips,fonts/type1}// +TEXPICTS.XDvi = .;$TEXMF/%q{dvips,tex}// + +% Device-independent font metric files. +VFFONTS = .;$TEXMF/fonts/vf// +TFMFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/tfm// + +% The $MAKETEX_MODE below means the drivers will not use a cx font when +% the mode is ricoh. If no mode is explicitly specified, kpse_prog_init +% sets MAKETEX_MODE to /, so all subdirectories are searched. See the manual. +% The modeless part guarantees that bitmaps for PostScript fonts are found. +PKFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/pk/{$MAKETEX_MODE,modeless}// + +% Similarly for the GF format, which only remains in existence because +% Metafont outputs it (and MF isn't going to change). +GFFONTS = .;$TEXMF/fonts/gf/$MAKETEX_MODE// + +% A backup for PKFONTS and GFFONTS. Not used for anything. +GLYPHFONTS = .;$TEXMF/fonts + +% A place to puth everything that doesn't fit the other font categories. +MISCFONTS = .;$TEXMF/fonts/misc// + +% font name map files. This isn't just fonts/map// because ConTeXt +% wants support for having files with the same name in the different +% subdirs. Maybe if the programs ever get unified to accepting the same +% map file syntax the definition can be simplified again. +TEXFONTMAPS = .;$TEXMF/fonts/map/{$progname,pdftex,dvips,}// + +% BibTeX bibliographies and style files. bibtex8 also uses these. +BIBINPUTS = .;$TEXMF/bibtex/bib// +BSTINPUTS = .;$TEXMF/bibtex/{bst,csf}// + +% MlBibTeX. +MLBIBINPUTS = .;$TEXMF/bibtex/bib/{mlbib,}// +MLBSTINPUTS = .;$TEXMF/bibtex/{mlbst,bst}// + +% .ris and .bltxml bibliography formats. +RISINPUTS = .;$TEXMF/bibtex/ris// +BLTXMLINPUTS = .;$TEXMF/bibtex/bltxml// + +% MFT style files. +MFTINPUTS = .;$TEXMF/mft// + +% PostScript headers and prologues (.pro); unfortunately, some programs +% also use this for acessing font files (enc, type1, truetype) +TEXPSHEADERS = .;$TEXMF/{dvips,fonts/{enc,type1,type42,type3}}// +TEXPSHEADERS.gsftopk = .;$TEXMF/{dvips,fonts/{enc,type1,type42,type3,truetype}}// + +% OSFONTDIR is to provide a convenient hook for allowing TeX to find +% fonts installed on the system (outside of TeX). An empty default +% value would add "//" to the search paths, so we give it a dummy value. +OSFONTDIR = /usr/share/fonts + +% PostScript Type 1 outline fonts. +T1FONTS = .;$TEXMF/fonts/type1//;$OSFONTDIR// + +% PostScript AFM metric files. +AFMFONTS = .;$TEXMF/fonts/afm//;$OSFONTDIR// + +% TrueType outline fonts. +TTFONTS = .;$TEXMF/fonts/{truetype,opentype}//;$OSFONTDIR// + +% OpenType outline fonts. +OPENTYPEFONTS = .;$TEXMF/fonts/{opentype,truetype}//;$OSFONTDIR// + +% Type 42 outline fonts. +T42FONTS = .;$TEXMF/fonts/type42// + +% Ligature definition files. +LIGFONTS = .;$TEXMF/fonts/lig// + +% Dvips' config.* files (this name should not start with `TEX'!). +TEXCONFIG = $TEXMF/dvips// + +% Makeindex style (.ist) files. +INDEXSTYLE = .;$TEXMF/makeindex// + +% Font encoding files (.enc). +ENCFONTS = .;$TEXMF/fonts/enc// + +% CMap files. +CMAPFONTS = .;$TEXMF/fonts/cmap// + +% Subfont definition files. +SFDFONTS = .;$TEXMF/fonts/sfd// + +% OpenType feature files (.fea). +FONTFEATURES=.;$TEXMF/fonts/fea// + +% .cid and .cidmap +FONTCIDMAPS=.;$TEXMF/fonts/cid// + +% pdftex config files: +PDFTEXCONFIG = .;$TEXMF/pdftex/{$progname,}// + +% Used by DMP (ditroff-to-mpx), called by makempx -troff. +TRFONTS = /usr{/local,}/share/groff/{current/font,site-font}/devps +MPSUPPORT = .;$TEXMF/metapost/support + +% For xdvi to find mime.types and .mailcap, if they do not exist in +% ~. These are single directories, not paths. +% (But the default mime.types, at least, may well suffice.) +MIMELIBDIR = /etc +MAILCAPLIBDIR = /etc + +% Default settings for the fontconfig library as used by the Windows +% versions of xetex/xdvipdfmx. On Unixish systems, fontconfig ignores +% this. ConTeXT MkIV (all platforms) also use these values. +% +FONTCONFIG_FILE = fonts.conf +FONTCONFIG_PATH = $TEXMFSYSVAR/fonts/conf +FC_CACHEDIR = $TEXMFSYSVAR/fonts/cache + +% TeX documentation and source files, for use with texdoc and kpsewhich. +TEXDOCS = $TEXMF/doc// +TEXSOURCES = .;$TEXMF/source// + +% Web and CWeb input paths. +WEBINPUTS = .;$TEXMF/web// +CWEBINPUTS = .;$TEXMF/cweb// + +% Omega-related fonts and other files. +OFMFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/{ofm,tfm}// +OPLFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/opl// +OVFFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/{ovf,vf}// +OVPFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/ovp// +OTPINPUTS = .;$TEXMF/omega/otp// +OCPINPUTS = .;$TEXMF/omega/ocp// + +% Some additional input variables for several programs. If you add +% a program that uses the `other text files' or `other binary files' +% search formats, you'll want to add their variables here as well. +T4HTINPUTS = .;$TEXMF/tex4ht// + +%% t4ht utility, sharing files with TeX4ht +TEX4HTFONTSET=alias,iso8859,unicode +TEX4HTINPUTS = .;$TEXMF/tex4ht/base//;$TEXMF/tex4ht/ht-fonts/{$TEX4HTFONTSET}// + +% TeXworks editor configuration and settings +TW_LIBPATH = $TEXMFCONFIG/texworks +TW_INIPATH = $TW_LIBPATH + +% For security, do not look in . for dvipdfmx.cfg, since the D option +% would allow command execution. +DVIPDFMXINPUTS = $TEXMF/dvipdfmx + +% Lua needs to look in TEXINPUTS for lua scripts distributed with packages. +% +% But we can't simply use $TEXINPUTS, since then if TEXINPUTS is set in +% the environment with a colon, say, TEXINPUTS=/some/dir:, the intended +% default expansion of TEXINPUTS will not happen and .lua files under +% the /tex/ will not be found. +% +% So, duplicate the TEXINPUTS.*lualatex values as LUAINPUTS.*lualatex. +% The default LUAINPUTS sufficess for luatex and dviluatex. +% +LUAINPUTS.lualatex = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{lualatex,latex,luatex,generic,}// +LUAINPUTS.dvilualatex = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{lualatex,latex,luatex,generic,}// +LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXMF/tex/{luatex,plain,generic,}// + +% Lua needs to look for binary lua libraries distributed with packages. +CLUAINPUTS = .;$SELFAUTOLOC/lib/{$progname,$engine,}/lua// + +% Architecture independent executables. +TEXMFSCRIPTS = $TEXMF/scripts/{$progname,$engine,}// + +% Other languages. +JAVAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/java// +PERLINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/perl// +PYTHONINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/python// +RUBYINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/ruby// + + +%% The mktex* scripts rely on KPSE_DOT. Do not set it in the environment. +% KPSE_DOT = . + +% This definition isn't used from this .cnf file itself (that would be +% paradoxical), but the compile-time default in paths.h is built from it. +% The SELFAUTO* variables are set automatically from the location of +% argv[0], in kpse_set_program_name. +% +% This main texmf.cnf file is installed, for a release YYYY, in a +% directory such as /usr/local/texlive/YYYY/texmf/web2c/texmf.cnf. +% Since this file is subject to future updates, the TeX Live installer +% or human administrator may also create a file +% /usr/local/texlive/YYYY/texmf.cnf; any settings in this latter file +% will take precedence over the distributed one under texmf/web2c. +% +% For security reasons, it is best not to include . in this path. +% +% The idea behind this lengthy definition: for each of +% SELFAUTO{LOC,DIR,AUTO}, look in the directory, +% then the subdirectories share/texmf-local and share/texmf, +% then ./texmf-local and ./texmf. +% +% However, we want to include one more directory: the +% great-grandparent's texmf-local, because that is how TL is installed +% by default. That is, given a binary +% /usr/local/texlive/YYYY/bin/PLATFORM/kpsewhich, it should find +% /usr/local/texlive/texmf-local/web2c/texmf.cnf. I.e., not under YYYY. +% +% As a result, we cannot use actual brace expansion in the definition, +% since we don't want to scatter ../'s throughout the value. Hence we +% explicitly list every directory. Arguably more understandable this +% way anyway. +% +TEXMFCNF = {\ +$SELFAUTOLOC,\ +$SELFAUTOLOC/share/texmf-local/web2c,$SELFAUTOLOC/share/texmf/web2c,\ +$SELFAUTOLOC/texmf-local/web2c,$SELFAUTOLOC/texmf/web2c,\ +$SELFAUTODIR,\ +$SELFAUTODIR/share/texmf-local/web2c,$SELFAUTODIR/share/texmf/web2c,\ +$SELFAUTODIR/texmf-local/web2c,$SELFAUTODIR/texmf/web2c,\ +$SELFAUTOPARENT/../texmf-local/web2c,\ +$SELFAUTOPARENT,\ +$SELFAUTOPARENT/share/texmf-local/web2c,$SELFAUTOPARENT/share/texmf/web2c,\ +$SELFAUTOPARENT/texmf-local/web2c,$SELFAUTOPARENT/texmf/web2c\ +} +% +% For reference, here is the old brace-using definition: +%TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c} + +% kpathsea 3.5.3 and later sets these at runtime. To avoid empty +% expansions from binaries linked against an earlier version of the +% library, we set $progname and $engine to something non-empty: +progname = unsetprogname +engine = unsetengine + + +% Part 2: Options. + +% If this option is set to true, `tex a.b' will look first for a.b.tex +% (within each path element), and then for a.b, i.e., we try standard +% extensions first. If this is false, we first look for a.b and then +% a.b.tex, i.e., we try the name as-is first. +% +% Both names are always tried; the difference is the order in which they +% are tried. The setting applies to all searches, not just .tex. +% +% This setting only affects names being looked up which *already* have +% an extension. A name without an extension (e.g., `tex story') will +% always have an extension added first. +% +% The default is true, because we already avoid adding the standard +% extension(s) in the usual cases. E.g., babel.sty will only look for +% babel.sty, not babel.sty.tex, regardless of this setting. +try_std_extension_first = t + +% Enable system commands via \write18{...}. When enabled fully (set to +% t), obviously insecure. When enabled partially (set to p), only the +% commands listed in shell_escape_commands are allowed. Although this +% is not fully secure either, it is much better, and so useful that we +% enable it for everything but bare tex. +shell_escape = p + +% No spaces in this command list. +% +% The programs listed here are as safe as any we know: they either do +% not write any output files, respect openout_any, or have hard-coded +% restrictions similar or higher to openout_any=p. They also have no +% features to invoke arbitrary other programs, and no known exploitable +% bugs. All to the best of our knowledge. They also have practical use +% for being called from TeX. +% +shell_escape_commands = \ +bibtex,bibtex8,\ +kpsewhich,\ +makeindex,\ +mpost,\ +repstopdf,\ + +% we'd like to allow: +% dvips - but external commands can be executed, need at least -R1. +% epspdf, ps2pdf, pstopdf - need to respect openout_any, +% and gs -dSAFER must be used and check for shell injection with filenames. +% (img)convert (ImageMagick) - delegates.mgk possible misconfig, besides, +% without Unix convert it hardly seems worth it, and Windows convert +% is something completely different that destroys filesystems, so skip. +% pygmentize - but is the filter feature insecure? +% ps4pdf - but it calls an unrestricted latex. +% rpdfcrop - maybe ok, but let's get experience with repstopdf first. +% texindy,xindy - but is the module feature insecure? +% ulqda - but requires optional SHA1.pm, so why bother. +% tex, latex, etc. - need to forbid --shell-escape, and inherit openout_any. + +% plain TeX should remain unenhanced. +shell_escape.tex = f +shell_escape.initex = f + +% This is used by the Windows script wrapper for restricting searching +% for the purportedly safe shell_escape_commands above to system +% directories. +TEXMF_RESTRICTED_SCRIPTS = \ + {!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST}/scripts/{$progname,$engine,}// + +% Allow TeX \openin, \openout, or \input on filenames starting with `.' +% (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)? +% a (any) : any file can be opened. +% r (restricted) : disallow opening "dotfiles". +% p (paranoid) : as `r' and disallow going to parent directories, and +% restrict absolute paths to be under $TEXMFOUTPUT. +openout_any = p +openin_any = a + +% Write .log/.dvi/etc. files here, if the current directory is unwritable. +%TEXMFOUTPUT = /tmp + +% If a dynamic file creation fails, log the command to this file, in +% either the current directory or TEXMFOUTPUT. Set to the +% empty string or 0 to avoid logging. +MISSFONT_LOG = missfont.log + +% Set to a colon-separated list of words specifying warnings to suppress. +% To suppress everything, use TEX_HUSH = all; this is currently equivalent to +% TEX_HUSH = checksum:lostchar:readable:special +% To suppress nothing, use TEX_HUSH = none or do not set the variable at all. +TEX_HUSH = none + +% Allow TeX, and MF to parse the first line of an input file for +% the %&format construct. +parse_first_line = t + +% But don't parse the first line if invoked as "tex", since we want that +% to remain Knuth-compatible. The src_specials and +% file_line_error_style settings, as well as the options -enctex, +% -mltex, -8bit, etc., also affect this, but they are all off by default. +parse_first_line.tex = f +parse_first_line.initex = f + +% Control file:line:error style messages. +file_line_error_style = f + +% Enable the mktex... scripts by default? These must be set to 0 or 1. +% Particular programs can and do override these settings, for example +% dvips's -M option. Your first chance to specify whether the scripts +% are invoked by default is at configure time. +% +% These values are ignored if the script names are changed; e.g., if you +% set DVIPSMAKEPK to `foo', what counts is the value of the environment +% variable/config value `FOO', not the `MKTEXPK' value. +% +%MKTEXTEX = 0 +%MKTEXPK = 0 +%MKTEXMF = 0 +%MKTEXTFM = 0 +%MKTEXFMT = 0 +%MKOCP = 0 +%MKOFM = 0 + +% Used by makempx to run TeX. We use "etex" because MetaPost is +% expecting DVI, and not "tex" because we want first line parsing. +TEX = etex + +% These variables specify the external program called for the +% interactive `e' option. %d is replaced by the line number and %s by +% the current filename. The default is specified at compile-time, and +% we let that stay in place since different platforms like different values. +%TEXEDIT = vi +%d '%s' % default for Unix +%TEXEDIT = texworks --position=+%d "%s" % default for Windows +%MFEDIT = ${TEXEDIT} +%MPEDIT = ${TEXEDIT} + +% The default `codepage and sort order' file for BibTeX8, when none is +% given as command line option or environment variable. +BIBTEX_CSFILE = 88591lat.csf + +% This variable is specific to Windows. It must be set to 0 or 1. The +% default is 0. Setting it to 1 tells the Windows script wrappers to +% use an already installed Perl interpreter if one is found on the +% search path, in preference to the Perl shipped with TeX Live. Thus, +% it may be useful if you both (a) installed a full Perl distribution +% for general use, and (b) need to run Perl programs from TL that use +% additional modules we don't provide. The TL Perl does provide all the +% standard Perl modules. +% +%TEXLIVE_WINDOWS_TRY_EXTERNAL_PERL = 0 + + +% Part 3: Array and other sizes for TeX (and Metafont). +% +% If you want to change some of these sizes only for a certain TeX +% variant, the usual dot notation works, e.g., +% main_memory.hugetex = 20000000 +% +% If a change here appears to be ignored, try redumping the format file. + +% Memory. Must be less than 8,000,000 total. +% +% main_memory is relevant only to initex, extra_mem_* only to non-ini. +% Thus, have to redump the .fmt file after changing main_memory; to add +% to existing fmt files, increase extra_mem_*. (To get an idea of how +% much, try \tracingstats=2 in your TeX source file; +% web2c/tests/memtest.tex might also be interesting.) +% +% To increase space for boxes (as might be needed by, e.g., PiCTeX), +% increase extra_mem_bot. +% +% For some xy-pic samples, you may need as much as 700000 words of memory. +% For the vast majority of documents, 60000 or less will do. +% +main_memory = 3000000 % words of inimemory available; also applies to inimf&mp +extra_mem_top = 0 % extra high memory for chars, tokens, etc. +extra_mem_bot = 0 % extra low memory for boxes, glue, breakpoints, etc. + +% ConTeXt needs lots of memory. +extra_mem_top.context = 2000000 +extra_mem_bot.context = 4000000 + +% Words of font info for TeX (total size of all TFM files, approximately). +% Must be >= 20000 and <= 147483647 (without tex.ch changes). +font_mem_size = 3000000 + +% Total number of fonts. Must be >= 50 and <= 9000 (without tex.ch changes). +font_max = 9000 + +% Extra space for the hash table of control sequences. +hash_extra = 200000 + +% Max number of characters in all strings, including all error messages, +% help texts, font names, control sequences. These values apply to TeX. +pool_size = 20000000 +% Minimum pool space after TeX's own strings; must be at least +% 25000 less than pool_size, but doesn't need to be nearly that large. +string_vacancies = 90000 +% Maximum number of strings. +max_strings = 500000 +% min pool space left after loading .fmt +pool_free = 47500 + +% Buffer size. TeX uses the buffer to contain input lines, but macro +% expansion works by writing material into the buffer and reparsing the +% line. As a consequence, certain constructs require the buffer to be +% very large, even though most documents can be handled with a small value. +buf_size = 200000 + +% Hyphenation trie. The maximum possible is 4194303 (ssup_trie_size in +% the sources), but we don't need that much. The value here suffices +% for all known free hyphenation patterns to be loaded simultaneously +% (as TeX Live does). +% +trie_size = 1000000 + +hyph_size = 8191 % prime number of hyphenation exceptions, >610, <32767. + % http://primes.utm.edu/curios/page.php/8191.html +nest_size = 500 % simultaneous semantic levels (e.g., groups) +max_in_open = 15 % simultaneous input files and error insertions, + % also applies to MetaPost +param_size = 10000 % simultaneous macro parameters, also applies to MP +save_size = 50000 % for saving values outside current group +stack_size = 5000 % simultaneous input sources + +% These are Omega-specific. +ocp_buf_size = 500000 % character buffers for ocp filters. +ocp_stack_size = 10000 % stacks for ocp computations. +ocp_list_size = 1000 % control for multiple ocps. + +% These work best if they are the same as the I/O buffer size, but it +% doesn't matter much. Must be a multiple of 8. +dvi_buf_size = 16384 % TeX +gf_buf_size = 16384 % MF + +% It's probably inadvisable to change these. At any rate, we must have: +% 45 < error_line < 255; +% 30 < half_error_line < error_line - 15; +% 60 <= max_print_line; +% These apply to TeX, Metafont, and MetaPost. +error_line = 79 +half_error_line = 50 +max_print_line = 79 + +% Metafont only. +screen_width.mf = 1664 +screen_depth.mf = 1200 + +% BibTeX only (max_strings also determines hash_size and hash_prime). +ent_str_size = 250 +glob_str_size = 20000 +max_strings.bibtex = 35307 +max_strings.bibtex8 = 35307 +max_strings.bibtexu = 35307 +max_strings.pbibtex = 35307 + +% GFtype only. +line_length.gftype = 500 +max_rows.gftype = 8191 +max_cols.gftype = 8191 diff --git a/texlive.spec b/texlive.spec new file mode 100644 index 0000000..c9108c5 --- /dev/null +++ b/texlive.spec @@ -0,0 +1,922 @@ +%define majver %(echo %{version} | cut -c1-4) +Name: texlive +Version: 20130530 +Release: 1mamba +Summary: A comprehensive TeX document production system +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.tug.org/texlive +Source: ftp://tug.org/texlive/historic/%{majver}/texlive-%{version}-source.tar.xz +Source1: ftp://tug.org/texlive/historic//%{majver}/texlive-%{version}-texmf.tar.xz +Source2: texlive-texmf.cnf-openmamba +Source3: texlive-fonts.conf +License: GPL, LGPL, MIT, The LaTeX Project Public License +## AUTOBUILDREQ-BEGIN +BuildRequires: ghostscript-devel +BuildRequires: glibc-devel +BuildRequires: libbzip2-devel +BuildRequires: libexpat-devel +BuildRequires: libffcall-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libgd-devel +BuildRequires: libICE-devel +BuildRequires: libjpeg-devel +BuildRequires: libncurses-devel +BuildRequires: libpng-devel +BuildRequires: libpoppler-devel +BuildRequires: libpthread-stubs-devel +BuildRequires: libreadline-devel +BuildRequires: libsigsegv-devel +BuildRequires: libsilgraphite-devel +BuildRequires: libSM-devel +BuildRequires: libstdc++6-devel +BuildRequires: libt1-devel +BuildRequires: libteckit-devel +BuildRequires: libuuid-devel +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libXaw-devel +BuildRequires: libxcb-devel +BuildRequires: libXdmcp-devel +BuildRequires: libXext-devel +BuildRequires: libXmu-devel +BuildRequires: libXpm-devel +BuildRequires: libXt-devel +BuildRequires: libz-devel +BuildRequires: libzzip-devel +BuildRequires: perl-devel +BuildRequires: perl-Digest-SHA1 +BuildRequires: perl-File-Which +BuildRequires: perl-HTML-Format +BuildRequires: perl-HTML-Tree +BuildRequires: perl-Spreadsheet-ParseExcel +BuildRequires: perl-TimeDate +BuildRequires: perl-Tk +BuildRequires: perl-WWW-Mechanize +## AUTOBUILDREQ-END +BuildRequires: libharfbuzz-devel >= 0.9.19-2mamba +BuildRequires: clisp +Requires: texi2html +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}-fonts = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}-core = %{?epoch:%epoch:}%{version}-%{release} +Requires(post): %{__install_info} +Requires(preun): %{__install_info} +Provides: tetex +Obsoletes: tetex +Provides: perl(Pedigree) +Provides: perl(TeXLive::TLConfFile) +Provides: perl(TeXLive::TLConfig) +Provides: perl(TeXLive::TLDownload) +Provides: perl(TeXLive::TLPaper) +Provides: perl(TeXLive::TLPDB) +Provides: perl(TeXLive::TLPOBJ) +Provides: perl(TeXLive::TLUtils) +Provides: perl(TeXLive::TLWinGoo) +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The TeX Live package is a comprehensive TeX document production system. It includes TEX, LaTeX2e, ConTEXt, Metafont, MetaPost, BibTeX and many other programs; an extensive collection of macros, fonts and documentation; and support for typesetting in many different scripts from around the world. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%package core +Summary: Distribution indipendent files for the TeX Live text formatting system +Group: Applications/Publishing + +%description core +Distribution indipendent files for the TeX Live text formatting system. + +%package latex +Group: System/Libraries +Summary: The LaTeX front end for the TeX text formatting system +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}-dvips = %{?epoch:%epoch:}%{version}-%{release} +Provides: tetex-latex +Obsoletes: tetex-latex +Provides: latex-ucs +Obsoletes: latex-ucs +Provides: jadetex +Obsoletes: jadetex +Provides: xmltex +Obsoletes: xmltex + +%description latex +The LaTeX front end for the TeX text formatting system. + +%package fonts +Summary: The font files for the TeX Live text formatting system +Group: Applications/Publishing +Provides: tetex-fonts +Obsoletes: tetex-fonts +Requires(post): texlive + +%description fonts +The tetex-fonts package contains fonts used by both the dvi previewers and the TeX Live text formatting system. + +%package doc +Summary: The documentation files for the TeX Live text formatting system +Group: Documentation + +%description doc +The tetex-doc package contains documentation for the TeX Live text formatting system. + +%package dvips +Group: System/Libraries +Summary: dvips tools from %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: psutils +Provides: tetex-dvips +Obsoletes: tetex-dvips + +%description dvips +dvips tools from %{name}. + +%package t1utils +Group: System/Libraries +Summary: PostScript utilities from %{name} + +%description t1utils +PostScript utilities from %{name}. + +%package source +Group: System/Libraries +Summary: texmf source files from %{name} +Requires: %{name}-core = %{?epoch:%epoch:}%{version}-%{release} + +%description source +texmf source files from %{name}. + +%package tex4ht +Group: System/Libraries +Summary: tex4ht utilities from %{name} +Requires: %{name}-core = %{?epoch:%epoch:}%{version}-%{release} + +%description tex4ht +tex4ht utilities from %{name}. + +%package xdvi +Group: System/Libraries +Summary: xdvi tools from %{name} +Requires: %{name}-core = %{?epoch:%epoch:}%{version}-%{release} +Provides: tetex-xdvi +Obsoletes: tetex-xdvi + +%description xdvi +xdvi tools from %{name}. + +%debug_package + +%prep +%setup -q -n %{name}-%{version}-source +# -D -T +#:<< ___EOF + +# disable requires and provides for doc and source packages +%define _use_internal_dependency_generator 0 +%define __find_provides %{_builddir}/texlive-%{version}-source/find_provides.sh +cat > %{_builddir}/texlive-%{version}-source/find_provides.sh <<_EOF +#! /bin/sh +grep -v %{buildroot}%{_datadir}/texmf-dist/doc | \ +grep -v %{buildroot}%{_datadir}/texmf-dist/source | \ +%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu} +_EOF +chmod +x %{_builddir}/texlive-%{version}-source/find_provides.sh + +%define __find_requires %{_builddir}/texlive-%{version}-source/find_requires.sh +cat > %{_builddir}/texlive-%{version}-source/find_requires.sh <<_EOF +#! /bin/sh +grep -v %{buildroot}%{_datadir}/texmf-dist/doc | \ +grep -v %{buildroot}%{_datadir}/texmf-dist/source | \ +%{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} +_EOF +chmod +x %{_builddir}/texlive-%{version}-source/find_requires.sh + + +tar xf %{SOURCE1} +#mv texlive-%{version}-texmf/texmf . +mv texlive-%{version}-texmf/texmf-dist . +rmdir texlive-%{version}-texmf + +# t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251) +sed -i s/SELFAUTOPARENT/TEXMFROOT/ texk/tex4htk/t4ht.c + +%build +%configure \ + --disable-native-texlive-build \ + --enable-build-in-source-tree \ + --enable-shared \ + --with-system-zlib \ + --with-system-zziplib \ + --with-system-libpng \ + --with-system-xpdf \ + --with-system-gd \ + --with-system-t1lib \ + --with-system-teckit \ + --with-system-freetype2 \ + --with-system-poppler \ + --with-system-cairo \ + --with-system-icu \ + --with-system-harfbuzz \ + --with-system-graphite2 \ + --with-system-libgs \ + --with-pic \ + --with-xdvi-x-toolkit=xaw \ + --with-freetype2-libdir=%{_libdir} \ + --with-freetype2-include=%{_includedir}/freetype2 \ + --disable-dump-share \ + --enable-aleph \ + --enable-luatex \ + --with-clisp-runtime=default \ +%ifnarch arm + --enable-xindy \ +%else + --disable-xindy \ +%endif + --disable-xindy-rules \ + --disable-xindy-docs \ + --with-banner-add=" - openmamba" \ + --disable-multiplatform \ + --disable-dialog \ + --disable-t1utils \ + --disable-psutils \ + --disable-bibtexu \ + --disable-xz \ + --disable-ptexenc \ + --disable-largefile \ + --disable-rpath \ + +# --enable-mktextex-default \ + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%makeinstall + +# create symlinks +texk/texlive/tl_scripts/texlinks.sh %{buildroot}%{_bindir} + +install -d -m0755 %{buildroot}%{_datadir} +cp -r texmf-dist %{buildroot}%{_datadir} +install -d -m755 %{buildroot}%{_sysconfdir}/texmf/web2c +install -d -m755 %{buildroot}%{_sysconfdir}/texmf/chktex +install -d -m755 %{buildroot}%{_sysconfdir}/texmf/dvips/config +install -d -m755 %{buildroot}%{_sysconfdir}/texmf/dvipdfmx +install -d -m755 %{buildroot}%{_sysconfdir}/texmf/tex/generic/config +install -d -m755 %{buildroot}%{_sysconfdir}/texmf/ttf2pk +install -d -m755 %{buildroot}%{_sysconfdir}/texmf/xdvi +install -d -m755 %{buildroot}%{_sysconfdir}/fonts/conf.avail +install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/fonts/conf.avail/09-texlive-fonts.conf + +# copy config files to $TEXMFCONFIG tree +cp -a %{buildroot}%{_datadir}/texmf-dist/chktex/chktexrc \ + %{buildroot}%{_sysconfdir}/texmf/chktex/ +cp -a %{buildroot}%{_datadir}/texmf-dist/web2c/mktex.cnf \ + %{buildroot}%{_sysconfdir}/texmf/web2c/ +cp -a %{buildroot}%{_datadir}/texmf-dist/web2c/updmap.cfg \ + %{buildroot}%{_sysconfdir}/texmf/web2c/ +cp -a %{buildroot}%{_datadir}/texmf-dist/web2c/fmtutil.cnf \ + %{buildroot}%{_sysconfdir}/texmf/web2c/ +cp -a %{buildroot}%{_datadir}/texmf-dist/dvips/config/config.ps \ + %{buildroot}%{_sysconfdir}/texmf/dvips/config/ +cp -a %{buildroot}%{_datadir}/texmf-dist/dvipdfmx/dvipdfmx.cfg \ + %{buildroot}%{_sysconfdir}/texmf/dvipdfmx/ +cp -a %{buildroot}%{_datadir}/texmf-dist/tex/generic/config/pdftexconfig.tex \ + %{buildroot}%{_sysconfdir}/texmf/tex/generic/config/ +cp -a %{buildroot}%{_datadir}/texmf-dist/tex/generic/config/language.dat \ + %{buildroot}%{_sysconfdir}/texmf/tex/generic/config/ +cp -a %{buildroot}%{_datadir}/texmf-dist/tex/generic/config/language.def \ + %{buildroot}%{_sysconfdir}/texmf/tex/generic/config/ +cp -a %{buildroot}%{_datadir}/texmf-dist/ttf2pk/ttf2pk.cfg \ + %{buildroot}%{_sysconfdir}/texmf/ttf2pk/ +cp -a %{buildroot}%{_datadir}/texmf-dist/xdvi/XDvi \ + %{buildroot}%{_sysconfdir}/texmf/xdvi/ + +## simple make install doesn't call run-texlinks +#make world DESTDIR=%{buildroot} + +# replace upstream texmf.cnf with ours +rm -f %{buildroot}%{_datadir}/texmf-dist/web2c/texmf.cnf +install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/texmf/web2c/texmf.cnf +# since the location of texmf.cnf is hard-wired to be under /usr/share/texmf/web2c +# we make a symlink from /etc/texmf/web2c/texmf.cnf to the latter +ln -sf %{_sysconfdir}/texmf/web2c/texmf.cnf %{buildroot}%{_datadir}/texmf-dist/web2c/texmf.cnf +## remove aleph from fmtutil.cnf +sed -i -e '/aleph/d' %{buildroot}%{_datadir}/texmf-dist/web2c/fmtutil.cnf + +rm -f %{buildroot}%{_mandir}/man1/latex.1* +rm -f %{buildroot}%{_mandir}/man1/pdflatex.1* + +# touch ghosts +install -d -m0755 %{buildroot}%{_datadir}/texmf-local +#install -d -m0755 %{buildroot}%{_datadir}/texmf +#touch %{buildroot}%{_datadir}/texmf/ls-R +touch %{buildroot}%{_datadir}/texmf-local/ls-R +touch %{buildroot}%{_datadir}/texmf-dist/ls-R + +# link config dir to the main tree and var dir to root +install -d -m0755 %{buildroot}%{_localstatedir}/lib/texmf +#ln -s %{_localstatedir}/lib/texmf %{buildroot}%{_datadir}/texmf-var +#install -d -m0755 %{buildroot}%{_datadir}/texmf-config +#install -d -m0755 %{buildroot}%{_datadir}/texmf-config/web2c +#ln -s ../../texmf/web2c/updmap.cfg %{buildroot}%{_datadir}/texmf-config/web2c/updmap.cfg + +# create macro file for building texlive +mkdir -p %{buildroot}%{_sysconfdir}/rpm +cat << EOF > %{buildroot}%{_sysconfdir}/rpm/macros.texlive +# macros to keep trees in texlive consistent +%_texmf_main %{_datadir}/texmf +%_texmf_vendor %{_datadir}/texmf-dist +%_texmf_var %{_localstatedir}/lib/texmf +%_texmf_conf %{_sysconfdir}/texmf +EOF + +install -d -m0755 %{buildroot}%{_datadir}/tlpkg +cp -a utils/biber/TeXLive %{buildroot}%{_datadir}/tlpkg/ + +# some fine cleanups +rm -f %{buildroot}%{_bindir}/man +rm -f %{buildroot}%{_mandir}/man1/aleph.1* +rm -f %{buildroot}%{_mandir}/man1/lamed.1* +# conflicting with psutils +for f in epsffit extractres fixdlsrps fixfmps fixpsditps fixpspps fixscribeps \ + fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup \ + psresize psselect pstops; do + rm -f %{buildroot}%{_mandir}/man1/$f.1* +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%post +if [ $1 -ge 1 ]; then + %install_info dvipng.info + %install_info kpathsea.info + %install_info web2c.info + %{_bindir}/texhash 2>/dev/null + %{_bindir}/fmtutil-sys --all >/dev/null + %{_bindir}/updmap-sys >/dev/null +# /usr/bin/kpsewhich --format='web2c files' updmap.cfg >/dev/null + sed -i "s|^TEXMFMAIN = .*|TEXMFMAIN = \$TEXMFROOT/texmf-dist|" %{_sysconfdir}/texmf/web2c/texmf.cnf +fi +: +exit 0 + +%preun +%uninstall_info dvipng.info +%uninstall_info kpathsea.info +%uninstall_info web2c.info +exit 0 + +%post latex +if [ $1 -ge 1 ]; then + %{_bindir}/texhash 2>/dev/null + %{_bindir}/texconfig-sys init >/dev/null 2>&1 +fi +: + +%post fonts +if [ $1 -ge 1 ]; then + %{_bindir}/texhash 2>/dev/null + %{_bindir}/fmtutil-sys --all >/dev/null + %{_bindir}/updmap-sys >/dev/null +fi +: + +%post dvips +%install_info dvips.info +exit 0 + +%preun dvips +%uninstall_info dvips.info +exit 0 + +%files +%defattr(-,root,root) +%{_sysconfdir}/fonts/conf.avail/09-texlive-fonts.conf +%config %{_sysconfdir}/texmf/chktex/chktexrc +%config %{_sysconfdir}/texmf/dvipdfmx/dvipdfmx.cfg +%config %{_sysconfdir}/texmf/dvips/config/config.ps +%config %{_sysconfdir}/texmf/tex/generic/config/language.dat +%config %{_sysconfdir}/texmf/tex/generic/config/language.def +%config %{_sysconfdir}/texmf/tex/generic/config/pdftexconfig.tex +%config %{_sysconfdir}/texmf/ttf2pk/ttf2pk.cfg +%config %{_sysconfdir}/texmf/web2c/fmtutil.cnf +%config %{_sysconfdir}/texmf/web2c/mktex.cnf +%config %{_sysconfdir}/texmf/web2c/texmf.cnf +%config %{_sysconfdir}/texmf/web2c/updmap.cfg +%config %{_sysconfdir}/texmf/xdvi/XDvi +%{_sysconfdir}/rpm/macros.texlive +%{_bindir}/a2ping +%{_bindir}/a5toa4 +%{_bindir}/adhocfilelist +%{_bindir}/afm2afm +%{_bindir}/afm2pl +%{_bindir}/afm2tfm +%{_bindir}/aleph +%{_bindir}/lamed +%{_bindir}/allcm +%{_bindir}/allec +%{_bindir}/allneeded +%{_bindir}/arara +%{_bindir}/arlatex +%{_bindir}/authorindex +%{_bindir}/autoinst +%{_bindir}/bbox +%{_bindir}/bg5+latex +%{_bindir}/bg5+pdflatex +%{_bindir}/bg5conv +%{_bindir}/bg5latex +%{_bindir}/bg5pdflatex +%ifnarch arm +%{_bindir}/biber +%endif +%{_bindir}/bibexport +%{_bindir}/bibtex +%{_bindir}/bibtex8 +%{_bindir}/bibtexu +%{_bindir}/bundledoc +%{_bindir}/cachepic +%{_bindir}/cef5conv +%{_bindir}/cef5latex +%{_bindir}/cef5pdflatex +%{_bindir}/cefconv +%{_bindir}/ceflatex +%{_bindir}/cefpdflatex +%{_bindir}/cefsconv +%{_bindir}/cefslatex +%{_bindir}/cefspdflatex +%{_bindir}/cfftot1 +%{_bindir}/checkcites +%{_bindir}/chktex +%{_bindir}/chkweb +%{_bindir}/context +%{_bindir}/convbkmk +%{_bindir}/ctangle +%{_bindir}/ctanify +%{_bindir}/ctanupload +%{_bindir}/ctie +%{_bindir}/ctxtools +%{_bindir}/cweave +%{_bindir}/de-macro +%{_bindir}/detex +%{_bindir}/devnag +%{_bindir}/deweb +%{_bindir}/disdvi +%{_bindir}/dosepsbin +%{_bindir}/dt2dv +%{_bindir}/dtxgen +%{_bindir}/dv2dt +%{_bindir}/dvi2fax +%{_bindir}/dvi2tty +%{_bindir}/dviasm +%{_bindir}/dvibook +%{_bindir}/dviconcat +%{_bindir}/dvicopy +%{_bindir}/dvidvi +%{_bindir}/dvigif +%{_bindir}/dvihp +%{_bindir}/dvilj +%{_bindir}/dvilj2p +%{_bindir}/dvilj4 +%{_bindir}/dvilj4l +%{_bindir}/dvilj6 +%{_bindir}/dvipdfm +%{_bindir}/dvipdfmx +%{_bindir}/dvipdft +%{_bindir}/dvipng +%{_bindir}/dvipos +%{_bindir}/dvired +%{_bindir}/dviselect +%{_bindir}/dvisvgm +%{_bindir}/dvitodvi +%{_bindir}/dvitomp +%{_bindir}/dvitype +%{_bindir}/e2pall +%{_bindir}/ebb +%{_bindir}/ebong +%{_bindir}/epspdf +%{_bindir}/epspdftk +%{_bindir}/epstopdf +%{_bindir}/eptex +%{_bindir}/euptex +%{_bindir}/exceltex +%{_bindir}/extconv +%{_bindir}/extractbb +%{_bindir}/fig4latex +%{_bindir}/findhyph +%{_bindir}/fmtutil +%{_bindir}/fmtutil-sys +%{_bindir}/fontinst +%{_bindir}/fragmaster +%{_bindir}/gbklatex +%{_bindir}/gbkpdflatex +%{_bindir}/gftodvi +%{_bindir}/gftopk +%{_bindir}/gftype +%{_bindir}/gsftopk +%{_bindir}/hbf2gf +%{_bindir}/inimf +%{_bindir}/initex +%{_bindir}/installfont-tl +%{_bindir}/kanji-config-updmap +%{_bindir}/kanji-config-updmap-sys +%{_bindir}/kanji-fontmap-creator +%{_bindir}/kpseaccess +%{_bindir}/kpsepath +%{_bindir}/kpsereadlink +%{_bindir}/kpsestat +%{_bindir}/kpsetool +%{_bindir}/kpsewhere +%{_bindir}/kpsewhich +%{_bindir}/kpsexpand +%{_bindir}/lacheck +%{_bindir}/latex2man +%{_bindir}/latexdiff +%{_bindir}/latexdiff-vc +%{_bindir}/latexfileversion +%{_bindir}/latexmk +%{_bindir}/latexrevise +%{_bindir}/listbib +%{_bindir}/listings-ext.sh +%{_bindir}/lua2dox_filter +%{_bindir}/luaotfload-tool +%{_bindir}/luatex +%{_bindir}/luatools +%{_bindir}/m-tx +%{_bindir}/mag +%{_bindir}/makeglossaries +%{_bindir}/makeindex +%{_bindir}/makejvf +%{_bindir}/match_parens +%{_bindir}/mathspic +%{_bindir}/mendex +#%ifarch arm +#%{_bindir}/metafun +#%endif +%{_bindir}/mf +%{_bindir}/mf-nowin +%{_bindir}/mf2pt1 +%{_bindir}/mfplain +%{_bindir}/mft +%{_bindir}/mk4ht +%{_bindir}/mkgrkindex +%{_bindir}/mkindex +%{_bindir}/mkjobtexmf +%{_bindir}/mkluatexfontdb +%{_bindir}/mkocp +%{_bindir}/mkofm +%{_bindir}/mkt1font +%{_bindir}/mktexfmt +%{_bindir}/mktexlsr +%{_bindir}/mktexmf +%{_bindir}/mktexpk +%{_bindir}/mktextfm +%{_bindir}/mmafm +%{_bindir}/mmpfb +%{_bindir}/mpost +%{_bindir}/mptopdf +%{_bindir}/mtxrun +%{_bindir}/multibibliography +%{_bindir}/musixflx +%{_bindir}/musixtex +%{_bindir}/odvicopy +%{_bindir}/odvitype +%{_bindir}/ofm2opl +%{_bindir}/omfonts +%{_bindir}/opl2ofm +%{_bindir}/ot2kpx +%{_bindir}/otangle +%{_bindir}/otfinfo +%{_bindir}/otftotfm +%{_bindir}/otp2ocp +%{_bindir}/outocp +%{_bindir}/ovf2ovp +%{_bindir}/ovp2ovf +%{_bindir}/patgen +%{_bindir}/pbibtex +%{_bindir}/pdf180 +%{_bindir}/pdf270 +%{_bindir}/pdf90 +%{_bindir}/pdfannotextractor +%{_bindir}/pdfatfi +%{_bindir}/pdfbook +%{_bindir}/pdfclose +%{_bindir}/pdfcrop +%{_bindir}/pdfflip +%{_bindir}/pdfjam +%{_bindir}/pdfjam-pocketmod +%{_bindir}/pdfjam-slides3up +%{_bindir}/pdfjam-slides6up +%{_bindir}/pdfjoin +%{_bindir}/pdfnup +%{_bindir}/pdfopen +%{_bindir}/pdfpun +%{_bindir}/pdftosrc +%{_bindir}/pdvitype +%{_bindir}/pedigree +%{_bindir}/perltex +%{_bindir}/pfarrei +%{_bindir}/pfb2pfa +%{_bindir}/pk2bm +%{_bindir}/pkfix +%{_bindir}/pkfix-helper +%{_bindir}/pktogf +%{_bindir}/pktype +%{_bindir}/pltotf +%{_bindir}/pmx2pdf +%{_bindir}/pmxab +%{_bindir}/pooltype +%{_bindir}/ppltotf +%{_bindir}/prepmx +%{_bindir}/ps2eps +%{_bindir}/ps2frag +%{_bindir}/ps2pk +%{_bindir}/ps4pdf +%{_bindir}/pslatex +%{_bindir}/pst2pdf +%{_bindir}/pstopdf +%{_bindir}/ptex +%{_bindir}/ptex2pdf +%{_bindir}/ptftopl +%{_bindir}/purifyeps +%{_bindir}/repstopdf +%{_bindir}/rpdfcrop +%{_bindir}/rubibtex +%{_bindir}/rumakeindex +%{_bindir}/rungs +%{_bindir}/scor2prt +%{_bindir}/simpdftex +%{_bindir}/sjisconv +%{_bindir}/sjislatex +%{_bindir}/sjispdflatex +%{_bindir}/splitindex +%{_bindir}/sty2dtx +%{_bindir}/svn-multi +%{_bindir}/synctex +%{_bindir}/t1dotlessj +%{_bindir}/t1lint +%{_bindir}/t1rawafm +%{_bindir}/t1reencode +%{_bindir}/t1testpage +%{_bindir}/tangle +%{_bindir}/tex +%{_bindir}/texconfig +%{_bindir}/texconfig-dialog +%{_bindir}/texconfig-sys +%{_bindir}/texcount +%{_bindir}/texdef +%{_bindir}/texdiff +%{_bindir}/texdirflatten +%{_bindir}/texdoc +%{_bindir}/texdoctk +%{_bindir}/texexec +%{_bindir}/texhash +%ifnarch arm +%{_bindir}/tex2xindy +%{_bindir}/texindy +%endif +%{_bindir}/texlinks +%{_bindir}/texliveonfly +%{_bindir}/texloganalyser +%{_bindir}/texlua +%{_bindir}/texluac +%{_bindir}/texmfstart +%{_bindir}/tftopl +%{_bindir}/thumbpdf +%{_bindir}/tie +%{_bindir}/tlmgr +%{_bindir}/tpic2pdftex +%{_bindir}/ttf2afm +%{_bindir}/ttf2pk +%{_bindir}/ttf2tfm +%{_bindir}/ttfdump +%{_bindir}/ttftotype42 +%{_bindir}/typeoutfileinfo +%{_bindir}/ulqda +%{_bindir}/upbibtex +%{_bindir}/updmap +#%{_bindir}/updmap-setup-kanji +%{_bindir}/updmap-sys +%{_bindir}/updvitype +%{_bindir}/uppltotf +%{_bindir}/uptex +%{_bindir}/uptftopl +%{_bindir}/urlbst +%{_bindir}/vftovp +%{_bindir}/vlna +%{_bindir}/vpe +%{_bindir}/vpl2ovp +%{_bindir}/vpl2vpl +%{_bindir}/vptovf +%{_bindir}/weave +%{_bindir}/wovp2ovf +%{_bindir}/xetex +%ifnarch arm +%{_bindir}/xindy +%{_bindir}/xindy.mem +%{_bindir}/xindy.run +%endif +%dir %{_datadir}/tlpkg +%dir %{_datadir}/tlpkg/TeXLive +%{_datadir}/tlpkg/TeXLive/TLConfig.pm +%{_datadir}/tlpkg/TeXLive/TLUtils.pm +%{_infodir}/dvipng.info.gz +%{_infodir}/kpathsea.info.gz +%{_infodir}/web2c.info.gz +%{_mandir}/man1/*.1* +%exclude %{_mandir}/man1/dvips.1.gz +%exclude %{_mandir}/man1/xdvi.1* +%{_mandir}/man5/*.5* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libkpathsea.so.* +%{_libdir}/libptexenc.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/kpathsea +%{_includedir}/kpathsea/*.h +%dir %{_includedir}/ptexenc +%{_includedir}/ptexenc/*.h +%{_libdir}/libkpathsea.a +%{_libdir}/libkpathsea.la +%{_libdir}/libkpathsea.so +%{_libdir}/libptexenc.a +%{_libdir}/libptexenc.la +%{_libdir}/libptexenc.so + +%files core +%defattr(-,root,root) +%dir %{_datadir}/texmf-dist +%attr(0644, root, root) %verify(not md5 size mtime) %ghost %{_datadir}/texmf-dist/ls-R +%dir %{_datadir}/texmf-dist/asymptote +%{_datadir}/texmf-dist/asymptote/* +%dir %{_datadir}/texmf-dist/bibtex +%{_datadir}/texmf-dist/bibtex/* +%dir %{_datadir}/texmf-dist/chktex +%{_datadir}/texmf-dist/chktex/* +%dir %{_datadir}/texmf-dist/context +%{_datadir}/texmf-dist/context/* +%dir %{_datadir}/texmf-dist/dvipdfmx +%{_datadir}/texmf-dist/dvipdfmx/* +%dir %{_datadir}/texmf-dist/hbf2gf +%{_datadir}/texmf-dist/hbf2gf/* +%dir %{_datadir}/texmf-dist/makeindex +%{_datadir}/texmf-dist/makeindex/* +%dir %{_datadir}/texmf-dist/metafont +%{_datadir}/texmf-dist/metafont/* +%dir %{_datadir}/texmf-dist/metapost +%{_datadir}/texmf-dist/metapost/* +%dir %{_datadir}/texmf-dist/mft +%{_datadir}/texmf-dist/mft/* +%dir %{_datadir}/texmf-dist/omega +%{_datadir}/texmf-dist/omega/* +%dir %{_datadir}/texmf-dist/pbibtex +%{_datadir}/texmf-dist/pbibtex/* +%dir %{_datadir}/texmf-dist/scripts +%{_datadir}/texmf-dist/scripts/* +%dir %{_datadir}/texmf-dist/tex +%{_datadir}/texmf-dist/tex/* +%exclude %{_datadir}/texmf-dist/tex/latex +%exclude %{_datadir}/texmf-dist/tex/latex/* +%dir %{_datadir}/texmf-dist/texconfig +%{_datadir}/texmf-dist/texconfig/* +%dir %{_datadir}/texmf-dist/texdoc +%{_datadir}/texmf-dist/texdoc/* +%dir %{_datadir}/texmf-dist/texdoctk +%{_datadir}/texmf-dist/texdoctk/* +%dir %{_datadir}/texmf-dist/ttf2pk +%{_datadir}/texmf-dist/ttf2pk/* +%dir %{_datadir}/texmf-dist/web2c +%{_datadir}/texmf-dist/web2c/* +%dir %{_datadir}/texmf-dist/xindy +%{_datadir}/texmf-dist/xindy/* +%{_datadir}/texmf-dist/README +%dir %{_datadir}/texmf-local/ +%attr(0644, root, root) %verify(not md5 size mtime) %ghost %{_datadir}/texmf-local/ls-R +%dir %{_localstatedir}/lib/texmf + +%files fonts +%defattr(-,root,root) +%dir %{_datadir}/texmf-dist/fonts +%{_datadir}/texmf-dist/fonts/* + +%files latex +%defattr(-,root,root) +%{_bindir}/latexpand +%{_bindir}/ltxfileinfo +%{_bindir}/pdftex +%{_bindir}/amstex +%{_bindir}/cslatex +%{_bindir}/csplain +%{_bindir}/dvilualatex +%{_bindir}/dviluatex +%{_bindir}/eplain +%{_bindir}/etex +%{_bindir}/jadetex +%{_bindir}/latex +%{_bindir}/lualatex +%{_bindir}/mex +%{_bindir}/mllatex +%{_bindir}/mltex +%{_bindir}/pdfcslatex +%{_bindir}/pdfcsplain +%{_bindir}/pdfetex +%{_bindir}/pdfjadetex +%{_bindir}/pdflatex +%{_bindir}/pdfmex +%{_bindir}/pdfxmltex +%{_bindir}/platex +%{_bindir}/texsis +%{_bindir}/uplatex +%{_bindir}/utf8mex +%{_bindir}/xelatex +%{_bindir}/xmltex +%dir %{_datadir}/texmf-dist/tex/latex +%{_datadir}/texmf-dist/tex/latex/* + +%files dvips +%defattr(-,root,root) +%{_bindir}/dvips +%{_mandir}/man1/dvips.1.gz +%dir %{_datadir}/texmf-dist/dvips +%{_datadir}/texmf-dist/dvips/* +%{_infodir}/dvips.info.gz + +%files xdvi +%defattr(-,root,root) +%{_bindir}/xdvi +%{_bindir}/xdvi-xaw +%{_bindir}/xdvipdfmx +%dir %{_datadir}/texmf-dist/xdvi +%{_datadir}/texmf-dist/xdvi/* +%{_mandir}/man1/xdvi.1* + +%files tex4ht +%defattr(-,root,root) +%{_bindir}/ht +%{_bindir}/htcontext +%{_bindir}/htlatex +%{_bindir}/htmex +%{_bindir}/httex +%{_bindir}/httexi +%{_bindir}/htxelatex +%{_bindir}/htxetex +%{_bindir}/t4ht +%{_bindir}/tex4ht +%dir %{_datadir}/texmf-dist/tex4ht +%{_datadir}/texmf-dist/tex4ht/* + +%files doc +%defattr(-,root,root) +%dir %{_datadir}/texmf-dist/doc +%{_datadir}/texmf-dist/doc/* +%doc ChangeLog README README.coding README.config README.cross README.distro README.hacking README.layout + +%files source +%defattr(-,root,root) +%dir %{_datadir}/texmf-dist/source +%{_datadir}/texmf-dist/source/* + +%changelog +* Mon Aug 19 2013 Silvan Calarco 20130530-1mamba +- update to 20130530 +- texlive: require texi2html +- texlive-fonts: require(post) texlive + +* Mon Aug 19 2013 Silvan Calarco 20120701-3mamba +- texlive-fonts: obsolete tetex-fonts + +* Mon Apr 01 2013 Silvan Calarco 20120701-2mamba +- included fonts package +- source edit (next build): also run updmap-sys after font and core packages installation +- source edit (next build): increase pool-size from 3500000 to 20000000 in texmf.cnf + +* Sat Mar 30 2013 Silvan Calarco 20120701-1mamba +- package created by silvan using the webbuild interface