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.1 by eulisse, Fri Dec 15 14:49:23 2006 UTC vs.
Revision 1.11 by valya, Mon Apr 30 19:17:38 2007 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-web v01_02_00
2 < ## INITENV +PATH PYTHONPATH %i/lib
1 > ### RPM cms dbs-server DBS_1_0_1
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/Web/DataDiscovery&export=DBS/Web/DataDiscovery&tag=-r%{cvstag}&output=/dbs-web.tar.gz
6 < Requires: python dbs-client py2-sqlalchemy cherrypy
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
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 < (make DBSHOME=%_builddir/DBS/Web/DataDiscovery )
13 > ## IMPORT gcc-wrapper
14 > echo "PWD=$PWD"
15 > cd Servers/JavaServer
16 > echo "PWD=$PWD"
17 > ant --noconfig dist
18 > cd ../../
19  
20   %install
21 < mkdir -p %i/bin
22 < mkdir -p %i/lib/python
23 < ls -l Web/DataDiscovery
24 < cp -r Web/DataDiscovery/* %i/lib/python
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