BTW, Fons and Rene, I assumed the Gnu Copyright license for this
spec file. I don't know if that is right or not.
Steve.
Summary: Root a replacement for paw
Name: root
Version: 2.00
Release: 0
Source: ftp://root.cern.ch/root/root_v2.00bis.source.tar.gz
Source1: ftp://phyppro1.phy.bnl.gov/pub/root/root_v2.00.aux.tar.gz
Source2: ftp://phyppro1.phy.bnl.gov/pub/root/root_v2.00.misc.tar.gz
Copyright: Gnu Copyright License
Group: X11/Applications/Networking
Patch: root.linuxalpha.patch
%description
analysis package
%prep
%setup -c -n root-2.00
%setup -T -D -a 1
%setup -T -D -a 2
%patch
%build
export ROOTSYS=$(pwd)
export LD_LIBRARY_PATH=$ROOTSYS/lib
export PATH="$PATH":$ROOTSYS/bin
mkdir -p lib
mkdir -p bin
cd src
%ifarch i386
ln -fs Makefile.linuxegcs.i386 Makefile
cp BASE_Math.cxxno BASE_Math.cxx
%endif
%ifarch alpha
ln -fs Makefile.linuxegcs.alpha Makefile
%endif
make
cd ..
%install
mkdir -p /usr/lib/Root
cp -r lib /usr/lib/Root
cp -r bin /usr/lib/Root
cp -r include /usr/lib/Root
cp -r icons /usr/lib/Root
cp -r test /usr/lib/Root
cp -r macros /usr/lib/Root
cp -r tutorials /usr/lib/Root
cp misc/Root.sh /etc/profile.d
cp misc/Root.csh /etc/profile.d
chmod +x /etc/profile.d/Root.sh
chmod +x /etc/profile.d/Root.csh
ln -sf /usr/lib/Root/bin/cint /usr/bin/X11
ln -sf /usr/lib/Root/bin/root /usr/bin/X11
ln -sf /usr/lib/Root/bin/root.exe /usr/bin/X11
ln -sf /usr/lib/Root/bin/rootcint /usr/bin/X11
%post
%files
/usr/lib/Root
/etc/profile.d/Root.sh
/etc/profile.d/Root.csh
/usr/bin/X11/cint
/usr/bin/X11/root
/usr/bin/X11/root.exe
/usr/bin/X11/rootcint