Revision: | 1.19 |
Committed: | Wed May 6 03:34:46 2009 UTC (15 years, 11 months ago) by elmer |
Branch: | MAIN |
CVS Tags: | CMSSW_3_2_7_onlpatch6_ONLINE, for327op6, CMSSW_3_2_7_onlpatch5_ONLINE, CMSSW_3_2_7_onlpatch4_ONLINE, sm327op4, sm091012a, CMSSW_3_2_7_onlpatch3_ONLINE, sm091007a, CMSSW_3_2_7_onlpatch2_ONLINE, sm090928a, CMSSW_3_2_7_onlpatch1_ONLINE, CMSSW_3_2_7_ONLINE, sm090923a, pe20090922b-ports, pe20090922a-ports, ge20090922-ports, sm090922a, pe20090921d-ports, ge20090921-ports, pe20090921c-ports, pe20090912a-ports-xdaq, pe20090911a-ports-xdaq, pe20090907a-ports, apFor330pre2v0, pe20090904a-ports, pe20090903b-ports, pe20090903a-ports, CMSSW_3_2_1_onlpatch6_ONLINE, sm090829a, pe20090827a-ports, CMSSW_3_2_1_onlpatch5_ONLINE, pe20090826a-ports, sm090826a, CMSSW_3_2_1_onlpatch4_ONLINE, sm090818a, CMSSW_3_2_4_ONLINE, sm090813e, sm090813d, sm090813c, sm090813b, sm090813a, CMSSW_3_2_1_onlpatch3_ONLINE, sm090810a, CMSSW_3_2_1_onlpatch2_ONLINE, sm090806a, CMSSW_3_2_1_onlpatch1_ONLINE, apFor321onlp1v1, apFor321onlp1v0, CMSSW_3_2_1-432, pe20090722b-31Xports-432, pe20090722a-31Xports-432, CMSSW_3_2_1_ONLINE, sm090721b, sm090721a, sm090720b, sm090720a, apFor320onlv1, CMSSW_3_1_1_onlpatch3_ONLINE, sm090716a, CMSSW_3_1_1_onlpatch2_ONLINE, sm090715c, sm090715b, sm090715a, CMSSW_3_ONLINE_BOOTSTRAP, sm090709a, CMSSW_3_1_1_onlpatch1_ONLINE, sm090708g, CMSSW_3_1_1_ONLINE, sm090708f, sm090708e, sm090708d, sm090708c, sm090708b, CMSSW_3_1_0_ONLINE2, sm090708a, pe20090707c-31Xports-432, pe20090707b-31Xports-432, pe20090707a-31Xports-432, pe20090706b-31Xports-432, pe20090706a-31Xports-432, CMSSW_3_1_0_onlpatch1_ONLINE, sm090703a, pe20090701a-31Xports-432, CMSSW_3_1_0_ONLINE, sm090701b, sm090701a, CMSSW_3_1_0_pre10_ONLINE, sm090621b, sm090621a, sm090620b, sm090620a, sm090619e, sm090619d, sm090619c, sm090619b, sm090619a, sm090618a, CMSSW_3_1_0_pre10-432, pe20090616a-31Xports-432, pe20090615a-31Xports-432, pe20090611c-31Xports-432, pe20090611b-31Xports-432, pe20090611a-31Xports-432, pe20090610d-31Xports-432, pe20090610c-31Xports-432, pe20090610b-31Xports-432, pe20090610a-31Xports-432, pe20090604a-31Xports-432, pe20090526a-31Xports-432, pe20090525b-31Xports-432, pe20090525a-31Xports-432, ap20090520-osx105, ap20090519-osx105, pe20090514b-31Xports-432, pe20090514a-31Xports-432, pe20090512a-31Xports-432, pe20090511a-31Xports-432 |
Changes since 1.18: | +2 -0 lines |
Log Message: | Apply xrootd-gcc44.patch, needed for gcc4.4. As the fixes are minor (missing system includes), the patch is applied regardless of the compiler version in use. |
# | User | Rev | Content |
---|---|---|---|
1 | gowdy | 1.18 | ### RPM external xrootd 5.22.00a |
2 | Source: http://cmsrep.cern.ch//cmssw/xrootd_src/%n-%{realversion}.src.tgz | ||
3 | elmer | 1.19 | Patch0: xrootd-gcc44 |
4 | elmer | 1.5 | Requires: openssl |
5 | elmer | 1.1 | |
6 | %prep | ||
7 | %setup -n xrootd | ||
8 | elmer | 1.19 | %patch0 -p1 |
9 | elmer | 1.1 | |
10 | %build | ||
11 | gowdy | 1.16 | ./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 | elmer | 1.1 | |
14 | %install | ||
15 | mkdir %i/bin | ||
16 | mkdir %i/lib | ||
17 | mkdir %i/etc | ||
18 | mkdir %i/utils | ||
19 | elmer | 1.2 | mkdir %i/src |
20 | elmer | 1.1 | cp -r bin/arch/* %i/bin |
21 | cp -r lib/arch/* %i/lib | ||
22 | elmer | 1.9 | [ $(uname) = Darwin ] && |
23 | for f in %i/lib/*.a; do | ||
24 | ranlib $f | ||
25 | done | ||
26 | elmer | 1.1 | cp -r utils/* %i/utils |
27 | cp -r etc/* %i/etc | ||
28 | elmer | 1.2 | 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 | elmer | 1.1 | # 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 | ||
33 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_MigrPurg | ||
34 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/fs_stat | ||
35 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_MonP.pm | ||
36 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_Lock.pm | ||
37 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_prep | ||
38 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/mps_Stage | ||
39 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_name2name.pm | ||
40 | perl -p -i -e 's|^#!.*perl(.*)|#!/usr/bin/env perl$1|' %i/utils/ooss_CAlloc.pm | ||
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 | elmer | 1.2 | 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 | elmer | 1.4 | # 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 | elmer | 1.1 | %post |
72 | elmer | 1.6 | %{relocateConfig}etc/scram.d/%n |
73 | elmer | 1.1 |