From 315d1347e78f268ef38277412086ed6f053f919a Mon Sep 17 00:00:00 2001 From: cherry530 Date: Tue, 28 Feb 2023 10:22:19 +0800 Subject: [PATCH] Fix fmtutil.cnf not foundfor 2021version Signed-off-by: cherry530 --- texlive-split-w.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/texlive-split-w.spec b/texlive-split-w.spec index 42c5eac..78332eb 100644 --- a/texlive-split-w.spec +++ b/texlive-split-w.spec @@ -4,7 +4,7 @@ Name: texlive-split-w Version: %{tl_version} -Release: 1 +Release: 2 Epoch: 9 Summary: TeX formatting system License: Artistic 2.0 and GPLv2 and GPLv2+ and LGPLv2+ and LPPL-1.3a and LPPL-1.3c and MIT and Public Domain and UCD and Utopia @@ -905,17 +905,17 @@ support. %post -n texlive-t2 if [ $1 -gt 0 ] ; then -sed -i 's/^\#\!\ cyramstex.*$/cyramstex pdftex language.dat -translate-file=cp227.tcx *cyramstx.ini/' %{_texdir}/texmf-dist/web2c/fmtutil.cnf -sed -i 's/^\#\!\ cyrtex.*$/cyrtex pdftex language.dat -translate-file=cp227.tcx *cyrtex.ini/' %{_texdir}/texmf-dist/web2c/fmtutil.cnf -sed -i 's/^\#\!\ cyrtexinfo.*$/cyrtexinfo pdftex language.dat -translate-file=cp227.tcx *cyrtxinf.ini/' %{_texdir}/texmf-dist/web2c/fmtutil.cnf +sed -i 's/^\#\!\ cyramstex.*$/cyramstex pdftex language.dat -translate-file=cp227.tcx *cyramstx.ini/' /etc/texlive/web2c/fmtutil.cnf +sed -i 's/^\#\!\ cyrtex.*$/cyrtex pdftex language.dat -translate-file=cp227.tcx *cyrtex.ini/' /etc/texlive/web2c/fmtutil.cnf +sed -i 's/^\#\!\ cyrtexinfo.*$/cyrtexinfo pdftex language.dat -translate-file=cp227.tcx *cyrtxinf.ini/' /etc/texlive/web2c/fmtutil.cnf fi : %postun -n texlive-t2 if [ $1 == 0 ] ; then -sed -i 's/^cyramstex.*$/\#\!\ cyramstex pdftex language.dat -translate-file=cp227.tcx *cyramstx.ini/' %{_texdir}/texmf-dist/web2c/fmtutil.cnf > /dev/null 2>&1 -sed -i 's/^cyrtex.*$/\#\!\ cyrtex pdftex language.dat -translate-file=cp227.tcx *cyrtex.ini/' %{_texdir}/texmf-dist/web2c/fmtutil.cnf > /dev/null 2>&1 -sed -i 's/^cyrtexinfo.*$/\#\!\ cyrtexinfo pdftex language.dat -translate-file=cp227.tcx *cyrtxinf.ini/' %{_texdir}/texmf-dist/web2c/fmtutil.cnf > /dev/null 2>&1 +sed -i 's/^cyramstex.*$/\#\!\ cyramstex pdftex language.dat -translate-file=cp227.tcx *cyramstx.ini/' /etc/texlive/web2c/fmtutil.cnf > /dev/null 2>&1 +sed -i 's/^cyrtex.*$/\#\!\ cyrtex pdftex language.dat -translate-file=cp227.tcx *cyrtex.ini/' /etc/texlive/web2c/fmtutil.cnf > /dev/null 2>&1 +sed -i 's/^cyrtexinfo.*$/\#\!\ cyrtexinfo pdftex language.dat -translate-file=cp227.tcx *cyrtxinf.ini/' /etc/texlive/web2c/fmtutil.cnf > /dev/null 2>&1 fi : @@ -3756,6 +3756,9 @@ rm -rf %{buildroot}%{_texdir}/texmf-dist/doc/texlive/texlive-common/tlshell-maco %doc %{_texdir}/texmf-dist/doc/latex/textualicomma/ %changelog +* Tue Feb 28 2023 xu_ping - 9:2021-2 +- Fix fmtutil.cnf not found for 2021 version + * Wed Oct 26 2022 misaka00251 - 9:2021-1 - Upgrade texlive version to 2021 - The following packages no longer exist: texlive-docindex, tabulars-e-doc -- Gitee