ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/overview.spec
Revision: 1.23
Committed: Thu Aug 4 20:54:31 2011 UTC (13 years, 8 months ago) by lat
Branch: MAIN
CVS Tags: bld_1364477047_CmsTC_slc5_amd64_gcc434, bld_1363597235_CmsTC_slc5_amd64_gcc434, bld_1361358843_CmsTC_slc5_amd64_gcc434, bld_1360935597_CmsTC_slc5_amd64_gcc434, bld_1358942699_CmsTC_slc5_amd64_gcc434, bld_1358853292_CmsTC_slc5_amd64_gcc434, TW20120428p, bld_1334854417_PHEDEX-combined-agents_slc5_amd64_gcc461, bld_1334681121_PHEDEX-combined-agents_slc5_amd64_gcc461, TW20120417a, TW20120416a, TW20120410b, TW20120410a, HG1204h, HG1204g, TW20120327b, TW20120327a, TW20120326a, HG1204f, TW20120322a, HG1203i, HG1204e, TW20120321c, TW20120321b, TW20120321a, HG1204d, TW20120320b, TW20120320a, dieHG1204d, TW20120319k, TW20120319j, TW20120319i, TW20120319h, TW20120319g, TW20120319f, TW20120319e, TW20120319d, TW20120319c, TW20120319b, TW20120319a, HG1204c, TW20120313a, HG1204b, TW20120309h, TW20120309g, TW20120309f, TW20120309e, TW20120309d, TW20120309c, TW20120309b, TW20120309a, HG1204a, TW20120308b, TW20120308a, TW20120307a, HG1203h, TW20120305b, TW20120302a, HG1203g, HG1203f, HG1203e, HG1203d, HG1203c, HG1203b, TW20120216b, TW20120216a, HG1201d, HG1203a, TW20120210a, TW20120209a, TW20120207b, TW20120207a, HG1201c, bld_1328198772_crab_slc5_amd64_gcc461, TW20120130b, TW20120130a, TW20120127b, TW20120127a, TW20120125a, bld_1327424666_crab-client3_slc5_amd64_gcc461, HG1201b, bld_1327416353_crab-server3_slc5_amd64_gcc461, bld_1327397075_cmsbuilder_slc5_amd64_gcc461, TW20120123a, TW20120120a, TW20120119b, TW20120119a, bld_1326980038_cmsbuild_slc5_amd64_gcc461, TW20120118a, bld_1326280382_cmsBuilder_slc5_amd64_gcc461, bld_1326274893_cmsBuilder_slc5_amd64_gcc461, bld_1326273864_asyncstageout_slc5_amd64_gcc461, bld_1324281658_cmsweb_osx106_amd64_gcc461, HG1201a, HG1112d, bld_1323333807_CmsTC_slc5_amd64_gcc461, HG1112c, TW20111129e, TW20111129d, TW20111129c, TW20111129a, TW20111128c, TW20111128b, TW20111128a, HG1112b, TW20111122a, TW20111120a, TW20111118c, bld_1321637643_reqmon_slc5_amd64_gcc461, TW20111118b, TW20111118a, HG1111e, bld_1321455789_happyface_slc5_amd64_gcc461, bld_1321454935_happyface_slc5_amd64_gcc461, TW20111115d, TW20111115c, TW20111115b, TW20111115a, HG1112a, bld_1320341101_PHEDEX-combined-agents_slc5_amd64_gcc434, TW20111103a, bld_1320248863_PHEDEX-combined-agents_slc5_amd64_gcc434, TW20111101e, TW20111101d, TW20111101c, TW20111101b, TW20111101a, TW20111028a, bld_1319551575_PHEDEX-combined-agents_slc5_amd64_gcc461, HG1111d, TW20111017d, TW20111017c, TW20111017b, TW20111017a, TW20111016a, TW20111015a, bld_1318622241_wmagent_slc5_amd64_gcc434, TW20111014a, bld_1318524794_asyncstageout_slc5_amd64_gcc434, bld_1318523430_cmsweb_slc5_amd64_gcc434, HG1111c-gcc434, HG1111c, bld_1318424717_crab-server3_slc5_amd64_gcc434, bld_1318423430_asyncstageout_slc5_amd64_gcc434, LT20111012a, bld_1318410594_crab-server3_slc5_amd64_gcc434, TW20111010c, HG1111b, TW20111010b, TW20111010a, HG1111a-gcc434, HG1111a, builder_2011-10-04_16-25-49_das, bld_1317721310_stagemanager-agent_slc5_amd64_gcc434, builder_2011-09-30_15-50-42_PHEDEX-combined-agents, builder_2011-09-29_13-07-19_cmsweb, builder_2011-09-29_12-57-04_cmsweb, LT20110929b, HG1109e, builder_2011-09-29_09-05-43_crab-server3, builder_2011-09-29_09-05-42_asyncstageout, builder_2011-09-29_05-49-40_wmagent, LT20110928b, builder_2011-09-28_19-05-55_PHEDEX-combined-agents, builder_2011-09-28_16-45-33_das, builder_2011-09-28_16-05-45_das, TW20110928b, builder_2011-09-28_12-04-32_stagemanager-agent, builder_2011-09-28_12-04-32_stagemanager, TW20110928a, builder_2011-09-28_11-09-39_stagemanager-agent, builder_2011-09-27_17-51-30_reqmon, builder_2011-09-26_18-50-48_stagemanager-agent, builder_2011-09-26_18-50-48_stagemanager, HG1109d, builder_2011-09-23_12-46-40_cmsweb, builder_2011-09-23_12-37-00_cmsweb, builder_2011-09-23_12-09-06_wmagent, builder_2011-09-22_12-03-59_asyncstageout, builder_2011-09-22_11-25-57_crab-server3, builder_2011-09-22_11-24-38_asyncstageout, builder_2011-09-22_09-46-05_cmsweb, builder_2011-09-22_09-36-11_cmsweb, builder_2011-09-22_05-26-44_wmagent, builder_2011-09-21_18-06-30_asyncstageout, builder_2011-09-21_15-26-46_wmagent, builder_2011-09-21_12-53-09_crab-server3, builder_2011-09-21_12-53-09_asyncstageout, builder_2011-09-21_12-47-08_crab-server3, builder_2011-09-21_12-45-23_asyncstageout, builder_2011-09-20_21-03-55_regsvc, builder_2011-09-19_17-53-10_cmsweb, builder_2011-09-19_12-05-14_workqueue, builder_2011-09-15_17-45-48_PHEDEX-combined-agents, HG1109c-osx, builder_2011-09-14_13-06-06_cmsweb, TW20110913b, TW20110913a, builder_2011-09-13_12-46-32_cmsweb, HG1109c, LT20110913a, builder_2011-09-13_10-10-02_cmsweb, LT20110912a, TW20110911a, TW20110909d, TW20110909c, builder_2011-09-09_17-05-31_dbs3-client, TW20110909b, TW20110909a, builder_2011-09-08_22-46-50_reqmgr, HG1109b, builder_2011-09-07_19-00-35_cmsweb, builder_2011-09-06_22-45-07_globalmonitor, builder_2011-09-06_16-09-09_stagemanager-agent, builder_2011-09-06_15-53-16_stagemanager-agent, builder_2011-09-01_12-14-12_wmagent, HG1109a, builder_2011-08-29_19-08-40_cmsweb, builder_2011-08-16_12-09-37_cmsweb, HG1108b
Changes since 1.22: +1 -0 lines
Log Message:
Add webdoc_files definition for split-off package.

