ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
Revision: 1.44
Committed: Mon Mar 17 17:30:03 2008 UTC (17 years, 1 month ago) by metson
Branch: MAIN
CVS Tags: DBSweb_170308_3
Changes since 1.43: +2 -1 lines
Log Message:
Making the Source more like SiteDB, just in case.....

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     Source: %cvsserver&strategy=checkout&module=DBS/Clients/Python&nocache=true&export=DBS/Clients/Python&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