ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-schema.spec
Revision: 1.7
Committed: Wed May 2 14:58:14 2007 UTC (17 years, 11 months ago) by valya
Branch: MAIN
Changes since 1.6: +2 -2 lines
Log Message:
New Tag  DBS_1_0_2

File Contents

# User Rev Content
1 valya 1.7 ### RPM cms dbs-schema DBS_1_0_2
2 valya 1.1
3     %define cvstag %v
4     Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS/Schema/NeXtGen&export=DBS/Schema/NeXtGen&tag=-r%{cvstag}&output=/dbs-schema.tar.gz
5 valya 1.7 Requires: gcc-wrapper mysql oracle
6 valya 1.1
7     %prep
8     %setup -n DBS
9     %build
10     (make DBSHOME=%_builddir/DBS/Schema/NeXtGen )
11    
12     %install
13 valya 1.3 mkdir -p %{i}/etc/profile.d
14 valya 1.1 ls -l Schema/NeXtGen
15 valya 1.2 cp -r Schema/NeXtGen/* %{i}/
16 valya 1.1
17 valya 1.3 (echo "#!/bin/sh"; \
18     echo "source $ORACLE_ROOT/etc/profile.d/init.sh"; \
19     echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \
20     ) > %{i}/etc/profile.d/dependencies-setup.sh
21    
22     (echo "#!/bin/tcsh"; \
23     echo "source $ORACLE_ROOT/etc/profile.d/init.csh"; \
24     echo "source $MYSQL_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