Fix fmtutil.cnf not found

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit b6d4f620517d4d51e3a02871319a77b1766e267d)
This commit is contained in:
cherry530 2022-03-07 17:36:51 +08:00 committed by openeuler-sync-bot
parent bf148996e9
commit 66f4e661a6

View File

@ -5,7 +5,7 @@
Name: texlive-split-w Name: texlive-split-w
Version: %{tl_version} Version: %{tl_version}
Release: 24 Release: 25
Epoch: 8 Epoch: 8
Summary: TeX formatting system Summary: TeX formatting system
License: Artistic 2.0 and GPLv2 and GPLv2+ and LGPLv2+ and LPPL and MIT and Public Domain and UCD and Utopia License: Artistic 2.0 and GPLv2 and GPLv2+ and LGPLv2+ and LPPL and MIT and Public Domain and UCD and Utopia
@ -908,17 +908,17 @@ support.
%post -n texlive-t2 %post -n texlive-t2
if [ $1 -gt 0 ] ; then 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/^\#\!\ 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/' %{_texdir}/texmf-dist/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/' %{_texdir}/texmf-dist/web2c/fmtutil.cnf sed -i 's/^\#\!\ cyrtexinfo.*$/cyrtexinfo pdftex language.dat -translate-file=cp227.tcx *cyrtxinf.ini/' /etc/texlive/web2c/fmtutil.cnf
fi fi
: :
%postun -n texlive-t2 %postun -n texlive-t2
if [ $1 == 0 ] ; then 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/^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/' %{_texdir}/texmf-dist/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/' %{_texdir}/texmf-dist/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 fi
: :
@ -3789,6 +3789,9 @@ rm -f %{buildroot}%{_datadir}/texlive/texmf-dist/tlpkg/tlpobj/*
%doc %{_texdir}/texmf-dist/doc/latex/textualicomma/ %doc %{_texdir}/texmf-dist/doc/latex/textualicomma/
%changelog %changelog
* Wed Mar 07 2022 xu_ping <xuping33@huawei.com> - 8:2018-25
- Fix fmtutil.cnf not found
* Wed May 19 2021 maminjie <maminjie1@huawei.com> - 8:2018-24 * Wed May 19 2021 maminjie <maminjie1@huawei.com> - 8:2018-24
- split texlive - split texlive