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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines