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.155 by spiga, Sat Mar 27 11:31:51 2010 UTC

# Line 1 | Line 1
1 < ### RPM cms crab-server CRABSERVER_1_0_9_pre3
1 > ### RPM cms crab-server CRABSERVER_1_1_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 > ## 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
# Line 15 | Line 17 | mv CRABSERVER/* .
17   make PREFIX=%i install
18   mkdir -p %i/bin
19   cp bin/* %{i}/bin
18 mkdir -p %{i}/etc/profile.d
20  
21 <
22 < (echo "#!/bin/sh"; \
23 < echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
24 < echo "source $PY2_PYXML_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
29 <
30 < (echo "#!/bin/tcsh"; \
31 < echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
32 < echo "source $PY2_PYXML_ROOT/etc/profile.d/init.csh"; \
33 < echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.csh"; \
34 < echo "source $DLS_CLIENT_ROOT/etc/profile.d/init.csh"; \
35 < echo "source $PRODCOMMON_ROOT/etc/profile.d/init.csh"; \
36 < echo "source $PRODAGENT_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