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.5 by valya, Wed Feb 28 16:02:33 2007 UTC vs.
Revision 1.10 by ratnik, Wed Apr 18 23:46:01 2007 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-server v00_00_12
1 > ### RPM cms dbs-server pre4_v01_00_00
2 > Requires: gcc-wrapper
3  
4   %define cvstag %v
5   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
6 < Requires: apache-ant mysql oracle apache-tomcat
6 > #Requires: apache-ant mysql oracle apache-tomcat
7 > Requires: apache-ant mysql oracle apache-tomcat java-jdk
8   #Requires: apache-ant apache-tomcat
9  
10   %prep
11   %setup -n DBS
12   %build
13 + ## IMPORT gcc-wrapper
14   echo "PWD=$PWD"
15   cd Servers/JavaServer
16   echo "PWD=$PWD"
# Line 15 | Line 18 | ant --noconfig dist
18   cd ../../
19  
20   %install
21 < mkdir -p %i/webapps
22 < cp -r Servers/JavaServer/* %i/webapps
21 > mkdir -p %{i}/Servers/JavaServer/
22 > cp -r Servers/JavaServer/* %{i}/Servers/JavaServer
23 >
24 > # copy war file
25 > cp %{i}/Servers/JavaServer/DBS.war $APACHE_TOMCAT_ROOT/webapps
26 >
27 > mkdir -p %{i}/etc/profile.d
28 > (echo "#!/bin/sh"; \
29 > echo "source $ORACLE_ROOT/etc/profile.d/init.sh"; \
30 > echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \
31 > echo "source $APACHE_TOMCAT_ROOT/etc/profile.d/init.sh"; \
32 > echo "source $APACHE_ANT_ROOT/etc/profile.d/init.sh"; \
33 > echo "source $JAVA_JDK_ROOT/etc/profile.d/init.sh"; \
34 > ) > %{i}/etc/profile.d/dependencies-setup.sh
35 >
36 > (echo "#!/bin/tcsh"; \
37 > echo "source $ORACLE_ROOT/etc/profile.d/init.csh"; \
38 > echo "source $MYSQL_ROOT/etc/profile.d/init.csh"; \
39 > echo "source $APACHE_TOMCAT_ROOT/etc/profile.d/init.csh"; \
40 > echo "source $APACHE_ANT_ROOT/etc/profile.d/init.csh"; \
41 > echo "source $JAVA_JDK_ROOT/etc/profile.d/init.csh"; \
42 > ) > %{i}/etc/profile.d/dependencies-setup.csh
43 >
44 >
45 > %post
46 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
47 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
48  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines