ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/frontier_client.spec
Revision: 1.54
Committed: Tue Sep 29 14:46:48 2009 UTC (15 years, 7 months ago) by elmer
Branch: MAIN
CVS Tags: DQMGUI_5_1_6, DQMGUI_5_1_5, dg20091203-comp-base, DQMGUI_5_1_5_pre1, DQMGUI_5_1_4, apFor333v0_sl5igcc4, apFor333v0_sl4igcc4, apFor333v0, CMSSW_3_3_2_ONLINE-slc5, sm091112c-slc5onl, sm091112b-slc5onl, sm091112a-slc5onl, sm091112-slc5onl, CMSSW_3_3_2_onlpatch2_ONLINE, CMSSW_3_3_2_ONLINE, CMSSW_3_3_2_onlpatch1_ONLINE, ap20091107-slc5onl, CMSSW_3_4_0_pre5-slc5-gcc434, CMSSW_3_4_0_pre5-slc4-gcc432, CMSSW_3_4_0_pre4-slc4-gcc432, CMSSW_3_4_0_pre5-slc4_gcc432, dl091106, DQMGUI_5_1_3, DQMGUI_5_1_2, ap-20091103a-slc5onl-bootstrap, ap-20091103-slc5onl-bootstrap, DQMGUI_5_1_1, CMSSW_3_3_2_FWLITE-slc5-gcc434, apFor332fwlv1, apFor332fwlv1-slc5-gcc434, apFor332fwlv0, eskFor340p4, CMSSW_3_3_2-slc5-gcc434, CMSSW_3_3_2-slc4-gcc432, CMSSW_3_3_2, DQMGUI_5_1_0, apFor332v0_sl4igcc4, apFor332v0_sl5igcc4, apFor332v0, CMSSW_3_4_0_pre3, CouchDB_0_10_0, eskFor340p3, apFor331fwlv1-slc5gcc434, apFor331fwlv1, apFor331fwlv0, sm091023b-slc5onl, sm091023a-slc5onl, CMSSW_3_3_1-slc5-gcc434, CMSSW_3_3_1-slc4-gcc432, CMSSW_3_3_1, CMSSW_3_3_0_onlpatch2_ONLINE, for330op2, pe20091022a-ports, pe20091022a-ports5, pe20091022a-for33X, CMSSW_3_3_0_onlpatch1_ONLINE, pe20091021a-ports5, pe20091021a-ports, pe20091021a-for33X, CMSSW_3_4_0_pre2-432, CMSSW_3_4_0_pre1-432, CMSSW_3_4_0_pre2, pe20091018a-ports5, ge20091019, sm340p2, CERNOIDv01, ge20091015-comp-bootstrap, CMSSW_3_3_0-slc5, CMSSW_3_3_0-432, WMCORE-before-refactor, CMSSW_3_3_0_ONLINE, sm091013a, sm091012c, sm091012b, CMSSW_3_3_0, apFor330v0, pe20091009a-for33X, pe20091008d-ports5, pe20091008d-ports, pe20091008d-for33X, pe20091008c-ports5, ge20091008-fix-rpm-relocation, CMSSW_3_4_0_pre1, pe20091008b-ports5, pe20091008a-ports5, ge20091010-bootstrap, pe20091006e-ports5, ge20091006-bootstrap-3, pe20091006d-ports5, ge20091006-bootstrap-2, CMSSW_3_3_0_pre6-432, pe20091006c-ports5, ge20091006, pe20091006b-ports5, pe20091006a-ports5, pe20091006a-ports, pe20091006a-for33X, CMSSW_3_3_0_pre6, apFor330pre6v0, pe20090929a-ports, pe20090929a-for33X
Changes since 1.53: +1 -1 lines
Log Message:
  Update name of runtime envvar in scram tool to "FRONTIER_CLIENT", to
  avoid conflict with the name in the <client></client> section of
  the toolfile.

File Contents

# User Rev Content
1 dlange 1.50 ### RPM external frontier_client 2.7.11
2 elmer 1.45 Source: http://frontier.cern.ch/dist/%{n}__%{realversion}__src.tar.gz
3 dlange 1.51 %define closingbrace )
4     %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac)
5 ratnik 1.26
6 elmer 1.53 Patch0: frontier-2.7.11-dist-tarfile
7    
8 ratnik 1.26 Requires: expat
9 dlange 1.51 %if "%online" == "true"
10     Requires: onlinesystemtools
11     %else
12 dlange 1.50 Requires: zlib openssl
13     %endif
14    
15 eulisse 1.1 %prep
16 elmer 1.23 %setup -n %{n}__%{realversion}__src
17 elmer 1.53 %patch0 -p1
18 dlange 1.51 %if "%online" != "true"
19 elmer 1.53 %define makeargs "EXPAT_DIR=$EXPAT_ROOT COMPILER_TAG=gcc_$GCC_VERSION ZLIB_DIR=$ZLIB_ROOT OPENSSL_DIR=$OPENSSL_ROOT"
20 ratnik 1.26 %else
21 elmer 1.53 %define makeargs "EXPAT_DIR=$EXPAT_ROOT COMPILER_TAG=gcc_$CXXCOMPILER_VERSION"
22 ratnik 1.26 %endif
23 muzaffar 1.24
24 elmer 1.53 %build
25    
26     export MAKE_ARGS=%{makeargs}
27     make $MAKE_ARGS
28    
29 eulisse 1.1 %install
30     mkdir -p %i/lib
31     mkdir -p %i/include
32 elmer 1.53 export MAKE_ARGS=%{makeargs}
33     make $MAKE_ARGS distdir=%i dist
34 muzaffar 1.24
35     # SCRAM ToolBox toolfile
36     mkdir -p %i/etc/scram.d
37     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
38     <doc type=BuildSystem::ToolDoc version=1.0>
39     <Tool name=%n version=%v>
40     <lib name=frontier_client>
41     <client>
42     <Environment name=FRONTIER_CLIENT_BASE default="%i"></Environment>
43     <Environment name=INCLUDE default="$FRONTIER_CLIENT_BASE/include"></Environment>
44     <Environment name=LIBDIR default="$FRONTIER_CLIENT_BASE/lib"></Environment>
45     </client>
46     <use name=zlib>
47     <use name=openssl>
48     <use name=expat>
49 elmer 1.54 <Runtime name=FRONTIER_CLIENT value="$FRONTIER_CLIENT_BASE/">
50 muzaffar 1.24 </Tool>
51     EOF_TOOLFILE
52    
53 eulisse 1.3 %post
54 elmer 1.35 case $(uname) in
55     Darwin )
56     so=dylib
57     ln -sf $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.%{realversion}.$so $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.$so
58     ln -sf $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.$so.%{realversion} $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/").$so
59     ;;
60     * )
61     so=so
62     ln -sf $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.$so.%{realversion} $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.$so
63     ln -sf $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.$so.%{realversion} $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.$so.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/")
64     ;;
65     esac
66 muzaffar 1.24 %{relocateConfig}etc/scram.d/%n