File Contents

# User Rev Content
1 lat 1.22 ### RPM cms overview 6.0.7
2 lat 1.18 ## INITENV +PATH PATH %i/xbin
3     ## INITENV +PATH %{dynamic_path_var} %i/xlib
4     ## INITENV +PATH PYTHONPATH %i/$PYTHON_LIB_SITE_PACKAGES
5     ## INITENV +PATH PYTHONPATH %i/x$PYTHON_LIB_SITE_PACKAGES
6 lat 1.1
7 lat 1.23 %define webdoc_files %i/doc/
8 lat 1.15 %define svn svn://svn.cern.ch/reps/CMSDMWM/Monitoring/tags/%{realversion}
9     Source: %{svn}?scheme=svn+ssh&strategy=export&module=Monitoring&output=/src.tar.gz
10 lat 1.21 Requires: cherrypy py2-cheetah yui py2-cx-oracle py2-pil py2-matplotlib py2-pycurl
11     Requires: py2-cjson rotatelogs py2-sphinx
12 lat 1.1
13     %prep
14 lat 1.15 # Unpack sources.
15     %setup -n Monitoring
16 lat 1.22 perl -p -i -e "s{<VERSION>}{%{realversion}}g" doc/*/conf.py
17 lat 1.15
18     # Build
19 lat 1.1 %build
20 lat 1.15 python setup.py build_system -s Overview
21    
22     # Install
23     %install
24 lat 1.18 mkdir -p %i/etc/profile.d %i/{x,}{bin,lib,include,data} %i/{x,}$PYTHON_LIB_SITE_PACKAGES
25 lat 1.15 python setup.py install_system -s Overview --prefix=%i
26     find %i -name '*.egg-info' -exec rm {} \;
27    
28     # Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment.
29     : > %i/etc/profile.d/dependencies-setup.sh
30     : > %i/etc/profile.d/dependencies-setup.csh
31     for tool in $(echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'); do
32     root=$(echo $tool | tr a-z- A-Z_)_ROOT; eval r=\$$root
33     if [ X"$r" != X ] && [ -r "$r/etc/profile.d/init.sh" ]; then
34     echo "test X\$$root != X || . $r/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
35     echo "test X\$$root != X || source $r/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
36     fi
37 lat 1.1 done
38 lat 1.5
39 lat 1.15 # Generate an env.sh which sets a few things more than init.sh.
40     (echo ". %i/etc/profile.d/init.sh;"
41 lat 1.18 echo "export YUI_ROOT;"
42 lat 1.15 echo "export MONITOR_ROOT='%i';") > %i/etc/profile.d/env.sh
43 lat 1.1
44     %post
45 lat 1.15 %{relocateConfig}etc/profile.d/{env,dep*}.*sh
46 lat 1.20
47     %files
48     %i/
49     %exclude %i/doc
50    
51     ## SUBPACKAGE webdoc