ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-client.spec
Revision: 1.29
Committed: Wed Oct 10 12:22:52 2007 UTC (17 years, 6 months ago) by afanfani
Branch: MAIN
Changes since 1.28: +0 -1 lines
Log Message:
ri-test

File Contents

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