ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
Revision: 1.45
Committed: Mon Mar 17 17:33:51 2008 UTC (17 years, 1 month ago) by metson
Branch: MAIN
CVS Tags: DBSweb_260308, forPHEDEX262_cmsbuild5, forPHEDEX262_cmsbuild4, DBSweb_180308_2, DBSweb_180308_1, DBSweb_180308, DBSweb_170308_8, DBSweb_170308_7, DBSweb_170308_6, DBSweb_170308_5, DBSweb_170308_4
Changes since 1.44: +1 -1 lines
Log Message:
change export=DBS/Clients/Python to export=DBS in the Source line

File Contents

# User Rev Content
1 metson 1.41 ### RPM cms dbs-client DBS_1_1_0
2 valya 1.8 ## INITENV +PATH PYTHONPATH %i/lib/Clients/Python
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     %post
35     %{relocateConfig}etc/profile.d/dependencies-setup.sh
36     %{relocateConfig}etc/profile.d/dependencies-setup.csh