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 |
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 |
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 |