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.37 by elmer, Tue Nov 2 23:19:58 2010 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 5.27.06
2 > Source: http://cmsrep.cern.ch//cmssw/xrootd_src/%n-%{realversion}.tgz
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 > CONFIG_ARGS="--disable-krb4 --with-ssl-incdir=${OPENSSL_ROOT}/include --with-ssl-libdir=${OPENSSL_ROOT}/lib"
12 > case $(uname)-$(uname -m) in
13 >  Linux-x86_64)
14 >    ./configure.classic x86_64_linux $CONFIG_ARGS ;;
15 >  Linux-i*86)
16 >    ./configure.classic i386_linux $CONFIG_ARGS ;;
17 >  *)
18 >   # This is wrong, the arch needs to be added, I think
19 >    ./configure.classic $CONFIG_ARGS ;;
20 > esac
21 >
22 > ./configure.classic --disable-krb4 --with-ssl-incdir=$OPENSSL_ROOT/include --with-ssl-libdir=$OPENSSL_ROOT/lib
23 > # Workaround for the lack of a 32bit readline-devel rpm for SL4
24 > # Given that the 64bit readline-devel is there, the headers are there,
25 > # the only thing missing is the libreadline.so symlink
26 > case %cmsos in
27 >  slc4*ia32 )
28 >    mkdir tmplib
29 >    ln -s /usr/lib/libreadline.so.4 tmplib/libreadline.so
30 >    make INCKRB5=-I/usr/include/et LIBKRB5=-lkrb5 LIBREADLINE="-L$PWD/tmplib -lreadline -lcurses"
31 >  ;;
32 >  *)
33 >    make INCKRB5=-I/usr/include/et LIBKRB5=-lkrb5 LIBREADLINE="-lreadline -lcurses"
34 >  ;;
35 > esac
36 >
37  
38   %install
39   mkdir %i/bin
40   mkdir %i/lib
41   mkdir %i/etc
42   mkdir %i/utils
43 + mkdir %i/src
44   cp -r bin/arch/* %i/bin
45   cp -r lib/arch/* %i/lib
46 + [ $(uname) = Darwin ] &&
47 +  for f in %i/lib/*.a; do
48 +    ranlib $f
49 +  done
50   cp -r utils/* %i/utils
51   cp -r etc/* %i/etc
52 < rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS
52 > cp -r src/* %i/src
53 > rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS %i/src/CVS %i/src/*/CVS
54   # Need to fix the following in the xrootd CVS
55   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/etc/XrdOlbMonPerf
56   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_PreStage
# Line 33 | Line 65 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bi
65   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Xeq
66   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/XrdOlbNotify.pm
67  
68 < %post
68 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/cleanup.pl
69 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/loadRTDataToMySQL.pl
70 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCollector.pl
71 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/prepareMySQLStats.pl
72 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCreateMySQL.pl
73 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonLoadMySQL.pl
74 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonPrepareStats.pl
75  
76 + # SCRAM ToolBox toolfile
77 + mkdir -p %i/etc/scram.d
78 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
79 + <doc type=BuildSystem::ToolDoc version=1.0>
80 + <Tool name=%n version=%v>
81 + <lib name=XrdClient>
82 + <lib name=XrdOuc>
83 + <lib name=XrdNet>
84 + <lib name=XrdSys>
85 + <client>
86 + <Environment name=XROOTD_BASE default="%i"></Environment>
87 + <Environment name=INCLUDE default="$XROOTD_BASE/src"></Environment>
88 + <Environment name=LIBDIR  default="$XROOTD_BASE/lib"></Environment>
89 + </client>
90 + <Runtime name=PATH value="$XROOTD_BASE/bin" type=path>
91 + <Runtime name=LD_LIBRARY_PATH value="$XROOTD_BASE/lib" type=path>
92 + </Tool>
93 + EOF_TOOLFILE
94 +
95 + %post
96 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines