ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/mysqlpp.spec
Revision: 1.4
Committed: Tue Jun 13 01:22:17 2006 UTC (18 years, 10 months ago) by elmer
Branch: MAIN
CVS Tags: forLCG_44, forCMSSW_0_8_0_pre2, V00-01-02, V00-01-2, V00-01-01, V00-01-00, V00-00-11
Changes since 1.3: +5 -10 lines
Log Message:
   - Use mysqlpp-macosx.patch for MacOSX
   - Remove old commented patches

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