1 |
|
### RPM lcg SCRAMV1 V1_0_2 |
2 |
|
## INITENV +PATH PATH %instroot/bin |
3 |
|
## INITENV +PATH PERL5LIB %{i} |
4 |
< |
Requires: expat p5-template-toolkit p5-uri p5-xml-parser p5-libwww-perl |
4 |
> |
Requires: expat p5-template-toolkit p5-uri p5-xml-parser p5-libwww-perl cms-env |
5 |
|
Provides: perl(SCRAM::Helper) |
6 |
|
Provides: perl(Utilities::AddDir) |
7 |
|
Provides: perl(Utilities::Architecture) |
57 |
|
cat Installation/scram.pl.in | sed -e "s|@PERLEXE@|/usr/bin/env perl|;s|@SCRAM_HOME@|%i|;s|@INSTALLDIR@|%i/src|" > %i/bin/scramv1 |
58 |
|
cat << \EOF_BIN_SCRAMV1 > %instroot/bin/scramv1 |
59 |
|
#!/bin/sh |
60 |
< |
source %i/etc/profile.d/init.sh |
61 |
< |
%i/bin/scramv1 $@ |
60 |
> |
source %instroot/`cmsarch`/lcg/%n/%v/etc/profile.d/init.sh |
61 |
> |
%instroot/`cmsarch`/lcg/%n/%v/bin/scramv1 $@ |
62 |
|
EOF_BIN_SCRAMV1 |
63 |
|
|
64 |
|
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@|$TEMPLATE_TOOLKIT_ROOT/lib|;s|@SITETEMPLATEDIR@|%i/Templates|;s|@SCRAM_SITENAME@|STANDALONE|" > %i/Installation/SCRAM_SITE.pm |