1 |
< |
### RPM cms webtools 1.3.0 |
1 |
> |
### RPM cms webtools 1.3.3 |
2 |
|
## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages |
3 |
|
%define moduleName WEBTOOLS |
4 |
|
%define exportName WEBTOOLS |
5 |
< |
%define cvstag V01-03-02 |
5 |
> |
%define cvstag V01-03-08 |
6 |
|
%define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e |
7 |
|
Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/%{moduleName}.tar.gz |
8 |
|
Requires: python cherrypy py2-cheetah yui sqlite zlib py2-pysqlite expat openssl bz2lib db4 gdbm py2-cx-oracle py2-formencode py2-pycrypto oracle beautifulsoup py2-sqlalchemy |
37 |
|
mkdir -p %i/etc |
38 |
|
mkdir -p %i/bin |
39 |
|
mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages |
40 |
< |
rm -rf Applications |
40 |
> |
rm -rf Applications Configuration |
41 |
|
cp -r * %i/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages |
42 |
|
cp cmsWeb %i/bin |
43 |
|
cat << \EOF_CHERRYPY_CONF > %i/etc/cherrypy.conf |
83 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
84 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
85 |
|
perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX/%pkgrel!" $RPM_INSTALL_PREFIX/%pkgrel/bin/cmsWeb |
86 |
+ |
|
87 |
+ |
|
88 |
+ |
# setup approripate links and made post install procedure |
89 |
+ |
. $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh |
90 |
+ |
if [ `hostname`=="cmswttest.cern.ch" ]; then |
91 |
+ |
cat > $RPM_INSTALL_PREFIX/%{pkgrel}/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/Tools/SiteDBCore/security.ini << POST_EOF |
92 |
+ |
[database] |
93 |
+ |
dbtype = sqlite |
94 |
+ |
dbname = $RPM_INSTALL_PREFIX/%{pkgrel}/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/Tools/SiteDBCore/sitedb.db |
95 |
+ |
POST_EOF |
96 |
+ |
else |
97 |
+ |
if [ -n "${WEBTOOLS_CONF}" ] && [ -f ${WEBTOOLS_CONF}/sitedb/security.ini ]; then |
98 |
+ |
ln -s ${WEBTOOLS_CONF}/sitedb/security.ini $RPM_INSTALL_PREFIX/%{pkgrel}/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/Tools/SiteDBCore/security.ini |
99 |
+ |
fi |
100 |
+ |
fi |
101 |
+ |
|