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

Comparing COMP/CMSDIST/prodrequest.spec (file contents):
Revision 1.2 by eulisse, Mon Nov 13 10:59:40 2006 UTC vs.
Revision 1.84 by eulisse, Thu Nov 29 18:31:13 2007 UTC

# Line 1 | Line 1
1 < ### RPM cms prodrequest V00-00-01
1 > ### RPM cms prodrequest 0.7.0
2 > ## INITENV +PATH PYTHONPATH %i
3   %define moduleName PRODREQUEST
4   %define exportName PRODREQUEST
5 < %define cvstag %{v}
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 sqlobject py2-pysqlite py2-cherrypy py2-cheetah yui sqlite
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 PRODREQUEST
12 > %setup -n PRODREQUEST
13   %build
14 < ( echo source $PYTHON_ROOT/etc/profile.d/init.sh ; \
15 <  echo source $SQLITE_ROOT/etc/profile.d/init.sh ; \
16 <  echo source $SQLOBJECT_ROOT/etc/profile.d/init.sh ; \
17 <  echo source $PY2_PYSQLITE_ROOT/etc/profile.d/init.sh ; \
18 <  echo source $PY2_CHERRYPY_ROOT/etc/profile.d/init.sh ; \
19 <  echo source $PY2_CHEETAH_ROOT/etc/profile.d/init.sh ; \  
20 <  echo source $YUI_ROOT/etc/profile.d/init.sh ) > %i/etc/profile.d/dependencies-setup.sh
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines