58bcee
# macros to keep trees in texlive consistent
58bcee
%_texmf          /usr/share/texlive/texmf-local
58bcee
%_texmf_main     /usr/share/texlive/texmf-dist
58bcee
%_texmf_vendor   /usr/share/texlive/texmf-dist
58bcee
%_texmf_var      /var/lib/texmf
58bcee
%_texmf_conf     /usr/share/texlive/texmf-config
58bcee
58bcee
%texlive_post \
58bcee
mkdir -p /var/run/texlive \
58bcee
touch /var/run/texlive/run-texhash \
58bcee
touch /var/run/texlive/run-mtxrun \
58bcee
:
58bcee
58bcee
%texlive_postun \
58bcee
if [ $1 == 1 ]; then \
58bcee
  mkdir -p /var/run/texlive \
58bcee
  touch /var/run/run-texhash \
58bcee
else \
58bcee
  %{_bindir}/texhash 2> /dev/null \
58bcee
fi \
58bcee
:
58bcee
58bcee
%texlive_posttrans \
58bcee
if [ -e /var/run/texlive/run-texhash ] && [ -e %{_bindir}/texhash ]; then %{_bindir}/texhash 2> /dev/null; rm -f /var/run/texlive/run-texhash; fi \
58bcee
if [ -e /var/run/texlive/run-mtxrun ]; then export TEXMF=/usr/share/texlive/texmf-dist; export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c; export TEXMFCACHE=/var/lib/texmf; %{_bindir}/mtxrun --generate &> /dev/null; rm -f /var/run/texlive/run-mtxrun; fi \
58bcee
: