ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/xrootd.spec
(Generate patch)

Comparing COMP/CMSDIST/xrootd.spec (file contents):
Revision 1.1 by elmer, Fri May 11 11:35:28 2007 UTC vs.
Revision 1.26 by elmer, Thu Sep 24 20:50:56 2009 UTC

# Line 1 | Line 1
1 < ### RPM external xrootd 20070321-1251p1
2 < Source: http://xrootd.slac.stanford.edu/download/%v/%n-%v.src.tgz
3 < #
1 > ### RPM external xrootd 20090727.1318
2 > Source: http://cmsrep.cern.ch//cmssw/xrootd_src/%n-%{realversion}.tar.gz
3 > Patch0: xrootd-gcc44
4 > Requires: openssl
5  
6   %prep
7 < %setup -n xrootd
7 > %setup -n %n-%{realversion}
8 > %patch0 -p1
9  
10   %build
11 < ./configure.classic
12 < gmake
11 > ./configure.classic --disable-krb4 --with-ssl-incdir=$OPENSSL_ROOT/include --with-ssl-libdir=$OPENSSL_ROOT/lib
12 > # Workaround for the lack of a 32bit readline-devel rpm for SL4
13 > # Given that the 64bit readline-devel is there, the headers are there,
14 > # the only thing missing is the libreadline.so symlink
15 > case %cmsos in
16 >  slc4*ia32 )
17 >    mkdir tmplib
18 >    ln -s /usr/lib/libreadline.so.4 tmplib/libreadline.so
19 >    make INCKRB5=-I/usr/include/et LIBKRB5=-lkrb5 LIBREADLINE="-L$PWD/tmplib -lreadline -lcurses"
20 >  ;;
21 >  *)
22 >    make INCKRB5=-I/usr/include/et LIBKRB5=-lkrb5 LIBREADLINE="-lreadline -lcurses"
23 >  ;;
24 > esac
25 >
26  
27   %install
28   mkdir %i/bin
29   mkdir %i/lib
30   mkdir %i/etc
31   mkdir %i/utils
32 + mkdir %i/src
33   cp -r bin/arch/* %i/bin
34   cp -r lib/arch/* %i/lib
35 + [ $(uname) = Darwin ] &&
36 +  for f in %i/lib/*.a; do
37 +    ranlib $f
38 +  done
39   cp -r utils/* %i/utils
40   cp -r etc/* %i/etc
41 < rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS
41 > cp -r src/* %i/src
42 > rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS %i/src/CVS %i/src/*/CVS
43   # Need to fix the following in the xrootd CVS
44   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/etc/XrdOlbMonPerf
45   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_PreStage
# Line 33 | Line 54 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bi
54   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Xeq
55   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/XrdOlbNotify.pm
56  
57 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/cleanup.pl
58 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/loadRTDataToMySQL.pl
59 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCollector.pl
60 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/prepareMySQLStats.pl
61 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCreateMySQL.pl
62 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonLoadMySQL.pl
63 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonPrepareStats.pl
64 +
65 + # SCRAM ToolBox toolfile
66 + mkdir -p %i/etc/scram.d
67 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
68 + <doc type=BuildSystem::ToolDoc version=1.0>
69 + <Tool name=%n version=%v>
70 + <lib name=XrdClient>
71 + <lib name=XrdOuc>
72 + <lib name=XrdNet>
73 + <lib name=XrdSys>
74 + <client>
75 + <Environment name=XROOTD_BASE default="%i"></Environment>
76 + <Environment name=INCLUDE default="$XROOTD_BASE/src"></Environment>
77 + <Environment name=LIBDIR  default="$XROOTD_BASE/lib"></Environment>
78 + </client>
79 + <Runtime name=PATH value="$XROOTD_BASE/bin" type=path>
80 + <Runtime name=LD_LIBRARY_PATH value="$XROOTD_BASE/lib" type=path>
81 + </Tool>
82 + EOF_TOOLFILE
83 +
84   %post
85 + %{relocateConfig}etc/scram.d/%n
86  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines