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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines