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.6 by lat, Wed Feb 2 14:10:47 2011 UTC vs.
Revision 1.12 by lat, Sat Oct 8 22:04:25 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines