Revision: | 1.24 |
Committed: | Wed May 11 11:14:44 2011 UTC (13 years, 11 months ago) by giffels |
Branch: | MAIN |
CVS Tags: | TW20110627a, TW20110623b, TW20110623a, HG1106e, builder_2011-06-17_14-52-14_cmsweb, builder_2011-06-16_19-08-24_wmagent, builder_2011-06-16_16-09-02_wmagent, builder_2011-06-15_16-54-18_wmagent, builder_2011-06-10_23-58-54_cmsweb, HG1106d, builder_2011-06-07_22-07-15_reqmgr, builder_2011-05-31_01-23-03_cmsweb, builder_2011-05-31_00-51-28_cmsweb, HG1106c, TW20110530a, TW20110527b, TW20110527a, builder_2011-05-25_15-26-47_crab-server3, TW20110525a, TW20110524b, TW20110524a, builder_2011-05-24_10-10-21_cmsweb, HG1106b, builder_2011-05-23_17-26-34_crab-server3, builder_2011-05-20_10-32-01_sitereadiness, builder_2011-05-16_15-13-08_cmsweb, HG1106a |
Changes since 1.23: | +1 -1 lines |
Log Message: | Update DBS3 to Version 3.0.9 |
# | User | Rev | Content |
---|---|---|---|
1 | giffels | 1.24 | ### RPM cms dbs3 3.0.9 |
2 | diego | 1.1 | ## INITENV +PATH PYTHONPATH %i/Server/Python/src |
3 | giffels | 1.20 | ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages |
4 | diego | 1.1 | ## INITENV SET DBS3_SERVER_ROOT %i/Server/Python |
5 | diego | 1.23 | %define wmcver 0.7.4 |
6 | giffels | 1.15 | %define cvstag %(echo %{realversion} | sed 's/[.]/_/g; s/^/DBS_/') |
7 | lat | 1.18 | %define svnserver svn://svn.cern.ch/reps/CMSDMWM |
8 | Source0: %svnserver/WMCore/tags/%{wmcver}?scheme=svn+ssh&strategy=export&module=WMCore&output=/wmcore_dbs.tar.gz | ||
9 | Source1: %svnserver/DBS/tags/%cvstag?scheme=svn+ssh&strategy=export&module=DBS3&output=/%{n}.tar.gz | ||
10 | Requires: python py2-simplejson py2-sqlalchemy py2-httplib2 cherrypy py2-cheetah yui | ||
11 | giffels | 1.21 | Requires: py2-cjson py2-mysqldb py2-cx-oracle rotatelogs |
12 | diego | 1.1 | |
13 | %prep | ||
14 | lat | 1.18 | %setup -T -b 0 -n WMCore |
15 | %setup -D -T -b 1 -n DBS3 | ||
16 | diego | 1.1 | |
17 | %build | ||
18 | lat | 1.18 | cd ../WMCore |
19 | python setup.py build_system -s wmc-web | ||
20 | diego | 1.1 | |
21 | %install | ||
22 | lat | 1.18 | cd ../WMCore |
23 | python setup.py install_system -s wmc-web --prefix=%i | ||
24 | cd ../DBS3 | ||
25 | giffels | 1.15 | cp -rp %_builddir/DBS3/* %i/ |
26 | lat | 1.18 | find %i -name '*.egg-info' -exec rm {} \; |
27 | diego | 1.1 | |
28 | lat | 1.18 | # Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment. |
29 | diego | 1.1 | mkdir -p %i/etc/profile.d |
30 | lat | 1.18 | : > %i/etc/profile.d/dependencies-setup.sh |
31 | : > %i/etc/profile.d/dependencies-setup.csh | ||
32 | for tool in $(echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'); do | ||
33 | root=$(echo $tool | tr a-z- A-Z_)_ROOT; eval r=\$$root | ||
34 | if [ X"$r" != X ] && [ -r "$r/etc/profile.d/init.sh" ]; then | ||
35 | echo "test X\$$root != X || . $r/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh | ||
36 | echo "test X\$$root != X || source $r/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh | ||
37 | fi | ||
38 | diego | 1.1 | done |
39 | |||
40 | %post | ||
41 | diego | 1.14 | %{relocateConfig}etc/profile.d/dependencies-setup.*sh |
42 | giffels | 1.15 | |
43 | %files | ||
44 | %i/ | ||
45 | %exclude %i/src | ||
46 | %exclude %i/Server/JAVA | ||
47 | %exclude %i/Server/Http |