fixes around texaccents, still needs snobol4, which is pending review

This commit is contained in:
Tom Callaway 2023-03-27 10:22:54 -04:00
parent cbe3b1d5a0
commit dd3911846d
3 changed files with 31 additions and 1 deletions

1
.gitignore vendored
View File

@ -433,3 +433,4 @@
/upmendex.doc.tar.xz
/digestif.doc.tar.xz
/digestif.tar.xz
/texaccents.source.tar.xz

View File

@ -421,3 +421,4 @@ SHA512 (texaccents.tar.xz) = 5a2a79c9faddebd523939cb3cf42236b1d2c441a036cd7fc6f6
SHA512 (upmendex.doc.tar.xz) = ec4d1670ff84680fcab88e29ca5f4306f44450ccca9cba06282ad34bd026f74b46d166724a06a313957ca8d798b0c296e848bb248ad416597a99afb16b4b5a0c
SHA512 (digestif.doc.tar.xz) = fabc6d0ea5a1e55b7ecd6430b2373c15e413c985485331bd7bd5bca437947a76ac7d8ac6ed2ea3d6afe687284aef673b0e302a1c9925737c6e1d95cecf2ea8cb
SHA512 (digestif.tar.xz) = 098d625749cee42f965d21ef5ec2843211db36fd0f4cced882ed15f32a20a2d70bf292b01e6797e7ca097adfadf2fd40d3c5eef6c694da39e8302770cfb784d3
SHA512 (texaccents.source.tar.xz) = 8bf5d4957008833d54f87eff9feb14f60694ea02e7e9fd2cd5c5d2e2db3f6de3a33784121208ffab516763fbf578125399cbd6f39750e6bb0162a65c2fc44f24

View File

@ -23,7 +23,7 @@
Name: %{shortname}-base
Version: %{source_date}
Release: 70%{?dist}
Release: 71%{?dist}
Epoch: 11
Summary: TeX formatting system
# The only files in the base package are directories, cache, and license texts
@ -462,6 +462,7 @@ Source421: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/pagelayo
Source422: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/texaccents.tar.xz
Source423: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/texaccents.doc.tar.xz
Source424: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/upmendex.doc.tar.xz
Source425: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/texaccents.source.tar.xz
Patch1: tl-kpfix.patch
Patch2: tl-format.patch
@ -7055,6 +7056,9 @@ Summary: Convert composite accented characters to Unicode
Version: svn64447
License: MIT
Requires: texlive-base texlive-kpathsea
Requires: snobol4
# snobol4
BuildArch: noarch
%description -n %{shortname}-texaccents
This small utility, written in SNOBOL, converts the composition
@ -8650,8 +8654,22 @@ export TEXMFCACHE=\$(realpath \$HOME/.cache/texlive);
%{_bindir}/mtxrun --script context "\$@"
EOF
chmod 0755 context
# fix texaccents
# TODO: Detect snobol4 version rather than hardcoding it here.
rm -f texaccents
cat > texaccents << EOF
#!/bin/sh
env SNOPATH=/usr/lib64/snobol4/2.3.1/lib:/usr/share/texlive/texmf-dist/scripts/texaccents /usr/bin/snobol4 /usr/share/texlive/texmf-dist/scripts/texaccents/texaccents.sno "\$@"
EOF
chmod 0755 texaccents
popd
# more texaccents fixes
mv %{buildroot}%{_texdir}/texmf-dist/source/support/texaccents/* %{buildroot}%{_texdir}/texmf-dist/scripts/texaccents
sed -i 's|host.inc|host.sno|g' %{buildroot}%{_texdir}/texmf-dist/scripts/texaccents/texaccents.sno
sed -i 's|repl.inc|repl.sno|g' %{buildroot}%{_texdir}/texmf-dist/scripts/texaccents/grepl.inc
# Move docs
mkdir -p %{buildroot}%{_datadir}/
mkdir -p %{buildroot}%{_infodir}/
@ -11062,6 +11080,16 @@ yes | %{_bindir}/updmap-sys --quiet --syncwithtrees >/dev/null 2>&1 || :
%doc %{_texdir}/texmf-dist/doc/latex/yplan/
%changelog
* Mon Mar 27 2023 Tom Callaway <spot@fedoraproject.org> - 11:20230311-71
- fix texaccents so that:
1. it has all the includes it needs
2. it is noarch
3. it has a proper launcher script
NOTE1: texaccents will no longer pickup a Requires on /usr/bin/snobol4
but it still needs it. It's pending review for inclusion in Fedora.
NOTE2: With snobol4, texaccents itself runs but does not function usefully
at the moment
* Mon Mar 20 2023 Tom Callaway <spot@fedoraproject.org> - 11:20230311-70
- TeXLive 2023
- bring digestif over here