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.1 by afanfani, Fri May 11 16:41:48 2007 UTC vs.
Revision 1.155 by spiga, Sat Mar 27 11:31:51 2010 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines