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.8 by elmer, Tue May 22 16:57:03 2007 UTC vs.
Revision 1.13 by elmer, Fri Nov 2 20:04:14 2007 UTC

# Line 1 | Line 1
1 < ### RPM external mysqlpp 1.7.40-XXXX
1 > ### RPM external mysqlpp 1.7.40-CMS18
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
# Line 16 | Line 20 | rm -f config.status
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
# Line 23 | Line 28 | 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   #
37 +
38 + %install
39 + make install
40 + # SCRAM ToolBox toolfile
41 + mkdir -p %i/etc/scram.d
42 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
43 + <doc type=BuildSystem::ToolDoc version=1.0>
44 + <Tool name=MySQLpp version=%v>
45 + <lib name=mysqlpp>
46 + <Client>
47 + <Environment name=MYSQLPP_BASE default="%i"></Environment>
48 + <Environment name=LIBDIR default="$MYSQLPP_BASE/lib"></Environment>
49 + <Environment name=INCLUDE default="$MYSQLPP_BASE/include"></Environment>
50 + </Client>
51 + <use name=mysql>
52 + </Tool>
53 + EOF_TOOLFILE
54 +
55 + %post
56 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines