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.7 by eulisse, Mon Nov 13 15:40:22 2006 UTC vs.
Revision 1.85 by eulisse, Fri Nov 30 12:34:25 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 py2-sqlobject py2-pysqlite cherrypy py2-cheetah yui sqlite py2-formencode zlib expat openssl bz2lib db4 gdbm
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 source $PYTHON_ROOT/etc/profile.d/init.sh ; \
17 <  echo source $SQLITE_ROOT/etc/profile.d/init.sh ; \
18 <  echo source $PY2_SQLOBJECT_ROOT/etc/profile.d/init.sh ; \
19 <  echo source $PY2_PYSQLITE_ROOT/etc/profile.d/init.sh ; \
20 <  echo source $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 ; \
23 <  echo source $ZLIB_ROOT/etc/profile.d/init.sh ; \
24 <  echo source $EXPAT_ROOT/etc/profile.d/init.sh ; \
25 <  echo source $OPENSSL_ROOT/etc/profile.d/init.sh ; \
26 <  echo source $BZ2LIB_ROOT/etc/profile.d/init.sh ; \
27 <  echo source $DB4_ROOT/etc/profile.d/init.sh ; \
28 <  echo source $GDBM_ROOT/etc/profile.d/init.sh ; \
29 <  echo source $PY2_FORMENCODE_ROOT/etc/profile.d/init.sh ) > %i/etc/profile.d/dependencies-setup.sh
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 > perl -p -i -e 's|\. /etc/profile\.d/init\.sh||' %{i}/etc/profile.d/dependencies-setup.sh
33 > perl -p -i -e 's|source /etc/profile\.d/init\.csh||' %{i}/etc/profile.d/dependencies-setup.csh
34 >
35   %install
36   cp -r * %i/
37   %post
38 < perl -p -i -e "s!\@RPM_INSTALL_PREFIX\@!$RPM_INSTALL_PREFIX/%pkgrel!" $RPM_INSTALL_PREFIX/%pkgrel/PRODREQUEST
38 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
39 > %{relocateConfig}etc/profile.d/dependencies-setup.csh

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines