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

Comparing COMP/CMSDIST/webtools.spec (file contents):
Revision 1.6 by eulisse, Wed Mar 28 16:58:34 2007 UTC vs.
Revision 1.17 by eulisse, Tue Apr 10 09:07:53 2007 UTC

# Line 1 | Line 1
1 < ### RPM cms webtools ALPHA-cp3
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 DMWT_0_0_1
5 > %define cvstag V00-09-07
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
9 + Provides: perl(CGI)
10 + Provides: perl(Crypt::CBC)
11 + Provides: perl(SecurityModule)
12 +
13  
14   %prep
15   %setup -n %{moduleName}
16   %build
17 +
18 + rm -rf %i/etc/profile.d
19 + mkdir -p %i/etc/profile.d/
20 + dependenciesRoots="$PYTHON_ROOT $SQLITE_ROOT $PY2_PYSQLITE_ROOT $CHERRYPY_ROOT $YUI_ROOT \
21 +                   $ZLIB_ROOT $EXPAT_ROOT $OPENSSEL_ROOT $BZ2LIB_ROOT $DB4_ROOT $GDBM_ROOT $PY2_FORMENCODE_ROOT \
22 +                   $PY2_CHEETAH_ROOT $PY2_PYCRYPTO_ROOT $PY2_CX_ORACLE_ROOT"
23 + touch %i/etc/profile.d/dependencies-setup.csh
24 + for pkg in $dependenciesRoots
25 + do
26 +    echo $pkg
27 +    echo source $pkg/etc/profile.d/init.sh >> %i/etc/profile.d/dependencies-setup.sh
28 +    echo source $pkg/etc/profile.d/init.csh >> %i/etc/profile.d/dependencies-setup.csh
29 + done
30 +
31 + python Applications/SiteDB/Utilities/CreateSiteDB.py -p `pwd`/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]
# Line 45 | Line 70 | cat << \EOF_APACHE2_FOOTER > %i/etc/apac
70   RewriteRule ^/cms/services/webtools/Common(.*)$ %i/Common$1
71   RewriteRule ^/cms/services/webtools/Templates(.*)$ %i/Templates$1
72   EOF_APACHE2_FOOTER
73 <
73 > %define pythonv %(echo $PYTHON_ROOT | cut -d. -f1,2)
74   %post
75   %{relocateConfig}etc/cherrypy.conf
76   %{relocateConfig}etc/apache2.conf
77   %{relocateConfig}etc/apache2-header.conf
78   %{relocateConfig}etc/apache2-footer.conf
79 <
79 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
80 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
81 > %{relocateConfig}lib/python2.4/site-packages/Applications/SiteDB/sitedb.ini
82 > perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX/%pkgrel!" $RPM_INSTALL_PREFIX/%pkgrel/bin/cmsWeb

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines