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