|
|
@@ -39,15 +39,24 @@ Class: EVAL
|
|
|
Group: Database
|
|
|
License: GPL
|
|
|
Version: %{V_opkg}
|
|
|
-Release: 20060825
|
|
|
+Release: 20061011
|
|
|
|
|
|
# package options
|
|
|
-%option with_server yes
|
|
|
-%option with_bdb yes
|
|
|
-%option with_innodb no
|
|
|
-%option with_ssl no
|
|
|
-%option with_ndb no
|
|
|
-%option with_embedded no
|
|
|
+%option with_server yes
|
|
|
+%option with_archive no
|
|
|
+%option with_blackhole no
|
|
|
+%option with_federated no
|
|
|
+%option with_innobase yes
|
|
|
+%option with_ndbcluster no
|
|
|
+%option with_partition no
|
|
|
+%option with_ssl no
|
|
|
+%option with_embedded no
|
|
|
+
|
|
|
+# fixing implicit inter-plugin dependencies and correlations
|
|
|
+%if "%{with_ndbcluster}" == "yes"
|
|
|
+%undefine with_partition
|
|
|
+%define with_partition yes
|
|
|
+%endif
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-%{V_major}/mysql-%{V_mysql}.tar.gz
|
|
|
@@ -73,11 +82,12 @@ Provides: mysql = %{version}-%{release}
|
|
|
|
|
|
%description
|
|
|
MySQL is a multi-user Relational Database Management System (RDBMS),
|
|
|
- which is controlled through Structured Query Language (SQL) operating in
|
|
|
- full multi-threading mode. The main goals of MySQL are speed, robustness
|
|
|
- and ease of use. MySQL was originally developed because of the need for
|
|
|
- a SQL server that could handle very big databases with magnitude higher
|
|
|
- speed than what any database vendor could offer.
|
|
|
+ which is controlled through Structured Query Language (SQL)
|
|
|
+ operating in full multi-threading mode. The main goals of MySQL are
|
|
|
+ speed, robustness and ease of use. MySQL was originally developed
|
|
|
+ because of the need for a SQL server that could handle very big
|
|
|
+ databases with magnitude higher speed than what any database vendor
|
|
|
+ could offer.
|
|
|
|
|
|
%track
|
|
|
prog mysql51 = {
|
|
|
@@ -108,7 +118,7 @@ Provides: mysql = %{version}-%{release}
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
CXXFLAGS="%{l_cxxflags -O}" \
|
|
|
CPPFLAGS="%{l_cppflags ncurses}" \
|
|
|
- LDFLAGS="-L`pwd`/bdb/build_unix -L`pwd`/libmysql %{l_ldflags}" \
|
|
|
+ LDFLAGS="-L`pwd`/libmysql %{l_ldflags}" \
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
--sysconfdir=%{l_prefix}/etc/mysql \
|
|
|
@@ -120,29 +130,52 @@ Provides: mysql = %{version}-%{release}
|
|
|
--with-comment="%{l_openpkg_release}" \
|
|
|
%if "%{with_server}" != "yes"
|
|
|
--without-server \
|
|
|
+%else
|
|
|
+ --with-server \
|
|
|
+ --with-plugin-csv \
|
|
|
+ --with-plugin-heap \
|
|
|
+ --with-plugin-myisam \
|
|
|
+ --with-plugin-myisammrg \
|
|
|
+%if "%{with_archive}" == "yes"
|
|
|
+ --with-plugin-archive \
|
|
|
+%else
|
|
|
+ --without-plugin-archive \
|
|
|
%endif
|
|
|
-%if "%{with_bdb}" == "yes"
|
|
|
- --with-berkeley-db \
|
|
|
+%if "%{with_blackhole}" == "yes"
|
|
|
+ --with-plugin-blackhole \
|
|
|
+%else
|
|
|
+ --without-plugin-blackhole \
|
|
|
%endif
|
|
|
-%if "%{with_innodb}" == "no"
|
|
|
- --without-innodb \
|
|
|
+%if "%{with_federated}" == "yes"
|
|
|
+ --with-plugin-federated \
|
|
|
+%else
|
|
|
+ --without-plugin-federated \
|
|
|
%endif
|
|
|
-%if "%{with_ssl}" == "yes"
|
|
|
- --with-openssl \
|
|
|
- --with-openssl-includes=%{l_prefix}/include \
|
|
|
- --with-openssl-libs=%{l_prefix}/lib \
|
|
|
+%if "%{with_innobase}" == "yes"
|
|
|
+ --with-plugin-innobase \
|
|
|
+%else
|
|
|
+ --without-plugin-innobase \
|
|
|
%endif
|
|
|
-%if "%{with_ndb}" == "yes"
|
|
|
- --with-ndbcluster \
|
|
|
- --with-ndb-shm \
|
|
|
+%if "%{with_ndbcluster}" == "yes"
|
|
|
+ --with-plugin-ndbcluster \
|
|
|
+%else
|
|
|
+ --without-plugin-ndbcluster \
|
|
|
+%endif
|
|
|
+%if "%{with_partition}" == "yes"
|
|
|
+ --with-plugin-partition \
|
|
|
+%else
|
|
|
+ --without-plugin-partition \
|
|
|
+%endif
|
|
|
+%endif
|
|
|
+ --with-zlib-dir=%{l_prefix} \
|
|
|
+%if "%{with_ssl}" == "yes"
|
|
|
+ --with-ssl=%{l_prefix} \
|
|
|
%endif
|
|
|
%if "%{with_embedded}" == "yes"
|
|
|
--with-embedded-server \
|
|
|
%endif
|
|
|
--without-readline \
|
|
|
--without-libedit \
|
|
|
- --with-vio \
|
|
|
- --with-named-z-libs=no \
|
|
|
--with-low-memory \
|
|
|
--disable-shared \
|
|
|
$opt
|
|
|
@@ -178,28 +211,14 @@ Provides: mysql = %{version}-%{release}
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/libexec/mysql/* 2>/dev/null || true
|
|
|
|
|
|
- # determine default parameters
|
|
|
-%if "%{with_bdb}" == "yes"
|
|
|
- l_mysql_bdb_cache_size=8M
|
|
|
- l_mysql_bdb_log_buffer_size=32k
|
|
|
- l_mysql_bdb_max_lock=10000
|
|
|
-%else
|
|
|
- l_mysql_bdb_cache_size=0
|
|
|
- l_mysql_bdb_log_buffer_size=0
|
|
|
- l_mysql_bdb_max_lock=0
|
|
|
-%endif
|
|
|
-%if "%{with_bdb}" == "yes" || "%{with_innodb}" == "yes"
|
|
|
- l_mysqld=mysqld
|
|
|
-%else
|
|
|
- l_mysqld=mysqld-max
|
|
|
-%endif
|
|
|
-
|
|
|
# install global configuration
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/mysql
|
|
|
- %{l_shtool} install -c -m 644 %{l_value -s -a} \
|
|
|
- -e "s;@l_mysql_bdb_cache_size@;${l_mysql_bdb_cache_size};g" \
|
|
|
- -e "s;@l_mysql_bdb_log_buffer_size@;${l_mysql_bdb_log_buffer_size};g" \
|
|
|
- -e "s;@l_mysql_bdb_max_lock@;${l_mysql_bdb_max_lock};g" \
|
|
|
+ %{l_shtool} install%{l_nil} -c -m 644 %{l_value -s -a} \
|
|
|
+%if "%{with_innobase}" == "yes"
|
|
|
+ -e '/<\/\{0,1\}with_innobase>/d' \
|
|
|
+%else
|
|
|
+ -e '/<with_innobase>/,/<\/with_innobase>/d' \
|
|
|
+%endif
|
|
|
%{SOURCE my.cnf} \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/mysql/
|
|
|
%{l_shtool} install -c -m 600 \
|
|
|
@@ -209,7 +228,6 @@ Provides: mysql = %{version}-%{release}
|
|
|
# install run-command script
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
|
|
|
%{l_shtool} install -c -m 755 %{l_value -s -a} \
|
|
|
- -e "s;@l_mysqld@;${l_mysqld};g" \
|
|
|
%{SOURCE rc.mysql} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
|
# make sure the database directory exists
|