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.5 by valya, Wed Mar 28 23:32:08 2007 UTC vs.
Revision 1.51 by valya, Wed May 21 18:22:38 2008 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-client pre4_v01_00_00
2 < ## INITENV +PATH PYTHONPATH %i/lib
1 > ### RPM cms dbs-client DBS_1_5_1
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  
4 %define cvstag %v
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
9  
10   %prep
11   %setup -n DBS
# Line 13 | Line 15 | Requires: python
15   %install
16   mkdir -p %{i}/bin
17   mkdir -p %{i}/lib
18 + mkdir -p %{i}/etc/profile.d
19   cp -r Clients/Python/* %{i}/lib/
20  
21 + (echo "#!/bin/sh"; \
22 + echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
23 + echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
24 + echo "source $PY2_ZSI_ROOT/etc/profile.d/init.sh"; \
25 + ) > %{i}/etc/profile.d/dependencies-setup.sh
26 +
27 + (echo "#!/bin/tcsh"; \
28 + echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
29 + echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
30 + echo "source $PY2_ZSI_ROOT/etc/profile.d/init.csh"; \
31 + ) > %{i}/etc/profile.d/dependencies-setup.csh
32 +
33 + # SCRAM ToolBox toolfile
34 + mkdir -p %i/etc/scram.d
35 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
36 + <doc type=BuildSystem::ToolDoc version=1.0>
37 + <Tool name=dbs-client version=%v>
38 + <client>
39 + <Environment name=DBS_CLIENT_BASE default="%i"></Environment>
40 + </client>
41 + <Runtime name=PATH value="$DBS_CLIENT_BASE/bin" type=path>
42 + </Tool>
43 + EOF_TOOLFILE
44 +
45 + %post
46 + %{relocateConfig}etc/profile.d/dependencies-setup.sh
47 + %{relocateConfig}etc/profile.d/dependencies-setup.csh
48 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines