LFS-RPM/SPECS/texlive-installer.spec
YellowJacketLinux e6f5d22c05 initial checkin
2023-04-04 14:38:03 -07:00

65 lines
2.0 KiB
RPMSpec

Name: texlive-installer
Version: 2023
Release: %{?repo}0.rc2%{?dist}
Summary: Helper script for installing TeXLive
Group: Publishing
License: CC0 Public Domain
URL: https://github.com/YellowJacketLinux/LFS
Source0: yjl-install-tl.sh
Source1: profile.d-texlive.sh
Source2: update-tl.sh
Source3: CC0-Public_Domain.md
BuildArch: noarch
#BuildRequires:
Requires: %{_sysconfdir}/profile
%description
This package installs the script `yjl-install-tl.sh' and `update-tl.sh'
into %{_datadir}/doc/%{name}-%{version} and sets up the filesystem
to install TeXLive %{version}.
After installing this package, AS THE `texlive' user, run the script
`yjl-install-tl.sh' to install TeXLive. Then periodically, also AS THE
`texlive' user, run the script `update-tl.sh' to update TeXLive packages.
Any user who has been added to the group `texlive' will have TeXLive
in their executable path, along with the man pags and info pages.
Additional administration, such as setting the default paper size or
adding custom add-on packages and fonts, should be performed by the
`texlive' user.
%prep
%setup -n %{name}-%{version} -c -T
cp %{SOURCE0} .
cp %{SOURCE2} .
cp %{SOURCE3} .
%build
%install
install -m755 -d %{buildroot}%{_sysconfdir}/profile.d
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/texlive.sh
install -m755 -d %{buildroot}/opt/texlive/%{version}
install -m755 -d %{buildroot}/opt/texlive/texmf-local
%files
%defattr(-,root,root,-)
%attr(0644,root,root) %{_sysconfdir}/profile.d/texlive.sh
%attr(0755,texlive,texlive) /opt/texlive/%{version}
%attr(0755,texlive,texlive) /opt/texlive/texmf-local
%license CC0-Public_Domain.md
%doc yjl-install-tl.sh update-tl.sh
%changelog
* Tue Apr 04 2023 Michael A. Peters <anymouseprophet@gmail.com> - 2023-0.rc2
- Update the /etc/profile.d/texlive.sh script so that /usr/local/bin
- and /usr/bin come before the texlive path.
* Wed Mar 22 2023 Michael A. Peters <anymouseprophet@gmail.com> - 2023-0.rc1
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)