ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-libs.spec
Revision: 1.17
Committed: Thu Jan 8 17:57:55 2009 UTC (16 years, 3 months ago) by valya
Branch: MAIN
CVS Tags: condcore306, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, zx20090216, condcore305, WEBTOOLS-APPS_20090212, WEBTOOLS-APPS_20090209_64bit, zx20090209, WEBTOOLS-APPS_20090206, T0M_0_0_4, T0M_0_0_3, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, PRODAGENT_0_12_10_pre2_20090127_V2, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, zx20090115, WEBTOOLS-APPS_20090113, DBS-APPS_20090109, DBS-APPS_20090108
Changes since 1.16: +1 -1 lines
Log Message:
New DBS tag

File Contents

# User Rev Content
1 valya 1.17 ### RPM cms dbs-libs DBS_2_0_5
2 valya 1.1 ## INITENV +PATH PYTHONPATH %i/lib/
3    
4     %define cvstag %{realversion}
5     %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
6 valya 1.4 Source: %cvsserver&strategy=checkout&module=DBS/LibValut&nocache=true&export=DBS&tag=-r%{cvstag}&output=/dbs-libs.tar.gz
7 valya 1.1
8     %prep
9     %setup -n DBS
10     %build
11     (make DBSHOME=%_builddir/DBS/LibValut )
12    
13     %install
14     mkdir -p %{i}/bin
15     mkdir -p %{i}/lib
16     mkdir -p %{i}/etc/profile.d
17     cp -r LibValut/* %{i}/lib/
18    
19     (echo "#!/bin/sh"; \
20     ) > %{i}/etc/profile.d/dependencies-setup.sh
21    
22     (echo "#!/bin/tcsh"; \
23     ) > %{i}/etc/profile.d/dependencies-setup.csh
24    
25     # SCRAM ToolBox toolfile
26     mkdir -p %i/etc/scram.d
27     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
28     <doc type=BuildSystem::ToolDoc version=1.0>
29     <Tool name=dbs-client version=%v>
30     <client>
31     <Environment name=DBS_LIBS_BASE default="%i"></Environment>
32     </client>
33     <Runtime name=PATH value="$DBS_LIBS_BASE/bin" type=path>
34     </Tool>
35     EOF_TOOLFILE
36    
37     %post
38     %{relocateConfig}etc/profile.d/dependencies-setup.sh
39     %{relocateConfig}etc/profile.d/dependencies-setup.csh
40     %{relocateConfig}etc/scram.d/%n