ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
Revision: 1.52
Committed: Wed May 21 18:38:19 2008 UTC (16 years, 11 months ago) by valya
Branch: MAIN
CVS Tags: SiteDB_300508_1, SiteDB_280508_1, WEBTOOLS-APPS_20080527_2, WEBTOOLS-APPS_20080527, WEBTOOLS-APPS_20080523, WEBTOOLS-APPS_20080522, PRODAGENT_0_10_7, WEBTOOLS-APPS_20080521
Changes since 1.51: +1 -1 lines
Log Message:
Put correct version

File Contents

# Content
1 ### RPM cms dbs-client DBS_1_1_5
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
10 %prep
11 %setup -n DBS
12 %build
13 (make DBSHOME=%_builddir/DBS/Clients/Python )
14
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