1 |
< |
### RPM external mysqlpp 1.7.40-CMS8 |
1 |
> |
### RPM external mysqlpp 1.7.40-CMS19 |
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" |
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 |
20 |
|
[ $(uname) = Darwin ] && cp /usr/share/libtool/config.* . |
21 |
|
|
22 |
|
%build |
23 |
+ |
%if "%{?online_release:set}" != "set" |
24 |
|
echo "ZLIB_ROOT" $ZLIB_ROOT |
25 |
|
export CPPFLAGS=-I$ZLIB_ROOT/include |
26 |
|
export LDFLAGS=-L$ZLIB_ROOT/lib |
28 |
|
--with-mysql=$MYSQL_ROOT \ |
29 |
|
--with-mysql-lib=$MYSQL_ROOT/lib/mysql \ |
30 |
|
--with-mysql-include=$MYSQL_ROOT/include/mysql |
31 |
+ |
%else |
32 |
+ |
./configure --prefix=%i |
33 |
+ |
%endif |
34 |
|
perl -p -i -e 's/\@OBJEXT\@/o/g; s/\@EXEEXT\@//g' examples/Makefile |
35 |
|
make |
36 |
|
# |