Re: "Source tree" confusion

From: Stephen Adler (adler@ssadler.phy.bnl.gov)
Date: Mon Aug 03 1998 - 20:21:08 MEST


Since I've gone through the process of building root from the source .tar
file, and I have built .rpm's for root, maybe I should post my spec file
which, for those who know rpm, can figure out how to build root. We'll
Let me post my spec file in anycase.

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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:35 MET