ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs3.spec
Revision: 1.47
Committed: Wed Feb 20 09:44:51 2013 UTC (12 years, 2 months ago) by giffels
Branch: MAIN
CVS Tags: bld_1366393047_das_slc5_amd64_gcc461, bld_1366387004_das_slc5_amd64_gcc461, bld_1366383107_das_slc5_amd64_gcc461, bld_1366320846_das_slc5_amd64_gcc461, bld_1366318481_das_slc5_amd64_gcc461, bld_1366310647_das_slc5_amd64_gcc461, bld_1366297091_das_slc5_amd64_gcc461, bld_1366231053_das_slc5_amd64_gcc461, bld_1366227545_das_slc5_amd64_gcc461, bld_1366217887_das_slc5_amd64_gcc461, bld_1366212554_das_slc5_amd64_gcc461, bld_1366142291_das_slc5_amd64_gcc461, bld_1366137469_das_slc5_amd64_gcc461, bld_1366136287_das_slc5_amd64_gcc461, bld_1366133845_das_slc5_amd64_gcc461, bld_1366130037_das_slc5_amd64_gcc461, bld_1365873495_das_slc5_amd64_gcc461, bld_1365864253_das_slc5_amd64_gcc461, bld_1365813474_das_slc5_amd64_gcc461, bld_1365798254_das_slc5_amd64_gcc461, bld_1365756543_cmsweb_slc5_amd64_gcc461, bld_1365755645_cmsweb_slc5_amd64_gcc461, bld_1365754910_das_slc5_amd64_gcc461, HG1304e, bld_1365639925_das_slc5_amd64_gcc461, bld_1365145423_cmsweb_slc5_amd64_gcc461, bld_1365144485_cmsweb_slc5_amd64_gcc461, HG1304d, bld_1365093891_cmsweb_slc5_amd64_gcc461, bld_1365092930_cmsweb_slc5_amd64_gcc461, HG1304c, bld_1365016270_reqmon_slc5_amd64_gcc461, bld_1364915341_reqmgr_slc5_amd64_gcc461, bld_1364871746_workqueue_slc5_amd64_gcc461, bld_1364871746_reqmon_slc5_amd64_gcc461, bld_1364477498_cmsweb_slc6_amd64_gcc461, bld_1364476037_cmsweb_slc5_amd64_gcc461, HG1304b, bld_1363878515_cmsfomon_slc5_amd64_gcc461, bld_1363625610_cmsweb_slc6_amd64_gcc461, bld_1363624533_cmsweb_slc5_amd64_gcc461, HG1304a, bld_1363270485_cmsweb_slc5_amd64_gcc461, bld_1363269753_cmsweb_slc6_amd64_gcc461, bld_1363269703_cmsweb_slc5_amd64_gcc461, HG1303g, HG1304a-rc2, HG1304a-rc, bld_1362998090_cmsweb_slc5_amd64_gcc461, bld_1362996978_cmsweb_slc5_amd64_gcc461, bld_1362996936_cmsweb_slc6_amd64_gcc461, HG1303f, bld_1362587831_cmsweb_slc5_amd64_gcc461, bld_1362587049_cmsweb_slc6_amd64_gcc461, bld_1362586958_cmsweb_slc5_amd64_gcc461, HG1303e, bld_1362581633_cmsfomon_slc5_amd64_gcc461, bld_1362396027_cmsweb_slc5_amd64_gcc461, bld_1362395773_cmsweb_slc6_amd64_gcc461, bld_1362395102_cmsweb_slc5_amd64_gcc461, bld_1362394999_cmsweb_slc6_amd64_gcc461, HG1303d, bld_1362152615_cmsweb_slc6_amd64_gcc461, bld_1362145756_cmsweb_slc5_amd64_gcc461, bld_1362144996_cmsweb_slc6_amd64_gcc461, bld_1362144848_cmsweb_slc5_amd64_gcc461, HG1303c, bld_1361717845_cmsweb_slc6_amd64_gcc461, bld_1361549332_cmsweb_slc5_amd64_gcc461, bld_1361547565_cmsweb_slc6_amd64_gcc461, bld_1361547434_cmsweb_slc5_amd64_gcc461, HG1303b, bld_1361357725_dbs3-combined_slc5_amd64_gcc461, HEAD
Changes since 1.46: +1 -1 lines
Log Message:
New DBS tag 3.1.2b

File Contents

# User Rev Content
1 giffels 1.47 ### RPM cms dbs3 3.1.2b
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 diego 1.36 %define webdoc_files %{installroot}/%{pkgrel}/doc/
6 giffels 1.46 %define wmcver 0.9.34
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 giffels 1.42 %define gitserver https://nodeload.github.com
10 giffels 1.43 Source0: git://github.com/dmwm/WMCore.git?obj=master/%{wmcver}&export=WMCore&output=/WMCore4%{n}.tar.gz
11     Source1: %svnserver/DBS/tags/%cvstag?scheme=svn+ssh&strategy=export&module=DBS&output=/%{n}.tar.gz
12 giffels 1.42
13 lat 1.18 Requires: python py2-simplejson py2-sqlalchemy py2-httplib2 cherrypy py2-cheetah yui
14 giffels 1.43 Requires: py2-cjson py2-mysqldb py2-cx-oracle dbs3-pycurl-client rotatelogs
15 lat 1.41 BuildRequires: py2-sphinx
16 diego 1.1
17     %prep
18 giffels 1.43 %setup -T -b 0 -n WMCore
19     %setup -D -T -b 1 -n DBS
20 diego 1.1
21     %build
22 giffels 1.43 cd ../WMCore
23 lat 1.18 python setup.py build_system -s wmc-web
24 giffels 1.43 cd ../DBS
25     python setup.py build_system -s dbs-web
26 diego 1.1 %install
27 giffels 1.34 mkdir -p %i/etc/profile.d %i/{x,}{bin,lib,data,doc} %i/{x,}$PYTHON_LIB_SITE_PACKAGES
28 giffels 1.43 cd ../WMCore
29 lat 1.18 python setup.py install_system -s wmc-web --prefix=%i
30 giffels 1.43 cd ../DBS
31     python setup.py install_system -s dbs-web --prefix=%i
32 lat 1.18 find %i -name '*.egg-info' -exec rm {} \;
33 diego 1.1
34 lat 1.18 # Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment.
35 diego 1.1 mkdir -p %i/etc/profile.d
36 lat 1.18 : > %i/etc/profile.d/dependencies-setup.sh
37     : > %i/etc/profile.d/dependencies-setup.csh
38     for tool in $(echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'); do
39     root=$(echo $tool | tr a-z- A-Z_)_ROOT; eval r=\$$root
40     if [ X"$r" != X ] && [ -r "$r/etc/profile.d/init.sh" ]; then
41     echo "test X\$$root != X || . $r/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
42     echo "test X\$$root != X || source $r/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
43     fi
44 diego 1.1 done
45    
46     %post
47 diego 1.14 %{relocateConfig}etc/profile.d/dependencies-setup.*sh
48 giffels 1.30
49     %files
50 diego 1.36 %{installroot}/%{pkgrel}/
51     %exclude %{installroot}/%{pkgrel}/doc
52 giffels 1.30 ## SUBPACKAGE webdoc