ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/crabconf.spec
Revision: 1.7
Committed: Mon Sep 22 10:32:20 2008 UTC (16 years, 7 months ago) by valya
Branch: MAIN
CVS Tags: DBS_2_1_6-pre1, CmsTC_0_0_4, FRONTEND_CONF_3_30_20100724, FRONTEND_CONF_3_29_20100723, ge20100722-rpm-osx-64-bit, ge20100621-bootstrap-rpm-4-8-macosx, ge20100611-apt-rpm-4-8-gcc-4-5-0, MotT0_1_0_15, MotT0_1_0_14, MotT0_1_0_13, MotT0_1_0_12, MotT0_1_0_11, MotT0_1_0_10, MotT0_1_0_9, MotT0_1_0_8, MotT0_1_0_6, MotT0_1_0_5, MotT0_1_0_4, MotT0_1_0_3, MotT0_1_0_2, MotT0_1_0_1, MotT0_1_0_0, MotT0_100531_1, MotT0_100528_1, ge20100521b-new-rpm, ge20100521-new-rpm, ge20100519-new-apt, T0Mon_100518_1, T0Mon_100503_1, ge20100427-rpm-on-linux, ge20100422-rpm-4-8-0, T0Mon_100316_1, T0Mon_100308_2, T0Mon_100308_1, DAS_20100302_slc5_amd64_gcc434, DBS_20100226_slc5_amd64_gcc434, DBS_20100217_slc5_amd64_gcc434, FILEMOVER_20100217_slc5_amd64_gcc434, FRONTEND_CONF_3_24_20100217, DAS_20100217_slc5_amd64_gcc434, DAS_20100216b_slc5_amd64_gcc434, T0Mon_100216_1, DAS_20100216_slc5_amd64_gcc434, T0Mon_100210_1, T0Mon_100204_4, T0Mon_100204_3, T0Mon_100204_2, T0Mon_100204_1, dg20100201-dbs3, FILEMOVER_20100201_slc5_amd64_gcc434, FILEMOVER_20100128b_slc5_amd64_gcc434, dg20100129-dbs3, dg20100128-dbs3, FILEMOVER_20100128_slc5_amd64_gcc434, DAS_20100127_slc5_amd64_gcc434, T0Mon_100127_1, DAS_20100126_slc5_amd64_gcc434, DBS-APP_20100122_slc4, FILEMOVER_20100122_slc5_amd64_gcc434, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DAS_20100119_slc5_amd64_gcc434, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DAS_20100115_slc5_amd64_gcc434, dg20100115-security, DBS_20100115_slc5_amd64_gcc434, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, dg20100112-security, DBS_20100112_slc5_amd64_gcc434, DBS_20100111_slc5_amd64_gcc434, dg20100111-security, dg20100107b-wmcore, dg20100107-wmcore, DAS_20100105_slc5_amd64_gcc434, DAS_20091221_slc5_amd64_gcc434, DAS_20091214_slc5_amd64_gcc434, dg20091211-couchdb, dg20091210-phedex, dg20091203c-comp-base, DD_20091208_slc5_amd64_gcc434, DAS_20091208_slc5_amd64_gcc434, FILEMOVER_20091208_slc5_amd64_gcc434, DBS_20091208_slc5_amd64_gcc434, dg20091203b-comp-base, dg20091203-comp-base, DAS_20091202, DQMCATTEST_0_0_1, FILEMOVER_20091118, DBS-APPS_20090929, pe20091117a-fromDAS_20090709, DAS_20091117, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, T0Mon_091111_1, BUILDBOT_01, CERNOIDv02, DAS_20091104, DBS-WEB_20091021, CouchDB_0_10_0, DAS_20091016, CERNOIDv01, DAS_20091014, WMCORE-before-refactor, DBS-WEB_20091012, PerfSuiteDB_20090930, DBS-WEB_20090921, PerfSuiteDB_20090916, pe20090910-fromDAS_20090709, FILEMOVER_20090910, PerfSuiteDB_20090904_almost_stable, DBS-WEB_20090817, PerfSuiteDB_20090904, FILEMOVER_20090828, PerfSuiteDB_20090901, DBS-APPS_20090706, T0Mon_090828_1, forHEARTBEATr04, RPMVERIFY_0_2, forHEARTBEATr01, T0Mon_090822_1, WEBTOOLS_APPS_20090817, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, T0Mon_090715_1, DAS_20090607, DBS-WEB_20090618, DBS-APPS_20090619, T0Mon_090612_1, DBS-APPS_20090608, T0Mon_090611_1, T0Mon_090610_1, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, T0Mon_090601_1, DBS-APPS_20090528, T0Mon_090527_2, T0Mon_090527_1, condcore306, T0Mon_090522_1, ap20090520-osx105, T0Mon_090519_2, T0Mon_090519_1, ap20090519-osx105, DBS_APPS_20090518, T0Mon_090517_1, T0Mon_090516_1, T0Mon_090515_4, T0Mon_090515_3, T0Mon_090515_2, T0Mon_090515_1, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, DBS-WEB_20090512, T0Mon_090510_1, DBS-WEB_20090507, DBS_APPS_20090504, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, DBS-WEB_20090422, DBS-WEB_20090420, DBS-APPS_20090417, DBS-APPS_20090415, DBS-APPS_20090410, DAS_20090408, DBS-APPS_20090406, T0Mon_090406_1, DAS_20090330, DBS-APPS_20090326, T0Mon_090326_1, T0Mon_090325_1, DAS_20090319_1, DAS_20090319, DBS-APPS_20090318, T0Mon_090318_1, DBS-APPS_20090316, DAS_20090316, T0Mon_090315_1, DAS_20090313, COUCHDB_20090313, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, DBS-APPS_20090306, DBS-APPS_20090304_1, DBS-APPS_20090304, DBS-APPS_20090303_1, DBS-APPS_20090303, T0Mon_090303_1, DBS-APPS_20090302, DBS-APPS_20090220_1, DBS-APPS_20090220, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, zx20090216, condcore305, WEBTOOLS-APPS_20090212, WEBTOOLS-APPS_20090209_64bit, zx20090209, WEBTOOLS-APPS_20090206, T0M_0_0_4, T0M_0_0_3, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, PRODAGENT_0_12_10_pre2_20090127_V2, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, zx20090115, WEBTOOLS-APPS_20090113, DBS-APPS_20090109, DBS-APPS_20090108, WEBTOOLS-APPS_20090108, DBS-APPS_20090106, DBS-APPS_20090105, FMWS_20090103, FMWS_20081224_1, FMWS_20081224, FMWS_20081222_3, FMWS_20081222_2, FMWS_20081222, DBS-APPS_20081218, FMWS_20081212_1, FMWS_20081212, FMWS_20081211, DBS-APPS_20081211, DBS-APPS_20081210, DBS-APPS_20081209, WEBTOOLS-APPS_20081208, DBS-APPS_20081205, DBS-APPS_20081204, DBS-APPS_200811204, DBS-APPS_20081126_1, DBS-APPS_20081126, DBS-APPS_20081125, testofc, DBS-APPS_20081119, DBS-APPS_20081118, DBS-APPS_20081117, DBS-APPS_20081114_1, DBS-APPS_20081114, DBS-APPS_20081112, DBS-APPS_20081111_1, DBS-APPS_20081110_2, DBS-APPS_20081110_1, WEBTOOLS-APPS_20081110, DBS-APPS_20081110, WEBTOOLS-APPS_20081107_1, WEBTOOLS-APPS_20081107, DBS-APPS_20081107, T0Mon_081107_1, DBS-APPS_20081105, T0Mon_081105_1, DBS-APPS_20081104, WEBTOOLS-APPS_20081031_2, DBS-APPS_20081031_2, DBS-APPS_20081031_1, WEBTOOLS-APPS_20081031_1, WEBTOOLS-APPS_20081031, DBS-APPS_20081024, WEBTOOLS-APPS_20081020_1, WEBTOOLS-APPS_20081020, WEBTOOLS-APPS_20081016_2, WEBTOOLS-APPS_20081016_1, WEBTOOLS-APPS_20081016, WEBTOOLS-APPS_20081015, WEBTOOLS-APPS_20081013_1, WEBTOOLS-APPS_20081013, WEBTOOLS-APPS_20081009, WEBTOOLS-APPS_20081008_1, WEBTOOLS-APPS_20081008, PRODAGENT_0_12_2, T0Mon_080926_1, WEBTOOLS-APPS_20080922
Changes since 1.6: +2 -2 lines
Log Message:
New tag

