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.4 by eulisse, Mon Nov 13 11:05:29 2006 UTC vs.
Revision 1.65 by eulisse, Mon Apr 16 16:34:34 2007 UTC

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