ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/xrootd.spec
Revision: 1.4
Committed: Tue Nov 13 14:04:30 2007 UTC (17 years, 5 months ago) by elmer
Branch: MAIN
CVS Tags: ge20071224, ge20071223, ge20071221, ge20071220, ge20071217, ge20071216, ge20071213, ge20071212, ge20071211, ge20071210a, ge20071210, ge20071207, ge20071205, ge20071203, V00-06-08, ge20071128, ge20071127a-leopard, ge20071127-leopard, ge20071126-new-bootstrap, ge20071122-new-bootstrap, pe20071121a-ports-422, pe20071121a-ports-412, pe20071121a-ports
Changes since 1.3: +21 -2 lines
Log Message:
Update to version 20071001-0000a of xrootd and add scram tool file

File Contents

# User Rev Content
1 elmer 1.4 ### RPM external xrootd 20071001-0000a-CMS18
2 elmer 1.3 # Override default realversion since there is a "-" in the realversion
3 elmer 1.4 %define realversion 20071001-0000a
4 elmer 1.3 Source: http://xrootd.slac.stanford.edu/download/%{realversion}/%n-%{realversion}.src.tgz
5 elmer 1.1 #
6    
7     %prep
8     %setup -n xrootd
9    
10     %build
11     ./configure.classic
12     gmake
13    
14     %install
15     mkdir %i/bin
16     mkdir %i/lib
17     mkdir %i/etc
18     mkdir %i/utils
19 elmer 1.2 mkdir %i/src
20 elmer 1.1 cp -r bin/arch/* %i/bin
21     cp -r lib/arch/* %i/lib
22     cp -r utils/* %i/utils
23     cp -r etc/* %i/etc
24 elmer 1.2 cp -r src/* %i/src
25     rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS %i/src/CVS %i/src/*/CVS
26 elmer 1.1 # Need to fix the following in the xrootd CVS
27     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/etc/XrdOlbMonPerf
28     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_PreStage
29     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_MigrPurg
30     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/fs_stat
31     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_MonP.pm
32     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_Lock.pm
33     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_prep
34     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Stage
35     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_name2name.pm
36     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_CAlloc.pm
37     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Xeq
38     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/XrdOlbNotify.pm
39    
40 elmer 1.2 perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/cleanup.pl
41     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/loadRTDataToMySQL.pl
42     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCollector.pl
43     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/prepareMySQLStats.pl
44     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCreateMySQL.pl
45     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonLoadMySQL.pl
46     perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonPrepareStats.pl
47    
48 elmer 1.4 # SCRAM ToolBox toolfile
49     mkdir -p %i/etc/scram.d
50     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
51     <doc type=BuildSystem::ToolDoc version=1.0>
52     <Tool name=%n version=%v>
53     <lib name=XrdClient>
54     <lib name=XrdOuc>
55     <lib name=XrdNet>
56     <lib name=XrdSys>
57     <client>
58     <Environment name=XROOTD_BASE default="%i"></Environment>
59     <Environment name=INCLUDE default="$XROOTD_BASE/src"></Environment>
60     <Environment name=LIBDIR default="$XROOTD_BASE/lib"></Environment>
61     </client>
62     <Runtime name=PATH value="$XROOTD_BASE/bin" type=path>
63     <Runtime name=LD_LIBRARY_PATH value="$XROOTD_BASE/lib" type=path>
64     </Tool>
65     EOF_TOOLFILE
66    
67 elmer 1.1 %post
68