ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/prodrequest.spec
Revision: 1.84
Committed: Thu Nov 29 18:31:13 2007 UTC (17 years, 5 months ago) by eulisse
Branch: MAIN
Changes since 1.83: +17 -16 lines
Log Message:
ProdRequest and WebTools updated to the latest greatest version.
* Now the spec generates automatically the dependencies-setup.sh
* WebTools RPM does not contain anymore code specific to sitedb (which goes in
  the sitedb.spec)

File Contents

# Content
1 ### RPM cms prodrequest 0.7.0
2 ## INITENV +PATH PYTHONPATH %i
3 %define moduleName PRODREQUEST
4 %define exportName PRODREQUEST
5 %define cvstag V00-07-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=/PRODREQUEST.tar.gz
8 Requires: python py2-sqlobject py2-pysqlite cherrypy py2-cheetah yui sqlite py2-formencode zlib expat openssl bz2lib db4 gdbm webtools dbs-client py2-pycrypto oracle py2-cx-oracle beautifulsoup py2-sqlalchemy
9
10
11 %prep
12 %setup -n PRODREQUEST
13 %build
14 rm -rf %i/etc/profile.d
15 mkdir -p %i/etc/profile.d
16 echo '#!/bin/sh' > %{i}/etc/profile.d/dependencies-setup.sh
17 echo '#!/bin/tcsh' > %{i}/etc/profile.d/dependencies-setup.csh
18 echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
19 for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
20 do
21 case X$tool in
22 Xdistcc|Xccache )
23 ;;
24 * )
25 toolcap=`echo $tool | tr a-z- A-Z_`
26 eval echo ". $`echo ${toolcap}_ROOT`/etc/profile.d/init.sh" >> %{i}/etc/profile.d/dependencies-setup.sh
27 eval echo "source $`echo ${toolcap}_ROOT`/etc/profile.d/init.csh" >> %{i}/etc/profile.d/dependencies-setup.csh
28 ;;
29 esac
30 done
31
32 %install
33 cp -r * %i/
34 %post
35 %{relocateConfig}etc/profile.d/dependencies-setup.sh
36 %{relocateConfig}etc/profile.d/dependencies-setup.csh