|
|
|
|
@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_major 5.1 |
|
|
|
|
%define V_minor 49 |
|
|
|
|
%define V_minor 50 |
|
|
|
|
%define V_mysql %{V_major}.%{V_minor} |
|
|
|
|
%define V_opkg %{V_major}.%{V_minor} |
|
|
|
|
%define V_jdbc 5.1.13 |
|
|
|
|
@ -39,7 +39,7 @@ Class: BASE
|
|
|
|
|
Group: Database |
|
|
|
|
License: GPL |
|
|
|
|
Version: %{V_opkg} |
|
|
|
|
Release: 20100803 |
|
|
|
|
Release: 20100824 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_server yes |
|
|
|
|
@ -79,8 +79,7 @@ BuildPreReq: openssl
|
|
|
|
|
PreReq: openssl |
|
|
|
|
%endif |
|
|
|
|
%if "%{with_jdbc}" == "yes" |
|
|
|
|
BuildPreReq: java, JAVA-JDK, ant |
|
|
|
|
PreReq: java, JAVA-JDK, ant |
|
|
|
|
PreReq: java, JAVA-JDK |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
@ -206,15 +205,6 @@ PreReq: java, JAVA-JDK, ant
|
|
|
|
|
# build source tree |
|
|
|
|
%{l_make} %{l_mflags} |
|
|
|
|
|
|
|
|
|
# build JDBC driver |
|
|
|
|
%if "%{with_jdbc}" == "yes" |
|
|
|
|
( cd mysql-connector-java-%{V_jdbc} |
|
|
|
|
export JAVA_PLATFORM="sun-jdk" |
|
|
|
|
eval `%{l_prefix}/bin/java-toolkit -e` |
|
|
|
|
%{l_prefix}/bin/ant |
|
|
|
|
) || exit $? |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
|
|
|
|
|
# patch init script |
|
|
|
|
@ -307,7 +297,7 @@ PreReq: java, JAVA-JDK, ant
|
|
|
|
|
%if "%{with_jdbc}" == "yes" |
|
|
|
|
( cd mysql-connector-java-%{V_jdbc} |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
build/mysql-connector-java-%{V_jdbc}/mysql-connector-java-%{V_jdbc}-bin.jar \ |
|
|
|
|
mysql-connector-java-%{V_jdbc}-bin.jar \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib/mysql/mysql.jar |
|
|
|
|
) || exit $? |
|
|
|
|
%endif |
|
|
|
|
|