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.11 by eulisse, Tue Apr 3 13:38:43 2007 UTC vs.
Revision 1.19 by ratnik, Wed Apr 18 23:46:02 2007 UTC

# Line 1 | Line 1
1   ### RPM cms webtools 0.9.0
2 + Requires: gcc-wrapper
3   ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
4   %define moduleName WEBTOOLS
5   %define exportName WEBTOOLS
6 < %define cvstag V00-09-06
6 > %define cvstag V00-09-07
7   %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
8   Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/%{moduleName}.tar.gz
9   Requires: python cherrypy py2-cheetah yui sqlite zlib py2-pysqlite expat openssl bz2lib db4 gdbm py2-cx-oracle py2-formencode py2-pycrypto
# Line 10 | Line 11 | Provides: perl(CGI)
11   Provides: perl(Crypt::CBC)
12   Provides: perl(SecurityModule)
13  
14 +
15   %prep
16   %setup -n %{moduleName}
17   %build
18 + ## IMPORT gcc-wrapper
19  
20   rm -rf %i/etc/profile.d
21   mkdir -p %i/etc/profile.d/
# Line 28 | Line 31 | do
31   done
32  
33   python Applications/SiteDB/Utilities/CreateSiteDB.py -p `pwd`/Applications/SiteDB/
31 mv sitedb.ini Applications/SiteDB
34  
35   %install
36   mkdir -p %i/etc
# Line 70 | Line 72 | cat << \EOF_APACHE2_FOOTER > %i/etc/apac
72   RewriteRule ^/cms/services/webtools/Common(.*)$ %i/Common$1
73   RewriteRule ^/cms/services/webtools/Templates(.*)$ %i/Templates$1
74   EOF_APACHE2_FOOTER
75 <
75 > %define pythonv %(echo $PYTHON_ROOT | cut -d. -f1,2)
76   %post
77   %{relocateConfig}etc/cherrypy.conf
78   %{relocateConfig}etc/apache2.conf
# Line 78 | Line 80 | EOF_APACHE2_FOOTER
80   %{relocateConfig}etc/apache2-footer.conf
81   %{relocateConfig}etc/profile.d/dependencies-setup.sh
82   %{relocateConfig}etc/profile.d/dependencies-setup.csh
83 < %{relocateConfig}etc/lib/python`echo $PYTHON_ROOT | cut -d. -f1,2`/site-packages/Applications/SiteDB/sitedb.ini
84 < perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX/%pkgrel!" $RPM_INSTALL_PREFIX/%pkgrel/cmsWeb
85 <
83 > %{relocateConfig}lib/python2.4/site-packages/Applications/SiteDB/sitedb.ini
84 > perl -p -i -e "s|/BUILD/|/|;s|/WEBTOOLS/|/lib/python2.4/site-packages/|" $RPM_INSTALL_PREFIX/%pkgrel/lib/python2.4/site-packages/Applications/SiteDB/sitedb.ini
85 > 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