1 |
< |
### RPM external libxml2 2.6.23-perfreport |
1 |
> |
### RPM external libxml2 2.6.23-CMS19 |
2 |
|
Source: ftp://xmlsoft.org/%n/%n-%realversion.tar.gz |
3 |
+ |
%define closingbrace ) |
4 |
+ |
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac) |
5 |
|
|
6 |
+ |
%if "%online" != "true" |
7 |
|
Requires: zlib |
8 |
+ |
%endif |
9 |
|
|
10 |
|
%prep |
11 |
|
%setup -n %n-%realversion |
12 |
|
%build |
13 |
< |
%if "%{?online_release:set}" != "set" |
13 |
> |
%if "%online" != "true" |
14 |
|
./configure --prefix=%i --with-zlib=$ZLIB_ROOT --without-python |
15 |
|
%else |
16 |
|
./configure --prefix=%i --with-zlib=/usr --without-python |