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.7 by elmer, Sat Dec 1 13:32:55 2007 UTC vs.
Revision 1.41 by gowdy, Mon Nov 22 08:41:55 2010 UTC

# Line 1 | Line 1
1 < ### RPM external xrootd 20071001-0000a-CMS18b
2 < # Override default realversion since there is a "-" in the realversion
3 < %define realversion 20071001-0000a
4 < Source: http://xrootd.slac.stanford.edu/download/%{realversion}/%n-%{realversion}.src.tgz
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 --disable-krb4 --disable-krb5 --with-ssl-incdir=$OPENSSL_ROOT/include --with-ssl-libdir=$OPENSSL_ROOT/lib
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
# Line 19 | Line 44 | 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   cp -r src/* %i/src

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines