Fix fmtutil.cnf not foundfor 2021version

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 315d1347e78f268ef38277412086ed6f053f919a)
This commit is contained in:
cherry530 2023-02-28 10:22:19 +08:00 committed by openeuler-sync-bot
parent ca55c08c20
commit 4c0c04fca5

View File

@ -4,7 +4,7 @@
Name: texlive-split-w Name: texlive-split-w
Version: %{tl_version} Version: %{tl_version}
Release: 1 Release: 2
Epoch: 9 Epoch: 9
Summary: TeX formatting system 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 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 %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
: :
@ -3756,6 +3756,9 @@ rm -rf %{buildroot}%{_texdir}/texmf-dist/doc/texlive/texlive-common/tlshell-maco
%doc %{_texdir}/texmf-dist/doc/latex/textualicomma/ %doc %{_texdir}/texmf-dist/doc/latex/textualicomma/
%changelog %changelog
* Tue Feb 28 2023 xu_ping <xuping33@huawei.com> - 9:2021-2
- Fix fmtutil.cnf not found for 2021 version
* Wed Oct 26 2022 misaka00251 <liuxin@iscas.ac.cn> - 9:2021-1 * Wed Oct 26 2022 misaka00251 <liuxin@iscas.ac.cn> - 9:2021-1
- Upgrade texlive version to 2021 - Upgrade texlive version to 2021
- The following packages no longer exist: texlive-docindex, tabulars-e-doc - The following packages no longer exist: texlive-docindex, tabulars-e-doc