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

Comparing COMP/CMSDIST/overview.spec (file contents):
Revision 1.1 by lat, Wed May 20 14:25:47 2009 UTC vs.
Revision 1.4 by gfball, Thu Jul 30 08:48:50 2009 UTC

# Line 1 | Line 1
1 < ### RPM cms overview 4.6.0
1 > ### RPM cms overview 4.6.2
2  
3   %define cvsserver   cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
4   %define initenv     export ZZPATH=$PATH ZZLD_LIBRARY_PATH=$LD_LIBRARY_PATH ZZPYTHONPATH=$PYTHONPATH; %initenv_all
5  
6 < Source0: %{cvsserver}&strategy=checkout&module=CMSSW/VisMonitoring/DQMServer&export=VisMonitoring/DQMServer&tag=-rV04-05-03&output=/DQMServer.tar.gz
6 > Source0: %{cvsserver}&strategy=checkout&module=CMSSW/VisMonitoring/DQMServer&export=VisMonitoring/DQMServer&tag=-rR04-06-02&output=/DQMServer.tar.gz
7   Requires: cherrypy py2-cheetah yui py2-pysqlite py2-cx-oracle py2-pil py2-matplotlib
8 + Provides: /usr/bin/python
9  
10   %prep
11   %setup -c -T -n src -a 0
# Line 25 | Line 26 | export PYTHONPATH=%i/python${PYTHONPATH+
26   cd %_builddir/src
27   for d in */*; do
28    if [ -d $d/python ]; then
29 <    mkdir -p %i/python/$d
30 <    find %i/python/* -type d -print | xargs -i touch {}/__init__.py
30 <    cp -p $d/python/*.{py,js,css,gif,png,tmpl} %i/python/$d
31 <    python -c "from $(echo $d | sed s:/:.:g) import *"
29 >    cp -p $d/python/*.{py,js,css,gif,png,tmpl} %i/python
30 >    rm -f %i/python/GuiDQM.py
31    fi
32  
33    for f in $d/scripts/*; do
# Line 36 | Line 35 | for d in */*; do
35    done
36   done
37  
38 + for mod in %i/python/*.py; do
39 +  python -c "import $(basename $mod | sed 's/\.py$//')"
40 + done
41 +
42   # Now generate server start-up environment. Eliminate non-existent and
43   # duplicate path components and convert back to format that only adds to
44   # user's one, not one that uses RPM-builder's environment. Finally munge

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines