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.6 by ratnik, Wed Apr 18 23:46:01 2007 UTC vs.
Revision 1.17 by elmer, Mon Nov 24 22:37:11 2008 UTC

# Line 1 | Line 1
1   ### RPM external mysqlpp 1.7.40
2 Requires: gcc-wrapper
2   # Local patches and build system fudging by Lassi A. Tuura <lat@iki.fi>
3   # FIXME: zlib usage?
4 +
5 + %if "%cmsplatf" != "slc4onl_ia32_gcc346"
6   Requires: mysql zlib
7 + %endif
8 +
9   %define downloadn mysql++
10 < Source: http://tangentsoft.net/%{downloadn}/releases/%{downloadn}-%v.tar.gz
10 > Source: http://tangentsoft.net/%{downloadn}/releases/%{downloadn}-%realversion.tar.gz
11   Patch0: mysqlpp-macosx
12 + Patch1: mysqlpp-1.7.40-gcc43
13  
14   %prep
15 < %setup -n %{downloadn}-%v
15 > %setup -n %{downloadn}-%realversion
16   # The following is actually a gcc4 patch
17   %ifos darwin
18   %patch0 -p1
19   %endif
20 + %patch1 -p2
21   rm -f config.status
22   [ $(uname) = Darwin ] && cp /usr/share/libtool/config.* .
23  
24   %build
25 < ## IMPORT gcc-wrapper
25 > %if "%cmsplatf" != "slc4onl_ia32_gcc346"
26   echo "ZLIB_ROOT" $ZLIB_ROOT
27   export CPPFLAGS=-I$ZLIB_ROOT/include
28   export LDFLAGS=-L$ZLIB_ROOT/lib
# Line 25 | Line 30 | export LDFLAGS=-L$ZLIB_ROOT/lib
30              --with-mysql=$MYSQL_ROOT \
31              --with-mysql-lib=$MYSQL_ROOT/lib/mysql \
32              --with-mysql-include=$MYSQL_ROOT/include/mysql
33 + %else
34 + ./configure --prefix=%i
35 + %endif
36   perl -p -i -e 's/\@OBJEXT\@/o/g; s/\@EXEEXT\@//g' examples/Makefile
37   make
38   #
39 +
40 + %install
41 + make install
42 + # SCRAM ToolBox toolfile
43 + mkdir -p %i/etc/scram.d
44 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
45 + <doc type=BuildSystem::ToolDoc version=1.0>
46 + <Tool name=MySQLpp version=%v>
47 + <lib name=mysqlpp>
48 + <Client>
49 + <Environment name=MYSQLPP_BASE default="%i"></Environment>
50 + <Environment name=LIBDIR default="$MYSQLPP_BASE/lib"></Environment>
51 + <Environment name=INCLUDE default="$MYSQLPP_BASE/include"></Environment>
52 + </Client>
53 + <use name=mysql>
54 + </Tool>
55 + EOF_TOOLFILE
56 +
57 + %post
58 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines