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.1 by eulisse, Wed Feb 22 20:47:06 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.1.3
2 < %define frontierv %(echo %v | tr . _)
3 < Source: http://edge.fnal.gov:8888/frontier/%{n}_%{frontierv}.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}_%{frontierv}
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 < make
24 >
25 > export MAKE_ARGS=%{makeargs}
26 > make $MAKE_ARGS
27 >
28   %install
29   mkdir -p %i/lib
30   mkdir -p %i/include
31 < cp libfrontier_client.so.%{v} %i/lib
32 < ln -s %i/lib/libfrontier_client.so.%{v} %i/lib/libfrontier_client.so
33 < ln -s %i/lib/libfrontier_client.so.%{v} %i/lib/libfrontier_client.so.%(echo %v | sed -e "s/\([0-9]*\)\..*/\1/")
34 < cp -r include %i
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