1 |
< |
### RPM cms crab-server CRABSERVER_1_0_10 |
1 |
> |
### RPM cms crab-server CRABSERVER_SLC5_test_1 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib |
3 |
|
# |
4 |
|
%define cvstag %v |
5 |
|
Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=CRAB/CRABSERVER&export=CRAB&&tag=-r%{cvstag}&output=/CRABSERVER.tar.gz |
6 |
< |
Requires: python dbs-client dls-client prodcommon prodagent py2-pyxml |
6 |
> |
Requires: prodcommon prodagent |
7 |
|
%prep |
8 |
|
%setup -n CRAB |
9 |
|
%build |
15 |
|
make PREFIX=%i install |
16 |
|
mkdir -p %i/bin |
17 |
|
cp bin/* %{i}/bin |
18 |
– |
mkdir -p %{i}/etc/profile.d |
18 |
|
|
19 |
< |
|
20 |
< |
(echo "#!/bin/sh"; \ |
21 |
< |
echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \ |
22 |
< |
echo "source $PY2_PYXML_ROOT/etc/profile.d/init.sh"; \ |
23 |
< |
echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.sh"; \ |
24 |
< |
echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.sh"; \ |
25 |
< |
echo "source $PRODCOMMON_ROOT/etc/profile.d/init.sh"; \ |
26 |
< |
echo "source $PRODAGENT_ROOT/etc/profile.d/init.sh" ) > %{i}/etc/profile.d/dependencies-setup.sh |
27 |
< |
|
29 |
< |
(echo "#!/bin/tcsh"; \ |
30 |
< |
echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \ |
31 |
< |
echo "source $PY2_PYXML_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 $PRODCOMMON_ROOT/etc/profile.d/init.csh"; \ |
35 |
< |
echo "source $PRODAGENT_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh |
19 |
> |
# Copy dependencies to dependencies-setup.sh |
20 |
> |
mkdir -p %i/etc/profile.d |
21 |
> |
for x in %pkgreqs; do |
22 |
> |
case $x in /* ) continue ;; esac |
23 |
> |
p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/' |
24 |
> |
) |
25 |
> |
echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh |
26 |
> |
echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh |
27 |
> |
done |
28 |
|
|
29 |
|
%post |
30 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |