// spec mod to support pdflatex
%build
mkdir -p /builddir/.texlive2020/texmf-var/tex/generic/{hyphen,config}
cp /usr/share/texlive-extension/texmf-dist/tex/generic/hyphen/{hyphen.tex,dumyhyph.tex,zerohyph.tex} \
 /builddir/.texlive2020/texmf-var/tex/generic/hyphen/

cp /etc/texlive/tex/generic/config/language.dat \
 /builddir/.texlive2020/texmf-var/tex/generic/config/

export TEXMFHOME=/builddir/.texlive2020/texmf-var/tex
texhash /builddir/.texlive2020/texmf-var/tex

// from sympy build log
kpathsea: Running mktexfmt pdflatex.fmt                                                                                   (as user)
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):                                        
mktexfmt:   /usr/share/texlive/texmf-dist/web2c/fmtutil.cnf                                                               
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:                                           
mktexfmt:   /builddir/.texlive2020/texmf-config/web2c/fmtutil.cnf                                                         
mktexfmt [INFO]: writing formats under /builddir/.texlive2020/texmf-var/web2c                                             
mktexfmt [INFO]: --- remaking pdflatex with pdftex                                                                        
mktexfmt: running `pdftex -ini   -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini' ...

 sh-5.1# tree /builddir/.texlive2020/
/builddir/.texlive2020/
└── texmf-var
    ├── tex
    │   ├── generic
    │   │   ├── config
    │   │   │   └── language.dat
    │   │   └── hyphen
    │   │       ├── dumyhyph.tex
    │   │       ├── hyphen.tex
    │   │       └── zerohyph.tex
    │   └── ls-R
    └── web2c
        └── pdftex
            ├── pdflatex.fmt
            └── pdflatex.log

7 directories, 7 files