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.2 by eulisse, Mon Dec 18 08:54:20 2006 UTC vs.
Revision 1.20 by valya, Wed Dec 19 18:34:41 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_8
2  
3   %define cvstag %v
4 < 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
5 < Requires: python dbs-client py2-sqlalchemy cherrypy mysql py2-mysqldb oracle py2-cx-oracle apache-tomcat
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 java-jdk
6 > #Requires: apache-ant mysql oracle apache-tomcat java-jdk
7 > #Requires: apache-ant apache-tomcat
8  
9   %prep
10   %setup -n DBS
11 +
12   %build
13 < (make DBSHOME=%_builddir/DBS/Web/DataDiscovery )
13 > echo "PWD=$PWD"
14 > cd Servers/JavaServer
15 > mkdir -p bin/WEB-INF/lib
16 > echo "PWD=$PWD"
17 > source $JAVA_JDK_ROOT/etc/profile.d/init.sh
18 > export JAVA_HOME=$JAVA_JDK_ROOT
19 > ant --noconfig dist
20 > cd ../../
21  
22   %install
23 < mkdir -p %i/bin
24 < mkdir -p %i/lib/python
25 < ls -l Web/DataDiscovery
26 < cp -r Web/DataDiscovery/* %i/lib/python
23 > mkdir -p %{i}/Servers/JavaServer/bin/WEB-INF/lib
24 > cp -r Servers/JavaServer/* %{i}/Servers/JavaServer
25 >
26 > # copy war file
27 > cp %{i}/Servers/JavaServer/DBS.war $APACHE_TOMCAT_ROOT/webapps
28 >
29 > mkdir -p %{i}/etc/profile.d
30 > (echo "#!/bin/sh"; \
31 > echo "source $ORACLE_ROOT/etc/profile.d/init.sh"; \
32 > echo "source $MYSQL_ROOT/etc/profile.d/init.sh"; \
33 > echo "source $APACHE_TOMCAT_ROOT/etc/profile.d/init.sh"; \
34 > echo "source $APACHE_ANT_ROOT/etc/profile.d/init.sh"; \
35 > echo "source $JAVA_JDK_ROOT/etc/profile.d/init.sh"; \
36 > ) > %{i}/etc/profile.d/dependencies-setup.sh
37 >
38 > (echo "#!/bin/tcsh"; \
39 > echo "source $ORACLE_ROOT/etc/profile.d/init.csh"; \
40 > echo "source $MYSQL_ROOT/etc/profile.d/init.csh"; \
41 > echo "source $APACHE_TOMCAT_ROOT/etc/profile.d/init.csh"; \
42 > echo "source $APACHE_ANT_ROOT/etc/profile.d/init.csh"; \
43 > echo "source $JAVA_JDK_ROOT/etc/profile.d/init.csh"; \
44 > ) > %{i}/etc/profile.d/dependencies-setup.csh
45 >
46 >
47 > %post
48 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
49 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
50  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines