### REF: https://tug.org/texlive/ Name: texlive-full Version: 2025 Release: 1%{?dist} Summary: TeX Live distribution License: GPLv2+ URL: https://tug.org/texlive/ #Source0: http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz Source0: https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/%{version}/install-tl-unx.tar.gz ExclusiveArch: x86_64 BuildRequires: tar perl-devel Requires: perl perl-YAML-Tiny Obsoletes: texlive-basic %global install_dir /opt/texlive/%{version} %description TeX Live provides a comprehensive TeX system for GNU/Linux. This RPM installs a TeX Live tree in /opt/texlive. %prep mkdir extracted cd extracted tar -xf %{SOURCE0} texlive_dir=$(ls -d install-tl-* | head -n1) mv "$texlive_dir" ../texlive_dir cd .. %build # Nothing to build %install ###ANCHOR Install texlive to a temporary directory to avoid embedding %{buildroot} in the file-paths mkdir -p tmp_texlive tmp_install_dir=$(realpath tmp_texlive) ## Create a custom install profile with absolute paths cat > texlive.profile < %{buildroot}/usr/local/bin/tlmgr < %{buildroot}/etc/profile.d/texlive.sh < %{buildroot}/etc/bashrc.d/texlive.sh <