Commit 58aac48d authored by unknown's avatar unknown Committed by Balasubramanian Kandasamy

Merge from mysql-5.5.31-release

parents 8faf9c8b 55e5a785
...@@ -268,11 +268,12 @@ Requires: bash ...@@ -268,11 +268,12 @@ Requires: bash
Provides: mysql Provides: mysql
# MySQL (with caps) is upstream's spelling of their own RPMs for mysql # MySQL (with caps) is upstream's spelling of their own RPMs for mysql
Conflicts: MySQL Obsoletes: MySQL
# mysql-cluster used to be built from this SRPM, but no more # mysql-cluster used to be built from this SRPM, but no more
Obsoletes: mysql-cluster < 5.1.44 Obsoletes: mysql-cluster < 5.1.44
# We need cross-product "Obsoletes:" to allow cross-product upgrades: # We need cross-product "Obsoletes:" to allow cross-product upgrades:
Obsoletes: mysql mysql-advanced Obsoletes: mysql < %{version}-%{release}
Obsoletes: mysql-advanced < %{version}-%{release}
# Working around perl dependency checking bug in rpm FTTB. Remove later. # Working around perl dependency checking bug in rpm FTTB. Remove later.
%global __perl_requires %{SOURCE999} %global __perl_requires %{SOURCE999}
...@@ -295,8 +296,9 @@ further info. ...@@ -295,8 +296,9 @@ further info.
Summary: The shared libraries required for MySQL clients Summary: The shared libraries required for MySQL clients
Group: Applications/Databases Group: Applications/Databases
Requires: /sbin/ldconfig Requires: /sbin/ldconfig
Obsoletes: mysql-libs < %{version}-%{release}
Obsoletes: mysql-libs-advanced < %{version}-%{release}
Provides: mysql-libs Provides: mysql-libs
Obsoletes: mysql-libs mysql-libs-advanced
%description -n mysql-libs%{product_suffix} %description -n mysql-libs%{product_suffix}
The mysql-libs package provides the essential shared libraries for any The mysql-libs package provides the essential shared libraries for any
...@@ -318,9 +320,10 @@ Requires(preun): initscripts ...@@ -318,9 +320,10 @@ Requires(preun): initscripts
Requires(postun): initscripts Requires(postun): initscripts
# mysqlhotcopy needs DBI/DBD support # mysqlhotcopy needs DBI/DBD support
Requires: perl-DBI, perl-DBD-MySQL Requires: perl-DBI, perl-DBD-MySQL
Obsoletes: MySQL-server
Obsoletes: mysql-server < %{version}-%{release}
Obsoletes: mysql-server-advanced < %{version}-%{release}
Provides: mysql-server Provides: mysql-server
Conflicts: MySQL-server
Obsoletes: mysql-server mysql-server-advanced
%description -n mysql-server%{product_suffix} %description -n mysql-server%{product_suffix}
MySQL is a multi-user, multi-threaded SQL database server. MySQL is a MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
...@@ -334,9 +337,10 @@ Summary: Files for development of MySQL applications ...@@ -334,9 +337,10 @@ Summary: Files for development of MySQL applications
Group: Applications/Databases Group: Applications/Databases
Requires: mysql%{product_suffix} = %{version}-%{release} Requires: mysql%{product_suffix} = %{version}-%{release}
Requires: openssl-devel Requires: openssl-devel
Obsoletes: MySQL-devel
Obsoletes: mysql-devel < %{version}-%{release}
Obsoletes: mysql-devel-advanced < %{version}-%{release}
Provides: mysql-devel Provides: mysql-devel
Conflicts: MySQL-devel
Obsoletes: mysql-devel mysql-devel-advanced
%description -n mysql-devel%{product_suffix} %description -n mysql-devel%{product_suffix}
MySQL is a multi-user, multi-threaded SQL database server. This MySQL is a multi-user, multi-threaded SQL database server. This
...@@ -347,8 +351,9 @@ developing MySQL client applications. ...@@ -347,8 +351,9 @@ developing MySQL client applications.
Summary: MySQL as an embeddable library Summary: MySQL as an embeddable library
Group: Applications/Databases Group: Applications/Databases
Obsoletes: mysql-embedded < %{version}-%{release}
Obsoletes: mysql-embedded-advanced < %{version}-%{release}
Provides: mysql-embedded Provides: mysql-embedded
Obsoletes: mysql-embedded mysql-embedded-advanced
%description -n mysql-embedded%{product_suffix} %description -n mysql-embedded%{product_suffix}
MySQL is a multi-user, multi-threaded SQL database server. This MySQL is a multi-user, multi-threaded SQL database server. This
...@@ -362,8 +367,9 @@ Summary: Development files for MySQL as an embeddable library ...@@ -362,8 +367,9 @@ Summary: Development files for MySQL as an embeddable library
Group: Applications/Databases Group: Applications/Databases
Requires: mysql-embedded%{product_suffix} = %{version}-%{release} Requires: mysql-embedded%{product_suffix} = %{version}-%{release}
Requires: mysql-devel%{product_suffix} = %{version}-%{release} Requires: mysql-devel%{product_suffix} = %{version}-%{release}
Obsoletes: mysql-embedded-devel < %{version}-%{release}
Obsoletes: mysql-embedded-devel-advanced < %{version}-%{release}
Provides: mysql-embedded-devel Provides: mysql-embedded-devel
Obsoletes: mysql-embedded-devel mysql-embedded-devel-advanced
%description -n mysql-embedded-devel%{product_suffix} %description -n mysql-embedded-devel%{product_suffix}
MySQL is a multi-user, multi-threaded SQL database server. This MySQL is a multi-user, multi-threaded SQL database server. This
...@@ -376,9 +382,10 @@ Summary: The test suite distributed with MySQL ...@@ -376,9 +382,10 @@ Summary: The test suite distributed with MySQL
Group: Applications/Databases Group: Applications/Databases
Requires: mysql%{product_suffix} = %{version}-%{release} Requires: mysql%{product_suffix} = %{version}-%{release}
Requires: mysql-server%{product_suffix} = %{version}-%{release} Requires: mysql-server%{product_suffix} = %{version}-%{release}
Obsoletes: MySQL-test
Obsoletes: mysql-test < %{version}-%{release}
Obsoletes: mysql-test-advanced < %{version}-%{release}
Provides: mysql-test Provides: mysql-test
Conflicts: MySQL-test
Obsoletes: mysql-test mysql-test-advanced
%description -n mysql-test%{product_suffix} %description -n mysql-test%{product_suffix}
MySQL is a multi-user, multi-threaded SQL database server. This MySQL is a multi-user, multi-threaded SQL database server. This
......
...@@ -42,7 +42,7 @@ Autoreqprov: on ...@@ -42,7 +42,7 @@ Autoreqprov: on
Version: %{version_cur} Version: %{version_cur}
Release: 1 Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: MySQL-shared, mysql-shared Obsoletes: mysql-shared
Provides: MySQL-shared Provides: MySQL-shared
Summary: MySQL shared client libraries for MySQL %{version}, %{version41}, %{version40} and %{version3} Summary: MySQL shared client libraries for MySQL %{version}, %{version41}, %{version40} and %{version3}
# We simply use the "MySQL-shared" subpackages as input sources instead of # We simply use the "MySQL-shared" subpackages as input sources instead of
......
...@@ -247,9 +247,9 @@ Distribution: %{distro_description} ...@@ -247,9 +247,9 @@ Distribution: %{distro_description}
License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field. License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/%{src_dir}.tar.gz Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/%{src_dir}.tar.gz
URL: http://www.mysql.com/ URL: http://www.mysql.com/
Packager: MySQL Release Engineering <mysql-build@oss.oracle.com> Packager: MySQL Release Engineering <mysql-build@oss.oracle.com>
Vendor: %{mysql_vendor} Vendor: %{mysql_vendor}
Provides: msqlormysql MySQL-server mysql Provides: msqlormysql MySQL-server
BuildRequires: %{distro_buildreq} BuildRequires: %{distro_buildreq}
# Regression tests may take a long time, override the default to skip them # Regression tests may take a long time, override the default to skip them
...@@ -283,14 +283,25 @@ documentation and the manual for more information. ...@@ -283,14 +283,25 @@ documentation and the manual for more information.
############################################################################## ##############################################################################
%package -n MySQL-server%{product_suffix} %package -n MySQL-server%{product_suffix}
Summary: MySQL: a very fast and reliable SQL database server Summary: MySQL: a very fast and reliable SQL database server
Group: Applications/Databases Group: Applications/Databases
Requires: %{distro_requires} Requires: %{distro_requires}
Provides: msqlormysql MySQL MySQL-server %if %{defined susever}
Conflicts: mysql mysql-server mysql-advanced mysql-server-advanced Provides: msqlormysql MySQL MySQL-server
Obsoletes: MySQL MySQL-server Conflicts: mysql mysql-server mysql-advanced mysql-server-advanced
Obsoletes: MySQL-server-classic MySQL-server-community MySQL-server-enterprise Obsoletes: MySQL MySQL-server
Obsoletes: MySQL-server-advanced MySQL-server-advanced-gpl MySQL-server-enterprise-gpl Obsoletes: MySQL-server-classic MySQL-server-community MySQL-server-enterprise
Obsoletes: MySQL-server-advanced MySQL-server-advanced-gpl MySQL-server-enterprise-gpl
%else
Obsoletes: MySQL < %{version}-%{release}
Obsoletes: MySQL-server < %{version}-%{release}
Obsoletes: MySQL-server-advanced < %{version}-%{release}
Obsoletes: mysql mysql-server mysql-advanced mysql-server-advanced
Obsoletes: MySQL-server-classic MySQL-server-community MySQL-server-enterprise
Obsoletes: MySQL-server-advanced-gpl MySQL-server-enterprise-gpl
Provides: msqlormysql MySQL MySQL-server MySQL-server-advanced
Provides: mysql
%endif
%description -n MySQL-server%{product_suffix} %description -n MySQL-server%{product_suffix}
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
...@@ -318,13 +329,23 @@ package "MySQL-client%{product_suffix}" as well! ...@@ -318,13 +329,23 @@ package "MySQL-client%{product_suffix}" as well!
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
%package -n MySQL-client%{product_suffix} %package -n MySQL-client%{product_suffix}
Summary: MySQL - Client Summary: MySQL - Client
Group: Applications/Databases Group: Applications/Databases
Provides: MySQL-client %if %{defined susever}
Conflicts: mysql mysql-advanced Provides: MySQL-client
Obsoletes: MySQL-client Conflicts: mysql mysql-advanced
Obsoletes: MySQL-client-classic MySQL-client-community MySQL-client-enterprise Obsoletes: MySQL-client
Obsoletes: MySQL-client-advanced MySQL-client-advanced-gpl MySQL-client-enterprise-gpl Obsoletes: MySQL-client-classic MySQL-client-community MySQL-client-enterprise
Obsoletes: MySQL-client-advanced MySQL-client-advanced-gpl MySQL-client-enterprise-gpl
%else
Obsoletes: mysql mysql-advanced
Obsoletes: MySQL-client < %{version}-%{release}
Obsoletes: MySQL-client-advanced < %{version}-%{release}
Obsoletes: MySQL-client-classic MySQL-client-community MySQL-client-enterprise
Obsoletes: MySQL-client-advanced-gpl MySQL-client-enterprise-gpl
Provides: MySQL-client MySQL-client-advanced
Provides: mysql
%endif
%description -n MySQL-client%{product_suffix} %description -n MySQL-client%{product_suffix}
This package contains the standard MySQL clients and administration tools. This package contains the standard MySQL clients and administration tools.
...@@ -333,16 +354,28 @@ For a description of MySQL see the base MySQL RPM or http://www.mysql.com/ ...@@ -333,16 +354,28 @@ For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
%package -n MySQL-test%{product_suffix} %package -n MySQL-test%{product_suffix}
Summary: MySQL - Test suite Summary: MySQL - Test suite
Group: Applications/Databases Group: Applications/Databases
Requires: MySQL-client perl %if %{defined susever}
Provides: MySQL-test Requires: MySQL-client perl
Conflicts: mysql-test mysql-test-advanced Provides: MySQL-test
Obsoletes: MySQL-test Conflicts: mysql-test mysql-test-advanced
Obsoletes: mysql-bench MySQL-bench Obsoletes: MySQL-test
Obsoletes: MySQL-test-classic MySQL-test-community MySQL-test-enterprise Obsoletes: mysql-bench MySQL-bench
Obsoletes: MySQL-test-advanced MySQL-test-advanced-gpl MySQL-test-enterprise-gpl Obsoletes: MySQL-test-classic MySQL-test-community MySQL-test-enterprise
AutoReqProv: no Obsoletes: MySQL-test-advanced MySQL-test-advanced-gpl MySQL-test-enterprise-gpl
AutoReqProv: no
%else
Requires: MySQL-client perl
Conflicts: mysql-test mysql-test-advanced
Obsoletes: mysql-bench MySQL-bench
Obsoletes: MySQL-test < %{version}-%{release}
Obsoletes: MySQL-test-advanced < %{version}-%{release}
Obsoletes: MySQL-test-classic MySQL-test-community MySQL-test-enterprise
Obsoletes: MySQL-test-advanced-gpl MySQL-test-enterprise-gpl
Provides: MySQL-test MySQL-test-advanced
AutoReqProv: no
%endif
%description -n MySQL-test%{product_suffix} %description -n MySQL-test%{product_suffix}
This package contains the MySQL regression test suite. This package contains the MySQL regression test suite.
...@@ -351,13 +384,22 @@ For a description of MySQL see the base MySQL RPM or http://www.mysql.com/ ...@@ -351,13 +384,22 @@ For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
%package -n MySQL-devel%{product_suffix} %package -n MySQL-devel%{product_suffix}
Summary: MySQL - Development header files and libraries Summary: MySQL - Development header files and libraries
Group: Applications/Databases Group: Applications/Databases
Provides: MySQL-devel %if %{defined susever}
Conflicts: mysql-devel mysql-embedded-devel mysql-devel-advanced mysql-embedded-devel-advanced Provides: MySQL-devel
Obsoletes: MySQL-devel Conflicts: mysql-devel mysql-embedded-devel mysql-devel-advanced mysql-embedded-devel-advanced
Obsoletes: MySQL-devel-classic MySQL-devel-community MySQL-devel-enterprise Obsoletes: MySQL-devel
Obsoletes: MySQL-devel-advanced MySQL-devel-advanced-gpl MySQL-devel-enterprise-gpl Obsoletes: MySQL-devel-classic MySQL-devel-community MySQL-devel-enterprise
Obsoletes: MySQL-devel-advanced MySQL-devel-advanced-gpl MySQL-devel-enterprise-gpl
%else
Conflicts: mysql-devel mysql-embedded-devel mysql-devel-advanced mysql-embedded-devel-advanced
Obsoletes: MySQL-devel < %{version}-%{release}
Obsoletes: MySQL-devel-advanced < %{version}-%{release}
Obsoletes: MySQL-devel-classic MySQL-devel-community MySQL-devel-enterprise
Obsoletes: MySQL-devel-advanced-gpl MySQL-devel-enterprise-gpl
Provides: MySQL-devel MySQL-devel-advanced
%endif
%description -n MySQL-devel%{product_suffix} %description -n MySQL-devel%{product_suffix}
This package contains the development header files and libraries necessary This package contains the development header files and libraries necessary
...@@ -367,14 +409,25 @@ For a description of MySQL see the base MySQL RPM or http://www.mysql.com/ ...@@ -367,14 +409,25 @@ For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
%package -n MySQL-shared%{product_suffix} %package -n MySQL-shared%{product_suffix}
Summary: MySQL - Shared libraries Summary: MySQL - Shared libraries
Group: Applications/Databases Group: Applications/Databases
Provides: MySQL-shared %if %{defined susever}
Obsoletes: MySQL-shared-standard MySQL-shared-pro Provides: MySQL-shared
Obsoletes: MySQL-shared-pro-cert MySQL-shared-pro-gpl Obsoletes: MySQL-shared-standard MySQL-shared-pro
Obsoletes: MySQL-shared-pro-gpl-cert MySQL-shared Obsoletes: MySQL-shared-pro-cert MySQL-shared-pro-gpl
Obsoletes: MySQL-shared-classic MySQL-shared-community MySQL-shared-enterprise Obsoletes: MySQL-shared-pro-gpl-cert MySQL-shared
Obsoletes: MySQL-shared-advanced MySQL-shared-advanced-gpl MySQL-shared-enterprise-gpl Obsoletes: MySQL-shared-classic MySQL-shared-community MySQL-shared-enterprise
Obsoletes: MySQL-shared-advanced MySQL-shared-advanced-gpl MySQL-shared-enterprise-gpl
%else
Obsoletes: MySQL-shared-standard MySQL-shared-pro
Obsoletes: MySQL-shared-pro-cert MySQL-shared-pro-gpl
Obsoletes: MySQL-shared < %{version}-%{release}
Obsoletes: MySQL-shared-advanced < %{version}-%{release}
Obsoletes: MySQL-shared-pro-gpl-cert
Obsoletes: MySQL-shared-classic MySQL-shared-community MySQL-shared-enterprise
Obsoletes: MySQL-shared-advanced-gpl MySQL-shared-enterprise-gpl
Provides: MySQL-shared MySQL-shared-advanced
%endif
%description -n MySQL-shared%{product_suffix} %description -n MySQL-shared%{product_suffix}
This package contains the shared libraries (*.so*) which certain languages This package contains the shared libraries (*.so*) which certain languages
...@@ -382,15 +435,26 @@ and applications need to dynamically load and use MySQL. ...@@ -382,15 +435,26 @@ and applications need to dynamically load and use MySQL.
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
%package -n MySQL-embedded%{product_suffix} %package -n MySQL-embedded%{product_suffix}
Summary: MySQL - Embedded library Summary: MySQL - Embedded library
Group: Applications/Databases Group: Applications/Databases
Requires: MySQL-devel %if %{defined susever}
Provides: MySQL-embedded Requires: MySQL-devel
Conflicts: mysql-embedded mysql-embedded-advanced Provides: MySQL-embedded
Obsoletes: MySQL-embedded Conflicts: mysql-embedded mysql-embedded-advanced
Obsoletes: MySQL-embedded-pro Obsoletes: MySQL-embedded
Obsoletes: MySQL-embedded-classic MySQL-embedded-community MySQL-embedded-enterprise Obsoletes: MySQL-embedded-pro
Obsoletes: MySQL-embedded-advanced MySQL-embedded-advanced-gpl MySQL-embedded-enterprise-gpl Obsoletes: MySQL-embedded-classic MySQL-embedded-community MySQL-embedded-enterprise
Obsoletes: MySQL-embedded-advanced MySQL-embedded-advanced-gpl MySQL-embedded-enterprise-gpl
%else
Requires: MySQL-devel
Conflicts: mysql-embedded mysql-embedded-advanced
Obsoletes: MySQL-embedded-pro
Obsoletes: MySQL-embedded < %{version}-%{release}
Obsoletes: MySQL-embedded-advanced < %{version}-%{release}
Obsoletes: MySQL-embedded-classic MySQL-embedded-community MySQL-embedded-enterprise
Obsoletes: MySQL-embedded-advanced-gpl MySQL-embedded-enterprise-gpl
Provides: MySQL-embedded MySQL-embedded-advanced
%endif
%description -n MySQL-embedded%{product_suffix} %description -n MySQL-embedded%{product_suffix}
This package contains the MySQL server as an embedded library. This package contains the MySQL server as an embedded library.
...@@ -719,13 +783,16 @@ if [ -d $mysql_datadir ] ; then ...@@ -719,13 +783,16 @@ if [ -d $mysql_datadir ] ; then
echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE
echo "'pre' step running at `date`" >> $STATUS_FILE echo "'pre' step running at `date`" >> $STATUS_FILE
echo >> $STATUS_FILE echo >> $STATUS_FILE
echo "ERR file(s):" >> $STATUS_FILE fcount=`ls -ltr $mysql_datadir/*.err 2>/dev/null | wc -l`
ls -ltr $mysql_datadir/*.err >> $STATUS_FILE if [ $fcount -gt 0 ] ; then
echo >> $STATUS_FILE echo "ERR file(s):" >> $STATUS_FILE
echo "Latest 'Version' line in latest file:" >> $STATUS_FILE ls -ltr $mysql_datadir/*.err >> $STATUS_FILE
grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \ echo >> $STATUS_FILE
echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
tail -1 >> $STATUS_FILE tail -1 >> $STATUS_FILE
echo >> $STATUS_FILE echo >> $STATUS_FILE
fi
if [ -n "$SERVER_TO_START" ] ; then if [ -n "$SERVER_TO_START" ] ; then
# There is only one PID file, race possibility ignored # There is only one PID file, race possibility ignored
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment