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