ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/frontier_client.spec
(Generate patch)

Comparing COMP/CMSDIST/frontier_client.spec (file contents):
Revision 1.13 by eulisse, Tue Jun 27 16:20:31 2006 UTC vs.
Revision 1.65 by zafar, Fri Jul 1 16:24:17 2011 UTC

# Line 1 | Line 1
1 < ### RPM external frontier_client 2.4.5_cms
2 < Source: http://edge.fnal.gov:8888/frontier/%{n}__%{v}__src.tar.gz
3 < #Source: http://cern.ch/service-spi/external/tarFiles/%{n}__%{v}__src.tar.gz
1 > ### RPM external frontier_client 2.8.2
2 > Source: http://frontier.cern.ch/dist/%{n}__%{realversion}__src.tar.gz
3 > %define closingbrace )
4 > %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac)
5 >
6   Requires: expat
7 + %if "%online" != "true"
8 + Requires: openssl
9 + Requires: zlib
10 + %else
11 + Requires: onlinesystemtools
12 + %endif
13 +
14   %prep
15 < %setup -n %{n}__%{v}__src
15 > %setup -n %{n}__%{realversion}__src
16 >
17 > %if "%online" != "true"
18 > %define makeargs "EXPAT_DIR=$EXPAT_ROOT COMPILER_TAG=gcc_$GCC_VERSION ZLIB_DIR=$ZLIB_ROOT  OPENSSL_DIR=$OPENSSL_ROOT"
19 > %else
20 > %define makeargs "EXPAT_DIR=$EXPAT_ROOT COMPILER_TAG=gcc_$CXXCOMPILER_VERSION"
21 > %endif
22 >
23 > %build
24 >
25 > export MAKE_ARGS=%{makeargs}
26 > make $MAKE_ARGS
27  
8 %build
9 make EXPAT_DIR=$EXPAT_ROOT \
10     COMPILER_TAG=gcc_$GCC_VERSION
28   %install
29   mkdir -p %i/lib
30   mkdir -p %i/include
31 < cp libfrontier_client.so.%{v} %i/lib
32 < cp -r include %i
33 < ln -s %i/lib/libfrontier_client.so.%{v} %i/lib/libfrontier_client.so
34 < ln -s %i/lib/libfrontier_client.so.%{v} %i/lib/libfrontier_client.so.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/")
35 < %post
36 < ln -sf $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.so.%{v} $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.so
37 < ln -sf $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.so.%{v} $RPM_INSTALL_PREFIX/%cmsplatf/external/%n/%v/lib/libfrontier_client.so.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/")
31 > export MAKE_ARGS=%{makeargs}
32 > make $MAKE_ARGS distdir=%i dist
33 >
34 > case $(uname) in
35 >  Darwin )
36 >    so=dylib
37 >    ln -sf libfrontier_client.%{realversion}.$so %i/lib/libfrontier_client.$so
38 >    ln -sf libfrontier_client.$so.%{realversion} %i/libfrontier_client.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/").$so
39 >    ;;
40 >  * )
41 >    so=so
42 >    ln -sf libfrontier_client.$so.%{realversion} %i/lib/libfrontier_client.$so
43 >    ln -sf libfrontier_client.$so.%{realversion} %i/lib/libfrontier_client.$so.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/")
44 >    ;;
45 > esac

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines