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.22 by afanfani, Mon Apr 14 10:06:52 2008 UTC vs.
Revision 1.128 by spiga, Fri Jan 15 15:16:42 2010 UTC

# Line 1 | Line 1
1 < ### RPM cms crab-server CRABSERVER_1_0_0_pre2
1 > ### RPM cms crab-server CS_SLC5_test_5
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
7 <
6 > ## boost  is neede only for SLC5 build
7 > Requires: prodcommon prodagent boost
8   %prep
9   %setup -n CRAB
10   %build
11  
12   echo "PWD=$PWD"
12 #cd CRABSERVER
13 #echo "PWD=$PWD"
13   mv CRABSERVER/* .
14  
15   %install
16   make PREFIX=%i install
17   mkdir -p %i/bin
18   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
19  
20 < (echo "#!/bin/tcsh"; \
21 < echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
22 < echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.csh"; \
23 < echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.csh"; \
24 < echo "source $PRODCOMMON_ROOT/etc/profile.d/init.csh"; \
25 < echo "source $PRODAGENT_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh
20 > # The following is needed only for SLC5 build
21 > ###
22 > pushd src/python/CommandManager/server-side
23 >  make -f Makefile_2.6 PYHOME=$PYTHON_ROOT BOOST_HOME=$BOOST_ROOT all
24 >  cp FrontendLoader_1_1.so %i/lib/CommandManager/
25 > popd
26 > ###
27 >        
28 > # Copy dependencies to dependencies-setup.sh
29 > mkdir -p %i/etc/profile.d
30 > for x in %pkgreqs; do
31 > case $x in /* ) continue ;; esac
32 > p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/'
33 > )
34 > echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
35 > echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
36 > done
37  
38   %post
39   %{relocateConfig}etc/profile.d/dependencies-setup.sh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines