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.7 by elmer, Sun Mar 6 23:33:06 2011 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.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)
5 < Patch0: classlib-3.1.2-gcc46
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
# Line 15 | Line 15 | Requires: onlinesystemtools
15  
16   %prep
17   %setup -n %n-%realversion
18 < case %gccver in
19 <  4.6.*)
20 < %patch0 -p1
21 <  ;;
22 < esac
18 > %patch -p1
19  
20   %build
21   ./configure --prefix=%i                         \
# Line 30 | Line 26 | esac
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