BRAT changes - RPMs possible

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Tue Jan 22 2002 - 15:28:40 EST

  • Next message: Bjorn H Samset: "Brat 2.2.11 tagged"

    Hi all, 
    
    I made some rules for making RPMs of BRAT, which should make it easier
    to install and maintain a BRAT installation on a machine or cluster. 
    
    To build the RPM (one biiig package, approx 4MB), simply do 
    
      cvs -d /afs/rhic/brahms/BRAHMS_CVS -d co brat 
      cd brat 
      ./configure 
      make dist 
      rpm -ta brat-<version>.tar.gz 
    
    where <version> is the current version of BRAT. 
    
    Per default, the package installs BRAT under /usr/local.  If you want
    to change this, then after the ./configure step above, edit the
    definitions of 
    
      _prefix
      _sysconfdir 
      _defaultdocdir 
    
    in config/brat.spec (NOT config/brat.spec.in), and do the rest of the
    steps.  
    
    It's also possible to make RPMs (there are several) of ROOT (more
    details given in README/INSTALL in the ROOT source tree), so it
    actually possible to have RPM manage most of BRAHMSs offline software! 
    
    To build ROOT RPMs, do 
    
      cvs -d :pserver:cvs@root.cern.ch:/user/cvs login 
      Password: cvs 
      cvs -d :pserver:cvs@root.cern.ch:/user/cvs co \
          -d root-<version> -r <version tag> root 
      cd root-<version>
      make redhat 
      cd ..
      tar -czf root-v<version>.source.tar.gz root-<version> 
      rpm -ta root-v<version>.source.tar.gz
    
    where <version> is the ROOT version, of the form
      
      <major>.<minor>.<revision> 
    
    and <version tag> is the CVS tag for that version, of the form
    
      v<major>-<minor>-<revision>
    
    Per default packages installs in to /usr.  If you want to install
    somewhere else, edit the definitions of 
    
      _prefix
      _sysconfdir 
      _defaultdocdir 
    
    in root.spec after the "make redhat" step above. 
    
    If you don't have super-user privilege, you need to setup your own
    build area.  See the file README/INSTALL in the ROOT source tree.  
    
    If you're on a Debian GNU/Linux (or Debian GNU/Hurd :-) system, then
    you can make Debian packages of ROOT, but unfortunately not of BRAT
    (yet?); just do 
    
      cvs -d :pserver:cvs@root.cern.ch:/user/cvs login 
      Password: cvs 
      cvs -d :pserver:cvs@root.cern.ch:/user/cvs co \
          -d root-<version> -r <version tag> root 
      cd root-<version>
      make debian
    
    I hope that these two features of ROOT and BRAT will help you convince
    SysAdmins to maintain your production versions of ROOT and/or BRAT,
    thereby freeing you to do other work. 
    
    You can find a Red Hat 6.2, i386 package of BRAT 2.2.10 at 
    
      http://pii3.brahms.bnl.gov/~brahmlib/brat/rpms/
    
    You can find prebuld (unoffical) packages of ROOT 3.02/07 at 
    
      http://cholm.home.cern.ch/cholm/root 
    
    
    Yours, 
    
    Christian Holm Christensen -------------------------------------------
    Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
             DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
             Denmark                             Office: (+45) 353  25 305 
    Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm
    



    This archive was generated by hypermail 2b30 : Tue Jan 22 2002 - 15:29:00 EST