ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/dbs3.spec
Revision: 1.41
Committed: Thu May 24 14:57:46 2012 UTC (12 years, 11 months ago) by lat
Branch: MAIN
CVS Tags: bld_1366294257_wmagent-dev_slc5_amd64_gcc461, bld_1366220453_wmagent-dev_slc5_amd64_gcc461, bld_1365801108_wmagent-dev_slc5_amd64_gcc461, bld_1365189699_wmagent-dev_slc5_amd64_gcc461, bld_1365103387_wmagent-dev_osx106_amd64_gcc461, bld_1365103080_wmagent-dev_slc5_amd64_gcc461, bld_1365018384_wmagent-dev_slc5_amd64_gcc461, bld_1364985624_wmagent-dev_slc5_amd64_gcc461, bld_1364978618_wmagent-dev_slc5_amd64_gcc461, bld_1364898638_wmagent-dev_slc5_amd64_gcc461, bld_1364855420_wmagent-dev_slc5_amd64_gcc461, bld_1363704737_wmagent-dev_slc5_amd64_gcc461, bld_1363624908_wmagent-dev_osx106_amd64_gcc461, bld_1363027772_wmagent-dev_slc5_amd64_gcc461, bld_1362587917_t0_slc5_amd64_gcc461, bld_1362435765_wmagent-dev_slc5_amd64_gcc461, bld_1362086646_wmagent-dev_slc5_amd64_gcc461, bld_1362083383_wmagent-dev_slc5_amd64_gcc461, bld_1362004165_wmagent-dev_slc5_amd64_gcc461, bld_1361806174_wmagent-dev_slc5_amd64_gcc461, bld_1361397493_wmagent-dev_slc5_amd64_gcc461, bld_1361371766_wmagent-dev_slc5_amd64_gcc461, bld_1361302144_wmagent-dev_slc5_amd64_gcc461, bld_1360063178_wmagent-dev_slc5_amd64_gcc461, bld_1359499209_wmagent-dev_slc5_amd64_gcc461, bld_1359365022_wmagent-dev_osx106_amd64_gcc461, bld_1359150370_wmagent-dev_slc5_amd64_gcc461, bld_1359148765_wmagent-dev_slc5_amd64_gcc461, bld_1358954381_wmagent-dev_slc5_amd64_gcc461, TW20121025a, bld_1350485088_PHEDEX-lifecycle_slc5_amd64_gcc461, TW20120914a, TW20120913b, TW20120913a, TW20120829b, TW20120829a, HG1210a, T020120827, HG1208e, HG1208d, HG1208c, HG1207d, TW20120727a, TW20120726a, TW20120725a, HG1208a, TW20120724c, TW20120724b, TW20120724a, TW20120720a, TW20120719a, TW20120718a, HG1207c, TW20120704c, TW20120704b, TW20120704a, TW20120702c, TW20120702b, TW20120702a, TW20120621c, TW20120621a, TW20120620a, HG1207b, HG1207a, HG1206d, TW20120607a, TW20120606a, HG1206c
Changes since 1.40: +2 -1 lines
Log Message:
Move build-only dependencies into BuildRequires from Requires.

File Contents

# User Rev Content
1 giffels 1.40 ### RPM cms dbs3 3.0.18
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.40 %define wmcver 0.8.47
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 lat 1.41 Requires: py2-cjson py2-mysqldb py2-cx-oracle rotatelogs
13     BuildRequires: py2-sphinx
14 diego 1.1
15     %prep
16 lat 1.18 %setup -T -b 0 -n WMCore
17     %setup -D -T -b 1 -n DBS3
18 diego 1.1
19     %build
20 lat 1.18 cd ../WMCore
21     python setup.py build_system -s wmc-web
22 giffels 1.25 cd ../DBS3
23     python setup.py build_system -s Server
24 diego 1.1
25     %install
26 giffels 1.34 mkdir -p %i/etc/profile.d %i/{x,}{bin,lib,data,doc} %i/{x,}$PYTHON_LIB_SITE_PACKAGES
27 lat 1.18 cd ../WMCore
28     python setup.py install_system -s wmc-web --prefix=%i
29     cd ../DBS3
30 giffels 1.25 python setup.py install_system -s Server --prefix=%i
31 lat 1.18 find %i -name '*.egg-info' -exec rm {} \;
32 diego 1.1
33 lat 1.18 # Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment.
34 diego 1.1 mkdir -p %i/etc/profile.d
35 lat 1.18 : > %i/etc/profile.d/dependencies-setup.sh
36     : > %i/etc/profile.d/dependencies-setup.csh
37     for tool in $(echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'); do
38     root=$(echo $tool | tr a-z- A-Z_)_ROOT; eval r=\$$root
39     if [ X"$r" != X ] && [ -r "$r/etc/profile.d/init.sh" ]; then
40     echo "test X\$$root != X || . $r/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
41     echo "test X\$$root != X || source $r/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
42     fi
43 diego 1.1 done
44    
45     %post
46 diego 1.14 %{relocateConfig}etc/profile.d/dependencies-setup.*sh
47 giffels 1.30
48     %files
49 diego 1.36 %{installroot}/%{pkgrel}/
50     %exclude %{installroot}/%{pkgrel}/doc
51 giffels 1.30 ## SUBPACKAGE webdoc