File Contents

# User Rev Content
1 valya 1.7 ### RPM cms crabconf 0.0.4
2 valya 1.1 ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
3     ## INITENV SET CRAB_SERVICE_HOME %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
4    
5     %define exportName CRAB_SERVICE
6 valya 1.7 %define cvstag V01-03-17
7 valya 1.1 %define cvsserver cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e
8     Source: %cvsserver&strategy=checkout&module=WEBTOOLS/Applications/Crab&nocache=true&export=%{exportName}&tag=-r%{cvstag}&output=/%{exportName}.tar.gz
9     Requires: python cherrypy
10     %prep
11     %setup -n %{exportName}
12     %build
13     %install
14     rm -rf %i/etc/profile.d
15     mkdir -p %i/etc/profile.d
16     mkdir -p %i/etc/init.d
17 valya 1.5 mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages/files
18 valya 1.1 cp -r Applications/Crab/crab_ws_server.py %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages
19 valya 1.4 chmod a+x %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages/crab_ws_server.py
20 valya 1.1
21     # copy init script
22     cp Applications/Crab/crab_init %{i}/etc/init.d/
23     chmod a+x %{i}/etc/init.d/*
24    
25     (echo "#!/bin/sh"; \
26     echo "source $PYTHON_ROOT/etc/profile.d/init.sh"; \
27     echo "source $CHERRYPY_ROOT/etc/profile.d/init.sh"; \
28     ) > %{i}/etc/profile.d/dependencies-setup.sh
29    
30     (echo "#!/bin/tcsh"; \
31     echo "source $PYTHON_ROOT/etc/profile.d/init.csh"; \
32     echo "source $CHERRYPY_ROOT/etc/profile.d/init.csh"; \
33     ) > %{i}/etc/profile.d/dependencies-setup.csh
34    
35     # SCRAM ToolBox toolfile
36     mkdir -p %i/etc/scram.d
37     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
38     <doc type=BuildSystem::ToolDoc version=1.0>
39     <Tool name=crwab_ws_server version=%v>
40     <client>
41 valya 1.3 <Environment name=CRABCONF_BASE default="%i"></Environment>
42 valya 1.1 </client>
43 valya 1.3 <Runtime name=PYTHONPATH value="$CRABCONF_BASE/lib" type=path>
44     <Runtime name=DBSCMD_HOME value="$CRABCONF_BASE/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages">
45 valya 1.1 </Tool>
46     EOF_TOOLFILE
47    
48    
49     %post
50     %{relocateConfig}etc/profile.d/dependencies-setup.sh
51     %{relocateConfig}etc/profile.d/dependencies-setup.csh
52 valya 1.6 . $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh
53     if [ -n "${WEBTOOLS_CONF}" ] && [ -d ${WEBTOOLS_CONF}/crab/files ]; then
54     rm -rf $RPM_INSTALL_PREFIX/%{pkgrel}/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/files
55     ln -s ${WEBTOOLS_CONF}/crab/files $RPM_INSTALL_PREFIX/%{pkgrel}/lib/python`echo $PYTHON_VERSION | cut -d. -f1,2`/site-packages/html
56     fi