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.35 by elmer, Mon Oct 11 14:10:03 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 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 > CONFIG_ARGS="--disable-krb4 --with-ssl-incdir=${OPENSSL_ROOT}/include --with-ssl-libdir=${OPENSSL_ROOT}/lib"
12 > case %cmsos in
13 >  slc*_amd64*)
14 >    ./configure.classic x86_64_linux --ccflavour=gcc  $CONFIG_ARGS ;;
15 >  slc*_ia32*)
16 >    ./configure.classic i386_linux26 --ccflavour=gcc $CONFIG_ARGS ;;
17 >  *)
18 >   # This is wrong, the arch needs to be added, I think
19 >    ./configure.classic $CONFIG_ARGS ;;
20 > esac
21 >
22 > # Workaround for the lack of a 32bit readline-devel rpm for SL4
23 > # Given that the 64bit readline-devel is there, the headers are there,
24 > # the only thing missing is the libreadline.so symlink
25 > case %cmsos in
26 >  slc4*ia32 )
27 >    mkdir tmplib
28 >    ln -s /usr/lib/libreadline.so.4 tmplib/libreadline.so
29 >    make INCKRB5=-I/usr/include/et LIBKRB5=-lkrb5 LIBREADLINE="-L$PWD/tmplib -lreadline -lcurses"
30 >  ;;
31 >  *)
32 >    make INCKRB5=-I/usr/include/et LIBKRB5=-lkrb5 LIBREADLINE="-lreadline -lcurses"
33 >  ;;
34 > esac
35 >
36  
37   %install
38   mkdir %i/bin
39   mkdir %i/lib
40   mkdir %i/etc
41   mkdir %i/utils
42 + mkdir %i/src
43   cp -r bin/arch/* %i/bin
44   cp -r lib/arch/* %i/lib
45 + [ $(uname) = Darwin ] &&
46 +  for f in %i/lib/*.a; do
47 +    ranlib $f
48 +  done
49   cp -r utils/* %i/utils
50   cp -r etc/* %i/etc
51 < rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS
51 > cp -r src/* %i/src
52 > rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS %i/src/CVS %i/src/*/CVS
53   # Need to fix the following in the xrootd CVS
54   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/etc/XrdOlbMonPerf
55   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_PreStage
# Line 33 | Line 64 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bi
64   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Xeq
65   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/XrdOlbNotify.pm
66  
67 < %post
68 <
67 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/cleanup.pl
68 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/loadRTDataToMySQL.pl
69 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCollector.pl
70 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/prepareMySQLStats.pl
71 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCreateMySQL.pl
72 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonLoadMySQL.pl
73 > perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonPrepareStats.pl

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines