Hello,
I'm working on getting a up to date latex environment on PCLinuxOS (cf the other thread about Kile:
http://www.pclinuxos.com/forum/index.php/topic,89391.0.html)
Anyways, the texlive in the repos is very old (2007) and lacks many nice features. Since Texlive seems to be a packaging nightmare i want to do a quick and dirty approach which is probably not suitable for the repos but I need it to install it comfortably on several machines: I want to make a package which includes the dependencies, installs the texlive webinstaller (just copy the file to the computer basically) and add the texlive installation to the $path
The installer can then be run by the user or, even better be initiated by the rpm if thats possible?
This is what I have so far (I know its not much and I'll have to ask many more questions :-D):
%define name texlive
%define version 2011
%define release %mkrel 1
%define Summary Package to install the CTAN Texlive install script
Name: %{name}
Summary: %{Summary}
Version: %{version}
Release: %{release}
Source0: install-tl-unx.tar.xz
Group: Publishing
License: Distributable
URL: http://tug.org/texlive/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
#texlive-latex is the one needed by kile
Provides: texlive-latex
BuildRequires: perl-Tk
%description
This package will install the CTAN installation script install-tl. It has to be run in a terminal after the installation of this package in order to have a working texlive installation. Updates can be obtained running tlmgr in the terminal.
%prep
%setup -q -n %name-%{version}
%build
%install
%files
#%defattr(-,root,root,0755)
#%{_bindir}
#%{_datadir}
%changelog
* Sat May 04 2011 chrisboo
- created
The problem is already how to extract the installer installer into the buildroot? the prep command fails saying this:
+ umask 022
+ cd /home/packaging/src/rpm/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/packaging/src/rpm/BUILD
+ rm -rf texlive-2011
+ tar -xf /home/packaging/src/rpm/SOURCES/install-tl-unx.tar.xz
+ cd texlive-2011
/home/packaging/src/tmp/rpm-tmp.92644: line 33: cd: texlive-2011: No such file or directory
error: Bad exit status from /home/packaging/src/tmp/rpm-tmp.92644 (%prep)
RPM build errors:
Bad exit status from /home/packaging/src/tmp/rpm-tmp.92644 (%prep)
The tar.xz is not really a "source". Is that the problem? it looks like this:
[packaging@localhost install-tl-20110526]$ ls
index.html LICENSE.CTAN README readme-txt.dir/ release-texlive.txt
install-tl* LICENSE.TL readme-html.dir/ README.usergroups tlpkg/
Can anyone give my some hints on this? I'm rather puzzled here but hope that I made my intentions clear :-D