1 |
< |
### RPM external mysqlpp 1.7.40-CMS19 |
1 |
> |
### RPM external mysqlpp 1.7.40 |
2 |
|
# Local patches and build system fudging by Lassi A. Tuura <lat@iki.fi> |
3 |
|
# FIXME: zlib usage? |
4 |
|
|
5 |
< |
%if "%{?online_release:set}" != "set" |
5 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
6 |
|
Requires: mysql zlib |
7 |
|
%endif |
8 |
|
|
9 |
|
%define downloadn mysql++ |
10 |
|
Source: http://tangentsoft.net/%{downloadn}/releases/%{downloadn}-%realversion.tar.gz |
11 |
|
Patch0: mysqlpp-macosx |
12 |
+ |
Patch1: mysqlpp-1.7.40-gcc43 |
13 |
|
|
14 |
|
%prep |
15 |
|
%setup -n %{downloadn}-%realversion |
17 |
|
%ifos darwin |
18 |
|
%patch0 -p1 |
19 |
|
%endif |
20 |
+ |
%patch1 -p2 |
21 |
|
rm -f config.status |
22 |
|
[ $(uname) = Darwin ] && cp /usr/share/libtool/config.* . |
23 |
|
|
24 |
|
%build |
25 |
< |
%if "%{?online_release:set}" != "set" |
25 |
> |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
26 |
|
echo "ZLIB_ROOT" $ZLIB_ROOT |
27 |
|
export CPPFLAGS=-I$ZLIB_ROOT/include |
28 |
|
export LDFLAGS=-L$ZLIB_ROOT/lib |