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.17 by gowdy, Thu Apr 16 13:04:19 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 20071116.0000b-CMS19
2 > # Override default realversion since there is a "-" in the realversion
3 > %define realversion 20071116-0000b
4 > Source: http://xrootd.slac.stanford.edu/download/%{realversion}/%n-%{realversion}.src.tgz
5 > Requires: openssl
6  
7   %prep
8   %setup -n xrootd
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 > make INCKRB5=-I/usr/include/et LIBKRB5=-lkrb5
13  
14   %install
15   mkdir %i/bin
16   mkdir %i/lib
17   mkdir %i/etc
18   mkdir %i/utils
19 + mkdir %i/src
20   cp -r bin/arch/* %i/bin
21   cp -r lib/arch/* %i/lib
22 + [ $(uname) = Darwin ] &&
23 +  for f in %i/lib/*.a; do
24 +    ranlib $f
25 +  done
26   cp -r utils/* %i/utils
27   cp -r etc/* %i/etc
28 < rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS
28 > cp -r src/* %i/src
29 > rm -fR %i/bin/CVS %i/lib/CVS %i/utils/CVS %i/etc/CVS %i/src/CVS %i/src/*/CVS
30   # Need to fix the following in the xrootd CVS
31   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/etc/XrdOlbMonPerf
32   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_PreStage
# Line 33 | Line 41 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bi
41   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Xeq
42   perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/XrdOlbNotify.pm
43  
44 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/cleanup.pl
45 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/loadRTDataToMySQL.pl
46 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCollector.pl
47 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/prepareMySQLStats.pl
48 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonCreateMySQL.pl
49 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonLoadMySQL.pl
50 + perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/src/XrdMon/xrdmonPrepareStats.pl
51 +
52 + # SCRAM ToolBox toolfile
53 + mkdir -p %i/etc/scram.d
54 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
55 + <doc type=BuildSystem::ToolDoc version=1.0>
56 + <Tool name=%n version=%v>
57 + <lib name=XrdClient>
58 + <lib name=XrdOuc>
59 + <lib name=XrdNet>
60 + <lib name=XrdSys>
61 + <client>
62 + <Environment name=XROOTD_BASE default="%i"></Environment>
63 + <Environment name=INCLUDE default="$XROOTD_BASE/src"></Environment>
64 + <Environment name=LIBDIR  default="$XROOTD_BASE/lib"></Environment>
65 + </client>
66 + <Runtime name=PATH value="$XROOTD_BASE/bin" type=path>
67 + <Runtime name=LD_LIBRARY_PATH value="$XROOTD_BASE/lib" type=path>
68 + </Tool>
69 + EOF_TOOLFILE
70 +
71   %post
72 + %{relocateConfig}etc/scram.d/%n
73  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines