ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs-server.spec
(Generate patch)

Comparing COMP/CMSDIST/dbs-server.spec (file contents):
Revision 1.7 by valya, Fri Mar 2 14:55:50 2007 UTC vs.
Revision 1.8 by valya, Wed Mar 28 23:31:43 2007 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-server v00_00_14
1 > ### RPM cms dbs-server pre4_v01_00_00
2  
3   %define cvstag %v
4   Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS/Servers/JavaServer&export=DBS&tag=-r%{cvstag}&output=/dbs-server.tar.gz
5 < Requires: apache-ant mysql oracle apache-tomcat
5 > Requires: apache-ant mysql oracle apache-tomcat
6 > #Requires: apache-ant mysql oracle apache-tomcat java-jdk
7   #Requires: apache-ant apache-tomcat
8  
9   %prep
# Line 18 | Line 19 | cd ../../
19   mkdir -p %{i}/Servers/JavaServer/
20   cp -r Servers/JavaServer/* %{i}/Servers/JavaServer
21  
22 + # copy war file
23 + cp %{i}/Servers/JavaServer/DBS.war $APACHE_TOMCAT_ROOT/webapps
24 +
25 + mkdir -p %{i}/etc/profile.d
26 + (echo "#!/bin/sh"; \
27 + echo "source $ORACLE_ROOT/etc/profile.d/init.sh"; \
28 + echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \
29 + echo "source $APACHE_TOMCAT_ROOT/etc/profile.d/init.sh"; \
30 + echo "source $APACHE_ANT_ROOT/etc/profile.d/init.sh"; \
31 + echo "source $JAVA_JDK_ROOT/etc/profile.d/init.sh"; \
32 + ) > %{i}/etc/profile.d/dependencies-setup.sh
33 +
34 + (echo "#!/bin/tcsh"; \
35 + echo "source $ORACLE_ROOT/etc/profile.d/init.csh"; \
36 + echo "source $MYSQL_ROOT/etc/profile.d/init.csh"; \
37 + echo "source $APACHE_TOMCAT_ROOT/etc/profile.d/init.csh"; \
38 + echo "source $APACHE_ANT_ROOT/etc/profile.d/init.csh"; \
39 + echo "source $JAVA_JDK_ROOT/etc/profile.d/init.csh"; \
40 + ) > %{i}/etc/profile.d/dependencies-setup.csh
41 +
42 +
43 + %post
44 + %{relocateConfig}etc/profile.d/dependencies-setup.sh
45 + %{relocateConfig}etc/profile.d/dependencies-setup.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines