ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/srmcp.spec
Revision: 1.16
Committed: Mon Aug 18 14:50:08 2008 UTC (16 years, 8 months ago) by valya
Branch: MAIN
CVS Tags: MotT0_1_0_2, MotT0_1_0_1, MotT0_1_0_0, MotT0_100531_1, MotT0_100528_1, T0Mon_100518_1, T0Mon_100503_1, T0Mon_100316_1, T0Mon_100308_2, T0Mon_100308_1, T0Mon_100216_1, T0Mon_100210_1, T0Mon_100204_4, T0Mon_100204_3, T0Mon_100204_1, T0Mon_100127_1, DAS_20091202, pe20091117a-fromDAS_20090709, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, T0Mon_091111_1, DAS_20091104, DAS_20091016, DAS_20091014, pe20090910-fromDAS_20090709, T0Mon_090828_1, 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, 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, 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, pe20081213c-30Xports-432, pe20081213c-30Xports, pe20081213b-30Xports, pe20081213a-30Xports, 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, T0Mon_080920_2, T0Mon_080920_1, T0Mon_080916_2, WEBTOOLS-APPS_20080917, WEBTOOLS-APPS_20080916, WEBTOOLS-APPS_20080915, DBS-APPS_20080910_1, WEBTOOLS-APPS_20080910_1, WEBTOOLS-APPS_20080910, DBS-APPS_20080910, WEBTOOLS-APPS_20080909, DBS-APPS_20080908, T0Mon_080905_1, T0Mon_080905_01, WEBTOOLS-APPS_20080903, T0Mon_080902_2, T0Mon_080902_1, WEBTOOLS-APPS_20080826, T0Mon_080824_1, T0Mon_080823_1, WEBTOOLS-APPS_20080822, WEBTOOLS-APPS_20080821, WEBTOOLS-APPS_20080818_1, WEBTOOLS-APPS_20080818
Changes since 1.15: +3 -2 lines
Log Message:
Found that there are two delimiters occurs in a version name. One from srm version and another as -cmp, cut of last one to get realversion

File Contents

# User Rev Content
1 valya 1.14 ### RPM external srmcp 1.8.0-15p8
2 egeland 1.12 ## INITENV +PATH PATH %i/bin:%i/sbin
3     ## INITENV SET SRM_PATH %i
4 eulisse 1.1
5 valya 1.16 %define realversion %(echo %v | cut -d- -f1,2)
6     Source: http://www.dcache.org/downloads/1.8.0/dcache-srmclient-%realversion.noarch.rpm
7 egeland 1.12 Requires: java-jdk
8 eulisse 1.1
9     %prep
10 valya 1.16 rpm2cpio %{_sourcedir}/dcache-srmclient-%realversion.noarch.rpm | cpio -ivd
11 egeland 1.12
12 eulisse 1.1 %build
13    
14     %install
15 egeland 1.12 mv %{_builddir}/opt/d-cache/srm/* %i
16    
17     # unset SRM_PATH SRM_CONFIG || true
18     # # (cd .. && tar -cf - srmclient) | (cd %i && tar -xf -)
19     # mkdir -p %i/etc
20     # SRM_PATH=%i SRM_CONFIG=%i/etc/config.xml \
21     # %i/sbin/srm \
22     # -x509_user_trusted_certificates /etc/grid-security/certificates \
23     # -copy file:////dev/null file:////dev/null > /dev/null 2>&1 || true
24 eulisse 1.1
25 egeland 1.12 # perl -p -i -e "s|$HOME|%i|" %i/etc/config.xml
26 eulisse 1.1
27 egeland 1.12 # Build dependencies-setup
28    
29     mkdir -p %{i}/etc/profile.d
30    
31     (echo "#!/bin/sh"; \
32     echo "source $JAVA_JDK_ROOT/etc/profile.d/init.sh"; \
33     ) > %{i}/etc/profile.d/dependencies-setup.sh
34    
35     (echo "#!/bin/tcsh"; \
36     echo "source $JAVA_JDK_ROOT/etc/profile.d/init.csh"; \
37     ) > %{i}/etc/profile.d/dependencies-setup.csh
38    
39 eulisse 1.1 %post
40 egeland 1.12 %{relocateConfig}etc/profile.d/dependencies-setup.sh
41     %{relocateConfig}etc/profile.d/dependencies-setup.csh
42