ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
Revision: 1.49
Committed: Fri Apr 25 14:32:31 2008 UTC (17 years ago) by valya
Branch: MAIN
CVS Tags: dl080505, WEBTOOLS-APPS_20080501, dl080425_for21x
Changes since 1.48: +1 -1 lines
Log Message:
Upon Anzar suggestion put 1_0_8 version for server, client, schema

File Contents

# User Rev Content
1 valya 1.49 ### RPM cms dbs-client DBS_1_0_8
2 valya 1.46 ## INITENV +PATH PYTHONPATH %i/lib/
3 afanfani 1.7 #
4 afanfani 1.30 #
5 metson 1.43 %define cvstag %{realversion}
6 metson 1.44 %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
7 metson 1.45 Source: %cvsserver&strategy=checkout&module=DBS/Clients/Python&nocache=true&export=DBS&tag=-r%{cvstag}&output=/dbs-client.tar.gz
8 valya 1.36 Requires: python openssl py2-zsi
9 eulisse 1.1
10 afanfani 1.25
11 eulisse 1.1 %prep
12 metson 1.41 %setup -n DBS
13 eulisse 1.1 %build
14     (make DBSHOME=%_builddir/DBS/Clients/Python )
15    
16     %install
17 valya 1.3 mkdir -p %{i}/bin
18     mkdir -p %{i}/lib
19 valya 1.6 mkdir -p %{i}/etc/profile.d
20 valya 1.3 cp -r Clients/Python/* %{i}/lib/
21 eulisse 1.1
22 valya 1.6 (echo "#!/bin/sh"; \
23     echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
24 valya 1.8 echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
25 valya 1.42 echo "source $PY2_ZSI_ROOT/etc/profile.d/init.sh"; \
26 valya 1.6 ) > %{i}/etc/profile.d/dependencies-setup.sh
27    
28     (echo "#!/bin/tcsh"; \
29     echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
30 valya 1.8 echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
31 valya 1.42 echo "source $PY2_ZSI_ROOT/etc/profile.d/init.csh"; \
32 valya 1.6 ) > %{i}/etc/profile.d/dependencies-setup.csh
33    
34 dlange 1.47 # SCRAM ToolBox toolfile
35     mkdir -p %i/etc/scram.d
36     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
37     <doc type=BuildSystem::ToolDoc version=1.0>
38     <Tool name=dbs-client version=%v>
39     <client>
40     <Environment name=DBS_CLIENT_BASE default="%i"></Environment>
41     </client>
42     <Runtime name=PATH value="$DBS_CLIENT_BASE/bin" type=path>
43     </Tool>
44     EOF_TOOLFILE
45    
46 valya 1.6 %post
47     %{relocateConfig}etc/profile.d/dependencies-setup.sh
48     %{relocateConfig}etc/profile.d/dependencies-setup.csh
49 dlange 1.47 %{relocateConfig}etc/scram.d/%n