ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/mysqlpp.spec
(Generate patch)

Comparing COMP/CMSDIST/mysqlpp.spec (file contents):
Revision 1.1 by eulisse, Thu Mar 16 10:59:43 2006 UTC vs.
Revision 1.6 by ratnik, Wed Apr 18 23:46:01 2007 UTC

# Line 1 | Line 1
1 < ### RPM external mysql++ 1.7.31
1 > ### RPM external mysqlpp 1.7.40
2 > Requires: gcc-wrapper
3   # Local patches and build system fudging by Lassi A. Tuura <lat@iki.fi>
4   # FIXME: zlib usage?
5 < Requires: mysql
6 < Source: http://tangentsoft.net/%n/releases/%n-%v.tar.gz
7 < #Patch0: ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/%n/%n-gcc-3.0.patch.gz
8 < #Patch1: ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/%n/%n-gcc-3.2.patch.gz
8 < #Patch2: mysql++-strstream
9 < #Patch3: mysql++-connection
10 < #Patch4: mysql++-typeinfo
5 > Requires: mysql zlib
6 > %define downloadn mysql++
7 > Source: http://tangentsoft.net/%{downloadn}/releases/%{downloadn}-%v.tar.gz
8 > Patch0: mysqlpp-macosx
9  
10   %prep
11 < %setup -n %n-%v
12 < #%patch0 -p1
13 < #%patch1 -p1
14 < #%patch2
15 < #%patch3
18 < #%patch4
11 > %setup -n %{downloadn}-%v
12 > # The following is actually a gcc4 patch
13 > %ifos darwin
14 > %patch0 -p1
15 > %endif
16   rm -f config.status
17   [ $(uname) = Darwin ] && cp /usr/share/libtool/config.* .
18  
19   %build
20 + ## IMPORT gcc-wrapper
21 + echo "ZLIB_ROOT" $ZLIB_ROOT
22 + export CPPFLAGS=-I$ZLIB_ROOT/include
23 + export LDFLAGS=-L$ZLIB_ROOT/lib
24   ./configure --prefix=%i \
25 <    --with-mysql=$MYSQL_ROOT \
26 <    --with-mysql-lib=$MYSQL_ROOT/lib/mysql \
27 <    --with-mysql-include=$MYSQL_ROOT/include/mysql
25 >            --with-mysql=$MYSQL_ROOT \
26 >            --with-mysql-lib=$MYSQL_ROOT/lib/mysql \
27 >            --with-mysql-include=$MYSQL_ROOT/include/mysql
28   perl -p -i -e 's/\@OBJEXT\@/o/g; s/\@EXEEXT\@//g' examples/Makefile
29   make
30 + #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines