1 |
< |
### RPM cms crab CRAB_1_1_0 |
1 |
> |
### RPM cms crab CRAB_2_1_0_pre1 |
2 |
|
## INITENV +PATH PYTHONPATH %i/python |
3 |
< |
## INITENV +PATH PATH %i/scripts |
4 |
< |
## INITENV +PATH CRABDIR %i |
5 |
< |
## INITENV +PATH CRABSCRIPT %i |
3 |
> |
## INITENV +PATH PYTHONPATH %i/PsetCode |
4 |
> |
## INITENV +PATH PATH %i/python |
5 |
> |
## INITENV SET CRABPYTHON %i/python |
6 |
> |
## INITENV SET CRABDIR %i |
7 |
> |
## INITENV SET CRABSCRIPT %i/script |
8 |
|
|
9 |
|
%define cvstag %v |
10 |
|
Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=CRAB&export=CRAB&&tag=-r%{cvstag}&output=/CRAB.tar.gz |
11 |
< |
Requires: boss3 |
11 |
> |
Requires: python dbs-client dls-client prodcommon sqlite py2-pysqlite |
12 |
|
|
13 |
|
%prep |
14 |
|
%setup -n CRAB |
15 |
|
%build |
16 |
+ |
%install |
17 |
|
rm -rf %i |
18 |
|
mkdir -p %i |
19 |
|
cp -r ./* %i |
20 |
< |
%install |
20 |
> |
mkdir -p %{i}/etc/profile.d |
21 |
> |
|
22 |
> |
(echo "#!/bin/sh"; \ |
23 |
> |
echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \ |
24 |
> |
echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.sh"; \ |
25 |
> |
echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.sh"; \ |
26 |
> |
echo "source $PRODAGENT_ROOT/etc/profile.d/init.sh"; \ |
27 |
> |
echo "source $SQLITE_ROOT/etc/profile.d/init.sh"; \ |
28 |
> |
echo "source $PY2_PYSQLITE_ROOT/etc/profile.d/init.sh"; ) > %{i}/etc/profile.d/dependencies-setup.sh |
29 |
> |
|
30 |
> |
(echo "#!/bin/tcsh"; \ |
31 |
> |
echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \ |
32 |
> |
echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.csh"; \ |
33 |
> |
echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.csh"; \ |
34 |
> |
echo "source $PRODAGENT_ROOT/etc/profile.d/init.csh"; \ |
35 |
> |
echo "source $BOSS_ROOT/etc/profile.d/init.csh"; \ |
36 |
> |
echo "source $SQLITE_ROOT/etc/profile.d/init.csh"; \ |
37 |
> |
echo "source $PY2_PYSQLITE_ROOT/etc/profile.d/init.csh"; ) > %{i}/etc/profile.d/dependencies-setup.csh |
38 |
> |
|
39 |
> |
%post |
40 |
> |
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
41 |
> |
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
42 |
> |
|
43 |
> |
|