ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/xrootd.spec
Revision: 1.15
Committed: Thu Feb 12 22:25:27 2009 UTC (16 years, 2 months ago) by elmer
Branch: MAIN
CVS Tags: DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, DAS_20091202, FILEMOVER_20091118, DBS-APPS_20090929, pe20091117a-fromDAS_20090709, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, DAS_20091104, DBS-WEB_20091021, DAS_20091016, DAS_20091014, DBS-WEB_20091012, DBS-WEB_20090921, pe20090910-fromDAS_20090709, FILEMOVER_20090910, DBS-WEB_20090817, FILEMOVER_20090828, DBS-APPS_20090706, WEBTOOLS_APPS_20090817, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, DAS_20090607, DBS-WEB_20090618, DBS-APPS_20090619, DBS-APPS_20090608, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, DBS-APPS_20090528, condcore306, DBS_APPS_20090518, DAS_20090514_3, DAS_20090514_2, DAS_20090514_1, DAS_20090514, DBS-WEB_20090512, 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, dl090401t2, DAS_20090330, dl090401, dl090330, dl090329, dl0903029, CMSSW_3_1_0_pre4, DBS-APPS_20090326, DAS_20090319_1, pe20090318b-for31X-412, pe20090318b-for31X, DBS-APPS_20090318, pe20090318-for31X, dl090317t2, dl090317, DBS-APPS_20090316, COUCHDB_20090313, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, CMSSW_3_1_0_pre3, DBS-APPS_20090306, DBS-APPS_20090304_1, DBS-APPS_20090304, pe20090304-for31X-412, pe20090304-for31X, pe20090304b-30Xports-432, pe20090304a-30Xports-432, dl090304_cmsswtoolconf9cms_gcc412, dl090304_cmsswtoolconf9cms, DBS-APPS_20090303_1, DBS-APPS_20090303, DBS-APPS_20090302, dl090302_cmsswtoolconf9gcc412, dl090302_cmsswtoolconf9, dl090301, pe20090226b-30Xports-432, pe20090226a-30Xports-432, pe20090225d-for30XIB-412, pe20090225d-for30XIB, pe20090225c-for30XIB, pe20090225b-for30XIB-412, pe20090225b-for30XIB, pe20090225a-for30XIB, pe20090224b-30Xports-432, pe20090224a-30Xports-432, pe20090224c-for30XIB-412, pe20090224c-for30XIB, pe20090224b-for30XIB-412, pe20090224b-for30XIB, pe20090224a-for30XIB-412, pe20090224a-for30XIB, DBS-APPS_20090220_1, DBS-APPS_20090220, CMSSW_3_0_0_pre10, MEMCACHED_20090219_1, MEMCACHED_20090219, pe20090218a-30Xports-432, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, pe20090216b-30Xports-432, CMSSW_3_0_0_pre9, pe20090213b-for30X-412, pe20090213b-for30X, pe20090213-for30X-412, pe20090213-for30X, condcore305
Changes since 1.14: +2 -4 lines
Log Message:
Update version to 5.22/00a

File Contents

# User Rev Content
1 elmer 1.15 ### RPM external xrootd 5.22.00a
2     Source: http://cmsrep.cern.ch//cmssw/xrootd_src/%n-%{realversion}.src.tgz
3 elmer 1.5 Requires: openssl
4 elmer 1.1
5     %prep
6     %setup -n xrootd
7    
8     %build
9 gowdy 1.14 ./configure.classic --disable-krb4 --disable-krb5 --with-ssl-incdir=$OPENSSL_ROOT/include --with-ssl-libdir=$OPENSSL_ROOT/lib
10 elmer 1.10 make
11 elmer 1.1
12     %install
13     mkdir %i/bin
14     mkdir %i/lib
15     mkdir %i/etc
16     mkdir %i/utils
17 elmer 1.2 mkdir %i/src
18 elmer 1.1 cp -r bin/arch/* %i/bin
19     cp -r lib/arch/* %i/lib
20 elmer 1.9 [ $(uname) = Darwin ] &&
21     for f in %i/lib/*.a; do
22     ranlib $f
23     done
24 elmer 1.1 cp -r utils/* %i/utils
25     cp -r etc/* %i/etc
26 elmer 1.2 cp -r src/* %i/src
27     rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS %i/src/CVS %i/src/*/CVS
28 elmer 1.1 # Need to fix the following in the xrootd CVS
29     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/etc/XrdOlbMonPerf
30     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_PreStage
31     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_MigrPurg
32     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/fs_stat
33     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_MonP.pm
34     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_Lock.pm
35     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_prep
36     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Stage
37     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_name2name.pm
38     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_CAlloc.pm
39     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Xeq
40     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/XrdOlbNotify.pm
41    
42 elmer 1.2 perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/cleanup.pl
43     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/loadRTDataToMySQL.pl
44     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCollector.pl
45     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/prepareMySQLStats.pl
46     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCreateMySQL.pl
47     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonLoadMySQL.pl
48     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonPrepareStats.pl
49    
50 elmer 1.4 # SCRAM ToolBox toolfile
51     mkdir -p %i/etc/scram.d
52     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
53     <doc type=BuildSystem::ToolDoc version=1.0>
54     <Tool name=%n version=%v>
55     <lib name=XrdClient>
56     <lib name=XrdOuc>
57     <lib name=XrdNet>
58     <lib name=XrdSys>
59     <client>
60     <Environment name=XROOTD_BASE default="%i"></Environment>
61     <Environment name=INCLUDE default="$XROOTD_BASE/src"></Environment>
62     <Environment name=LIBDIR default="$XROOTD_BASE/lib"></Environment>
63     </client>
64     <Runtime name=PATH value="$XROOTD_BASE/bin" type=path>
65     <Runtime name=LD_LIBRARY_PATH value="$XROOTD_BASE/lib" type=path>
66     </Tool>
67     EOF_TOOLFILE
68    
69 elmer 1.1 %post
70 elmer 1.6 %{relocateConfig}etc/scram.d/%n
71 elmer 1.1