1 |
|
### RPM cms webtools 0.9.0 |
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 V00-09-00 |
5 |
> |
%define cvstag V00-09-05 |
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 |
27 |
|
echo source $pkg/etc/profile.d/init.csh >> %i/etc/profile.d/dependencies-setup.csh |
28 |
|
done |
29 |
|
|
30 |
+ |
python Applications/SiteDB/Utilities/CreateSiteDB.py -p `pwd`/Applications/SiteDB/ |
31 |
+ |
mv sitedb.ini Applications/SiteDB |
32 |
+ |
|
33 |
|
%install |
34 |
|
mkdir -p %i/etc |
35 |
< |
cp -r * %i |
35 |
> |
mkdir -p %i/bin |
36 |
> |
mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages |
37 |
> |
cp -r * %i/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages |
38 |
> |
cp cmsWeb %i/bin |
39 |
|
cat << \EOF_CHERRYPY_CONF > %i/etc/cherrypy.conf |
40 |
|
# Serve a complete directory |
41 |
|
[/Common] |
78 |
|
%{relocateConfig}etc/apache2-footer.conf |
79 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
80 |
|
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
81 |
+ |
%{relocateConfig}etc/lib/python`echo $PYTHON_ROOT | cut -d. -f1,2`/site-packages/Applications/SiteDB/sitedb.ini |
82 |
|
perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX/%pkgrel!" $RPM_INSTALL_PREFIX/%pkgrel/cmsWeb |
83 |
|
|