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

Comparing COMP/CMSDIST/dbs-light.spec (file contents):
Revision 1.1 by valya, Thu Sep 20 15:55:10 2007 UTC vs.
Revision 1.5 by valya, Sat Sep 22 02:05:33 2007 UTC

# Line 1 | Line 1
1 < ### RPM cms dbs-light DBS_1_0_8_pre1
1 > ### RPM cms dbs-light DBS_1_0_8_pre2
2   ## INITENV +PATH PYTHONPATH %i/lib/Clients/Python
3  
4 + # in order to build DBS RPM you MUST specify which schema/client version should be used.
5 + %define schemaVer DBS_1_0_7
6 + %define clientVer DBS_1_0_7
7 +
8   %define cvstag %v
9   Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS&export=DBS&tag=-r%{cvstag}&output=/dbs-light.tar.gz
10   #Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS/{Servers/JavaServer,Clients/Python,Schema/NeXtGen/DBS-NeXtGen-SQLite_DEPLOYABLE.sql}&export=DBS&tag=-r%{cvstag}&output=/dbs-light.tar.gz
# Line 34 | Line 38 | mkdir -p %{i}/etc/profile.d
38   echo "source $SQLITE_ROOT/etc/profile.d/init.sh"; \
39   echo "source $APACHE_ANT_ROOT/etc/profile.d/init.sh"; \
40   echo "source $OPENSSL_ROOT/etc/profile.d/init.sh"; \
41 + echo -e "export PYTHONPATH=\044PYTHONPATH:\044DBS_LIGHT_ROOT/Clients/Python:\044DBS_LIGHT_ROOT/Clients/Python/DBSAPI"; \
42 + echo -e "export DBS_CLIENT_CONFIG=\044DBS_LIGHT_ROOT/Clients/Python/DBSAPI/dbs.config"; \
43 + echo -e "export DBS_SERVER_CONFIG=\044DBS_LIGHT_ROOT/Servers/JavaServer/etc/context.xml"; \
44   ) > %{i}/etc/profile.d/dependencies-setup.sh
45  
46   (echo "#!/bin/tcsh"; \
# Line 41 | Line 48 | mkdir -p %{i}/etc/profile.d
48   echo "source $SQLITE_ROOT/etc/profile.d/init.csh"; \
49   echo "source $APACHE_ANT_ROOT/etc/profile.d/init.csh"; \
50   echo "source $OPENSSL_ROOT/etc/profile.d/init.csh"; \
51 + echo -e "setenv PYTHONPATH \044PYTHONPATH:\044DBS_LIGHT_ROOT/Clients/Python:\044DBS_LIGHT_ROOT/Clients/Python/DBSAPI"; \
52 + echo -e "setenv DBS_CLIENT_CONFIG \044DBS_LIGHT_ROOT/Clients/Python/DBSAPI/dbs.config"; \
53 + echo -e "setenv DBS_SERVER_CONFIG \044DBS_LIGHT_ROOT/Servers/JavaServer/etc/context.xml"; \
54   ) > %{i}/etc/profile.d/dependencies-setup.csh
55  
56   # client
# Line 67 | Line 77 | fi
77  
78   # correct DBS client config file to operate in stand-along mode
79   cat $RPM_INSTALL_PREFIX/%{pkgrel}/Clients/Python/DBSAPI/dbs.config | \
80 + sed "s/DBSHOME/#DBSHOME/g" |
81 + sed "s/JAVAHOME/#JAVAHOME/g" |
82   sed "s/MODE=POST/#MODE=POST/g" > \
83      $RPM_INSTALL_PREFIX/%{pkgrel}/Clients/Python/DBSAPI/dbs.config.tmp
84   cat >> $RPM_INSTALL_PREFIX/%{pkgrel}/Clients/Python/DBSAPI/dbs.config.tmp << EOF
# Line 80 | Line 92 | mv $RPM_INSTALL_PREFIX/%{pkgrel}/Clients
92  
93   # correct DBS server config file
94   cat > $RPM_INSTALL_PREFIX/%{pkgrel}/Servers/JavaServer/etc/context.xml << EOF
95 + <Context path="/servlet/DBSServlet" docBase="DBSServlet" debug="5" reloadable="true" crossContext="true">
96        <Resource name="jdbc/dbs"
97                auth="Container"
98                type="javax.sql.DataSource"
# Line 90 | Line 103 | cat > $RPM_INSTALL_PREFIX/%{pkgrel}/Serv
103                password=""
104                driverClassName="org.sqlite.JDBC"
105                url="jdbc:sqlite:`echo $RPM_INSTALL_PREFIX/%{pkgrel}/dbs.db`"/>
106 + <SupportedSchemaVersion schemaversion="%{schemaVer}" />
107 + <SupportedClientVersions clientversions="%{clientVer}" />
108 + <DBSBlockConfig maxBlockSize="20000" maxBlockFiles="50" />
109 + </Context>
110   EOF
111   cd $RPM_INSTALL_PREFIX/%{pkgrel}/Servers/JavaServer/
112   ant --noconfig jar

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines