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.2 by eulisse, Thu Mar 16 15:17:32 2006 UTC

# Line 1 | Line 1
1 < ### RPM external mysql++ 1.7.31
1 > ### RPM external mysqlpp 1.7.31
2   # Local patches and build system fudging by Lassi A. Tuura <lat@iki.fi>
3   # FIXME: zlib usage?
4 < Requires: mysql
5 < Source: http://tangentsoft.net/%n/releases/%n-%v.tar.gz
4 > Requires: mysql zlib
5 > %define downloadn mysql++
6 > Source: http://tangentsoft.net/%{downloadn}/releases/%{downloadn}-%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
9   #Patch2: mysql++-strstream
# Line 10 | Line 11 | Source: http://tangentsoft.net/%n/releas
11   #Patch4: mysql++-typeinfo
12  
13   %prep
14 < %setup -n %n-%v
14 > %setup -n %{downloadn}-%v
15   #%patch0 -p1
16   #%patch1 -p1
17   #%patch2
# Line 20 | Line 21 | rm -f config.status
21   [ $(uname) = Darwin ] && cp /usr/share/libtool/config.* .
22  
23   %build
24 + echo "ZLIB_ROOT" $ZLIB_ROOT
25 + export CPPFLAGS=-I$ZLIB_ROOT/include
26 + export LDFLAGS=-L$ZLIB_ROOT/lib
27   ./configure --prefix=%i \
28 <    --with-mysql=$MYSQL_ROOT \
29 <    --with-mysql-lib=$MYSQL_ROOT/lib/mysql \
30 <    --with-mysql-include=$MYSQL_ROOT/include/mysql
28 >            --with-mysql=$MYSQL_ROOT \
29 >            --with-mysql-lib=$MYSQL_ROOT/lib/mysql \
30 >            --with-mysql-include=$MYSQL_ROOT/include/mysql
31   perl -p -i -e 's/\@OBJEXT\@/o/g; s/\@EXEEXT\@//g' examples/Makefile
32   make

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines