1 |
< |
### RPM external libxml2 2.6.23 |
2 |
< |
Source: ftp://xmlsoft.org/%n/%n-%v.tar.gz |
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 |
< |
./configure --prefix=%i --with-zlib=$ZLIB_ROOT |
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 |
17 |
> |
%endif |
18 |
|
make %makeprocesses |
19 |
+ |
%post |
20 |
+ |
%{relocateConfig}bin/xml2-config |
21 |
+ |
%{relocateConfig}lib/libxml2.la |
22 |
+ |
%{relocateConfig}lib/pkgconfig/libxml-2.0.pc |
23 |
+ |
%{relocateConfig}lib/xml2Conf.sh |