Revision: | 1.32 |
Committed: | Mon Nov 14 16:22:49 2011 UTC (13 years, 5 months ago) by giffels |
Branch: | MAIN |
CVS Tags: | TW20120327b, TW20120327a, TW20120326a, TW20120322a, TW20120321c, TW20120321b, TW20120321a, TW20120313a, TW20120308b, TW20120308a, TW20120307a, TW20120305b, TW20120216b, TW20120216a, TW20120210a, TW20120209a, TW20120207b, TW20120207a, bld_1328198772_crab_slc5_amd64_gcc461, TW20120130b, TW20120130a, TW20120127b, TW20120127a, TW20120125a, bld_1327424666_crab-client3_slc5_amd64_gcc461, bld_1327416353_crab-server3_slc5_amd64_gcc461, TW20120123a, TW20120120a, TW20120119b, TW20120119a, TW20120118a, bld_1326273864_asyncstageout_slc5_amd64_gcc461, bld_1324281658_cmsweb_osx106_amd64_gcc461, HG1201a, HG1112d, bld_1323333807_CmsTC_slc5_amd64_gcc461, HG1112c, HG1112b |
Changes since 1.31: | +2 -2 lines |
Log Message: | New DBS3 release 3.0.13. |
# | User | Rev | Content |
---|---|---|---|
1 | giffels | 1.32 | ### RPM cms dbs3 3.0.13 |
2 | lat | 1.26 | ## INITENV +PATH PYTHONPATH %i/$PYTHON_LIB_SITE_PACKAGES |
3 | giffels | 1.28 | ## INITENV +PATH PYTHONPATH %i/x$PYTHON_LIB_SITE_PACKAGES |
4 | giffels | 1.25 | ## INITENV SET DBS3_SERVER_ROOT %i/ |
5 | giffels | 1.30 | %define webdoc_files %i/doc/ |
6 | giffels | 1.32 | %define wmcver 0.8.13 |
7 | giffels | 1.15 | %define cvstag %(echo %{realversion} | sed 's/[.]/_/g; s/^/DBS_/') |
8 | lat | 1.18 | %define svnserver svn://svn.cern.ch/reps/CMSDMWM |
9 | Source0: %svnserver/WMCore/tags/%{wmcver}?scheme=svn+ssh&strategy=export&module=WMCore&output=/wmcore_dbs.tar.gz | ||
10 | Source1: %svnserver/DBS/tags/%cvstag?scheme=svn+ssh&strategy=export&module=DBS3&output=/%{n}.tar.gz | ||
11 | Requires: python py2-simplejson py2-sqlalchemy py2-httplib2 cherrypy py2-cheetah yui | ||
12 | giffels | 1.30 | Requires: py2-cjson py2-mysqldb py2-cx-oracle py2-sphinx rotatelogs |
13 | diego | 1.1 | |
14 | %prep | ||
15 | lat | 1.18 | %setup -T -b 0 -n WMCore |
16 | %setup -D -T -b 1 -n DBS3 | ||
17 | diego | 1.1 | |
18 | %build | ||
19 | lat | 1.18 | cd ../WMCore |
20 | python setup.py build_system -s wmc-web | ||
21 | giffels | 1.25 | cd ../DBS3 |
22 | python setup.py build_system -s Server | ||
23 | diego | 1.1 | |
24 | %install | ||
25 | lat | 1.18 | cd ../WMCore |
26 | python setup.py install_system -s wmc-web --prefix=%i | ||
27 | cd ../DBS3 | ||
28 | giffels | 1.25 | python setup.py install_system -s Server --prefix=%i |
29 | lat | 1.18 | find %i -name '*.egg-info' -exec rm {} \; |
30 | diego | 1.1 | |
31 | lat | 1.18 | # Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment. |
32 | diego | 1.1 | mkdir -p %i/etc/profile.d |
33 | lat | 1.18 | : > %i/etc/profile.d/dependencies-setup.sh |
34 | : > %i/etc/profile.d/dependencies-setup.csh | ||
35 | for tool in $(echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'); do | ||
36 | root=$(echo $tool | tr a-z- A-Z_)_ROOT; eval r=\$$root | ||
37 | if [ X"$r" != X ] && [ -r "$r/etc/profile.d/init.sh" ]; then | ||
38 | echo "test X\$$root != X || . $r/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh | ||
39 | echo "test X\$$root != X || source $r/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh | ||
40 | fi | ||
41 | diego | 1.1 | done |
42 | |||
43 | %post | ||
44 | diego | 1.14 | %{relocateConfig}etc/profile.d/dependencies-setup.*sh |
45 | giffels | 1.30 | |
46 | %files | ||
47 | %i/ | ||
48 | %exclude %i/doc | ||
49 | ## SUBPACKAGE webdoc |