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.29 by muzaffar, Fri Jul 2 09:01:44 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 > ./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.xml
68 +  <tool name="%n" version="%v">
69 +    <lib name="XrdClient"/>
70 +    <lib name="XrdOuc"/>
71 +    <lib name="XrdNet"/>
72 +    <lib name="XrdSys"/>
73 +    <client>
74 +      <environment name="XROOTD_BASE" default="%i"/>
75 +      <environment name="INCLUDE" default="$XROOTD_BASE/src"/>
76 +      <environment name="LIBDIR" default="$XROOTD_BASE/lib"/>
77 +    </client>
78 +    <runtime name="PATH" value="$XROOTD_BASE/bin" type="path"/>
79 +  </tool>
80 + EOF_TOOLFILE
81 +
82   %post
83 + %{relocateConfig}etc/scram.d/%n.xml
84  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines