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.10 by muzaffar, Mon Sep 3 15:28:45 2007 UTC

# Line 1 | Line 1
1 < ### RPM external mysqlpp 1.7.40
2 < Requires: gcc-wrapper
1 > ### RPM external mysqlpp 1.7.40-CMS8
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
6 > Source: http://tangentsoft.net/%{downloadn}/releases/%{downloadn}-%realversion.tar.gz
7   Patch0: mysqlpp-macosx
8  
9   %prep
10 < %setup -n %{downloadn}-%v
10 > %setup -n %{downloadn}-%realversion
11   # The following is actually a gcc4 patch
12   %ifos darwin
13   %patch0 -p1
# Line 17 | Line 16 | rm -f config.status
16   [ $(uname) = Darwin ] && cp /usr/share/libtool/config.* .
17  
18   %build
20 ## IMPORT gcc-wrapper
19   echo "ZLIB_ROOT" $ZLIB_ROOT
20   export CPPFLAGS=-I$ZLIB_ROOT/include
21   export LDFLAGS=-L$ZLIB_ROOT/lib
# Line 28 | Line 26 | export LDFLAGS=-L$ZLIB_ROOT/lib
26   perl -p -i -e 's/\@OBJEXT\@/o/g; s/\@EXEEXT\@//g' examples/Makefile
27   make
28   #
29 +
30 + %install
31 + make install
32 + # SCRAM ToolBox toolfile
33 + mkdir -p %i/etc/scram.d
34 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
35 + <doc type=BuildSystem::ToolDoc version=1.0>
36 + <Tool name=MySQLpp version=%v>
37 + <lib name=mysqlpp>
38 + <Client>
39 + <Environment name=MYSQLPP_BASE default="%i"></Environment>
40 + <Environment name=LIBDIR default="$MYSQLPP_BASE/lib"></Environment>
41 + <Environment name=INCLUDE default="$MYSQLPP_BASE/include"></Environment>
42 + </Client>
43 + <use name=mysql>
44 + </Tool>
45 + EOF_TOOLFILE
46 +
47 + %post
48 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines