]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- added condidions for proper build with gcc > 2
authortrojan <trojan@pld-linux.org>
Fri, 17 Jan 2003 14:48:19 +0000 (14:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- readded mysql-c++ patch (for gcc > 2)
- fixed comments

Changed files:
    mysql.spec -> 1.145

mysql.spec

index 45310f85f461b3a6fd0bc39858b1b0c27d7897fb..9b3aac0b744d6667a7ba181a5eda7f370d5a6c68 100644 (file)
@@ -4,9 +4,9 @@
 # _with_bdb           - with Berkeley DB backend
 # _with_small_fulltext - with fulltext indexes lowered from 4 to 3 characters
 #
-#%define       _with_innodb    1
-#%define       _with_bdb       1
-#%define       _with_small_fulltext    1
+#%%define      _with_innodb    1
+#%%define      _with_bdb       1
+#%%define      _with_small_fulltext    1
 #
 %include       /usr/lib/rpm/macros.perl
 Summary:       MySQL: a very fast and reliable SQL database engine
@@ -34,6 +34,7 @@ Patch3:               %{name}-moreincludes.patch
 Patch4:                %{name}-info-res.patch
 Patch5:                %{name}-noproc.patch
 Patch6:                %{name}-fulltext-small.patch
+Patch7:                %{name}-c++.patch
 Icon:          mysql.gif
 URL:           http://www.mysql.com/
 Requires:      %{name}-libs = %{version}
@@ -64,7 +65,11 @@ Obsoletes:   mysql-server
 
 %define                _libexecdir     %{_sbindir}
 %define                _localstatedir  /var/lib/mysql
+
+%define                _gcc_ver        %(%{__cc} -dumpversion | cut -b 1)
+%if %{_gcc_ver} == 2
 %define                __cxx           "%{__cc}"
+%endif
 
 %description
 MySQL is a true multi-user, multi-threaded SQL (Structured Query
@@ -308,6 +313,9 @@ MySQL.
 %patch4 -p1
 %patch5 -p1
 %{?_with_small_fulltext:%patch6 -p0}
+%if %{_gcc_ver} > 2
+%patch7 -p1
+%endif
 
 %build
 rm -f missing
This page took 0.048182 seconds and 4 git commands to generate.