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

Comparing COMP/CMSDIST/dbs-client.spec (file contents):
Revision 1.23 by afanfani, Wed Jun 27 16:14:17 2007 UTC vs.
Revision 1.60 by valya, Thu Jul 24 16:45:07 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-client DBS_1_0_5
2 < ## INITENV +PATH PYTHONPATH %i/lib/Clients/Python
3 < #
4 < %define cvstag %realversion
5 < Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS/Clients/Python&export=DBS/Clients/Python&tag=-r%{cvstag}&output=/dbs-client.tar.gz
6 < Requires: python openssl
1 > ### RPM cms dbs-client DBS_1_2_4
2 > ## INITENV +PATH PYTHONPATH %i/lib/
3 >
4 > %define cvstag %{realversion}
5 > %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
6 > Source: %cvsserver&strategy=checkout&module=DBS/Clients/Python&nocache=true&export=DBS&tag=-r%{cvstag}&output=/dbs-client.tar.gz
7 > Requires: python openssl py2-zsi
8  
9   %prep
10   %setup -n DBS
# Line 15 | Line 16 | mkdir -p %{i}/bin
16   mkdir -p %{i}/lib
17   mkdir -p %{i}/etc/profile.d
18   cp -r Clients/Python/* %{i}/lib/
19 + cp -r Clients/Python/DBSAPI/dbsCommandLine.py %{i}/bin/
20 + chmod a+x %{i}/bin/dbsCommandLine.py
21  
22   (echo "#!/bin/sh"; \
23   echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
24   echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
25 + echo "source $PY2_ZSI_ROOT/etc/profile.d/init.sh"; \
26 + echo "export PYTHONPATH=\$DBS_CLIENT_ROOT/lib:\$PYTHONPATH"; \
27 + echo "export PYTHONPATH=\$DBS_CLIENT_ROOT/lib/DBSAPI:\$PYTHONPATH"; \
28 + echo "alias dbs='python \$DBS_CLIENT_ROOT/bin/dbsCommandLine.py'"; \
29 + echo "export DBS_CLIENT_CONFIG=\$DBS_CLIENT_ROOT/lib/DBSAPI/dbs.config"; \
30 + echo "export DBSCMD_HOME=\$DBS_CLIENT_ROOT/lib/DBSAPI";\
31   ) > %{i}/etc/profile.d/dependencies-setup.sh
32  
33   (echo "#!/bin/tcsh"; \
34   echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
35   echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
36 + echo "source $PY2_ZSI_ROOT/etc/profile.d/init.csh"; \
37 + echo "setenv PYTHONPATH \$DBS_CLIENT_ROOT/lib:\$PYTHONPATH"; \
38 + echo "setenv PYTHONPATH \$DBS_CLIENT_ROOT/lib/DBSAPI:\$PYTHONPATH"; \
39 + echo "alias dbs 'python \$DBS_CLIENT_ROOT/bin/dbsCommandLine.py'"; \
40 + echo "setenv DBS_CLIENT_CONFIG \$DBS_CLIENT_ROOT/lib/DBSAPI/dbs.config"; \
41 + echo "setenv DBSCMD_HOME \$DBS_CLIENT_ROOT/lib/DBSAPI";\
42   ) > %{i}/etc/profile.d/dependencies-setup.csh
43  
44 + # SCRAM ToolBox toolfile
45 + mkdir -p %i/etc/scram.d
46 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
47 + <doc type=BuildSystem::ToolDoc version=1.0>
48 + <Tool name=dbs-client version=%v>
49 + <client>
50 + <Environment name=DBS_CLIENT_BASE default="%i"></Environment>
51 + </client>
52 + <Runtime name=PATH value="$DBS_CLIENT_BASE/bin" type=path>
53 + </Tool>
54 + EOF_TOOLFILE
55 +
56   %post
57   %{relocateConfig}etc/profile.d/dependencies-setup.sh
58   %{relocateConfig}etc/profile.d/dependencies-setup.csh
59 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines