ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
Revision: 1.6
Committed: Thu Mar 29 00:22:46 2007 UTC (18 years, 1 month ago) by valya
Branch: MAIN
CVS Tags: PR_0_5_4
Changes since 1.5: +12 -0 lines
Log Message:
Upgrade to new version, add dependencies

File Contents

# Content
1 ### RPM cms dbs-client pre4_v01_00_00
2 ## INITENV +PATH PYTHONPATH %i/lib
3
4 %define cvstag %v
5 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
6 Requires: python
7
8 %prep
9 %setup -n DBS
10 %build
11 (make DBSHOME=%_builddir/DBS/Clients/Python )
12
13 %install
14 mkdir -p %{i}/bin
15 mkdir -p %{i}/lib
16 mkdir -p %{i}/etc/profile.d
17 cp -r Clients/Python/* %{i}/lib/
18
19 (echo "#!/bin/sh"; \
20 echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
21 ) > %{i}/etc/profile.d/dependencies-setup.sh
22
23 (echo "#!/bin/tcsh"; \
24 echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
25 ) > %{i}/etc/profile.d/dependencies-setup.csh
26
27 %post
28 %{relocateConfig}etc/profile.d/dependencies-setup.sh
29 %{relocateConfig}etc/profile.d/dependencies-setup.csh