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

Comparing COMP/CMSDIST/classlib.spec (file contents):
Revision 1.3 by elmer, Tue Nov 2 21:46:13 2010 UTC vs.
Revision 1.11 by lat, Wed Sep 14 19:31:56 2011 UTC

# Line 1 | Line 1
1 < ### RPM external classlib 3.1.1
2 < Source: http://cmsmac01.cern.ch/~lat/exports/%n-%realversion.tar.bz2
3 < # Requires: zlib bz2lib pcre openssl lzo xz
4 < Requires: zlib bz2lib pcre openssl
1 > ### RPM external classlib 3.1.3
2 > %define online %(case %cmsplatf in (*onl_*_*) echo true;; (*) echo false;; esac)
3 > Source: http://lat.web.cern.ch/lat/exports/%n-%realversion.tar.bz2
4 > Patch: classlib-3.1.3-gcc46
5 >
6 > Requires: bz2lib
7 > Requires: pcre
8 > Requires: xz
9 > %if "%online" != "true"
10 > Requires: openssl
11 > Requires: zlib
12 > %else
13 > Requires: onlinesystemtools
14 > %endif
15  
16   %prep
17   %setup -n %n-%realversion
18 + %patch -p1
19  
20   %build
21   ./configure --prefix=%i                         \
# Line 15 | Line 26 | Requires: zlib bz2lib pcre openssl
26    --with-pcre-includes=$PCRE_ROOT/include       \
27    --with-pcre-libraries=$PCRE_ROOT/lib          \
28    --with-openssl-includes=$OPENSSL_ROOT/include \
29 <  --with-openssl-libraries=$OPENSSL_ROOT/lib
29 >  --with-openssl-libraries=$OPENSSL_ROOT/lib    \
30 >  --with-lzma-includes=$XZ_ROOT/include         \
31 >  --with-lzma-libraries=$XZ_ROOT/lib    
32  
33   perl -p -i -e '
34 <  s{-l(lzo2|lzma)}{}g;
35 <  !/^\S+: / && s{\S+LZ(O|MA)((C|Dec)ompressor|Constants|Error)\S+}{}g' \
34 >  s{-llzo2}{}g;
35 >  !/^\S+: / && s{\S+LZO((C|Dec)ompressor|Constants|Error)\S+}{}g' \
36   Makefile
37  
38   make %makeprocesses

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines