ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/mysqlpp.spec
Revision: 1.7
Committed: Tue May 1 11:17:39 2007 UTC (18 years ago) by elmer
Branch: MAIN
CVS Tags: pe20070522a-ports, pe20070519a-ports, pe20070512a-ports, pe20070508a-ports, pe20070507a-ports, pe20070501c-ports, pe20070501b-ports, pe20070501a-ports
Changes since 1.6: +0 -2 lines
Log Message:
Remove gcc-wrappers stuff

File Contents

# Content
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 Requires: mysql zlib
5 %define downloadn mysql++
6 Source: http://tangentsoft.net/%{downloadn}/releases/%{downloadn}-%v.tar.gz
7 Patch0: mysqlpp-macosx
8
9 %prep
10 %setup -n %{downloadn}-%v
11 # The following is actually a gcc4 patch
12 %ifos darwin
13 %patch0 -p1
14 %endif
15 rm -f config.status
16 [ $(uname) = Darwin ] && cp /usr/share/libtool/config.* .
17
18 %build
19 echo "ZLIB_ROOT" $ZLIB_ROOT
20 export CPPFLAGS=-I$ZLIB_ROOT/include
21 export LDFLAGS=-L$ZLIB_ROOT/lib
22 ./configure --prefix=%i \
23 --with-mysql=$MYSQL_ROOT \
24 --with-mysql-lib=$MYSQL_ROOT/lib/mysql \
25 --with-mysql-include=$MYSQL_ROOT/include/mysql
26 perl -p -i -e 's/\@OBJEXT\@/o/g; s/\@EXEEXT\@//g' examples/Makefile
27 make
28 #