ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
Revision: 1.57
Committed: Tue Jul 15 19:13:36 2008 UTC (16 years, 9 months ago) by valya
Branch: MAIN
CVS Tags: WEBTOOLS-APPS_20080715_1
Changes since 1.56: +0 -1 lines
Log Message:
Need to generate new RPMs

File Contents

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