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

Comparing COMP/CMSDIST/prodagent.spec (file contents):
Revision 1.3 by eulisse, Mon Apr 3 17:00:22 2006 UTC vs.
Revision 1.169 by fvlingen, Tue Apr 1 09:52:28 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms prodagent 0.1
2 < ## INITENV +PATH PYTHONPATH %i/lib/python
3 < %define cvstag pe20060403
4 < Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=MCPROTO&export=MCPROTO&&tag=-r%{cvstag}&output=/MCPROTO.tar.gz
5 < Requires: python mysql py2-mysqldb dbs dls
1 > ### RPM cms prodagent PRODAGENT_0_9_0_pre1
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=PRODAGENT&export=PRODAGENT&&tag=-r%{cvstag}&output=/PRODAGENT.tar.gz
6 > #Requires: webtools python mysql py2-mysqldb dbs-client boss prodcommon openssl cherrypy PHEDEX-micro
7 > Requires: webtools dbs-client boss prodcommon
8  
9   %prep
10 < %setup -n MCPROTO
10 > %setup -n PRODAGENT
11   %build
10 mkdir -p %i/lib/python
11 PYTHONPATH=%_builddir/MCPROTO/src/python:$PYTHONPATH
12 PRODAGENT_DIR=%i/lib/python ; export PRODAGENT_DIR
13 DBS_CLIENT_DIR=$DBS_ROOT; export DBS_CLIENT_DIR
14 DLS_CLIENT_DIR=$DLS_ROOT; export DLS_CLIENT_DIR
15
16 python install/configure.py
12   %install
13 < mkdir -p %i/lib/python
14 < mkdir -p %i/share
15 < cp -r ./src/python %i/lib
16 < cp -r ./src/sql %i/share
13 > make PREFIX=%i install
14 > mkdir -p %i/bin
15 > cp bin/prod* %{i}/bin
16 > mkdir -p %i/test
17 > cp -R test/* %i/test/
18 > mkdir -p %i/util
19 > cp -R util/* %i/util/
20 > mkdir -p %{i}/etc/profile.d
21 > mkdir -p %i/workdir
22 >
23 > (echo "#!/bin/sh"; \
24 > # echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
25 > # echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
26 > # echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \
27 > # echo "source $PY2_MYSQLDB_ROOT/etc/profile.d/init.sh"; \
28 > echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.sh"; \
29 > echo "source $PRODCOMMON_ROOT/etc/profile.d/init.sh"; \
30 > # echo "source $CHERRYPY_ROOT/etc/profile.d/init.sh"; \
31 > # echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.sh"; \
32 > echo "source $WEBTOOLS_ROOT/etc/profile.d/init.sh"; \
33 > echo "source $BOSS_ROOT/etc/profile.d/init.sh" ) > %{i}/etc/profile.d/dependencies-setup.sh
34 >
35 > (echo "#!/bin/tcsh"; \
36 > # echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
37 > # echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
38 > # echo "source $MYSQL_ROOT/etc/profile.d/init.csh"; \
39 > # echo "source $PY2_MYSQLDB_ROOT/etc/profile.d/init.csh"; \
40 > echo "source $DBS_CLIENT_ROOT/etc/profile.d/init.csh"; \
41 > echo "source $PRODCOMMON_ROOT/etc/profile.d/init.csh"; \
42 > # echo "source $CHERRYPY_ROOT/etc/profile.d/init.csh"; \
43 > # echo "source $PHEDEX_MICRO_ROOT/etc/profile.d/init.csh"; \
44 > echo "source $WEBTOOLS_ROOT/etc/profile.d/init.csh"; \
45 > echo "source $BOSS_ROOT/etc/profile.d/init.csh" ) > %{i}/etc/profile.d/dependencies-setup.csh
46 >
47 >
48 > %post
49 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
50 > %{relocateConfig}etc/profile.d/dependencies-setup.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines