Bug#18327194 - Resolve confict issues during upgrade

parent 30d5c84b
......@@ -81,12 +81,11 @@
%global license_type GPLv2
%endif
Name: mysql-%{product_suffix}
Summary: A very fast and reliable SQL database server
Group: Applications/Databases
Version: @VERSION@
Release: 1%{?dist}
Release: 2%{?dist}
License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Under %{?license_type} license as shown in the Description field.
Source0: https://cdn.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/%{src_dir}.tar.gz
URL: http://www.mysql.com/
......@@ -205,10 +204,12 @@ Requires: mysql-enterprise-libs%{?_isa} = %{version}-%{release}
%else
Requires: mysql-community-libs%{?_isa} = %{version}-%{release}
%endif
Obsoletes: mysql < %{version}-%{release}
Obsoletes: mariadb
%if 0%{?rhel} > 5
Obsoletes: mysql < %{version}-%{release}
Provides: mysql = %{version}-%{release}
Provides: mysql%{?_isa} = %{version}-%{release}
%endif
%description client
This package contains the standard MySQL clients and administration
......@@ -288,9 +289,15 @@ applications.
%package libs-compat
Summary: Shared compat libraries for MySQL %{compatver} database client applications
Group: Applications/Databases
Obsoletes: mysql-libs-compat < %{version}-%{release}
Provides: mysql-libs-compat = %{version}-%{release}
Provides: mysql-libs-compat%{?_isa} = %{version}-%{release}
%if 0%{?commercial}
Obsoletes: mysql-community-libs-compat < %{version}-%{release}
Requires: mysql-enterprise-libs%{?_isa} = %{version}-%{release}
%else
Requires: mysql-community-libs%{?_isa} = %{version}-%{release}
%endif
%if 0%{?rhel} > 5
Obsoletes: mysql-libs < %{version}-%{release}
%endif
%description libs-compat
This package contains the shared compat libraries for MySQL %{compatver} client
......@@ -338,9 +345,31 @@ Provides: mysql-embedded-devel = %{version}-%{release}
Provides: mysql-embedded-devel%{?_isa} = %{version}-%{release}
%description embedded-devel
This package contains files needed for developing applicatison using
This package contains files needed for developing applications using
the embedded version of the MySQL server.
%if 0%{?rhel} == 5
%package -n mysql
Summary: Convenience package for easy upgrades of MySQL package set
Group: Applications/Databases
%if 0%{?commercial}
Requires: mysql-enterprise-client%{?_isa} = %{version}-%{release}
Requires: mysql-enterprise-libs%{?_isa} = %{version}-%{release}
Requires: mysql-enterprise-libs-compat%{?_isa} = %{version}-%{release}
%else
Requires: mysql-community-client%{?_isa} = %{version}-%{release}
Requires: mysql-community-libs%{?_isa} = %{version}-%{release}
Requires: mysql-community-libs-compat%{?_isa} = %{version}-%{release}
%endif
%description -n mysql
This package has as sole purpose to require other MySQL packages such
that upgrades will be more convenient.
Technical background: this is done to reflect the fact that mysql
package has been split into several subpackages.
%endif
%prep
%if 0%{?compatlib}
%setup -q -T -a 0 -a 7 -c -n %{src_dir}
......@@ -779,7 +808,16 @@ fi
%attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a
%attr(755, root, root) %{_libdir}/mysql/libmysqld.so
%if 0%{?rhel} == 5
%files -n mysql
%defattr(-, root, root, -)
%doc %{?license_files_server}
%endif
%changelog
* Thu Mar 06 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.5.37-2
- Resolve confict issues during upgrade
* Mon Feb 10 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.5.37-1
- Add support for el7 (with systemd enabled)
- Enable shared libmysqld by cmake option
......
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