ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/SCRAMV1.spec
(Generate patch)

Comparing COMP/CMSDIST/SCRAMV1.spec (file contents):
Revision 1.1 by argiro, Fri Feb 10 14:17:51 2006 UTC vs.
Revision 1.2 by eulisse, Wed Feb 22 13:32:28 2006 UTC

# Line 28 | Line 28
28   # FIXME: should we have more than one project database and link them
29   # together into one big one?
30  
31 < %define cvsrepo  cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/SCRAM?passwd=AA_:yZZ3e
31 > %define cvsrepo  cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/SCRAM?passwd=AA_:yZZ3e  
32  
33 < Source0: %{cvsrepo}&tag=-r%{v}&module=%n&output=/source.tar.gz
33 > Source0: %{cvsrepo}&tag=-r%{v}&module=SCRAM&output=/source.tar.gz
34  
35   %prep
36   %setup -n SCRAM
# Line 39 | Line 39 | Source0: %{cvsrepo}&tag=-r%{v}&module=%n
39   %install
40   tar -cf - . | tar -C %i -xvvf -
41  
42 < mkdir -p %instroot/bin %instroot/share/scramdb
43 < cat > %instroot/bin/scram << \EOF
44 < #!/bin/sh
45 <
46 < # FIXME: Handle -re?
47 < # FIXME: Since we can install the same package on many platforms in
48 < # one tree, should the project lookup database be platform-specific?
49 <
50 < SCRAM=$0
51 < : ${SCRAM_HOME=%i}
52 < : ${SCRAM_LOOKUPDB=%instroot/share/scramdb/project.lookup}
53 < : ${SCRAMPERL="/usr/bin/env perl"}
54 < PERL5LIB=$SCRAM_HOME/src${PERL5LIB+":$PERL5LIB"}
55 < : ${SITENAME=CERN}
56 < : ${SEARCHOVRD=true}
57 < : ${LOCTOOLS=NODEFAULT}
58 < export SCRAM SCRAM_HOME SCRAM_LOOKUPDB SCRAMPERL
59 < export PERL5LIB SITENAME SEARCHOVRD LOCTOOLS
60 <
61 < exec perl "$SCRAM_HOME/src/scramcli" ${1+"$@"}
62 < EOF
63 < chmod 755 %instroot/bin/scram
42 > mkdir -p %instroot/bin %instroot/share/scramdb %i/Installation
43 >
44 > cat Installation/scram.pl.in | sed -e "s|@PERLEXE@|!/usr/bin/env perl|;s|@SCRAM_HOME@|%i|;s|@INSTALLDIR@|%i/src|" > %instroot/bin/scramv1
45 > cat Installation/SCRAM_SITE.pm.in | sed -e "s|@SCRAM_HOME@|%i|;s|@SCRAM_LOOKUPDB_DIR@|%instroot/share/scramdb/|;s|@PERLEXE@|/usr/bin/env perl|;s|@TT2INSTALLDIR@||;s|@SITETEMPLATEDIR@|%i/Templates|;s|@SCRAM_SITENAME@|STANDALONE|" > %i/src/SCRAM_SITE.pm
46 >
47 > # cat > %instroot/bin/scramv1 << \EOF
48 > # #!/bin/sh
49 > #
50 > # # FIXME: Handle -re?
51 > # # FIXME: Since we can install the same package on many platforms in
52 > # # one tree, should the project lookup database be platform-specific?
53 > #
54 > # SCRAM=$0
55 > # : ${SCRAM_HOME=%i}
56 > # : ${SCRAM_LOOKUPDB=%instroot/share/scramdb/project.lookup}
57 > # : ${SCRAMPERL="/usr/bin/env perl"}
58 > # PERL5LIB=$SCRAM_HOME/src${PERL5LIB+":$PERL5LIB"}
59 > # : ${SITENAME=CERN}
60 > # : ${SEARCHOVRD=true}
61 > # : ${LOCTOOLS=NODEFAULT}
62 > # export SCRAM SCRAM_HOME SCRAM_LOOKUPDB SCRAMPERL
63 > # export PERL5LIB SITENAME SEARCHOVRD LOCTOOLS
64 > #
65 > # exec perl "$SCRAM_HOME/src/scramcli" ${1+"$@"}
66 > # EOF
67 > chmod 755 %instroot/bin/scramv1
68  
69   %files
70   %i
71 < %instroot/bin/scram
71 > %instroot/bin/scramv1
72   %instroot/share/scramdb

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines