ganapathi / rpms / mariadb

Forked from rpms/mariadb 3 years ago
Clone
4b7078
# SCL stuff
4b7078
%{?scl:%scl_package mariadb}
4b7078
%{!?scl:%global pkg_name %{name}}
4b7078
4b7078
# Prefix that is used for patches
4b7078
%global pkgnamepatch mariadb
4b7078
4b7078
# Regression tests may take a long time (many cores recommended), skip them by
4b7078
# passing --nocheck to rpmbuild or by setting runselftest to 0 if defining
4b7078
# --nocheck is not possible (e.g. in koji build)
4b7078
%{!?runselftest:%global runselftest 0}
4b7078
4b7078
# In f20+ use unversioned docdirs, otherwise the old versioned one
4b7078
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
4b7078
4b7078
# Use Full RELRO for all binaries (RHBZ#1092548)
4b7078
%global _hardened_build 1
4b7078
4b7078
# By default, patch(1) creates backup files when chunks apply with offsets.
4b7078
# Turn that off to ensure such files don't get included in RPMs (cf bz#884755).
4b7078
%global _default_patch_flags --no-backup-if-mismatch
4b7078
4b7078
# TokuDB engine is now part of MariaDB, but it is available only for x86_64;
4b7078
# variable tokudb allows to build with TokuDB storage engine
4b7078
# Temporarily disabled in F21+ for https://mariadb.atlassian.net/browse/MDEV-6446
4b7078
%ifarch 0%{?fedora} < 21 #x86_64
4b7078
%bcond_without tokudb
4b7078
%else
4b7078
%bcond_with tokudb
4b7078
%endif
4b7078
4b7078
# Mroonga engine is now part of MariaDB, but it only builds for x86_64;
4b7078
# variable mroonga allows to build with Mroonga storage engine
4b7078
%ifarch x86_64 i686
4b7078
%bcond_without mroonga
4b7078
%else
4b7078
%bcond_with mroonga
4b7078
%endif
4b7078
4b7078
# The Open Query GRAPH engine (OQGRAPH) is a computation engine allowing
4b7078
# hierarchies and more complex graph structures to be handled in a relational
4b7078
# fashion; enabled by default
4b7078
%if 0%{?scl:1}
4b7078
%bcond_with oqgraph
4b7078
%else
4b7078
%bcond_with oqgraph
4b7078
%endif
4b7078
4b7078
# For some use cases we do not need some parts of the package
4b7078
%bcond_without clibrary
4b7078
%bcond_without devel
4b7078
%bcond_without client
4b7078
%bcond_without common
4b7078
%bcond_without errmsg
4b7078
%bcond_without bench
4b7078
%bcond_without test
4b7078
%bcond_without connect
4b7078
4b7078
%if 0%{?scl:1}
4b7078
%bcond_with embedded
4b7078
%else
4b7078
%bcond_with embedded
4b7078
%endif
4b7078
4b7078
# When there is already another package that ships /etc/my.cnf,
4b7078
# rather include it than ship the file again, since conflicts between
4b7078
# those files may create issues
4b7078
%bcond_without config
4b7078
4b7078
# For deep debugging we need to build binaries with extra debug info
4b7078
%bcond_with debug
4b7078
4b7078
# Include files for SysV init or systemd
4b7078
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
4b7078
%bcond_without init_systemd
4b7078
%bcond_with init_sysv
4b7078
%global daemon_default %{?scl_prefix}%{pkg_name}
4b7078
%if ! 0%{?scl:1}
4b7078
%global mysqld_pid_dir mysqld
4b7078
%endif
4b7078
%else
4b7078
%bcond_with init_systemd
4b7078
%bcond_without init_sysv
4b7078
%global daemon_default %{?scl:%{?scl_prefix}%{pkg_name}}%{!?scl:mysqld}
4b7078
%endif
4b7078
%global daemon_name %{?scl_mariadb_daemonname}%{!?scl_mariadb_daemonname:%{daemon_default}}
4b7078
4b7078
# MariaDB 10.0 and later requires pcre >= 8.35, otherwise we need to use
4b7078
# the bundled library, since the package cannot be build with older version
4b7078
%if 0%{?fedora} >= 21
4b7078
%bcond_without pcre
4b7078
%else
4b7078
%bcond_with pcre
4b7078
%endif
4b7078
4b7078
# We define some system's well known locations here so we can use them easily
4b7078
# later when building to another location (like SCL)
4b7078
%global logrotateddir %{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}/logrotate.d
4b7078
%global logfiledir %{?scl_mariadb_logfiledir}%{!?scl_mariadb_logfiledir:%{_localstatedir}/log/%{daemon_name}}
4b7078
%global logfile %{logfiledir}/%{daemon_name}.log
4b7078
4b7078
# Defining where database data live
4b7078
%global dbdatadir %{?scl_mariadb_dbdatadir}%{!?scl_mariadb_dbdatadir:%{_localstatedir}/lib/mysql}
4b7078
4b7078
# Home directory of mysql user should be same for all packages that create it
4b7078
%global mysqluserhome /var/lib/mysql
4b7078
4b7078
# The evr of mysql we want to obsolete
4b7078
%if ! 0%{?scl:1}
4b7078
%global obsoleted_mysql_evr 5.6-0
4b7078
%global obsoleted_mysql_case_evr 5.5.30-5
4b7078
%endif
4b7078
4b7078
# Provide mysql names for compatibility
4b7078
%if 0%{?scl:1}
4b7078
%bcond_with mysql_names
4b7078
%bcond_with conflicts
4b7078
%else
4b7078
%bcond_without mysql_names
4b7078
%bcond_without conflicts
4b7078
%endif
4b7078
4b7078
# Make long macros shorter
4b7078
%global sameevr   %{epoch}:%{version}-%{release}
4b7078
%global compatver 10.0
4b7078
%global bugfixver 15
4b7078
4b7078
Name:             %{?scl_prefix}mariadb
4b7078
Version:          %{compatver}.%{bugfixver}
4b7078
Release:          4%{?with_debug:.debug}%{?dist}
4b7078
Epoch:            1
4b7078
4b7078
Summary:          A community developed branch of MySQL
4b7078
Group:            Applications/Databases
4b7078
URL:              http://mariadb.org
4b7078
# Exceptions allow client libraries to be linked with most open source SW,
4b7078
# not only GPL code.  See README.mysql-license
4b7078
License:          GPLv2 with exceptions and LGPLv2 and BSD
4b7078
4b7078
Source0:          http://mirrors.syringanetworks.net/mariadb/mariadb-%{version}/source/mariadb-%{version}.tar.gz
4b7078
Source2:          mysql_config_multilib.sh
4b7078
Source3:          my.cnf.in
4b7078
Source4:          my_config.h
4b7078
Source5:          README.mysql-cnf
4b7078
Source6:          README.mysql-docs
4b7078
Source7:          README.mysql-license
4b7078
Source9:          mysql-embedded-check.c
4b7078
Source10:         mysql.tmpfiles.d.in
4b7078
Source11:         mysql.service.in
4b7078
Source12:         mysql-prepare-db-dir.sh
4b7078
Source13:         mysql-wait-ready.sh
4b7078
Source14:         mysql-check-socket.sh
4b7078
Source15:         mysql-scripts-common.sh
4b7078
Source16:         mysql-check-upgrade.sh
4b7078
Source19:         mysql.init.in
4b7078
Source50:         rh-skipped-tests-base.list
4b7078
Source51:         rh-skipped-tests-intel.list
4b7078
Source52:         rh-skipped-tests-arm.list
4b7078
Source53:         rh-skipped-tests-ppc-s390.list
4b7078
Source54:         rh-skipped-tests-ppc64le.list
4b7078
Source55:         rh-skipped-tests-s390.list
4b7078
4b7078
# Comments for these patches are in the patch files
4b7078
# Patches common for more mysql-like packages
4b7078
Patch1:           %{pkgnamepatch}-strmov.patch
4b7078
Patch2:           %{pkgnamepatch}-install-test.patch
4b7078
Patch3:           %{pkgnamepatch}-s390-tsc.patch
4b7078
Patch4:           %{pkgnamepatch}-logrotate.patch
4b7078
Patch5:           %{pkgnamepatch}-file-contents.patch
4b7078
Patch6:           %{pkgnamepatch}-dh1024.patch
4b7078
Patch7:           %{pkgnamepatch}-scripts.patch
4b7078
Patch8:           %{pkgnamepatch}-install-db-sharedir.patch
4b7078
4b7078
# Patches specific for this mysql package
4b7078
Patch30:          %{pkgnamepatch}-errno.patch
4b7078
Patch31:          %{pkgnamepatch}-string-overflow.patch
4b7078
Patch32:          %{pkgnamepatch}-basedir.patch
4b7078
Patch33:          %{pkgnamepatch}-covscan-signexpr.patch
4b7078
Patch34:          %{pkgnamepatch}-covscan-stroverflow.patch
4b7078
Patch36:          %{pkgnamepatch}-ssltest.patch
4b7078
4b7078
# Patches specific for scl
4b7078
Patch90:          %{pkgnamepatch}-scl-env-check.patch
4b7078
4b7078
BuildRequires:    cmake
4b7078
BuildRequires:    libaio-devel
4b7078
BuildRequires:    openssl-devel
4b7078
BuildRequires:    ncurses-devel
4b7078
BuildRequires:    perl
4b7078
BuildRequires:    libedit-devel
4b7078
BuildRequires:    systemtap-sdt-devel
4b7078
BuildRequires:    zlib-devel
4b7078
# auth_pam.so plugin will be build if pam-devel is installed
4b7078
BuildRequires:    pam-devel
4b7078
%{?with_pcre:BuildRequires: pcre-devel >= 8.35}
4b7078
# Tests requires time and ps and some perl modules
4b7078
BuildRequires:    procps
4b7078
BuildRequires:    time
4b7078
BuildRequires:    perl(Env)
4b7078
BuildRequires:    perl(Exporter)
4b7078
BuildRequires:    perl(Fcntl)
4b7078
BuildRequires:    perl(File::Temp)
4b7078
BuildRequires:    perl(Data::Dumper)
4b7078
BuildRequires:    perl(Getopt::Long)
4b7078
BuildRequires:    perl(IPC::Open3)
4b7078
BuildRequires:    perl(Socket)
4b7078
BuildRequires:    perl(Sys::Hostname)
4b7078
BuildRequires:    perl(Test::More)
4b7078
BuildRequires:    perl(Time::HiRes)
4b7078
%{?with_init_systemd:BuildRequires: systemd}
4b7078
4b7078
Requires:         bash
4b7078
Requires:         fileutils
4b7078
Requires:         grep
4b7078
Requires:         %{name}-common%{?_isa} = %{sameevr}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
4b7078
%if %{with mysql_names}
4b7078
Provides:         mysql = %{sameevr}
4b7078
Provides:         mysql%{?_isa} = %{sameevr}
4b7078
Provides:         mysql-compat-client = %{sameevr}
4b7078
Provides:         mysql-compat-client%{?_isa} = %{sameevr}
4b7078
%endif
4b7078
4b7078
# MySQL (with caps) is upstream's spelling of their own RPMs for mysql
4b7078
%{?obsoleted_mysql_case_evr:Obsoletes: MySQL < %{obsoleted_mysql_case_evr}}
4b7078
%{?obsoleted_mysql_evr:Obsoletes: mysql < %{obsoleted_mysql_evr}}
4b7078
%{?with_conflicts:Conflicts:        community-mysql}
4b7078
4b7078
# Filtering: https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering
4b7078
%if 0%{?fedora} > 14 || 0%{?rhel} > 6
4b7078
%global __requires_exclude ^perl\\((hostnames|lib::mtr|lib::v1|mtr_|My::)
4b7078
%global __provides_exclude_from ^(%{_datadir}/(mysql|mysql-test)/.*|%{_libdir}/mysql/plugin/.*\\.so)$
4b7078
%else
4b7078
%filter_from_requires /perl(\(hostnames\|lib::mtr\|lib::v1\|mtr_\|My::\)/d
4b7078
%filter_provides_in -P (%{_datadir}/(mysql|mysql-test)/.*|%{_libdir}/mysql/plugin/.*\\.so)$
4b7078
%filter_setup
4b7078
%endif
4b7078
4b7078
%description
4b7078
MariaDB is a community developed branch of MySQL.
4b7078
MariaDB is a multi-user, multi-threaded SQL database server.
4b7078
It is a client/server implementation consisting of a server daemon (mysqld)
4b7078
and many different client programs and libraries. The base package
4b7078
contains the standard MariaDB/MySQL client programs and generic MySQL files.
4b7078
4b7078
4b7078
%if %{with clibrary}
4b7078
%package          libs
4b7078
Summary:          The shared libraries required for MariaDB/MySQL clients
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}-common%{?_isa} = %{sameevr}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
%if %{with mysql_names}
4b7078
Provides:         mysql-libs = %{sameevr}
4b7078
Provides:         mysql-libs%{?_isa} = %{sameevr}
4b7078
%endif
4b7078
%{?obsoleted_mysql_case_evr:Obsoletes: MySQL-libs < %{obsoleted_mysql_case_evr}}
4b7078
%{?obsoleted_mysql_evr:Obsoletes: mysql-libs < %{obsoleted_mysql_evr}}
4b7078
4b7078
%description      libs
4b7078
The mariadb-libs package provides the essential shared libraries for any
4b7078
MariaDB/MySQL client program or interface. You will need to install this
4b7078
package to use any other MariaDB package or any clients that need to connect
4b7078
to a MariaDB/MySQL server. MariaDB is a community developed branch of MySQL.
4b7078
%endif
4b7078
4b7078
4b7078
%if %{with config}
4b7078
%package          config
4b7078
Summary:          The config files required by server and client
4b7078
Group:            Applications/Databases
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
4b7078
%description      config
4b7078
The package provides the config file my.cnf and my.cnf.d directory used by any
4b7078
MariaDB or MySQL program. You will need to install this package to use any
4b7078
other MariaDB or MySQL package if the config files are not provided in the
4b7078
package itself.
4b7078
%endif
4b7078
4b7078
4b7078
%if %{with common}
4b7078
%package          common
4b7078
Summary:          The shared files required by server and client
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{_sysconfdir}/my.cnf
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
4b7078
%description      common
4b7078
The package provides the essential shared files for any MariaDB program.
4b7078
You will need to install this package to use any other MariaDB package.
4b7078
%endif
4b7078
4b7078
4b7078
%if %{with errmsg}
4b7078
%package          errmsg
4b7078
Summary:          The error messages files required by server and embedded
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}-common%{?_isa} = %{sameevr}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
4b7078
%description      errmsg
4b7078
The package provides error messages files for the MariaDB daemon and the
4b7078
embedded server. You will need to install this package to use any of those
4b7078
MariaDB packages.
4b7078
%endif
4b7078
4b7078
4b7078
%package          server
4b7078
Summary:          The MariaDB server and related files
4b7078
Group:            Applications/Databases
4b7078
4b7078
# note: no version here = %%{version}-%%{release}
4b7078
%if %{with mysql_names}
4b7078
Requires:         mysql-compat-client%{?_isa}
4b7078
Requires:         mysql%{?_isa}
4b7078
%else
4b7078
Requires:         %{name}%{?_isa}
4b7078
%endif
4b7078
Requires:         %{name}-common%{?_isa} = %{sameevr}
4b7078
Requires:         %{_sysconfdir}/my.cnf
4b7078
Requires:         %{_sysconfdir}/my.cnf.d
4b7078
Requires:         %{name}-errmsg%{?_isa} = %{sameevr}
4b7078
Requires:         sh-utils
4b7078
Requires(pre):    /usr/sbin/useradd
4b7078
%if %{with init_systemd}
4b7078
# We require this to be present for %%{_tmpfilesdir}
4b7078
Requires:         systemd
4b7078
# Make sure it's there when scriptlets run, too
4b7078
Requires(pre):    systemd
4b7078
Requires(posttrans): systemd
4b7078
%{?systemd_requires: %systemd_requires}
4b7078
%endif
4b7078
# mysqlhotcopy needs DBI/DBD support
4b7078
Requires:         perl(DBI)
4b7078
Requires:         perl(DBD::mysql)
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
%if %{with mysql_names}
4b7078
Provides:         mysql-server = %{sameevr}
4b7078
Provides:         mysql-server%{?_isa} = %{sameevr}
4b7078
Provides:         mysql-compat-server = %{sameevr}
4b7078
Provides:         mysql-compat-server%{?_isa} = %{sameevr}
4b7078
%endif
4b7078
%{?obsoleted_mysql_case_evr:Obsoletes: MySQL-server < %{obsoleted_mysql_case_evr}}
4b7078
%{?with_conflicts:Conflicts:        community-mysql-server}
4b7078
%{?with_conflicts:Conflicts:        mariadb-galera-server}
4b7078
%{?obsoleted_mysql_evr:Obsoletes: mysql-server < %{obsoleted_mysql_evr}}
4b7078
4b7078
%description      server
4b7078
MariaDB is a multi-user, multi-threaded SQL database server. It is a
4b7078
client/server implementation consisting of a server daemon (mysqld)
4b7078
and many different client programs and libraries. This package contains
4b7078
the MariaDB server and some accompanying files and directories.
4b7078
MariaDB is a community developed branch of MySQL.
4b7078
4b7078
4b7078
%if %{with oqgraph}
4b7078
%package          oqgraph-engine
4b7078
Summary:          The Open Query GRAPH engine for MariaDB
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}-server%{?_isa} = %{sameevr}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
# boost and Judy required for oograph
4b7078
BuildRequires:    boost-devel
4b7078
BuildRequires:    Judy-devel
4b7078
4b7078
%description      oqgraph-engine
4b7078
The package provides Open Query GRAPH engine (OQGRAPH) as plugin for MariaDB
4b7078
database server. OQGRAPH is a computation engine allowing hierarchies and more
4b7078
complex graph structures to be handled in a relational fashion. In a nutshell,
4b7078
tree structures and friend-of-a-friend style searches can now be done using
4b7078
standard SQL syntax, and results joined onto other tables.
4b7078
%endif
4b7078
4b7078
4b7078
%if %{with connect}
4b7078
%package          connect-engine
4b7078
Summary:          The CONNECT storage engine for MariaDB
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}-server%{?_isa} = %{sameevr}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
4b7078
%description      connect-engine
4b7078
The CONNECT storage engine enables MariaDB to access external local or
4b7078
remote data (MED). This is done by defining tables based on different data
4b7078
types, in particular files in various formats, data extracted from other DBMS
4b7078
or products (such as Excel), or data retrieved from the environment
4b7078
(for example DIR, WMI, and MAC tables).
4b7078
%endif
4b7078
4b7078
4b7078
%if %{with devel}
4b7078
%package          devel
4b7078
Summary:          Files for development of MariaDB/MySQL applications
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}-libs%{?_isa} = %{sameevr}
4b7078
Requires:         openssl-devel%{?_isa}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
%if %{with mysql_names}
4b7078
Provides:         mysql-devel = %{sameevr}
4b7078
Provides:         mysql-devel%{?_isa} = %{sameevr}
4b7078
%endif
4b7078
%{?obsoleted_mysql_case_evr:Obsoletes: MySQL-devel < %{obsoleted_mysql_case_evr}}
4b7078
%{?obsoleted_mysql_evr:Obsoletes: mysql-devel < %{obsoleted_mysql_evr}}
4b7078
%{?with_conflicts:Conflicts:        community-mysql-devel}
4b7078
4b7078
%description      devel
4b7078
MariaDB is a multi-user, multi-threaded SQL database server. This
4b7078
package contains the libraries and header files that are needed for
4b7078
developing MariaDB/MySQL client applications.
4b7078
MariaDB is a community developed branch of MySQL.
4b7078
%endif
4b7078
4b7078
4b7078
%if %{with embedded}
4b7078
%package          embedded
4b7078
Summary:          MariaDB as an embeddable library
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}-common%{?_isa} = %{sameevr}
4b7078
Requires:         %{name}-errmsg%{?_isa} = %{sameevr}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
%if %{with mysql_names}
4b7078
Provides:         mysql-embedded = %{sameevr}
4b7078
Provides:         mysql-embedded%{?_isa} = %{sameevr}
4b7078
%endif
4b7078
%{?obsoleted_mysql_case_evr:Obsoletes: MySQL-embedded < %{obsoleted_mysql_case_evr}}
4b7078
%{?obsoleted_mysql_evr:Obsoletes: mysql-embedded < %{obsoleted_mysql_evr}}
4b7078
4b7078
%description      embedded
4b7078
MariaDB is a multi-user, multi-threaded SQL database server. This
4b7078
package contains a version of the MariaDB server that can be embedded
4b7078
into a client application instead of running as a separate process.
4b7078
MariaDB is a community developed branch of MySQL.
4b7078
4b7078
4b7078
%package          embedded-devel
4b7078
Summary:          Development files for MariaDB as an embeddable library
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}-embedded%{?_isa} = %{sameevr}
4b7078
Requires:         %{name}-devel%{?_isa} = %{sameevr}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
%if %{with mysql_names}
4b7078
Provides:         mysql-embedded-devel = %{sameevr}
4b7078
Provides:         mysql-embedded-devel%{?_isa} = %{sameevr}
4b7078
%endif
4b7078
%{?with_conflicts:Conflicts:        community-mysql-embedded-devel}
4b7078
%{?obsoleted_mysql_case_evr:Obsoletes: MySQL-embedded-devel < %{obsoleted_mysql_case_evr}}
4b7078
%{?obsoleted_mysql_evr:Obsoletes: mysql-embedded-devel < %{obsoleted_mysql_evr}}
4b7078
4b7078
%description      embedded-devel
4b7078
MariaDB is a multi-user, multi-threaded SQL database server. This
4b7078
package contains files needed for developing and testing with
4b7078
the embedded version of the MariaDB server.
4b7078
MariaDB is a community developed branch of MySQL.
4b7078
%endif
4b7078
4b7078
4b7078
%if %{with bench}
4b7078
%package          bench
4b7078
Summary:          MariaDB benchmark scripts and data
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}%{?_isa} = %{sameevr}
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
%if %{with mysql_names}
4b7078
Provides:         mysql-bench = %{sameevr}
4b7078
Provides:         mysql-bench%{?_isa} = %{sameevr}
4b7078
%endif
4b7078
%{?with_conflicts:Conflicts:        community-mysql-bench}
4b7078
%{?obsoleted_mysql_case_evr:Obsoletes: MySQL-bench < %{obsoleted_mysql_case_evr}}
4b7078
%{?obsoleted_mysql_evr:Obsoletes: mysql-bench < %{obsoleted_mysql_evr}}
4b7078
4b7078
%description      bench
4b7078
MariaDB is a multi-user, multi-threaded SQL database server. This
4b7078
package contains benchmark scripts and data for use when benchmarking
4b7078
MariaDB.
4b7078
MariaDB is a community developed branch of MySQL.
4b7078
%endif
4b7078
4b7078
4b7078
%if %{with test}
4b7078
%package          test
4b7078
Summary:          The test suite distributed with MariaD
4b7078
Group:            Applications/Databases
4b7078
Requires:         %{name}%{?_isa} = %{sameevr}
4b7078
Requires:         %{name}-common%{?_isa} = %{sameevr}
4b7078
Requires:         %{name}-server%{?_isa} = %{sameevr}
4b7078
Requires:         perl(Env)
4b7078
Requires:         perl(Exporter)
4b7078
Requires:         perl(Fcntl)
4b7078
Requires:         perl(File::Temp)
4b7078
Requires:         perl(Data::Dumper)
4b7078
Requires:         perl(Getopt::Long)
4b7078
Requires:         perl(IPC::Open3)
4b7078
Requires:         perl(Socket)
4b7078
Requires:         perl(Sys::Hostname)
4b7078
Requires:         perl(Test::More)
4b7078
Requires:         perl(Time::HiRes)
4b7078
%{?scl:Requires:%scl_runtime}
4b7078
%{?with_conflicts:Conflicts:        community-mysql-test}
4b7078
%if %{with mysql_names}
4b7078
Provides:         mysql-test = %{sameevr}
4b7078
Provides:         mysql-test%{?_isa} = %{sameevr}
4b7078
%endif
4b7078
%{?obsoleted_mysql_case_evr:Obsoletes: MySQL-test < %{obsoleted_mysql_case_evr}}
4b7078
%{?obsoleted_mysql_evr:Obsoletes: mysql-test < %{obsoleted_mysql_evr}}
4b7078
4b7078
%description      test
4b7078
MariaDB is a multi-user, multi-threaded SQL database server. This
4b7078
package contains the regression test suite distributed with
4b7078
the MariaDB sources.
4b7078
MariaDB is a community developed branch of MySQL.
4b7078
%endif
4b7078
4b7078
%prep
4b7078
%setup -q -n mariadb-%{version}
4b7078
4b7078
%patch1 -p1
4b7078
%patch2 -p1
4b7078
%patch3 -p1
4b7078
%patch4 -p1
4b7078
%patch5 -p1
4b7078
%patch6 -p1
4b7078
%patch7 -p1
4b7078
%patch8 -p1
4b7078
%patch30 -p1
4b7078
%patch31 -p1
4b7078
%patch32 -p1
4b7078
%patch33 -p1
4b7078
%patch34 -p1
4b7078
%patch36 -p1
4b7078
4b7078
# removing bundled cmd-line-utils
4b7078
rm -r cmd-line-utils
4b7078
4b7078
sed -i -e 's/2.8.7/2.6.4/g' cmake/cpack_rpm.cmake
4b7078
4b7078
# workaround for upstream bug #56342
4b7078
rm -f mysql-test/t/ssl_8k_key-master.opt
4b7078
4b7078
# generate a list of tests that fail, but are not disabled by upstream
4b7078
cat %{SOURCE50} > mysql-test/rh-skipped-tests.list
4b7078
4b7078
# disable some tests failing on different architectures
4b7078
%ifarch x86_64 i686
4b7078
cat %{SOURCE51} >> mysql-test/rh-skipped-tests.list
4b7078
%endif
4b7078
4b7078
%ifarch %{arm} aarch64
4b7078
cat %{SOURCE52} >> mysql-test/rh-skipped-tests.list
4b7078
%endif
4b7078
4b7078
%ifarch ppc ppc64 ppc64p7 s390 s390x
4b7078
cat %{SOURCE53} >> mysql-test/rh-skipped-tests.list
4b7078
%endif
4b7078
4b7078
%ifarch ppc64le
4b7078
cat %{SOURCE54} >> mysql-test/rh-skipped-tests.list
4b7078
%endif
4b7078
4b7078
%ifarch s390
4b7078
cat %{SOURCE55} >> mysql-test/rh-skipped-tests.list
4b7078
%endif
4b7078
4b7078
cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} \
4b7078
   %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE19} \
4b7078
   scripts
4b7078
4b7078
%if 0%{?scl:1}
4b7078
%patch90 -p1
4b7078
%endif
4b7078
4b7078
%build
4b7078
4b7078
# fail quickly and obviously if user tries to build as root
4b7078
%if %runselftest
4b7078
    if [ x"$(id -u)" = "x0" ]; then
4b7078
        echo "mysql's regression tests fail if run as root."
4b7078
        echo "If you really need to build the RPM as root, use"
4b7078
        echo "--nocheck to skip the regression tests."
4b7078
        exit 1
4b7078
    fi
4b7078
%endif
4b7078
4b7078
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
4b7078
# force PIC mode so that we can build libmysqld.so
4b7078
CFLAGS="$CFLAGS -fPIC"
4b7078
# GCC 4.9 causes segfaults: https://mariadb.atlassian.net/browse/MDEV-6360
4b7078
CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
4b7078
# gcc seems to have some bugs on sparc as of 4.4.1, back off optimization
4b7078
# submitted as bz #529298
4b7078
%ifarch sparc sparcv9 sparc64
4b7078
CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" `
4b7078
%endif
4b7078
# significant performance gains can be achieved by compiling with -O3 optimization
4b7078
# rhbz#1051069
4b7078
%ifarch ppc64
4b7078
CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O3|g" `
4b7078
%endif
4b7078
CXXFLAGS="$CFLAGS"
4b7078
export CFLAGS CXXFLAGS
4b7078
4b7078
%if 0%{?_hardened_build}
4b7078
# building with PIE
4b7078
LDFLAGS="$LDFLAGS -pie -Wl,-z,relro,-z,now"
4b7078
export LDFLAGS
4b7078
%endif
4b7078
4b7078
# The INSTALL_xxx macros have to be specified relative to CMAKE_INSTALL_PREFIX
4b7078
# so we can't use %%{_datadir} and so forth here.
4b7078
%cmake . \
4b7078
         -DBUILD_CONFIG=mysql_release \
4b7078
         -DFEATURE_SET="community" \
4b7078
         -DINSTALL_LAYOUT=RPM \
4b7078
         -DDAEMON_NAME="%{daemon_name}" \
4b7078
%if 0%{?scl:1}
4b7078
         -DSCL_NAME="%{?scl}" \
4b7078
         -DSCL_SCRIPTS="%{?_scl_scripts}" \
4b7078
%endif
4b7078
         -DLOG_LOCATION="%{logfile}" \
4b7078
         -DPID_FILE_DIR="%{_localstatedir}/run/%{daemon_name}" \
4b7078
         -DNICE_PROJECT_NAME="MariaDB" \
4b7078
         -DRPM="%{?rhel:rhel%{rhel}}%{!?rhel:fedora%{fedora}}" \
4b7078
         -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
4b7078
         -DINSTALL_SYSCONFDIR="%{_sysconfdir}" \
4b7078
         -DINSTALL_SYSCONF2DIR="%{_sysconfdir}/my.cnf.d" \
4b7078
%if 0%{?fedora} >= 20
4b7078
         -DINSTALL_DOCDIR="share/doc/%{name}" \
4b7078
         -DINSTALL_DOCREADMEDIR="share/doc/%{name}" \
4b7078
%else
4b7078
         -DINSTALL_DOCDIR="share/doc/%{name}-%{version}" \
4b7078
         -DINSTALL_DOCREADMEDIR="share/doc/%{name}-%{version}" \
4b7078
%endif
4b7078
         -DINSTALL_INCLUDEDIR=include/mysql \
4b7078
         -DINSTALL_INFODIR=share/info \
4b7078
         -DINSTALL_LIBDIR="%{_lib}/mysql" \
4b7078
         -DINSTALL_MANDIR=share/man \
4b7078
         -DINSTALL_MYSQLSHAREDIR=share/%{name} \
4b7078
         -DINSTALL_MYSQLTESTDIR=share/mysql-test \
4b7078
         -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \
4b7078
         -DINSTALL_SBINDIR=libexec \
4b7078
         -DINSTALL_SCRIPTDIR=bin \
4b7078
         -DINSTALL_SQLBENCHDIR=share \
4b7078
         -DINSTALL_SUPPORTFILESDIR=share/%{name} \
4b7078
         -DMYSQL_DATADIR="%{dbdatadir}" \
4b7078
         -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
4b7078
         -DENABLED_LOCAL_INFILE=ON \
4b7078
         -DENABLE_DTRACE=ON \
4b7078
         -DWITH_EMBEDDED_SERVER=ON \
4b7078
         -DWITH_SSL=system \
4b7078
         -DWITH_ZLIB=system \
4b7078
%{?with_pcre: -DWITH_PCRE=system}\
4b7078
         -DWITH_JEMALLOC=no \
4b7078
%{!?with_tokudb: -DWITHOUT_TOKUDB=ON}\
4b7078
%{!?with_mroonga: -DWITHOUT_MROONGA=ON}\
4b7078
         -DTMPDIR=/var/tmp \
4b7078
%{?with_debug: -DCMAKE_BUILD_TYPE=Debug}\
4b7078
         %{?_hardened_build:-DWITH_MYSQLD_LDFLAGS="-pie -Wl,-z,relro,-z,now"}
4b7078
4b7078
make %{?_smp_mflags} VERBOSE=1
4b7078
4b7078
# debuginfo extraction scripts fail to find source files in their real
4b7078
# location -- satisfy them by copying these files into location, which
4b7078
# is expected by scripts
4b7078
for e in innobase xtradb ; do
4b7078
  for f in pars0grm.y pars0lex.l ; do
4b7078
    cp -p "storage/$e/pars/$f" "storage/$e/$f"
4b7078
  done
4b7078
done
4b7078
4b7078
%install
4b7078
make DESTDIR=%{buildroot} install
4b7078
4b7078
# cmake generates some completely wacko references to -lprobes_mysql when
4b7078
# building with dtrace support.  Haven't found where to shut that off,
4b7078
# so resort to this blunt instrument.  While at it, let's not reference
4b7078
# libmysqlclient_r anymore either.
4b7078
sed -e 's/-lprobes_mysql//' -e 's/-lmysqlclient_r/-lmysqlclient/' \
4b7078
  %{buildroot}%{_bindir}/mysql_config >mysql_config.tmp
4b7078
cp -p -f mysql_config.tmp %{buildroot}%{_bindir}/mysql_config
4b7078
chmod 755 %{buildroot}%{_bindir}/mysql_config
4b7078
4b7078
# multilib header support
4b7078
# we only apply this to known Red Hat multilib arches, per bug #181335
4b7078
unamei=$(uname -i)
4b7078
%ifarch %{arm}
4b7078
unamei=arm
4b7078
%endif
4b7078
%ifarch %{power64}
4b7078
unamei=ppc64
4b7078
%endif
4b7078
%ifarch %{arm} aarch64 %{ix86} x86_64 ppc %{power64} %{sparc} s390 s390x
4b7078
mv %{buildroot}%{_includedir}/mysql/my_config.h %{buildroot}%{_includedir}/mysql/my_config_${unamei}.h
4b7078
mv %{buildroot}%{_includedir}/mysql/private/config.h %{buildroot}%{_includedir}/mysql/private/my_config_${unamei}.h
4b7078
install -p -m 644 %{SOURCE4} %{buildroot}%{_includedir}/mysql/
4b7078
install -p -m 644 %{SOURCE4} %{buildroot}%{_includedir}/mysql/private/config.h
4b7078
mv %{buildroot}%{_bindir}/mysql_config %{buildroot}%{_bindir}/mysql_config-%{__isa_bits}
4b7078
install -p -m 0755 scripts/mysql_config_multilib %{buildroot}%{_bindir}/mysql_config
4b7078
%endif
4b7078
4b7078
# install INFO_SRC, INFO_BIN into libdir (upstream thinks these are doc files,
4b7078
# but that's pretty wacko --- see also %%{name}-file-contents.patch)
4b7078
install -p -m 644 Docs/INFO_SRC %{buildroot}%{_libdir}/mysql/
4b7078
install -p -m 644 Docs/INFO_BIN %{buildroot}%{_libdir}/mysql/
4b7078
rm -rf %{buildroot}%{_pkgdocdir}/MariaDB-server-%{version}/
4b7078
4b7078
mkdir -p %{buildroot}%{logfiledir}
4b7078
chmod 0750 %{buildroot}%{logfiledir}
4b7078
touch %{buildroot}%{logfile}
4b7078
4b7078
# current setting in my.cnf is to use /var/run/mariadb for creating pid file,
4b7078
# however since my.cnf is not updated by RPM if changed, we need to create mysqld
4b7078
# as well because users can have odd settings in their /etc/my.cnf
4b7078
mkdir -p %{buildroot}%{_localstatedir}/run/%{daemon_name}
4b7078
install -p -m 0755 -d %{buildroot}%{dbdatadir}
4b7078
4b7078
%if %{with config}
4b7078
install -D -p -m 0644 scripts/my.cnf %{buildroot}%{_sysconfdir}/my.cnf
4b7078
%else
4b7078
rm -f %{buildroot}%{_sysconfdir}/my.cnf.d/mysql-clients.cnf
4b7078
rm -f %{buildroot}%{_sysconfdir}/my.cnf
4b7078
%endif
4b7078
4b7078
# install systemd unit files and scripts for handling server startup
4b7078
%if %{with init_systemd}
4b7078
install -D -p -m 644 scripts/mysql.service %{buildroot}%{_unitdir}/%{daemon_name}.service
4b7078
install -D -p -m 0644 scripts/mysql.tmpfiles.d %{buildroot}%{_tmpfilesdir}/%{name}.conf
4b7078
%if 0%{?mysqld_pid_dir:1}
4b7078
echo "d %{_localstatedir}/run/%{mysqld_pid_dir} 0755 mysql mysql -" >>%{buildroot}%{_tmpfilesdir}/%{name}.conf
4b7078
%endif
4b7078
%endif
4b7078
4b7078
# install SysV init script
4b7078
%if %{with init_sysv}
4b7078
install -D -p -m 755 scripts/mysql.init %{buildroot}%{_initddir}/%{daemon_name}
4b7078
%endif
4b7078
4b7078
# helper scripts for service starting
4b7078
install -p -m 755 scripts/mysql-prepare-db-dir %{buildroot}%{_libexecdir}/mysql-prepare-db-dir
4b7078
install -p -m 755 scripts/mysql-wait-ready %{buildroot}%{_libexecdir}/mysql-wait-ready
4b7078
install -p -m 755 scripts/mysql-check-socket %{buildroot}%{_libexecdir}/mysql-check-socket
4b7078
install -p -m 755 scripts/mysql-check-upgrade %{buildroot}%{_libexecdir}/mysql-check-upgrade
4b7078
install -p -m 644 scripts/mysql-scripts-common %{buildroot}%{_libexecdir}/mysql-scripts-common
4b7078
4b7078
# Remove libmysqld.a
4b7078
rm -f %{buildroot}%{_libdir}/mysql/libmysqld.a
4b7078
4b7078
# libmysqlclient_r is no more.  Upstream tries to replace it with symlinks
4b7078
# but that really doesn't work (wrong soname in particular).  We'll keep
4b7078
# just the devel libmysqlclient_r.so link, so that rebuilding without any
4b7078
# source change is enough to get rid of dependency on libmysqlclient_r.
4b7078
rm -f %{buildroot}%{_libdir}/mysql/libmysqlclient_r.so*
4b7078
ln -s libmysqlclient.so %{buildroot}%{_libdir}/mysql/libmysqlclient_r.so
4b7078
4b7078
# mysql-test includes one executable that doesn't belong under /usr/share,
4b7078
# so move it and provide a symlink
4b7078
mv %{buildroot}%{_datadir}/mysql-test/lib/My/SafeProcess/my_safe_process %{buildroot}%{_bindir}
4b7078
ln -s ../../../../../bin/my_safe_process %{buildroot}%{_datadir}/mysql-test/lib/My/SafeProcess/my_safe_process
4b7078
4b7078
# should move this to /etc/ ?
4b7078
rm -f %{buildroot}%{_bindir}/mysql_embedded
4b7078
rm -f %{buildroot}%{_libdir}/mysql/*.a
4b7078
rm -f %{buildroot}%{_datadir}/%{name}/binary-configure
4b7078
rm -f %{buildroot}%{_datadir}/%{name}/magic
4b7078
rm -f %{buildroot}%{_datadir}/%{name}/ndb-config-2-node.ini
4b7078
rm -f %{buildroot}%{_datadir}/%{name}/mysql.server
4b7078
rm -f %{buildroot}%{_datadir}/%{name}/mysqld_multi.server
4b7078
rm -f %{buildroot}%{_mandir}/man1/mysql-stress-test.pl.1*
4b7078
rm -f %{buildroot}%{_mandir}/man1/mysql-test-run.pl.1*
4b7078
rm -f %{buildroot}%{_bindir}/mytop
4b7078
4b7078
# put logrotate script where it needs to be
4b7078
mkdir -p %{buildroot}%{logrotateddir}
4b7078
mv %{buildroot}%{_datadir}/%{name}/mysql-log-rotate %{buildroot}%{logrotateddir}/%{daemon_name}
4b7078
chmod 644 %{buildroot}%{logrotateddir}/%{daemon_name}
4b7078
4b7078
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
4b7078
echo "%{_libdir}/mysql" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
4b7078
4b7078
# copy additional docs into build tree so %%doc will find them
4b7078
install -p -m 0644 %{SOURCE5} %{basename:%{SOURCE5}}
4b7078
install -p -m 0644 %{SOURCE6} %{basename:%{SOURCE6}}
4b7078
install -p -m 0644 %{SOURCE7} %{basename:%{SOURCE7}}
4b7078
install -p -m 0644 %{SOURCE16} %{basename:%{SOURCE16}}
4b7078
4b7078
# install the list of skipped tests to be available for user runs
4b7078
install -p -m 0644 mysql-test/rh-skipped-tests.list %{buildroot}%{_datadir}/mysql-test
4b7078
4b7078
# remove unneeded RHEL-4 SELinux stuff
4b7078
rm -rf %{buildroot}%{_datadir}/%{name}/SELinux/
4b7078
4b7078
# remove SysV init script
4b7078
rm -f %{buildroot}%{_sysconfdir}/init.d/mysql
4b7078
4b7078
# remove duplicate logrotate script
4b7078
rm -f %{buildroot}%{_sysconfdir}/logrotate.d/mysql
4b7078
4b7078
# remove solaris files
4b7078
rm -rf %{buildroot}%{_datadir}/%{name}/solaris/
4b7078
4b7078
%if %{without clibrary}
4b7078
rm -rf %{buildroot}%{_libdir}/mysql/libmysqlclient*.so.*
4b7078
rm -rf %{buildroot}%{_sysconfdir}/ld.so.conf.d
4b7078
rm -f %{buildroot}%{_sysconfdir}/my.cnf.d/client.cnf
4b7078
%endif
4b7078
4b7078
%if %{without embedded}
4b7078
rm -f %{buildroot}%{_libdir}/mysql/libmysqld.so*
4b7078
rm -f %{buildroot}%{_bindir}/{mysql_client_test_embedded,mysqltest_embedded}
4b7078
rm -f %{buildroot}%{_mandir}/man1/{mysql_client_test_embedded,mysqltest_embedded}.1*
4b7078
%endif
4b7078
4b7078
%if %{without devel}
4b7078
rm -f %{buildroot}%{_bindir}/mysql_config*
4b7078
rm -rf %{buildroot}%{_includedir}/mysql
4b7078
rm -f %{buildroot}%{_datadir}/aclocal/mysql.m4
4b7078
rm -f %{buildroot}%{_libdir}/mysql/libmysqlclient*.so
4b7078
rm -f %{buildroot}%{_mandir}/man1/mysql_config.1*
4b7078
%endif
4b7078
4b7078
%if %{without client}
4b7078
rm -f %{buildroot}%{_bindir}/{msql2mysql,mysql,mysql_find_rows,\
4b7078
mysql_plugin,mysql_waitpid,mysqlaccess,mysqladmin,mysqlbinlog,mysqlcheck,\
4b7078
mysqldump,mysqlimport,mysqlshow,mysqlslap,my_print_defaults}
4b7078
rm -f %{buildroot}%{_mandir}/man1/{msql2mysql,mysql,mysql_find_rows,\
4b7078
mysql_plugin,mysql_waitpid,mysqlaccess,mysqladmin,mysqlbinlog,mysqlcheck,\
4b7078
mysqldump,mysqlimport,mysqlshow,mysqlslap,my_print_defaults}.1*
4b7078
%endif
4b7078
4b7078
%if %{without connect}
4b7078
rm -f %{buildroot}%{_sysconfdir}/my.cnf.d/connect.cnf
4b7078
%endif
4b7078
4b7078
%if %{without config}
4b7078
rm -f %{buildroot}%{_sysconfdir}/my.cnf
4b7078
rm -f %{buildroot}%{_sysconfdir}/my.cnf.d/mysql-clients.cnf
4b7078
%endif
4b7078
4b7078
%if %{without common}
4b7078
rm -rf %{buildroot}%{_datadir}/%{name}/charsets
4b7078
%endif
4b7078
4b7078
%if %{without errmsg}
4b7078
rm -f %{buildroot}%{_datadir}/%{name}/errmsg-utf8.txt
4b7078
rm -rf %{buildroot}%{_datadir}/%{name}/{english,czech,danish,dutch,estonian,\
4b7078
french,german,greek,hungarian,italian,japanese,korean,norwegian,norwegian-ny,\
4b7078
polish,portuguese,romanian,russian,serbian,slovak,spanish,swedish,ukrainian}
4b7078
%endif
4b7078
4b7078
%if %{without bench}
4b7078
rm -rf %{buildroot}%{_datadir}/sql-bench
4b7078
%endif
4b7078
4b7078
%if %{without test}
4b7078
rm -f %{buildroot}%{_bindir}/{mysql_client_test,my_safe_process}
4b7078
rm -rf %{buildroot}%{_datadir}/mysql-test
4b7078
rm -f %{buildroot}%{_mandir}/man1/mysql_client_test.1*
4b7078
%endif
4b7078
4b7078
%check
4b7078
%if %{with test}
4b7078
%if %runselftest
4b7078
%{?with_init_sysv:LD_LIBRARY_PATH=$(pwd)/unittest/mytap }make test VERBOSE=1
4b7078
# hack to let 32- and 64-bit tests run concurrently on same build machine
4b7078
export MTR_PARALLEL=1
4b7078
# builds might happen at the same host, avoid collision
4b7078
export MTR_BUILD_THREAD=%{__isa_bits}
4b7078
4b7078
# The cmake build scripts don't provide any simple way to control the
4b7078
# options for mysql-test-run, so ignore the make target and just call it
4b7078
# manually.  Nonstandard options chosen are:
4b7078
# --force to continue tests after a failure
4b7078
# no retries please
4b7078
# test SSL with --ssl
4b7078
# skip tests that are listed in rh-skipped-tests.list
4b7078
# avoid redundant test runs with --binlog-format=mixed
4b7078
# increase timeouts to prevent unwanted failures during mass rebuilds
4b7078
(
4b7078
  cd mysql-test
4b7078
  perl ./mysql-test-run.pl --force --retry=0 --ssl \
4b7078
    --skip-test-list=rh-skipped-tests.list \
4b7078
    --suite-timeout=720 --testcase-timeout=30 \
4b7078
    --mysqld=--binlog-format=mixed --force-restart \
4b7078
    --shutdown-timeout=60 --max-test-fail=0
4b7078
  # cmake build scripts will install the var cruft if left alone :-(
4b7078
  rm -rf var
4b7078
)
4b7078
%endif
4b7078
%endif
4b7078
4b7078
%pre server
4b7078
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
4b7078
/usr/sbin/useradd -M -N -g mysql -o -r -d %{mysqluserhome} -s /sbin/nologin \
4b7078
  -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
4b7078
4b7078
%if %{with clibrary}
4b7078
%post libs -p /sbin/ldconfig
4b7078
%endif
4b7078
4b7078
%if %{with embedded}
4b7078
%post embedded -p /sbin/ldconfig
4b7078
%endif
4b7078
4b7078
%post server
4b7078
%if %{with init_systemd}
4b7078
%systemd_post %{daemon_name}.service
4b7078
%endif
4b7078
%if %{with init_sysv}
4b7078
if [ $1 = 1 ]; then
4b7078
    /sbin/chkconfig --add %{daemon_name}
4b7078
fi
4b7078
%endif
4b7078
/bin/chmod 0755 %{dbdatadir}
4b7078
4b7078
%preun server
4b7078
%if %{with init_systemd}
4b7078
%systemd_preun %{daemon_name}.service
4b7078
%endif
4b7078
%if %{with init_sysv}
4b7078
if [ $1 = 0 ]; then
4b7078
    /sbin/service %{daemon_name} stop >/dev/null 2>&1
4b7078
    /sbin/chkconfig --del %{daemon_name}
4b7078
fi
4b7078
%endif
4b7078
4b7078
%if %{with clibrary}
4b7078
%postun libs -p /sbin/ldconfig
4b7078
%endif
4b7078
4b7078
%if %{with embedded}
4b7078
%postun embedded -p /sbin/ldconfig
4b7078
%endif
4b7078
4b7078
%postun server
4b7078
%if %{with init_systemd}
4b7078
%systemd_postun_with_restart %{daemon_name}.service
4b7078
%endif
4b7078
%if %{with init_sysv}
4b7078
if [ $1 -ge 1 ]; then
4b7078
    /sbin/service %{daemon_name} condrestart >/dev/null 2>&1 || :
4b7078
fi
4b7078
%endif
4b7078
4b7078
%if %{with client}
4b7078
%files
4b7078
%{_bindir}/msql2mysql
4b7078
%{_bindir}/mysql
4b7078
%{_bindir}/mysql_find_rows
4b7078
%{_bindir}/mysql_plugin
4b7078
%{_bindir}/mysql_waitpid
4b7078
%{_bindir}/mysqlaccess
4b7078
%{_bindir}/mysqladmin
4b7078
%{_bindir}/mysqlbinlog
4b7078
%{_bindir}/mysqlcheck
4b7078
%{_bindir}/mysqldump
4b7078
%{_bindir}/mysqlimport
4b7078
%{_bindir}/mysqlshow
4b7078
%{_bindir}/mysqlslap
4b7078
%{_bindir}/my_print_defaults
4b7078
4b7078
%{_mandir}/man1/msql2mysql.1*
4b7078
%{_mandir}/man1/mysql.1*
4b7078
%{_mandir}/man1/mysql_find_rows.1*
4b7078
%{_mandir}/man1/mysql_plugin.1*
4b7078
%{_mandir}/man1/mysql_waitpid.1*
4b7078
%{_mandir}/man1/mysqlaccess.1*
4b7078
%{_mandir}/man1/mysqladmin.1*
4b7078
%{_mandir}/man1/mysqlbinlog.1*
4b7078
%{_mandir}/man1/mysqlcheck.1*
4b7078
%{_mandir}/man1/mysqldump.1*
4b7078
%{_mandir}/man1/mysqlimport.1*
4b7078
%{_mandir}/man1/mysqlshow.1*
4b7078
%{_mandir}/man1/mysqlslap.1*
4b7078
%{_mandir}/man1/my_print_defaults.1*
4b7078
%endif
4b7078
4b7078
%if %{with clibrary}
4b7078
%files libs
4b7078
%dir %{_libdir}/mysql
4b7078
%{_libdir}/mysql/libmysqlclient.so.*
4b7078
%{_libdir}/mysql/plugin/dialog.so
4b7078
%{_libdir}/mysql/plugin/mysql_clear_password.so
4b7078
%{_sysconfdir}/ld.so.conf.d/*
4b7078
%config(noreplace) %{_sysconfdir}/my.cnf.d/client.cnf
4b7078
%endif
4b7078
4b7078
%if %{with config}
4b7078
%files config
4b7078
# although the default my.cnf contains only server settings, we put it in the
4b7078
# common package because it can be used for client settings too.
4b7078
%config(noreplace) %{_sysconfdir}/my.cnf
4b7078
%dir %{_sysconfdir}/my.cnf.d
4b7078
%config(noreplace) %{_sysconfdir}/my.cnf.d/mysql-clients.cnf
4b7078
%endif
4b7078
4b7078
%if %{with common}
4b7078
%files common
4b7078
%doc README COPYING COPYING.LESSER README.mysql-license README.mysql-docs
4b7078
%doc storage/innobase/COPYING.Percona storage/innobase/COPYING.Google
4b7078
%dir %{_datadir}/%{name}
4b7078
%{_datadir}/%{name}/charsets
4b7078
%endif
4b7078
4b7078
%if %{with errmsg}
4b7078
%files errmsg
4b7078
%{_datadir}/%{name}/errmsg-utf8.txt
4b7078
%{_datadir}/%{name}/english
4b7078
%lang(cs) %{_datadir}/%{name}/czech
4b7078
%lang(da) %{_datadir}/%{name}/danish
4b7078
%lang(nl) %{_datadir}/%{name}/dutch
4b7078
%lang(et) %{_datadir}/%{name}/estonian
4b7078
%lang(fr) %{_datadir}/%{name}/french
4b7078
%lang(de) %{_datadir}/%{name}/german
4b7078
%lang(el) %{_datadir}/%{name}/greek
4b7078
%lang(hu) %{_datadir}/%{name}/hungarian
4b7078
%lang(it) %{_datadir}/%{name}/italian
4b7078
%lang(ja) %{_datadir}/%{name}/japanese
4b7078
%lang(ko) %{_datadir}/%{name}/korean
4b7078
%lang(no) %{_datadir}/%{name}/norwegian
4b7078
%lang(no) %{_datadir}/%{name}/norwegian-ny
4b7078
%lang(pl) %{_datadir}/%{name}/polish
4b7078
%lang(pt) %{_datadir}/%{name}/portuguese
4b7078
%lang(ro) %{_datadir}/%{name}/romanian
4b7078
%lang(ru) %{_datadir}/%{name}/russian
4b7078
%lang(sr) %{_datadir}/%{name}/serbian
4b7078
%lang(sk) %{_datadir}/%{name}/slovak
4b7078
%lang(es) %{_datadir}/%{name}/spanish
4b7078
%lang(sv) %{_datadir}/%{name}/swedish
4b7078
%lang(uk) %{_datadir}/%{name}/ukrainian
4b7078
%endif
4b7078
4b7078
%files server
4b7078
%doc README.mysql-cnf
4b7078
4b7078
%{_bindir}/aria_chk
4b7078
%{_bindir}/aria_dump_log
4b7078
%{_bindir}/aria_ftdump
4b7078
%{_bindir}/aria_pack
4b7078
%{_bindir}/aria_read_log
4b7078
%{_bindir}/myisamchk
4b7078
%{_bindir}/myisam_ftdump
4b7078
%{_bindir}/myisamlog
4b7078
%{_bindir}/myisampack
4b7078
%{_bindir}/mysql_convert_table_format
4b7078
%{_bindir}/mysql_fix_extensions
4b7078
%{_bindir}/mysql_install_db
4b7078
%{_bindir}/mysql_secure_installation
4b7078
%{_bindir}/mysql_setpermission
4b7078
%{_bindir}/mysql_tzinfo_to_sql
4b7078
%{_bindir}/mysql_upgrade
4b7078
%{_bindir}/mysql_zap
4b7078
%{_bindir}/mysqlbug
4b7078
%{_bindir}/mysqldumpslow
4b7078
%{_bindir}/mysqld_multi
4b7078
%{_bindir}/mysqld_safe
4b7078
%{_bindir}/mysqlhotcopy
4b7078
%{_bindir}/mysqltest
4b7078
%{_bindir}/innochecksum
4b7078
%{_bindir}/perror
4b7078
%{_bindir}/replace
4b7078
%{_bindir}/resolve_stack_dump
4b7078
%{_bindir}/resolveip
4b7078
%{?with_tokudb:%{_bindir}/tokuftdump}
4b7078
4b7078
%config(noreplace) %{_sysconfdir}/my.cnf.d/server.cnf
4b7078
%{?with_tokudb:%config(noreplace) %{_sysconfdir}/my.cnf.d/tokudb.cnf}
4b7078
4b7078
%{_libexecdir}/mysqld
4b7078
4b7078
%{_libdir}/mysql/INFO_SRC
4b7078
%{_libdir}/mysql/INFO_BIN
4b7078
%if %{without common}
4b7078
%dir %{_datadir}/%{name}
4b7078
%endif
4b7078
4b7078
%{_libdir}/mysql/plugin
4b7078
%{?with_oqgraph:%exclude %{_libdir}/mysql/plugin/ha_oqgraph.so}
4b7078
%{?with_connect:%exclude %{_libdir}/mysql/plugin/ha_connect.so}
4b7078
%exclude %{_libdir}/mysql/plugin/dialog.so
4b7078
%exclude %{_libdir}/mysql/plugin/mysql_clear_password.so
4b7078
4b7078
%{_mandir}/man1/aria_chk.1.gz
4b7078
%{_mandir}/man1/aria_dump_log.1.gz
4b7078
%{_mandir}/man1/aria_ftdump.1.gz
4b7078
%{_mandir}/man1/aria_pack.1.gz
4b7078
%{_mandir}/man1/aria_read_log.1.gz
4b7078
%{_mandir}/man1/myisamchk.1*
4b7078
%{_mandir}/man1/myisamlog.1*
4b7078
%{_mandir}/man1/myisampack.1*
4b7078
%{_mandir}/man1/mysql_convert_table_format.1*
4b7078
%{_mandir}/man1/myisam_ftdump.1*
4b7078
%{_mandir}/man1/mysql.server.1*
4b7078
%{_mandir}/man1/mysql_fix_extensions.1*
4b7078
%{_mandir}/man1/mysql_install_db.1*
4b7078
%{_mandir}/man1/mysql_secure_installation.1*
4b7078
%{_mandir}/man1/mysql_upgrade.1*
4b7078
%{_mandir}/man1/mysql_zap.1*
4b7078
%{_mandir}/man1/mysqlbug.1*
4b7078
%{_mandir}/man1/mysqldumpslow.1*
4b7078
%{_mandir}/man1/mysqld_multi.1*
4b7078
%{_mandir}/man1/mysqld_safe.1*
4b7078
%{_mandir}/man1/mysqlhotcopy.1*
4b7078
%{_mandir}/man1/mysql_setpermission.1*
4b7078
%{_mandir}/man1/mysqltest.1*
4b7078
%{_mandir}/man1/innochecksum.1*
4b7078
%{_mandir}/man1/perror.1*
4b7078
%{_mandir}/man1/replace.1*
4b7078
%{_mandir}/man1/resolve_stack_dump.1*
4b7078
%{_mandir}/man1/resolveip.1*
4b7078
%{_mandir}/man1/mysql_tzinfo_to_sql.1*
4b7078
%{_mandir}/man8/mysqld.8*
4b7078
4b7078
%{_datadir}/%{name}/fill_help_tables.sql
4b7078
%{_datadir}/%{name}/install_spider.sql
4b7078
%{_datadir}/%{name}/mysql_system_tables.sql
4b7078
%{_datadir}/%{name}/mysql_system_tables_data.sql
4b7078
%{_datadir}/%{name}/mysql_test_data_timezone.sql
4b7078
%{_datadir}/%{name}/mysql_performance_tables.sql
4b7078
%{?with_mroonga:%{_datadir}/%{name}/mroonga/install.sql}
4b7078
%{?with_mroonga:%{_datadir}/%{name}/mroonga/uninstall.sql}
4b7078
%{_datadir}/%{name}/my-*.cnf
4b7078
4b7078
%{?with_init_systemd:%{_unitdir}/%{daemon_name}.service}
4b7078
%{?with_init_sysv:%{_initddir}/%{daemon_name}}
4b7078
%{_libexecdir}/mysql-prepare-db-dir
4b7078
%{_libexecdir}/mysql-wait-ready
4b7078
%{_libexecdir}/mysql-check-socket
4b7078
%{_libexecdir}/mysql-check-upgrade
4b7078
%{_libexecdir}/mysql-scripts-common
4b7078
4b7078
%{?with_init_systemd:%{_tmpfilesdir}/%{name}.conf}
4b7078
%attr(0755,mysql,mysql) %dir %{_localstatedir}/run/%{daemon_name}
4b7078
%attr(0755,mysql,mysql) %dir %{dbdatadir}
4b7078
%attr(0750,mysql,mysql) %dir %{logfiledir}
4b7078
%attr(0640,mysql,mysql) %config %ghost %verify(not md5 size mtime) %{logfile}
4b7078
%config(noreplace) %{logrotateddir}/%{daemon_name}
4b7078
4b7078
%if %{with oqgraph}
4b7078
%files oqgraph-engine
4b7078
%config(noreplace) %{_sysconfdir}/my.cnf.d/oqgraph.cnf
4b7078
%{_libdir}/mysql/plugin/ha_oqgraph.so
4b7078
%endif
4b7078
4b7078
%if %{with connect}
4b7078
%files connect-engine
4b7078
%config(noreplace) %{_sysconfdir}/my.cnf.d/connect.cnf
4b7078
%{_libdir}/mysql/plugin/ha_connect.so
4b7078
%endif
4b7078
4b7078
%if %{with devel}
4b7078
%files devel
4b7078
%{_bindir}/mysql_config
4b7078
%{_bindir}/mysql_config-%{__isa_bits}
4b7078
%{_includedir}/mysql
4b7078
%{_datadir}/aclocal/mysql.m4
4b7078
%{_libdir}/mysql/libmysqlclient.so
4b7078
%{_libdir}/mysql/libmysqlclient_r.so
4b7078
%{_mandir}/man1/mysql_config.1*
4b7078
%endif
4b7078
4b7078
%if %{with embedded}
4b7078
%files embedded
4b7078
%{_libdir}/mysql/libmysqld.so.*
4b7078
4b7078
%files embedded-devel
4b7078
%{_libdir}/mysql/libmysqld.so
4b7078
%{_bindir}/mysql_client_test_embedded
4b7078
%{_bindir}/mysqltest_embedded
4b7078
%{_mandir}/man1/mysql_client_test_embedded.1*
4b7078
%{_mandir}/man1/mysqltest_embedded.1*
4b7078
%endif
4b7078
4b7078
%if %{with bench}
4b7078
%files bench
4b7078
%{_datadir}/sql-bench
4b7078
%endif
4b7078
4b7078
%if %{with test}
4b7078
%files test
4b7078
%{_bindir}/mysql_client_test
4b7078
%{_bindir}/my_safe_process
4b7078
%attr(-,mysql,mysql) %{_datadir}/mysql-test
4b7078
%{_mandir}/man1/mysql_client_test.1*
4b7078
%endif
4b7078
4b7078
%changelog
4b7078
* Fri Dec 05 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.15-3
4b7078
- Rework usage of macros and use macros defined in the meta package
4b7078
  Remove some compatibility artefacts
4b7078
- Fix macros paths in my.cnf
4b7078
- Create old location for pid file if it remained in my.cnf
4b7078
- Disable failing tests connect.mrr, connect.updelx2 on ppc and s390
4b7078
4b7078
* Fri Dec 05 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.15-2
4b7078
- Merging changes from Fedora and upgrading to 10.0.15
4b7078
4b7078
* Thu Nov 27 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.15-1
4b7078
- Update to 10.0.15
4b7078
4b7078
* Thu Nov 20 2014 Jan Stanek <jstanek@redhat.com> - 1:10.0.14-8
4b7078
- Applied upstream fix for mysql_config --cflags output.
4b7078
  Resolves: #1160845
4b7078
4b7078
* Fri Oct 24 2014 Jan Stanek <jstanek@redhat.com> - 1:10.0.14-7
4b7078
- Fixed compat service file.
4b7078
  Resolves: #1155700
4b7078
4b7078
* Mon Oct 13 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-6
4b7078
- Remove bundled cmd-line-utils
4b7078
  Related: #1079637
4b7078
- Move mysqlimport man page to proper package
4b7078
- Disable main.key_cache test on s390
4b7078
  Releated: #1149647
4b7078
4b7078
* Wed Oct 08 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-5
4b7078
- Disable tests connect.part_file, connect.part_table
4b7078
  and connect.updelx
4b7078
  Related: #1149647
4b7078
4b7078
* Wed Oct 01 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-4
4b7078
- Add bcond_without mysql_names
4b7078
  Use more correct path when deleting mysql logrotate script
4b7078
4b7078
* Wed Oct 01 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-3
4b7078
- Build with system libedit
4b7078
  Resolves: #1079637
4b7078
4b7078
* Mon Sep 29 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-2
4b7078
- Add with_debug option
4b7078
4b7078
* Mon Sep 29 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-1
4b7078
- Update to 10.0.14
4b7078
4b7078
* Wed Sep 24 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-8
4b7078
- Move connect engine to a separate package
4b7078
  Rename oqgraph engine to align with upstream packages
4b7078
- Move some files to correspond with MariaDB upstream packages
4b7078
  client.cnf into -libs, mysql_plugin and msql2mysql into base,
4b7078
  tokuftdump and aria_* into -server, errmsg-utf8.txt into -errmsg
4b7078
- Remove duplicate cnf files packaged using %%doc
4b7078
- Check upgrade script added to warn about need for mysql_upgrade
4b7078
4b7078
* Wed Sep 24 2014 Matej Muzila <mmuzila@redhat.com> - 1:10.0.13-7
4b7078
- Client related libraries moved from mariadb-server to mariadb-libs
4b7078
  Related: #1138843
4b7078
4b7078
* Mon Sep 08 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-6
4b7078
- Disable vcol_supported_sql_funcs_myisam test on all arches
4b7078
  Related: #1096787
4b7078
- Install systemd service file on RHEL-7+
4b7078
  Server requires any mysql package, so it should be fine with older client
4b7078
4b7078
* Thu Sep 04 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-5
4b7078
- Fix paths in mysql_install_db script
4b7078
  Resolves: #1134328
4b7078
- Use %%cmake macro
4b7078
4b7078
* Tue Aug 19 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-4
4b7078
- Build config subpackage everytime
4b7078
- Disable failing tests: innodb_simulate_comp_failures_small, key_cache
4b7078
  rhbz#1096787
4b7078
4b7078
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:10.0.13-3
4b7078
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4b7078
4b7078
* Thu Aug 14 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-2
4b7078
- Include mysqld_unit only if required; enable tokudb in f20-
4b7078
4b7078
* Wed Aug 13 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-1
4b7078
- Rebase to version 10.0.13
4b7078
4b7078
* Tue Aug 12 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-8
4b7078
- Introduce -config subpackage and ship base config files here
4b7078
4b7078
* Tue Aug  5 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-7
4b7078
- Adopt changes from mysql, thanks Bjorn Munch <bjorn.munch@oracle.com>
4b7078
4b7078
* Mon Jul 28 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-6
4b7078
- Use explicit sysconfdir
4b7078
- Absolut path for default value for pid file and error log
4b7078
4b7078
* Tue Jul 22 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-5
4b7078
- Hardcoded paths removed to work fine in chroot
4b7078
- Spec rewrite to be more similar to oterh MySQL implementations
4b7078
- Use variable for daemon unit name
4b7078
- Include SysV init script if built on older system
4b7078
- Add possibility to not ship some sub-packages
4b7078
4b7078
* Mon Jul 21 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-4
4b7078
- Reformating spec and removing unnecessary snippets
4b7078
4b7078
* Tue Jul 15 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-3
4b7078
- Enable OQGRAPH engine and package it as a sub-package
4b7078
- Add support for TokuDB engine for x86_64 (currently still disabled)
4b7078
- Re-enable tokudb_innodb_xa_crash again, seems to be fixed now
4b7078
- Drop superfluous -libs and -embedded ldconfig deps (thanks Ville Skyttä)
4b7078
- Separate -lib and -common sub-packages
4b7078
- Require /etc/my.cnf instead of shipping it
4b7078
- Include README.mysql-cnf
4b7078
- Multilib support re-worked
4b7078
- Introduce new option with_mysqld_unit
4b7078
- Removed obsolete mysql-cluster, the package should already be removed
4b7078
- Improve error message when log file is not writable
4b7078
- Compile all binaries with full RELRO (RHBZ#1092548)
4b7078
- Use modern symbol filtering with compatible backup
4b7078
- Add more groupnames for server's my.cnf
4b7078
- Error messages now provided by a separate package (thanks Alexander Barkov)
4b7078
- Expand paths in helper scripts using cmake
4b7078
4b7078
* Wed Jun 18 2014 Mikko Tiihonen <mikko.tiihonen@iki.fi> - 1:10.0.12-2
4b7078
- Use -fno-delete-null-pointer-checks to avoid segfaults with gcc 4.9
4b7078
4b7078
* Tue Jun 17 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.12-1
4b7078
- Rebase to version 10.0.12
4b7078
4b7078
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:10.0.11-5
4b7078
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4b7078
4b7078
* Tue Jun  3 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.11-4
4b7078
- rebuild with tests failing on different arches disabled (#1096787)
4b7078
4b7078
* Thu May 29 2014 Dan Horák <dan[at]danny.cz> - 1:10.0.11-2
4b7078
- rebuild with tests failing on big endian arches disabled (#1096787)
4b7078
4b7078
* Wed May 14 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.11-1
4b7078
- Rebase to version 10.0.11
4b7078
4b7078
* Mon May 05 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.10-3
4b7078
- Script for socket check enhanced
4b7078
4b7078
* Thu Apr 10 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.10-2
4b7078
- use system pcre library
4b7078
4b7078
* Thu Apr 10 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.10-1
4b7078
- Rebase to version 10.0.10
4b7078
4b7078
* Wed Mar 12 2014 Honza Horak <hhorak@redhat.com> - 1:5.5.36-2
4b7078
- Server crashes on SQL select containing more group by and left join statements using innodb tables
4b7078
  Resolves: #1065676
4b7078
- Fix paths in helper scripts
4b7078
- Move language files into mariadb directory
4b7078
4b7078
* Thu Mar 06 2014 Honza Horak <hhorak@redhat.com> - 1:5.5.36-1
4b7078
- Rebase to 5.5.36
4b7078
  https://kb.askmonty.org/en/mariadb-5536-changelog/
4b7078
4b7078
* Tue Feb 25 2014 Honza Horak <hhorak@redhat.com> 1:5.5.35-5
4b7078
- Daemon helper scripts sanity changes and spec files clean-up
4b7078
4b7078
* Tue Feb 11 2014 Honza Horak <hhorak@redhat.com> 1:5.5.35-4
4b7078
- Fix typo in mysqld.service
4b7078
  Resolves: #1063981
4b7078
4b7078
* Wed Feb  5 2014 Honza Horak <hhorak@redhat.com> 1:5.5.35-3
4b7078
- Do not touch the log file in post script, so it does not get wrong owner
4b7078
  Resolves: #1061045
4b7078
4b7078
* Thu Jan 30 2014 Honza Horak <hhorak@redhat.com> 1:5.5.35-1
4b7078
- Rebase to 5.5.35
4b7078
  https://kb.askmonty.org/en/mariadb-5535-changelog/
4b7078
  Also fixes: CVE-2014-0001, CVE-2014-0412, CVE-2014-0437, CVE-2013-5908,
4b7078
  CVE-2014-0420, CVE-2014-0393, CVE-2013-5891, CVE-2014-0386, CVE-2014-0401,
4b7078
  CVE-2014-0402
4b7078
  Resolves: #1054043
4b7078
  Resolves: #1059546
4b7078
4b7078
* Tue Jan 14 2014 Honza Horak <hhorak@redhat.com> - 1:5.5.34-9
4b7078
- Adopt compatible system versioning
4b7078
  Related: #1045013
4b7078
- Use compatibility mysqld.service instead of link
4b7078
  Related: #1014311
4b7078
4b7078
* Mon Jan 13 2014 Rex Dieter <rdieter@fedoraproject.org> 1:5.5.34-8
4b7078
- move mysql_config alternatives scriptlets to -devel too
4b7078
4b7078
* Fri Jan 10 2014 Honza Horak <hhorak@redhat.com> 1:5.5.34-7
4b7078
- Build with -O3 on ppc64
4b7078
  Related: #1051069
4b7078
- Move mysql_config to -devel sub-package and remove Require: mariadb
4b7078
  Related: #1050920
4b7078
4b7078
* Fri Jan 10 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> 1:5.5.34-6
4b7078
- Disable main.gis-precise test also for AArch64
4b7078
- Disable perfschema.func_file_io and perfschema.func_mutex for AArch64
4b7078
  (like it is done for 32-bit ARM)
4b7078
4b7078
* Fri Jan 10 2014 Honza Horak <hhorak@redhat.com> 1:5.5.34-5
4b7078
- Clean all non-needed doc files properly
4b7078
4b7078
* Wed Jan  8 2014 Honza Horak <hhorak@redhat.com> 1:5.5.34-4
4b7078
- Read socketfile location in mariadb-prepare-db-dir script
4b7078
4b7078
* Mon Jan  6 2014 Honza Horak <hhorak@redhat.com> 1:5.5.34-3
4b7078
- Don't test EDH-RSA-DES-CBC-SHA cipher, it seems to be removed from openssl
4b7078
  which now makes mariadb/mysql FTBFS because openssl_1 test fails
4b7078
  Related: #1044565
4b7078
- Use upstream's layout for symbols version in client library
4b7078
  Related: #1045013
4b7078
- Check if socket file is not being used by another process at a time
4b7078
  of starting the service
4b7078
  Related: #1045435
4b7078
- Use %%ghost directive for the log file
4b7078
  Related: 1043501
4b7078
4b7078
* Wed Nov 27 2013 Honza Horak <hhorak@redhat.com> 1:5.5.34-2
4b7078
- Fix mariadb-wait-ready script
4b7078
4b7078
* Fri Nov 22 2013 Honza Horak <hhorak@redhat.com> 1:5.5.34-1
4b7078
- Rebase to 5.5.34
4b7078
4b7078
* Mon Nov  4 2013 Honza Horak <hhorak@redhat.com> 1:5.5.33a-4
4b7078
- Fix spec file to be ready for backport by Oden Eriksson
4b7078
  Resolves: #1026404
4b7078
4b7078
* Mon Nov  4 2013 Honza Horak <hhorak@redhat.com> 1:5.5.33a-3
4b7078
- Add pam-devel to build-requires in order to build
4b7078
  Related: #1019945
4b7078
- Check if correct process is running in mysql-wait-ready script
4b7078
  Related: #1026313
4b7078
4b7078
* Mon Oct 14 2013 Honza Horak <hhorak@redhat.com> 1:5.5.33a-2
4b7078
- Turn on test suite
4b7078
4b7078
* Thu Oct 10 2013 Honza Horak <hhorak@redhat.com> 1:5.5.33a-1
4b7078
- Rebase to 5.5.33a
4b7078
  https://kb.askmonty.org/en/mariadb-5533-changelog/
4b7078
  https://kb.askmonty.org/en/mariadb-5533a-changelog/
4b7078
- Enable outfile_loaddata test
4b7078
- Disable tokudb_innodb_xa_crash test
4b7078
4b7078
* Mon Sep  2 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-12
4b7078
- Re-organize my.cnf to include only generic settings
4b7078
  Resolves: #1003115
4b7078
- Move pid file location to /var/run/mariadb
4b7078
- Make mysqld a symlink to mariadb unit file rather than the opposite way
4b7078
  Related: #999589
4b7078
4b7078
* Thu Aug 29 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-11
4b7078
- Move log file into /var/log/mariadb/mariadb.log
4b7078
- Rename logrotate script to mariadb
4b7078
- Resolves: #999589
4b7078
4b7078
* Wed Aug 14 2013 Rex Dieter <rdieter@fedoraproject.org> 1:5.5.32-10
4b7078
- fix alternatives usage
4b7078
4b7078
* Tue Aug 13 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-9
4b7078
- Multilib issues solved by alternatives
4b7078
  Resolves: #986959
4b7078
4b7078
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 1:5.5.32-8
4b7078
- Perl 5.18 rebuild
4b7078
4b7078
* Wed Jul 31 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-7
4b7078
- Do not use login shell for mysql user
4b7078
4b7078
* Tue Jul 30 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-6
4b7078
- Remove unneeded systemd-sysv requires
4b7078
- Provide mysql-compat-server symbol
4b7078
- Create mariadb.service symlink
4b7078
- Fix multilib header location for arm
4b7078
- Enhance documentation in the unit file
4b7078
- Use scriptstub instead of links to avoid multilib conflicts
4b7078
- Add condition for doc placement in F20+
4b7078
4b7078
* Sun Jul 28 2013 Dennis Gilmore <dennis@ausil.us> - 1:5.5.32-5
4b7078
- remove "Requires(pretrans): systemd" since its not possible
4b7078
- when installing mariadb and systemd at the same time. as in a new install
4b7078
4b7078
* Sat Jul 27 2013 Kevin Fenzi <kevin@scrye.com> 1:5.5.32-4
4b7078
- Set rpm doc macro to install docs in unversioned dir
4b7078
4b7078
* Fri Jul 26 2013 Dennis Gilmore <dennis@ausil.us> 1:5.5.32-3
4b7078
- add Requires(pre) on systemd for the server package
4b7078
4b7078
* Tue Jul 23 2013 Dennis Gilmore <dennis@ausil.us> 1:5.5.32-2
4b7078
- replace systemd-units requires with systemd
4b7078
- remove solaris files
4b7078
4b7078
* Fri Jul 19 2013 Honza Horak <hhorak@redhat.com> 1:5.5.32-1
4b7078
- Rebase to 5.5.32
4b7078
  https://kb.askmonty.org/en/mariadb-5532-changelog/
4b7078
- Clean-up un-necessary systemd snippets
4b7078
4b7078
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1:5.5.31-7
4b7078
- Perl 5.18 rebuild
4b7078
4b7078
* Mon Jul  1 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-6
4b7078
- Test suite params enhanced to decrease server condition influence
4b7078
- Fix misleading error message when uninstalling built-in plugins
4b7078
  Related: #966873
4b7078
4b7078
* Thu Jun 27 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-5
4b7078
- Apply fixes found by Coverity static analysis tool
4b7078
4b7078
* Wed Jun 19 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-4
4b7078
- Do not use pretrans scriptlet, which doesn't work in anaconda
4b7078
  Resolves: #975348
4b7078
4b7078
* Fri Jun 14 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-3
4b7078
- Explicitly enable mysqld if it was enabled in the beginning
4b7078
  of the transaction.
4b7078
4b7078
* Thu Jun 13 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-2
4b7078
- Apply man page fix from Jan Stanek
4b7078
4b7078
* Fri May 24 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-1
4b7078
- Rebase to 5.5.31
4b7078
  https://kb.askmonty.org/en/mariadb-5531-changelog/
4b7078
- Preserve time-stamps in case of installed files
4b7078
- Use /var/tmp instead of /tmp, since the later is using tmpfs,
4b7078
  which can cause problems
4b7078
  Resolves: #962087
4b7078
- Fix test suite requirements
4b7078
4b7078
* Sun May  5 2013 Honza Horak <hhorak@redhat.com> 1:5.5.30-2
4b7078
- Remove mytop utility, which is packaged separately
4b7078
- Resolve multilib conflicts in mysql/private/config.h
4b7078
4b7078
* Fri Mar 22 2013 Honza Horak <hhorak@redhat.com> 1:5.5.30-1
4b7078
- Rebase to 5.5.30
4b7078
  https://kb.askmonty.org/en/mariadb-5530-changelog/
4b7078
4b7078
* Fri Mar 22 2013 Honza Horak <hhorak@redhat.com> 1:5.5.29-11
4b7078
- Obsolete MySQL since it is now renamed to community-mysql
4b7078
- Remove real- virtual names
4b7078
4b7078
* Thu Mar 21 2013 Honza Horak <hhorak@redhat.com> 1:5.5.29-10
4b7078
- Adding epoch to have higher priority than other mysql implementations
4b7078
  when comes to provider comparison
4b7078
4b7078
* Wed Mar 13 2013 Honza Horak <hhorak@redhat.com> 5.5.29-9
4b7078
- Let mariadb-embedded-devel conflict with MySQL-embedded-devel
4b7078
- Adjust mariadb-sortbuffer.patch to correspond with upstream patch
4b7078
4b7078
* Mon Mar  4 2013 Honza Horak <hhorak@redhat.com> 5.5.29-8
4b7078
- Mask expected warnings about setrlimit in test suite
4b7078
4b7078
* Thu Feb 28 2013 Honza Horak <hhorak@redhat.com> 5.5.29-7
4b7078
- Use configured prefix value instead of guessing basedir
4b7078
  in mysql_config
4b7078
Resolves: #916189
4b7078
- Export dynamic columns and non-blocking API functions documented
4b7078
  by upstream
4b7078
4b7078
* Wed Feb 27 2013 Honza Horak <hhorak@redhat.com> 5.5.29-6
4b7078
- Fix sort_buffer_length option type
4b7078
4b7078
* Wed Feb 13 2013 Honza Horak <hhorak@redhat.com> 5.5.29-5
4b7078
- Suppress warnings in tests and skip tests also on ppc64p7
4b7078
4b7078
* Tue Feb 12 2013 Honza Horak <hhorak@redhat.com> 5.5.29-4
4b7078
- Suppress warning in tests on ppc
4b7078
- Enable fixed index_merge_myisam test case
4b7078
4b7078
* Thu Feb 07 2013 Honza Horak <hhorak@redhat.com> 5.5.29-3
4b7078
- Packages need to provide also %%_isa version of mysql package
4b7078
- Provide own symbols with real- prefix to distinguish from mysql
4b7078
  unambiguously
4b7078
- Fix format for buffer size in error messages (MDEV-4156)
4b7078
- Disable some tests that fail on ppc and s390
4b7078
- Conflict only with real-mysql, otherwise mariadb conflicts with ourself
4b7078
4b7078
* Tue Feb 05 2013 Honza Horak <hhorak@redhat.com> 5.5.29-2
4b7078
- Let mariadb-libs to own /etc/my.cnf.d
4b7078
4b7078
* Thu Jan 31 2013 Honza Horak <hhorak@redhat.com> 5.5.29-1
4b7078
- Rebase to 5.5.29
4b7078
  https://kb.askmonty.org/en/mariadb-5529-changelog/
4b7078
- Fix inaccurate default for socket location in mysqld-wait-ready
4b7078
  Resolves: #890535
4b7078
4b7078
* Thu Jan 31 2013 Honza Horak <hhorak@redhat.com> 5.5.28a-8
4b7078
- Enable obsoleting mysql
4b7078
4b7078
* Wed Jan 30 2013 Honza Horak <hhorak@redhat.com> 5.5.28a-7
4b7078
- Adding necessary hacks for perl dependency checking, rpm is still
4b7078
  not wise enough
4b7078
- Namespace sanity re-added for symbol default_charset_info
4b7078
4b7078
* Mon Jan 28 2013 Honza Horak <hhorak@redhat.com> 5.5.28a-6
4b7078
- Removed %%{_isa} from provides/obsoletes, which doesn't allow
4b7078
  proper obsoleting
4b7078
- Do not obsolete mysql at the time of testing
4b7078
4b7078
* Thu Jan 10 2013 Honza Horak <hhorak@redhat.com> 5.5.28a-5
4b7078
- Added licenses LGPLv2 and BSD
4b7078
- Removed wrong usage of %%{epoch}
4b7078
- Test-suite is run in %%check
4b7078
- Removed perl dependency checking adjustment, rpm seems to be smart enough
4b7078
- Other minor spec file fixes
4b7078
4b7078
* Tue Dec 18 2012 Honza Horak <hhorak@redhat.com> 5.5.28a-4
4b7078
- Packaging of MariaDB based on MySQL package
4b7078