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.3 by eulisse, Mon Nov 13 11:02:48 2006 UTC vs.
Revision 1.68 by ratnik, Wed Apr 18 23:46:02 2007 UTC

# Line 1 | Line 1
1 < ### RPM cms prodrequest V00-00-01
1 > ### RPM cms prodrequest 0.5.0
2 > Requires: gcc-wrapper
3 > ## INITENV +PATH PYTHONPATH %i
4   %define moduleName PRODREQUEST
5   %define exportName PRODREQUEST
6 < %define cvstag %{v}
6 > %define cvstag V00-05-09
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=/PRODREQUEST.tar.gz
9 < Requires: python sqlobject py2-pysqlite py2-cherrypy py2-cheetah yui sqlite
9 > Requires: python py2-sqlobject py2-pysqlite cherrypy py2-cheetah yui sqlite py2-formencode zlib expat openssl bz2lib db4 gdbm prodcommon webtools  dbs-client dls boss mysql py2-mysqldb py2-pycrypto
10 > #Requires: prodagent
11 >
12  
13   %prep
14 < %setup PRODREQUEST
14 > %setup -n PRODREQUEST
15   %build
16 < ( echo source $PYTHON_ROOT/etc/profile.d/init.sh ; \
17 <  echo source $SQLITE_ROOT/etc/profile.d/init.sh ; \
18 <  echo source $SQLOBJECT_ROOT/etc/profile.d/init.sh ; \
19 <  echo source $PY2_PYSQLITE_ROOT/etc/profile.d/init.sh ; \
20 <  echo source $PY2_CHERRYPY_ROOT/etc/profile.d/init.sh ; \
21 <  echo source $PY2_CHEETAH_ROOT/etc/profile.d/init.sh ; \  
22 <  echo source $YUI_ROOT/etc/profile.d/init.sh ) > %i/etc/profile.d/dependencies-setup.sh
16 > ## IMPORT gcc-wrapper
17 > rm -rf %i/etc/profile.d
18 > mkdir -p %i/etc/profile.d/
19 > dependenciesRoots="$PYTHON_ROOT $SQLITE_ROOT $PY2_SQLOBJECT_ROOT $PY2_PYSQLITE_ROOT $CHERRYPY_ROOT $YUI_ROOT \
20 >                    $ZLIB_ROOT $EXPAT_ROOT $OPENSSL_ROOT $BZ2LIB_ROOT $DB4_ROOT $GDBM_ROOT $PY2_FORMENCODE_ROOT \
21 >                    $PY2_CHEETAH_ROOT $PRODCOMMON_ROOT $WEBTOOLS_ROOT $DBS_CLIENT_ROOT $DLS_ROOT $BOSS_ROOT \
22 >                    $PY2_MYSQLDB_ROOT $MYSQL_ROOT $PY2_PYCRYPTO_ROOT"
23 >
24 > touch %i/etc/profile.d/dependencies-setup.sh
25 > touch %i/etc/profile.d/dependencies-setup.csh
26 >
27 > for pkg in $dependenciesRoots
28 > do
29 >    echo $pkg
30 >    echo source $pkg/etc/profile.d/init.sh >> %i/etc/profile.d/dependencies-setup.sh
31 >    echo source $pkg/etc/profile.d/init.csh >> %i/etc/profile.d/dependencies-setup.csh
32 > done
33 >
34   %install
35   cp -r * %i/
36   %post
37 < perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX!" PRODREQUEST
37 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
38 > %{relocateConfig}etc/profile.d/dependencies-setup.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines