e946be
# macros to keep trees in texlive consistent
e946be
%_texmf          /usr/share/texlive/texmf-local
e946be
%_texmf_main     /usr/share/texlive/texmf-dist
e946be
%_texmf_vendor   /usr/share/texlive/texmf-dist
e946be
%_texmf_var      /var/lib/texmf
e946be
%_texmf_conf     /usr/share/texlive/texmf-config
e946be
e946be
%texlive_post \
e946be
mkdir -p /var/run/texlive \
e946be
touch /var/run/texlive/run-texhash \
e946be
touch /var/run/texlive/run-mtxrun \
e946be
:
e946be
e946be
%texlive_postun \
e946be
if [ $1 == 1 ]; then \
e946be
  mkdir -p /var/run/texlive \
e946be
  touch /var/run/run-texhash \
e946be
else \
e946be
  %{_bindir}/texhash 2> /dev/null \
e946be
fi \
e946be
:
e946be
e946be
%texlive_posttrans \
e946be
if [ -e /var/run/texlive/run-texhash ] && [ -e %{_bindir}/texhash ]; then %{_bindir}/texhash 2> /dev/null; rm -f /var/run/texlive/run-texhash; fi \
e946be
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 \
e946be
: