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.107 by spiga, Wed Jul 22 21:27:21 2009 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_9_pre3
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 py2-pyxml
6 > ## boost  is neede only for SLC5 build
7 > Requires: prodcommon prodagent boost
8   %prep
9   %setup -n CRAB
10   %build
# Line 15 | Line 16 | mv CRABSERVER/* .
16   make PREFIX=%i install
17   mkdir -p %i/bin
18   cp bin/* %{i}/bin
18 mkdir -p %{i}/etc/profile.d
19  
20 <
21 < (echo "#!/bin/sh"; \
22 < echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
23 < echo "source $PY2_PYXML_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 $PRODCOMMON_ROOT/etc/profile.d/init.sh"; \
27 < echo "source $PRODAGENT_ROOT/etc/profile.d/init.sh" ) > %{i}/etc/profile.d/dependencies-setup.sh
28 <
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
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