1 |
< |
### RPM external xrootd 20071001-0000a-CMS19 |
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 |