ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
Revision: 1.42
Committed: Sun Mar 16 14:03:27 2008 UTC (17 years, 1 month ago) by valya
Branch: MAIN
CVS Tags: forPHEDEX262_cmsbuild3, DBSweb_170308
Changes since 1.41: +2 -0 lines
Log Message:
Added deps

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.41 %define cvstag %v
6     Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS/Clients/Python&export=DBS/Clients/Python&tag=-r%{cvstag}&output=/dbs-client.tar.gz
7 valya 1.36 Requires: python openssl py2-zsi
8 eulisse 1.1
9 afanfani 1.25
10 eulisse 1.1 %prep
11 metson 1.41 %setup -n DBS
12 eulisse 1.1 %build
13     (make DBSHOME=%_builddir/DBS/Clients/Python )
14    
15     %install
16 valya 1.3 mkdir -p %{i}/bin
17     mkdir -p %{i}/lib
18 valya 1.6 mkdir -p %{i}/etc/profile.d
19 valya 1.3 cp -r Clients/Python/* %{i}/lib/
20 eulisse 1.1
21 valya 1.6 (echo "#!/bin/sh"; \
22     echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
23 valya 1.8 echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
24 valya 1.42 echo "source $PY2_ZSI_ROOT/etc/profile.d/init.sh"; \
25 valya 1.6 ) > %{i}/etc/profile.d/dependencies-setup.sh
26    
27     (echo "#!/bin/tcsh"; \
28     echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
29 valya 1.8 echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
30 valya 1.42 echo "source $PY2_ZSI_ROOT/etc/profile.d/init.csh"; \
31 valya 1.6 ) > %{i}/etc/profile.d/dependencies-setup.csh
32    
33     %post
34     %{relocateConfig}etc/profile.d/dependencies-setup.sh
35     %{relocateConfig}etc/profile.d/dependencies-setup.csh