1 |
< |
### RPM external classlib 3.1.0 |
1 |
> |
### RPM external classlib 3.1.2 |
2 |
|
Source: http://cmsmac01.cern.ch/~lat/exports/%n-%realversion.tar.bz2 |
3 |
< |
Requires: zlib bz2lib pcre openssl lzo xz |
3 |
> |
%define closingbrace ) |
4 |
> |
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo false;; esac) |
5 |
> |
Patch0: classlib-3.1.2-gcc46 |
6 |
> |
|
7 |
> |
Requires: bz2lib |
8 |
> |
Requires: pcre |
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 |
+ |
case %gccver in |
19 |
+ |
4.6.*) |
20 |
+ |
%patch0 -p1 |
21 |
+ |
;; |
22 |
+ |
esac |
23 |
|
|
24 |
|
%build |
25 |
|
./configure --prefix=%i \ |
30 |
|
--with-pcre-includes=$PCRE_ROOT/include \ |
31 |
|
--with-pcre-libraries=$PCRE_ROOT/lib \ |
32 |
|
--with-openssl-includes=$OPENSSL_ROOT/include \ |
33 |
< |
--with-openssl-libraries=$OPENSSL_ROOT/lib \ |
34 |
< |
--with-lzo-includes=$LZO_ROOT/include \ |
35 |
< |
--with-lzo-libraries=$LZO_ROOT/lib \ |
36 |
< |
--with-lzma-includes=$XZ_ROOT/include \ |
37 |
< |
--with-lzma-libraries=$XZ_ROOT/lib |
33 |
> |
--with-openssl-libraries=$OPENSSL_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' \ |
38 |
> |
Makefile |
39 |
|
|
40 |
|
make %makeprocesses |
41 |
|
|