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

Comparing COMP/CMSDIST/crab-server.spec (file contents):
Revision 1.26 by afanfani, Fri Apr 18 09:20:36 2008 UTC vs.
Revision 1.125 by diego, Fri Dec 18 12:38:45 2009 UTC

# Line 1 | Line 1
1 < ### RPM cms crab-server CRABSERVER_1_0_0_pre4b
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
6 <
6 > Requires: prodcommon prodagent  
7   %prep
8   %setup -n CRAB
9   %build
10  
11   echo "PWD=$PWD"
12 #cd CRABSERVER
13 #echo "PWD=$PWD"
12   mv CRABSERVER/* .
13  
14   %install
15   make PREFIX=%i install
16   mkdir -p %i/bin
17   cp bin/* %{i}/bin
20 mkdir -p %{i}/etc/profile.d
21
22
23 (echo "#!/bin/sh"; \
24 echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
25 echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.sh"; \
26 echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.sh"; \
27 echo "source $PRODCOMMON_ROOT/etc/profile.d/init.sh"; \
28 echo "source $PRODAGENT_ROOT/etc/profile.d/init.sh" ) > %{i}/etc/profile.d/dependencies-setup.sh
18  
19 < (echo "#!/bin/tcsh"; \
20 < echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
21 < echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.csh"; \
22 < echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.csh"; \
23 < echo "source $PRODCOMMON_ROOT/etc/profile.d/init.csh"; \
24 < 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines