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.19 by sashby, Wed Feb 7 11:18:01 2007 UTC vs.
Revision 1.62 by elmer, Fri Dec 17 23:21:00 2010 UTC

# Line 1 | Line 1
1 < ### RPM external frontier_client 2.7.0
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
4 < Requires: expat zlib
5 < %define realversion %(echo %v | cut -d_ -f1)                                              
1 > ### RPM external frontier_client 2.8.0
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: onlinesystemtools
9 > %else
10 > Requires: zlib openssl expat
11 > %endif
12  
13   %prep
14 < %setup -n %{n}__%{v}__src
15 < %build
16 < make EXPAT_DIR=$EXPAT_ROOT \
17 <     COMPILER_TAG=gcc_$GCC_VERSION
14 > %setup -n %{n}__%{realversion}__src
15 >
16 > %if "%online" != "true"
17 > %define makeargs "EXPAT_DIR=$EXPAT_ROOT COMPILER_TAG=gcc_$GCC_VERSION ZLIB_DIR=$ZLIB_ROOT  OPENSSL_DIR=$OPENSSL_ROOT"
18 > %else
19 > %define makeargs "EXPAT_DIR=$EXPAT_ROOT COMPILER_TAG=gcc_$CXXCOMPILER_VERSION"
20 > %endif
21 >
22 > %build
23 >
24 > export MAKE_ARGS=%{makeargs}
25 > make $MAKE_ARGS
26 >
27   %install
28   mkdir -p %i/lib
29   mkdir -p %i/include
30 < cp libfrontier_client.so.%{realversion} %i/lib                                            
31 < cp -r include %i
32 < ln -s %i/lib/libfrontier_client.so.%{realversion} %i/lib/libfrontier_client.so
33 < ln -s %i/lib/libfrontier_client.so.%{realversion} %i/lib/libfrontier_client.so.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/")
34 < %post
35 < 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
36 < 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/")
30 > export MAKE_ARGS=%{makeargs}
31 > make $MAKE_ARGS distdir=%i dist
32 >
33 > case $(uname) in
34 >  Darwin )
35 >    so=dylib
36 >    ln -sf libfrontier_client.%{realversion}.$so %i/lib/libfrontier_client.$so
37 >    ln -sf libfrontier_client.$so.%{realversion} %i/libfrontier_client.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/").$so
38 >    ;;
39 >  * )
40 >    so=so
41 >    ln -sf libfrontier_client.$so.%{realversion} %i/lib/libfrontier_client.$so
42 >    ln -sf libfrontier_client.$so.%{realversion} %i/lib/libfrontier_client.$so.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/")
43 >    ;;
44 > esac

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines