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.2 by elmer, Mon Oct 15 01:31:17 2007 UTC vs.
Revision 1.18 by gowdy, Thu Apr 16 13:22:24 2009 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 5.22.00a
2 > Source: http://cmsrep.cern.ch//cmssw/xrootd_src/%n-%{realversion}.src.tgz
3 > Requires: openssl
4  
5   %prep
6   %setup -n xrootd
7  
8   %build
9 < ./configure.classic
10 < gmake
9 > ./configure.classic --disable-krb4 --with-ssl-incdir=$OPENSSL_ROOT/include --with-ssl-libdir=$OPENSSL_ROOT/lib
10 > make INCKRB5=-I/usr/include/et LIBKRB5=-lkrb5
11  
12   %install
13   mkdir %i/bin
# Line 17 | Line 17 | mkdir %i/utils
17   mkdir %i/src
18   cp -r bin/arch/* %i/bin
19   cp -r lib/arch/* %i/lib
20 + [ $(uname) = Darwin ] &&
21 +  for f in %i/lib/*.a; do
22 +    ranlib $f
23 +  done
24   cp -r utils/* %i/utils
25   cp -r etc/* %i/etc
26   cp -r src/* %i/src
# Line 43 | Line 47 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bi
47   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonLoadMySQL.pl
48   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonPrepareStats.pl
49  
50 + # SCRAM ToolBox toolfile
51 + mkdir -p %i/etc/scram.d
52 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
53 + <doc type=BuildSystem::ToolDoc version=1.0>
54 + <Tool name=%n version=%v>
55 + <lib name=XrdClient>
56 + <lib name=XrdOuc>
57 + <lib name=XrdNet>
58 + <lib name=XrdSys>
59 + <client>
60 + <Environment name=XROOTD_BASE default="%i"></Environment>
61 + <Environment name=INCLUDE default="$XROOTD_BASE/src"></Environment>
62 + <Environment name=LIBDIR  default="$XROOTD_BASE/lib"></Environment>
63 + </client>
64 + <Runtime name=PATH value="$XROOTD_BASE/bin" type=path>
65 + <Runtime name=LD_LIBRARY_PATH value="$XROOTD_BASE/lib" type=path>
66 + </Tool>
67 + EOF_TOOLFILE
68 +
69   %post
70 + %{relocateConfig}etc/scram.d/%n
71  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines