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.16 by eulisse, Tue Dec 19 16:36:47 2006 UTC

# Line 1 | Line 1
1 < ### RPM cms prodrequest V00-00-01
1 > ### RPM cms prodrequest alpha
2   %define moduleName PRODREQUEST
3   %define exportName PRODREQUEST
4 < %define cvstag %{v}
4 > %define cvstag V00-01-00
5   %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
6   Source: %cvsserver&strategy=checkout&module=%{moduleName}&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/PRODREQUEST.tar.gz
7 < Requires: python sqlobject py2-pysqlite py2-cherrypy py2-cheetah yui sqlite
7 > Requires: python py2-sqlobject py2-pysqlite cherrypy py2-cheetah yui sqlite py2-formencode zlib expat openssl bz2lib db4 gdbm prodcommon webtools prodagent dbs dls boss
8  
9   %prep
10 < %setup PRODREQUEST
10 > %setup -n PRODREQUEST
11   %build
12 < ( echo source $PYTHON_ROOT/etc/profile.d/init.sh ; \
13 <  echo source $SQLITE_ROOT/etc/profile.d/init.sh ; \
14 <  echo source $SQLOBJECT_ROOT/etc/profile.d/init.sh ; \
15 <  echo source $PY2_PYSQLITE_ROOT/etc/profile.d/init.sh ; \
16 <  echo source $PY2_CHERRYPY_ROOT/etc/profile.d/init.sh ; \
17 <  echo source $PY2_CHEETAH_ROOT/etc/profile.d/init.sh ; \  
18 <  echo source $YUI_ROOT/etc/profile.d/init.sh ) > %i/etc/profile.d/dependencies-setup.sh
12 > rm -rf %i/etc/profile.d
13 > mkdir -p %i/etc/profile.d/
14 > dependenciesRoots="$PYTHON_ROOT $SQLITE_ROOT $PY2_SQLOBJECT_ROOT $PY2_PYSQLITE_ROOT $CHERRYPY_ROOT $YUI_ROOT \
15 >                    $ZLIB_ROOT $EXPAT_ROOT $OPENSSEL_ROOT $BZ2LIB_ROOT $DB4_ROOT $GDBM_ROOT $PY2_FORMENCODE_ROOT \
16 >                    $PY2_CHEETAH_ROOT $PRODCOMMON_ROOT $WEBTOOLS_ROOT $DBS_ROOT $DLS_ROOT $BOSS_ROOT $PRODAGENT_ROOT"
17 >
18 > touch %i/etc/profile.d/dependencies-setup.sh
19 > touch %i/etc/profile.d/dependencies-setup.csh
20 >
21 > for pkg in $dependenciesRoots
22 > do
23 >    echo $pkg
24 >    echo source $pkg/etc/profile.d/init.sh >> %i/etc/profile.d/dependencies-setup.sh
25 >    echo source $pkg/etc/profile.d/init.csh >> %i/etc/profile.d/dependencies-setup.csh
26 > done
27 >
28   %install
29   cp -r * %i/
30   %post
31 < perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX!" PRODREQUEST
31 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
32 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
33 > perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX/%pkgrel!" $RPM_INSTALL_PREFIX/%pkgrel/PRODREQUEST
34 > #
35 > #
36 > #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines