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.02 |
2 |
> |
Source: http://cmsrep.cern.ch//cmssw/xrootd_src/%n-%{realversion}.tgz |
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 |
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 |
< |
%post |
58 |
< |
|
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 |