Blame SPECS/mariadb.spec

584bfd
# SCL stuff
584bfd
%{?scl:%scl_package mariadb}
584bfd
%{!?scl:%global pkg_name %{name}}
584bfd
584bfd
# Prefix that is used for patches
584bfd
%global pkgnamepatch mariadb
584bfd
584bfd
# Regression tests may take a long time (many cores recommended), skip them by
584bfd
%{!?runselftest:%global runselftest 1}
584bfd
584bfd
# Set this to 1 to see which tests fail, but 0 on production ready build
584bfd
%{!?ignore_testsuite_result:%global ignore_testsuite_result 0}
584bfd
584bfd
# In f20+ use unversioned docdirs, otherwise the old versioned one
584bfd
%global _pkgdocdirname %{pkg_name}%{!?_pkgdocdir:-%{version}}
584bfd
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{pkg_name}-%{version}}
584bfd
584bfd
# By default, patch(1) creates backup files when chunks apply with offsets.
584bfd
# Turn that off to ensure such files don't get included in RPMs (cf bz#884755).
584bfd
%global _default_patch_flags --no-backup-if-mismatch
584bfd
584bfd
584bfd
584bfd
# TokuDB engine
584bfd
#   https://mariadb.com/kb/en/mariadb/tokudb/
584bfd
#   TokuDB engine is available only for x86_64
584bfd
# Mroonga engine
584bfd
#   https://mariadb.com/kb/en/mariadb/about-mroonga/
584bfd
#   Current version in MariaDB, 7.07, only supports the x86_64
584bfd
#   Mroonga upstream warns about using 32-bit package: http://mroonga.org/docs/install.html
584bfd
# RocksDB engine
584bfd
#   https://mariadb.com/kb/en/library/myrocks-supported-platforms/
584bfd
#   RocksB engine is available only for x86_64
584bfd
#   RocksDB may be built with jemalloc, if specified in CMake
584bfd
# Cassandra engine
584bfd
#   Experimental version of the Cassandra storage engine
584bfd
#   The tests needs running cassandra server
584bfd
#   Do not build it for now
abe1a0
%ifarch x86_64
abe1a0
%if 0%{?fedora}
584bfd
%bcond_without tokudb
584bfd
%bcond_without mroonga
584bfd
%bcond_without rocksdb
584bfd
%bcond_with cassandra
584bfd
%else
584bfd
%bcond_with tokudb
584bfd
%bcond_with mroonga
584bfd
%bcond_with rocksdb
584bfd
%bcond_with cassandra
584bfd
%endif
abe1a0
%endif
584bfd
584bfd
# The Open Query GRAPH engine (OQGRAPH) is a computation engine allowing
584bfd
# hierarchies and more complex graph structures to be handled in a relational fashion
584bfd
%bcond_without oqgraph
584bfd
584bfd
# Other plugins
584bfd
%if 0%{?fedora}
584bfd
%bcond_without cracklib
584bfd
%bcond_without sphinx
584bfd
%else
584bfd
%bcond_with cracklib
584bfd
%bcond_with sphinx
584bfd
%endif
19da60
%bcond_without connect
584bfd
%bcond_without gssapi
584bfd
584bfd
# For some use cases we do not need some parts of the package. Set to "...with" to exclude
19da60
%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?scl:1}
584bfd
%bcond_with    clibrary
584bfd
%else
584bfd
%bcond_without clibrary
584bfd
%endif
584bfd
%if 0%{?scl:1}
584bfd
%bcond_with embedded
584bfd
%else
584bfd
%bcond_without embedded
584bfd
%endif
584bfd
%bcond_without devel
584bfd
%bcond_without client
584bfd
%bcond_without common
584bfd
%bcond_without errmsg
584bfd
%bcond_without test
584bfd
%bcond_without galera
584bfd
%bcond_without backup
584bfd
%if 0%{?fedora}
584bfd
%bcond_without bench
584bfd
%else
584bfd
%bcond_with bench
584bfd
%endif
584bfd
584bfd
# When there is already another package that ships /etc/my.cnf,
584bfd
# rather include it than ship the file again, since conflicts between
584bfd
# those files may create issues
584bfd
%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
584bfd
%bcond_with config
584bfd
%else
584bfd
%bcond_without config
584bfd
%endif
584bfd
584bfd
# For deep debugging we need to build binaries with extra debug info
584bfd
%bcond_with    debug
584bfd
584bfd
# Page compression algorithms for InnoDB & XtraDB
584bfd
%bcond_without lz4
584bfd
584bfd
584bfd
584bfd
# MariaDB 10.0 and later requires pcre >= 8.35, otherwise we need to use
584bfd
# the bundled library, since the package cannot be build with older version
584bfd
%if 0%{?fedora} || 0%{?rhel} > 7
584bfd
%bcond_without unbundled_pcre
584bfd
%else
584bfd
%bcond_with unbundled_pcre
abe1a0
%global pcre_bundled_version 8.45
abe1a0
%endif
abe1a0
abe1a0
# Use main python interpretter version
abe1a0
%if 0%{?fedora} || 0%{?rhel} > 7
abe1a0
%define __python /usr/bin/python3
abe1a0
%else
abe1a0
%define __python /usr/bin/python2
584bfd
%endif
584bfd
584bfd
# Include systemd files
584bfd
%global daemon_name %{name}
584bfd
%global daemondir %{_unitdir}
584bfd
%global daemon_no_prefix %{pkg_name}
584bfd
%global mysqld_pid_dir %{name}
584bfd
584bfd
# We define some system's well known locations here so we can use them easily
584bfd
# later when building to another location (like SCL)
584bfd
%if 0%{?scl:1}
584bfd
%global logrotateddir %{_root_sysconfdir}/logrotate.d
584bfd
%else
584bfd
%global logrotateddir %{_sysconfdir}/logrotate.d
584bfd
%endif
584bfd
%global logfiledir %{_localstatedir}/log/%{daemon_no_prefix}
584bfd
%global logfile %{logfiledir}/%{daemon_no_prefix}.log
584bfd
# Directory for storing pid file
584bfd
%global pidfiledir %{_rundir}/%{mysqld_pid_dir}
584bfd
# Defining where database data live
584bfd
%global dbdatadir %{_localstatedir}/lib/mysql
584bfd
# Home directory of mysql user should be same for all packages that create it
584bfd
%global mysqluserhome /var/lib/mysql
584bfd
584bfd
584bfd
584bfd
# Provide mysql names for compatibility
584bfd
%if 0%{?fedora}
584bfd
%bcond_without mysql_names
584bfd
%else
584bfd
%bcond_with    mysql_names
584bfd
%endif
584bfd
# Explicit conflicts with mysql
584bfd
%if 0%{?scl:1}
584bfd
%bcond_with    conflicts
584bfd
%else
584bfd
%bcond_without conflicts
584bfd
%endif
584bfd
584bfd
584bfd
584bfd
# Make long macros shorter
584bfd
%global sameevr   %{epoch}:%{version}-%{release}
584bfd
584bfd
%if 0%{?scl:1}
584bfd
%global scl_upper %{lua:print(string.upper(string.gsub(rpm.expand("%{scl}"), "-", "_")))}
584bfd
%endif
584bfd
584bfd
Name:             %{?scl_prefix}mariadb
363386
Version:          10.3.35
363386
Release:          1%{?with_debug:.debug}%{?dist}
584bfd
Epoch:            3
584bfd
584bfd
Summary:          A very fast and robust SQL database server
584bfd
URL:              http://mariadb.org
584bfd
# Exceptions allow client libraries to be linked with most open source SW, not only GPL code. See README.mysql-license
584bfd
License:          GPLv2 with exceptions and LGPLv2 and BSD
584bfd
584bfd
Source0:          https://downloads.mariadb.org/interstitial/mariadb-%{version}/source/mariadb-%{version}.tar.gz
584bfd
Source2:          mysql_config_multilib.sh
584bfd
Source3:          my.cnf.in
584bfd
Source6:          README.mysql-docs
584bfd
Source7:          README.mysql-license
584bfd
Source8:          README.wsrep_sst_rsync_tunnel
584bfd
Source10:         mysql.tmpfiles.d.in
584bfd
Source11:         mysql.service.in
584bfd
Source12:         mysql-prepare-db-dir.sh
584bfd
Source14:         mysql-check-socket.sh
584bfd
Source15:         mysql-scripts-common.sh
584bfd
Source16:         mysql-check-upgrade.sh
584bfd
Source18:         mysql@.service.in
584bfd
Source40:         daemon-scl-helper.sh
584bfd
Source50:         rh-skipped-tests-base.list
584bfd
Source51:         rh-skipped-tests-arm.list
584bfd
Source52:         rh-skipped-tests-s390.list
584bfd
Source53:         rh-skipped-tests-ppc.list
584bfd
# Proposed upstream: https://jira.mariadb.org/browse/MDEV-12442
584bfd
# General upstream response was slightly positive
584bfd
Source70:         clustercheck.sh
584bfd
Source71:         LICENSE.clustercheck
584bfd
# Upstream said: "Generally MariaDB has more allows to allow for xtradb sst mechanism".
584bfd
# https://jira.mariadb.org/browse/MDEV-12646
584bfd
Source72:         mariadb-server-galera.te
584bfd
# Script to support encrypted rsync transfers when SST is required between nodes.
584bfd
# https://github.com/dciabrin/wsrep_sst_rsync_tunnel/blob/master/wsrep_sst_rsync_tunnel
584bfd
Source73:         wsrep_sst_rsync_tunnel
584bfd
584bfd
#   Patch4: Red Hat distributions specific logrotate fix
584bfd
#   it would be big unexpected change, if we start shipping it now. Better wait for MariaDB 10.2
584bfd
Patch4:           %{pkgnamepatch}-logrotate.patch
584bfd
#   Patch7: add to the CMake file all files where we want macros to be expanded
584bfd
Patch7:           %{pkgnamepatch}-scripts.patch
584bfd
#   Patch9: pre-configure to comply with guidelines
584bfd
Patch9:           %{pkgnamepatch}-ownsetup.patch
584bfd
#   Patch10: Add RHEL8 required security
584bfd
Patch10:          %{pkgnamepatch}-annocheck.patch
584bfd
#   Patch12: Use PCDIR CMake option, if configured
584bfd
Patch12:          %{pkgnamepatch}-pcdir.patch
19da60
#   Patch13: Fix cipher name in the SSL Cipher name test
19da60
Patch13:          %{pkgnamepatch}-ssl-cipher-tests.patch
19da60
#   Patch14: Fix Spider code on armv7hl; https://jira.mariadb.org/browse/MDEV-18737
19da60
Patch14:          %{pkgnamepatch}-spider_on_armv7hl.patch
19da60
#   Patch15: Remove the '-Werror' flag so the debug build won't crash on random warnings
19da60
Patch15:          %{pkgnamepatch}-debug_build.patch
19da60
584bfd
584bfd
# Patches specific for scl
584bfd
Patch90:          %{pkgnamepatch}-scl-env-check.patch
584bfd
584bfd
BuildRequires:    cmake gcc-c++
584bfd
BuildRequires:    multilib-rpm-config
584bfd
BuildRequires:    selinux-policy-devel
584bfd
BuildRequires:    systemd systemd-devel
584bfd
584bfd
# Page compression algorithms for InnoDB & XtraDB
584bfd
BuildRequires:    zlib-devel
584bfd
%{?with_lz4:BuildRequires:    lz4-devel}
584bfd
584bfd
# asynchornous operations stuff; needed also for wsrep API
584bfd
BuildRequires:    libaio-devel
584bfd
# commands history features
584bfd
BuildRequires:    libedit-devel
584bfd
# CLI graphic; needed also for wsrep API
584bfd
BuildRequires:    ncurses-devel
584bfd
# debugging stuff
584bfd
BuildRequires:    systemtap-sdt-devel
584bfd
# Bison SQL parser; needed also for wsrep API
584bfd
BuildRequires:    bison bison-devel
584bfd
584bfd
# auth_pam.so plugin will be build if pam-devel is installed
584bfd
BuildRequires:    pam-devel
584bfd
# use either new enough version of pcre or provide bundles(pcre)
584bfd
%{?with_unbundled_pcre:BuildRequires: pcre-devel >= 8.35 pkgconf}
584bfd
%{!?with_unbundled_pcre:Provides: bundled(pcre) = %{pcre_bundled_version}}
584bfd
# Few utilities needs Perl
584bfd
%if 0%{?fedora} || 0%{?rhel} > 7
584bfd
BuildRequires:    perl-interpreter
584bfd
BuildRequires:    perl-generators
584bfd
%endif
584bfd
# Some tests requires python
584bfd
%if 0%{?scl:1}
584bfd
BuildRequires:    python
584bfd
%else
584bfd
BuildRequires:    python3
584bfd
%endif
584bfd
# Tests requires time and ps and some perl modules
584bfd
BuildRequires:    procps
584bfd
BuildRequires:    time
584bfd
BuildRequires:    perl(Env)
584bfd
BuildRequires:    perl(Exporter)
584bfd
BuildRequires:    perl(Fcntl)
584bfd
BuildRequires:    perl(File::Temp)
584bfd
BuildRequires:    perl(Data::Dumper)
584bfd
BuildRequires:    perl(Getopt::Long)
584bfd
BuildRequires:    perl(IPC::Open3)
584bfd
BuildRequires:    perl(Memoize)
584bfd
BuildRequires:    perl(Socket)
584bfd
BuildRequires:    perl(Sys::Hostname)
584bfd
BuildRequires:    perl(Test::More)
584bfd
BuildRequires:    perl(Time::HiRes)
584bfd
BuildRequires:    perl(Symbol)
584bfd
# for running some openssl tests rhbz#1189180
584bfd
BuildRequires:    openssl openssl-devel
584bfd
584bfd
Requires:         bash coreutils grep
584bfd
584bfd
Requires:         %{name}-common%{?_isa} = %{sameevr}
584bfd
584bfd
%if %{with clibrary}
584bfd
# Explicit EVR requirement for -libs is needed for RHBZ#1406320
584bfd
Requires:         %{name}-libs%{?_isa} = %{sameevr}
584bfd
%else
584bfd
%if ! 0%{?scl:1}
584bfd
# If not built with client library in this package, use connector-c
584bfd
Requires:         mariadb-connector-c >= 3.0
584bfd
%endif
584bfd
%endif
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql = %{sameevr}
584bfd
Provides:         mysql%{?_isa} = %{sameevr}
584bfd
Provides:         mysql-compat-client = %{sameevr}
584bfd
Provides:         mysql-compat-client%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
584bfd
%if ! 0%{?scl:1}
584bfd
Suggests:         %{name}-server%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
584bfd
# MySQL (with caps) is upstream's spelling of their own RPMs for mysql
584bfd
%{?with_conflicts:Conflicts:        mysql}
584bfd
584bfd
# obsoletion of mariadb-galera
584bfd
Provides: mariadb-galera = %{sameevr}
584bfd
584bfd
# Filtering: https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering
584bfd
%global __requires_exclude ^perl\\((hostnames|lib::mtr|lib::v1|mtr_|My::)
584bfd
%global __provides_exclude_from ^(%{_datadir}/(mysql|mysql-test)/.*|%{_libdir}/%{pkg_name}/plugin/.*\\.so)$
584bfd
584bfd
# Define license macro if not present
584bfd
%{!?_licensedir:%global license %doc}
584bfd
584bfd
%description
584bfd
MariaDB is a community developed branch of MySQL - a multi-user, multi-threaded
584bfd
SQL database server. It is a client/server implementation consisting of
584bfd
a server daemon (mysqld) and many different client programs and libraries.
584bfd
The base package contains the standard MariaDB/MySQL client programs and
584bfd
generic MySQL files.
584bfd
584bfd
584bfd
%if %{with clibrary}
584bfd
%package          libs
584bfd
Summary:          The shared libraries required for MariaDB/MySQL clients
584bfd
Requires:         %{name}-common%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql-libs = %{sameevr}
584bfd
Provides:         mysql-libs%{?_isa} = %{sameevr}
584bfd
%endif # mysql_names
584bfd
584bfd
%description      libs
584bfd
The mariadb-libs package provides the essential shared libraries for any
584bfd
MariaDB/MySQL client program or interface. You will need to install this
584bfd
package to use any other MariaDB package or any clients that need to connect
584bfd
to a MariaDB/MySQL server.
584bfd
%endif #clibrary
584bfd
584bfd
584bfd
# At least main config file /etc/my.cnf is shared for client and server part
584bfd
# Since we want to support combination of different client and server
584bfd
# implementations (e.g. mariadb library and mysql server),
584bfd
# we need the config file(s) to be in a separate package, so no extra packages
584bfd
# are pulled, because these would likely conflict.
584bfd
# More specifically, the dependency on the main configuration file (/etc/my.cnf)
584bfd
# is supposed to be defined as Requires: /etc/my.cnf rather than requiring
584bfd
# a specific package, so installer app can choose whatever package fits to
584bfd
# the transaction.
584bfd
%if %{with config}
584bfd
%package          config
584bfd
Summary:          The config files required by server and client
584bfd
584bfd
%description      config
584bfd
The package provides the config file my.cnf and my.cnf.d directory used by any
584bfd
MariaDB or MySQL program. You will need to install this package to use any
584bfd
other MariaDB or MySQL package if the config files are not provided in the
584bfd
package itself.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with common}
584bfd
%package          common
584bfd
Summary:          The shared files required by server and client
584bfd
Requires:         %{_sysconfdir}/my.cnf
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
584bfd
# obsoletion of mariadb-galera-common
584bfd
Provides: mariadb-galera-common = %{sameevr}
584bfd
584bfd
%if %{without clibrary} && ! 0%{?scl:1}
584bfd
Obsoletes: %{name}-libs <= %{sameevr}
584bfd
%endif
584bfd
584bfd
%description      common
584bfd
The package provides the essential shared files for any MariaDB program.
584bfd
You will need to install this package to use any other MariaDB package.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with errmsg}
584bfd
%package          errmsg
584bfd
Summary:          The error messages files required by server and embedded
584bfd
Requires:         %{name}-common%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
584bfd
%description      errmsg
584bfd
The package provides error messages files for the MariaDB daemon and the
584bfd
embedded server. You will need to install this package to use any of those
584bfd
MariaDB packages.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with galera}
584bfd
%package          server-galera
584bfd
Summary:          The configuration files and scripts for galera replication
584bfd
Requires:         %{name}-common%{?_isa} = %{sameevr}
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
Requires:         %{?scl_prefix}galera >= 25.3.3
584bfd
Requires(post):   libselinux-utils
584bfd
%if 0%{?rhel} > 7
584bfd
Requires(post):   policycoreutils-python-utils
584bfd
%else
584bfd
Requires(post):   policycoreutils-python
584bfd
%endif
584bfd
# wsrep requirements
584bfd
Requires:         lsof
584bfd
# Default wsrep_sst_method
584bfd
Requires:         rsync
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
584bfd
# obsoletion of mariadb-galera-server
584bfd
Provides: mariadb-galera-server = %{sameevr}
584bfd
584bfd
%description      server-galera
584bfd
MariaDB is a multi-user, multi-threaded SQL database server. It is a
584bfd
client/server implementation consisting of a server daemon (mysqld)
584bfd
and many different client programs and libraries. This package contains
584bfd
the MariaDB server and some accompanying files and directories.
584bfd
MariaDB is a community developed branch of MySQL.
584bfd
%endif
584bfd
584bfd
584bfd
%package          server
584bfd
Summary:          The MariaDB server and related files
584bfd
584bfd
# note: no version here = %%{version}-%%{release}
584bfd
%if %{with mysql_names}
584bfd
Requires:         mysql-compat-client%{?_isa}
584bfd
Requires:         mysql%{?_isa}
584bfd
%if 0%{?scl:1}
584bfd
Requires:         %{name}%{?_isa}
584bfd
%else
584bfd
Recommends:       %{name}%{?_isa}
584bfd
%endif
584bfd
%else
584bfd
Requires:         %{name}%{?_isa}
584bfd
%endif
584bfd
Requires:         %{name}-common%{?_isa} = %{sameevr}
584bfd
Requires:         %{name}-errmsg%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
%if ! 0%{?scl:1}
584bfd
Recommends:       %{name}-server-utils%{?_isa} = %{sameevr}
584bfd
Recommends:       %{name}-backup%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
%if ! 0%{?scl:1}
584bfd
%{?with_cracklib:Recommends:       %{name}-cracklib-password-check%{?_isa} = %{sameevr}}
584bfd
%{?with_gssapi:Recommends:       %{name}-gssapi-server%{?_isa} = %{sameevr}}
584bfd
%{?with_rocksdb:Recommends:       %{name}-rocksdb-engine%{?_isa} = %{sameevr}}
584bfd
%{?with_tokudb:Recommends:       %{name}-tokudb-engine%{?_isa} = %{sameevr}}
584bfd
%endif
584bfd
%if ! 0%{?scl:1}
584bfd
%{?with_cracklib:Requires:       %{name}-cracklib-password-check%{?_isa} = %{sameevr}}
584bfd
%endif
584bfd
584bfd
%if ! 0%{?scl:1}
584bfd
Suggests:         mytop
584bfd
Suggests:         logrotate
584bfd
%endif
584bfd
584bfd
Requires:         %{_sysconfdir}/my.cnf
584bfd
Requires:         %{_sysconfdir}/my.cnf.d
584bfd
584bfd
# for fuser in mysql-check-socket
584bfd
Requires:         psmisc
584bfd
584bfd
Requires:         coreutils
584bfd
Requires(pre):    /usr/sbin/useradd
584bfd
# We require this to be present for %%{_tmpfilesdir}
584bfd
Requires:         systemd
584bfd
# Make sure it's there when scriptlets run, too
584bfd
%{?systemd_requires}
584bfd
# RHBZ#1496131; use 'iproute' instead of 'net-tools'
584bfd
Requires:         iproute
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql-server = %{sameevr}
584bfd
Provides:         mysql-server%{?_isa} = %{sameevr}
584bfd
Provides:         mysql-compat-server = %{sameevr}
584bfd
Provides:         mysql-compat-server%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
%{?with_conflicts:Conflicts:        mysql-server}
584bfd
584bfd
%description      server
584bfd
MariaDB is a multi-user, multi-threaded SQL database server. It is a
584bfd
client/server implementation consisting of a server daemon (mysqld)
584bfd
and many different client programs and libraries. This package contains
584bfd
the MariaDB server and some accompanying files and directories.
584bfd
MariaDB is a community developed branch of MySQL.
584bfd
584bfd
584bfd
%if %{with oqgraph}
584bfd
%package          oqgraph-engine
584bfd
Summary:          The Open Query GRAPH engine for MariaDB
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
# boost and Judy required for oograph
584bfd
BuildRequires:    boost-devel
584bfd
BuildRequires:    %{?scl_prefix}Judy-devel
584bfd
584bfd
%description      oqgraph-engine
584bfd
The package provides Open Query GRAPH engine (OQGRAPH) as plugin for MariaDB
584bfd
database server. OQGRAPH is a computation engine allowing hierarchies and more
584bfd
complex graph structures to be handled in a relational fashion. In a nutshell,
584bfd
tree structures and friend-of-a-friend style searches can now be done using
584bfd
standard SQL syntax, and results joined onto other tables.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with connect}
584bfd
%package          connect-engine
584bfd
Summary:          The CONNECT storage engine for MariaDB
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
19da60
# As per https://jira.mariadb.org/browse/MDEV-21450
19da60
BuildRequires:    libxml2-devel
19da60
19da60
584bfd
%description      connect-engine
584bfd
The CONNECT storage engine enables MariaDB to access external local or
584bfd
remote data (MED). This is done by defining tables based on different data
584bfd
types, in particular files in various formats, data extracted from other DBMS
584bfd
or products (such as Excel), or data retrieved from the environment
584bfd
(for example DIR, WMI, and MAC tables).
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with backup}
584bfd
%package          backup
584bfd
Summary:          The mariabackup tool for physical online backups
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
BuildRequires:    libarchive-devel
584bfd
584bfd
%description      backup
584bfd
MariaDB Backup is an open source tool provided by MariaDB for performing
584bfd
physical online backups of InnoDB, Aria and MyISAM tables.
584bfd
For InnoDB, "hot online" backups are possible.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with rocksdb}
584bfd
%package          rocksdb-engine
584bfd
Summary:          The RocksDB storage engine for MariaDB
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
Provides:         bundled(rocksdb)
584bfd
584bfd
%description      rocksdb-engine
584bfd
The RocksDB storage engine is used for high performance servers on SSD drives.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with tokudb}
584bfd
%package          tokudb-engine
584bfd
Summary:          The TokuDB storage engine for MariaDB
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
BuildRequires:    jemalloc-devel
584bfd
Requires:         jemalloc
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
584bfd
%description      tokudb-engine
584bfd
The TokuDB storage engine from Percona.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with cracklib}
584bfd
%package          cracklib-password-check
584bfd
Summary:          The password strength checking plugin
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
BuildRequires:    cracklib-dicts cracklib-devel
584bfd
Requires:         cracklib-dicts
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
584bfd
%description      cracklib-password-check
584bfd
CrackLib is a password strength checking library. It is installed by default
584bfd
in many Linux distributions and is invoked automatically (by pam_cracklib.so)
584bfd
whenever the user login password is modified.
584bfd
Now, with the cracklib_password_check password validation plugin, one can
584bfd
also use it to check MariaDB account passwords.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with gssapi}
584bfd
%package          gssapi-server
584bfd
Summary:          GSSAPI authentication plugin for server
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
BuildRequires:    krb5-devel
584bfd
584bfd
%description      gssapi-server
584bfd
GSSAPI authentication server-side plugin for MariaDB for passwordless login.
584bfd
This plugin includes support for Kerberos on Unix.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with sphinx}
584bfd
%package          sphinx-engine
584bfd
Summary:          The Sphinx storage engine for MariaDB
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
BuildRequires:    sphinx libsphinxclient libsphinxclient-devel
584bfd
Requires:         sphinx libsphinxclient
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
584bfd
%description      sphinx-engine
584bfd
The Sphinx storage engine for MariaDB.
584bfd
%endif
584bfd
584bfd
%if %{with cassandra}
584bfd
%package          cassandra-engine
584bfd
Summary:          The Cassandra storage engine for MariaDB - EXPERIMENTAL VERSION
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
BuildRequires:    cassandra thrift-devel
584bfd
584bfd
%description      cassandra-engine
584bfd
The Cassandra storage engine for MariaDB. EXPERIMENTAL VERSION!
584bfd
%endif
584bfd
584bfd
584bfd
%package          server-utils
584bfd
Summary:          Non-essential server utilities for MariaDB/MySQL applications
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql-perl = %{sameevr}
584bfd
%endif
584bfd
# mysqlhotcopy needs DBI/DBD support
584bfd
Requires:         perl(DBI) perl(DBD::mysql)
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
584bfd
%description      server-utils
584bfd
This package contains all non-essential server utilities and scripts for
584bfd
managing databases. It also contains all utilities requiring Perl and it is
584bfd
the only MariaDB sub-package, except test subpackage, that depends on Perl.
584bfd
584bfd
584bfd
%if %{with devel}
584bfd
%package          devel
584bfd
Summary:          Files for development of MariaDB/MySQL applications
584bfd
%{?with_clibrary:Requires:         %{name}-libs%{?_isa} = %{sameevr}}
584bfd
Requires:         openssl-devel
584bfd
%if %{without clibrary} && ! 0%{?scl:1}
584bfd
Requires:         mariadb-connector-c-devel >= 3.0
584bfd
%endif
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql-devel = %{sameevr}
584bfd
Provides:         mysql-devel%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
%{?with_conflicts:Conflicts:        mysql-devel}
584bfd
584bfd
%description      devel
584bfd
MariaDB is a multi-user, multi-threaded SQL database server.
584bfd
MariaDB is a community developed branch of MySQL.
584bfd
%if %{with clibrary}
584bfd
This package contains everything needed for developing MariaDB/MySQL client
584bfd
and server applications.
584bfd
%else
584bfd
This package contains everything needed for developing MariaDB/MySQL server
584bfd
applications. For developing client applications, use mariadb-connector-c
584bfd
package.
584bfd
%endif
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with embedded}
584bfd
%package          embedded
584bfd
Summary:          MariaDB as an embeddable library
584bfd
Requires:         %{name}-common%{?_isa} = %{sameevr}
584bfd
Requires:         %{name}-errmsg%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql-embedded = %{sameevr}
584bfd
Provides:         mysql-embedded%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
584bfd
%description      embedded
584bfd
MariaDB is a multi-user, multi-threaded SQL database server. This
584bfd
package contains a version of the MariaDB server that can be embedded
584bfd
into a client application instead of running as a separate process.
584bfd
MariaDB is a community developed branch of MySQL.
584bfd
584bfd
584bfd
%package          embedded-devel
584bfd
Summary:          Development files for MariaDB as an embeddable library
584bfd
Requires:         %{name}-embedded%{?_isa} = %{sameevr}
584bfd
Requires:         %{name}-devel%{?_isa} = %{sameevr}
584bfd
# embedded-devel should require libaio-devel (rhbz#1290517)
584bfd
Requires:         libaio-devel
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql-embedded-devel = %{sameevr}
584bfd
Provides:         mysql-embedded-devel%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
%{?with_conflicts:Conflicts:        mysql-embedded-devel}
584bfd
584bfd
%description      embedded-devel
584bfd
MariaDB is a multi-user, multi-threaded SQL database server.
584bfd
MariaDB is a community developed branch of MySQL.
584bfd
This package contains files needed for developing and testing with
584bfd
the embedded version of the MariaDB server.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with bench}
584bfd
%package          bench
584bfd
Summary:          MariaDB benchmark scripts and data
584bfd
Requires:         %{name}%{?_isa} = %{sameevr}
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql-bench = %{sameevr}
584bfd
Provides:         mysql-bench%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
%{?with_conflicts:Conflicts:        mysql-bench}
584bfd
584bfd
%description      bench
584bfd
MariaDB is a multi-user, multi-threaded SQL database server.
584bfd
MariaDB is a community developed branch of MySQL.
584bfd
This package contains benchmark scripts and data for use when benchmarking
584bfd
MariaDB.
584bfd
%endif
584bfd
584bfd
584bfd
%if %{with test}
584bfd
%package          test
584bfd
Summary:          The test suite distributed with MariaDB
584bfd
Requires:         %{name}%{?_isa} = %{sameevr}
584bfd
Requires:         %{name}-common%{?_isa} = %{sameevr}
584bfd
Requires:         %{name}-server%{?_isa} = %{sameevr}
584bfd
Requires:         perl(Env)
584bfd
Requires:         perl(Exporter)
584bfd
Requires:         perl(Fcntl)
584bfd
Requires:         perl(File::Temp)
584bfd
Requires:         perl(Data::Dumper)
584bfd
Requires:         perl(Getopt::Long)
584bfd
Requires:         perl(IPC::Open3)
584bfd
Requires:         perl(Socket)
584bfd
Requires:         perl(Sys::Hostname)
584bfd
Requires:         perl(Test::More)
584bfd
Requires:         perl(Time::HiRes)
584bfd
%{?scl:Requires:%scl_runtime}
584bfd
%{?with_conflicts:Conflicts:        mysql-test}
584bfd
%if %{with mysql_names}
584bfd
Provides:         mysql-test = %{sameevr}
584bfd
Provides:         mysql-test%{?_isa} = %{sameevr}
584bfd
%endif
584bfd
584bfd
%description      test
584bfd
MariaDB is a multi-user, multi-threaded SQL database server.
584bfd
MariaDB is a community developed branch of MySQL.
584bfd
This package contains the regression test suite distributed with the MariaDB
584bfd
sources.
584bfd
%endif
584bfd
584bfd
%if 0%{?scl:1}
584bfd
%scl_syspaths_package -d
584bfd
%scl_syspaths_package config -d
584bfd
%scl_syspaths_package backup -d
584bfd
%scl_syspaths_package server -d
584bfd
%scl_syspaths_package server-utils -d
584bfd
%scl_syspaths_package server-galera -d
584bfd
%endif
584bfd
584bfd
584bfd
%prep
584bfd
%setup -q -n mariadb-%{version}
584bfd
584bfd
# Remove JAR files that upstream puts into tarball
584bfd
find . -name "*.jar" -type f -exec rm --verbose -f {} \;
584bfd
584bfd
%patch4 -p1
584bfd
%patch7 -p1
584bfd
%patch9 -p1
584bfd
%patch10 -p1
584bfd
%patch12 -p1
19da60
%patch13 -p1
19da60
%patch14 -p1
19da60
#%patch15 -p1
584bfd
584bfd
# workaround for upstream bug #56342
584bfd
#rm mysql-test/t/ssl_8k_key-master.opt
584bfd
584bfd
# generate a list of tests that fail, but are not disabled by upstream
584bfd
cat %{SOURCE50} | tee -a mysql-test/unstable-tests
584bfd
584bfd
# disable some tests failing on different architectures
584bfd
%ifarch %{arm} aarch64
584bfd
cat %{SOURCE51} | tee -a mysql-test/unstable-tests
584bfd
%endif
584bfd
584bfd
%ifarch s390 s390x
584bfd
cat %{SOURCE52} | tee -a mysql-test/unstable-tests
584bfd
%endif
584bfd
584bfd
%ifarch ppc ppc64 ppc64p7 ppc64le
584bfd
cat %{SOURCE53} | tee -a mysql-test/unstable-tests
584bfd
%endif
584bfd
584bfd
cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
584bfd
   %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE18} %{SOURCE70} %{SOURCE73} scripts
584bfd
584bfd
%if 0%{?scl:1}
584bfd
%patch90 -p1 -b .p90
584bfd
%endif
584bfd
584bfd
%if %{with galera}
584bfd
# prepare selinux policy
584bfd
mkdir selinux
584bfd
sed 's/mariadb-server-galera/%{name}-server-galera/' %{SOURCE72} > selinux/%{name}-server-galera.te
584bfd
%endif
584bfd
584bfd
584bfd
# Get version of PCRE, that upstream use
584bfd
pcre_maj=`grep '^m4_define(pcre_major' pcre/configure.ac | sed -r 's/^m4_define\(pcre_major, \[([0-9]+)\]\)/\1/'`
584bfd
pcre_min=`grep '^m4_define(pcre_minor' pcre/configure.ac | sed -r 's/^m4_define\(pcre_minor, \[([0-9]+)\]\)/\1/'`
584bfd
584bfd
%if %{without unbundled_pcre}
584bfd
# Check if the PCRE version in macro 'pcre_bundled_version', used in Provides: bundled(...), is the same version as upstream actually bundles
584bfd
if [ %{pcre_bundled_version} != "$pcre_maj.$pcre_min" ]
584bfd
then
584bfd
  echo "\n Error: Bundled PCRE version is not correct. \n\tBundled version number:%{pcre_bundled_version} \n\tUpstream version number: $pcre_maj.$pcre_min\n"
584bfd
  exit 1
584bfd
fi
584bfd
%else
584bfd
# Check if the PCRE version that upstream use, is the same as the one present in system
584bfd
pcre_system_version=`pkgconf %{?scl:%{_root_libdir}}%{!?scl:%{_libdir}}/pkgconfig/libpcre.pc --modversion 2>/dev/null `
584bfd
if [ "$pcre_system_version" != "$pcre_maj.$pcre_min" ]
584bfd
then
584bfd
  echo "\n Warning: Error: Bundled PCRE version is not correct. \n\tSystem version number:$pcre_system_version \n\tUpstream version number: $pcre_maj.$pcre_min\n"
584bfd
fi
584bfd
%endif # PCRE
584bfd
584bfd
584bfd
%if %{without rocksdb}
584bfd
rm -r storage/rocksdb/
584bfd
%endif
584bfd
584bfd
# Remove python scripts remains from tokudb upstream (those files are not used anyway)
584bfd
rm -r storage/tokudb/mysql-test/tokudb/t/*.py
584bfd
584bfd
584bfd
584bfd
%build
584bfd
584bfd
# fail quickly and obviously if user tries to build as root
584bfd
%if %runselftest
584bfd
    if [ x"$(id -u)" = "x0" ]; then
584bfd
        echo "mysql's regression tests fail if run as root."
584bfd
        echo "If you really need to build the RPM as root, use"
584bfd
        echo "--nocheck to skip the regression tests."
584bfd
        exit 1
584bfd
    fi
584bfd
%endif
584bfd
584bfd
%{?scl:scl enable %{scl} %{?dts} - << "EOF"}
584bfd
set -ex
584bfd
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
19da60
584bfd
# force PIC mode so that we can build libmysqld.so
584bfd
CFLAGS="$CFLAGS -fPIC"
584bfd
# Override all optimization flags when making a debug build
584bfd
%{?with_debug: CFLAGS="$CFLAGS -O0 -g"}
584bfd
584bfd
CXXFLAGS="$CFLAGS"
584bfd
export CFLAGS CXXFLAGS
584bfd
584bfd
584bfd
# The INSTALL_xxx macros have to be specified relative to CMAKE_INSTALL_PREFIX
584bfd
# so we can't use %%{_datadir} and so forth here.
584bfd
%cmake . \
584bfd
         -DBUILD_CONFIG=mysql_release \
584bfd
         -DFEATURE_SET="community" \
584bfd
         -DINSTALL_LAYOUT=RPM \
584bfd
         -DDAEMON_NAME="%{daemon_name}" \
584bfd
         -DDAEMON_NO_PREFIX="%{daemon_no_prefix}" \
584bfd
%if 0%{?scl:1}
584bfd
         -DSCL_NAME="%{?scl}" \
584bfd
         -DSCL_NAME_UPPER="%{?scl_upper}" \
584bfd
         -DSCL_SCRIPTS="%{?_scl_scripts}" \
584bfd
%endif
584bfd
         -DLOG_LOCATION="%{logfile}" \
584bfd
         -DPID_FILE_DIR="%{pidfiledir}" \
584bfd
         -DNICE_PROJECT_NAME="MariaDB" \
584bfd
         -DRPM="%{?rhel:rhel%{rhel}}%{!?rhel:fedora%{fedora}}" \
584bfd
         -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
584bfd
         -DINSTALL_SYSCONFDIR="%{_sysconfdir}" \
584bfd
         -DINSTALL_SYSCONF2DIR="%{_sysconfdir}/my.cnf.d" \
584bfd
         -DINSTALL_DOCDIR="share/doc/%{_pkgdocdirname}" \
584bfd
         -DINSTALL_DOCREADMEDIR="share/doc/%{_pkgdocdirname}" \
584bfd
         -DINSTALL_INCLUDEDIR=include/mysql \
584bfd
         -DINSTALL_INFODIR=share/info \
584bfd
         -DINSTALL_LIBDIR="%{_lib}" \
584bfd
         -DINSTALL_MANDIR=share/man \
584bfd
         -DINSTALL_MYSQLSHAREDIR=share/%{pkg_name} \
584bfd
         -DINSTALL_MYSQLTESTDIR=%{?with_test:share/mysql-test}%{!?with_test:} \
584bfd
         -DINSTALL_PLUGINDIR="%{_lib}/%{pkg_name}/plugin" \
584bfd
         -DINSTALL_SBINDIR=libexec \
584bfd
         -DINSTALL_SCRIPTDIR=bin \
584bfd
         -DINSTALL_SQLBENCHDIR=share \
584bfd
         -DINSTALL_SUPPORTFILESDIR=share/%{pkg_name} \
584bfd
         -DINSTALL_PCDIR=%{_lib}/pkgconfig \
584bfd
         -DMYSQL_DATADIR="%{dbdatadir}" \
584bfd
         -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
584bfd
         -DTMPDIR=/var/tmp \
19da60
         -DGRN_DATA_DIR=share/%{name}-server/groonga \
19da60
         -DGROONGA_NORMALIZER_MYSQL_PROJECT_NAME=%{name}-server/groonga-normalizer-mysql \
584bfd
         -DENABLED_LOCAL_INFILE=ON \
584bfd
         -DENABLE_DTRACE=ON \
584bfd
         -DSECURITY_HARDENED=ON \
584bfd
         -DWITH_WSREP=%{?with_galera:ON}%{!?with_galera:OFF} \
584bfd
         -DWITH_INNODB_DISALLOW_WRITES=%{?with_galera:ON}%{!?with_galera:OFF} \
584bfd
         -DWITH_EMBEDDED_SERVER=%{?with_embedded:ON}%{!?with_embedded:OFF} \
584bfd
         -DWITH_MARIABACKUP=%{?with_backup:ON}%{!?with_backup:NO} \
584bfd
         -DWITH_UNIT_TESTS=%{?with_test:ON}%{!?with_test:NO} \
584bfd
         -DCONC_WITH_SSL=%{?with_clibrary:ON}%{!?with_clibrary:NO} \
584bfd
         -DWITH_SSL=system \
584bfd
         -DWITH_ZLIB=system \
19da60
         -DWITH_JEMALLOC=%{?with_tokudb:yes}%{!?with_tokudb:no} \
584bfd
         -DLZ4_LIBS=%{_libdir}/liblz4.so \
19da60
         -DLZ4_LIBS=%{?with_lz4:%{_libdir}/liblz4.so}%{!?with_lz4:} \
584bfd
         -DWITH_INNODB_LZ4=%{?with_lz4:ON}%{!?with_lz4:OFF} \
19da60
         -DWITH_ROCKSDB_LZ4=%{?with_lz4:ON}%{!?with_lz4:OFF} \
584bfd
         -DPLUGIN_MROONGA=%{?with_mroonga:DYNAMIC}%{!?with_mroonga:NO} \
584bfd
         -DPLUGIN_OQGRAPH=%{?with_oqgraph:DYNAMIC}%{!?with_oqgraph:NO} \
584bfd
         -DPLUGIN_CRACKLIB_PASSWORD_CHECK=%{?with_cracklib:DYNAMIC}%{!?with_cracklib:NO} \
584bfd
         -DPLUGIN_ROCKSDB=%{?with_rocksdb:DYNAMIC}%{!?with_rocksdb:NO} \
584bfd
         -DPLUGIN_SPHINX=%{?with_sphinx:DYNAMIC}%{!?with_sphinx:NO} \
584bfd
         -DPLUGIN_TOKUDB=%{?with_tokudb:DYNAMIC}%{!?with_tokudb:NO} \
584bfd
         -DPLUGIN_CONNECT=%{?with_connect:DYNAMIC}%{!?with_connect:NO} \
584bfd
         -DWITH_CASSANDRA=%{?with_cassandra:TRUE}%{!?with_cassandra:FALSE} \
584bfd
         -DPYTHON_SHEBANG=%{__python} \
584bfd
         -DPLUGIN_AWS_KEY_MANAGEMENT=NO \
584bfd
         -DCONNECT_WITH_MONGO=OFF \
584bfd
         -DCONNECT_WITH_JDBC=OFF \
584bfd
%{?with_debug: -DCMAKE_BUILD_TYPE=Debug -DWITH_ASAN=OFF -DWITH_INNODB_EXTRA_DEBUG=ON -DWITH_VALGRIND=ON}
584bfd
584bfd
# Print all Cmake options values
584bfd
# cmake -LAH for List Advanced Help
584bfd
cmake -LA
584bfd
584bfd
make %{?_smp_mflags} VERBOSE=1
584bfd
%{?scl:EOF}
584bfd
584bfd
584bfd
# build selinux policy
584bfd
%if %{with galera}
584bfd
pushd selinux
584bfd
make -f /usr/share/selinux/devel/Makefile %{name}-server-galera.pp
584bfd
%endif
584bfd
584bfd
%install
584bfd
%{?scl:scl enable %{scl} %{?dts} - << "EOF"}
584bfd
set -ex
584bfd
make DESTDIR=%{buildroot} install
584bfd
%{?scl:EOF}
584bfd
584bfd
# multilib header support #1625157
584bfd
for header in mysql/server/my_config.h mysql/server/private/config.h; do
584bfd
%multilib_fix_c_header --file %{_includedir}/$header
584bfd
done
584bfd
584bfd
ln -s mysql_config.1.gz %{buildroot}%{_mandir}/man1/mariadb_config.1.gz
584bfd
584bfd
# multilib support for shell scripts
584bfd
# we only apply this to known Red Hat multilib arches, per bug #181335
584bfd
if [ %multilib_capable ]
584bfd
then
584bfd
mv %{buildroot}%{_bindir}/mysql_config %{buildroot}%{_bindir}/mysql_config-%{__isa_bits}
584bfd
install -p -m 0755 scripts/mysql_config_multilib %{buildroot}%{_bindir}/mysql_config
584bfd
# Copy manual page for multilib mysql_config; https://jira.mariadb.org/browse/MDEV-11961
584bfd
ln -s mysql_config.1 %{buildroot}%{_mandir}/man1/mysql_config-%{__isa_bits}.1
584bfd
fi
584bfd
584bfd
%if %{without clibrary}
584bfd
# We don't ship the client library part in SCL
584bfd
rm %{buildroot}%{_libdir}/pkgconfig/libmariadb.pc
584bfd
%endif
584bfd
584bfd
# install INFO_SRC, INFO_BIN into libdir (upstream thinks these are doc files,
584bfd
# but that's pretty wacko --- see also %%{name}-file-contents.patch)
584bfd
install -p -m 644 Docs/INFO_SRC %{buildroot}%{_libdir}/%{pkg_name}/
584bfd
install -p -m 644 Docs/INFO_BIN %{buildroot}%{_libdir}/%{pkg_name}/
584bfd
rm -r %{buildroot}%{_datadir}/doc/%{_pkgdocdirname}/MariaDB-server-%{version}/
584bfd
584bfd
# Logfile creation
584bfd
mkdir -p %{buildroot}%{logfiledir}
584bfd
chmod 0750 %{buildroot}%{logfiledir}
584bfd
touch %{buildroot}%{logfile}
584bfd
584bfd
# current setting in my.cnf is to use /var/run/mariadb for creating pid file,
584bfd
# however since my.cnf is not updated by RPM if changed, we need to create mysqld
584bfd
# as well because users can have odd settings in their /etc/my.cnf
584bfd
mkdir -p %{buildroot}%{pidfiledir}
584bfd
install -p -m 0755 -d %{buildroot}%{dbdatadir}
584bfd
584bfd
# create directory for socket
584bfd
%{?scl:install -p -m 0755 -d %{buildroot}/var/lib/mysql}
584bfd
584bfd
%if %{with config}
584bfd
install -D -p -m 0644 scripts/my.cnf %{buildroot}%{_sysconfdir}/my.cnf
584bfd
%else
584bfd
rm scripts/my.cnf
584bfd
%endif
584bfd
584bfd
# use different config file name for each variant of server (mariadb / mysql)
584bfd
mv %{buildroot}%{_sysconfdir}/my.cnf.d/server.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/%{pkg_name}-server.cnf
584bfd
584bfd
# Rename sysusers and tmpfiles config files, they should be named after the software they belong to
19da60
mv %{buildroot}%{_sysusersdir}/mariadb.conf %{buildroot}%{_sysusersdir}/%{name}.conf
584bfd
584bfd
# remove SysV init script and a symlink to that, we pack our very own
584bfd
rm %{buildroot}%{_sysconfdir}/init.d/mysql
584bfd
rm %{buildroot}%{_libexecdir}/rcmysql
584bfd
# install systemd unit files and scripts for handling server startup
584bfd
rm -f %{buildroot}%{_unitdir}/%{pkg_name}.service
584bfd
install -D -p -m 644 scripts/mysql.service %{buildroot}%{_unitdir}/%{daemon_name}.service
584bfd
install -D -p -m 644 scripts/mysql@.service %{buildroot}%{_unitdir}/%{daemon_name}@.service
584bfd
# Remove the upstream version
19da60
rm %{buildroot}%{_tmpfilesdir}/mariadb.conf
584bfd
# Install downstream version
584bfd
install -D -p -m 0644 scripts/mysql.tmpfiles.d %{buildroot}%{_tmpfilesdir}/%{name}.conf
584bfd
%if 0%{?mysqld_pid_dir:1}
584bfd
echo "d %{pidfiledir} 0755 mysql mysql -" >>%{buildroot}%{_tmpfilesdir}/%{name}.conf
584bfd
%endif #pid
584bfd
584bfd
# helper scripts for service starting
584bfd
install -p -m 755 scripts/mysql-prepare-db-dir %{buildroot}%{_libexecdir}/mysql-prepare-db-dir
584bfd
install -p -m 755 scripts/mysql-check-socket %{buildroot}%{_libexecdir}/mysql-check-socket
584bfd
install -p -m 755 scripts/mysql-check-upgrade %{buildroot}%{_libexecdir}/mysql-check-upgrade
584bfd
install -p -m 644 scripts/mysql-scripts-common %{buildroot}%{_libexecdir}/mysql-scripts-common
584bfd
584bfd
# daemon helper for fixing SELinux in systemd
584bfd
%if 0%{?scl:1}
584bfd
install -p -m 755 %{SOURCE40} %{buildroot}%{_libexecdir}/mysqld-scl-helper
584bfd
%endif
584bfd
584bfd
# install aditional galera selinux policy
584bfd
%if %{with galera}
584bfd
install -p -m 644 -D selinux/%{name}-server-galera.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/%{name}-server-galera.pp
584bfd
%endif
584bfd
584bfd
%if %{with test}
584bfd
# mysql-test includes one executable that doesn't belong under /usr/share, so move it and provide a symlink
584bfd
mv %{buildroot}%{_datadir}/mysql-test/lib/My/SafeProcess/my_safe_process %{buildroot}%{_bindir}
584bfd
ln -s ../../../../../bin/my_safe_process %{buildroot}%{_datadir}/mysql-test/lib/My/SafeProcess/my_safe_process
584bfd
# Provide symlink expected by RH QA tests
584bfd
ln -s unstable-tests %{buildroot}%{_datadir}/mysql-test/rh-skipped-tests.list
584bfd
%endif
584bfd
584bfd
584bfd
# Client that uses libmysqld embedded server.
584bfd
# Pretty much like normal mysql command line client, but it doesn't require a running mariadb server.
584bfd
%{?with_embedded:rm %{buildroot}%{_bindir}/mysql_embedded}
584bfd
rm %{buildroot}%{_mandir}/man1/mysql_embedded.1*
584bfd
# Static libraries
584bfd
rm %{buildroot}%{_libdir}/*.a
584bfd
# This script creates the MySQL system tables and starts the server.
584bfd
# Upstream says:
584bfd
#   It looks like it's just "mysql_install_db && mysqld_safe"
584bfd
#   I've never heard of anyone using it, I'd say, no need to pack it.
584bfd
rm %{buildroot}%{_datadir}/%{pkg_name}/binary-configure
584bfd
# FS files first-bytes recoginiton
584bfd
# Not updated by upstream since nobody realy use that
584bfd
rm %{buildroot}%{_datadir}/%{pkg_name}/magic
584bfd
584bfd
# Upstream ships them because of, https://jira.mariadb.org/browse/MDEV-10797
584bfd
# In Fedora we use our own systemd unit files and scripts
584bfd
rm %{buildroot}%{_datadir}/%{pkg_name}/mysql.server
584bfd
rm %{buildroot}%{_datadir}/%{pkg_name}/mysqld_multi.server
584bfd
584bfd
# Binary for monitoring MySQL performance
584bfd
# Shipped as a standalona package in Fedora
584bfd
rm %{buildroot}%{_bindir}/mytop
584bfd
584bfd
# put logrotate script where it needs to be
584bfd
mkdir -p %{buildroot}%{logrotateddir}
584bfd
mv %{buildroot}%{_datadir}/%{pkg_name}/mysql-log-rotate %{buildroot}%{logrotateddir}/%{daemon_name}
584bfd
chmod 644 %{buildroot}%{logrotateddir}/%{daemon_name}
584bfd
584bfd
# copy additional docs into build tree so %%doc will find them
584bfd
install -p -m 0644 %{SOURCE6} %{basename:%{SOURCE6}}
584bfd
install -p -m 0644 %{SOURCE7} %{basename:%{SOURCE7}}
584bfd
install -p -m 0644 %{SOURCE8} %{basename:%{SOURCE8}}
584bfd
install -p -m 0644 %{SOURCE16} %{basename:%{SOURCE16}}
584bfd
install -p -m 0644 %{SOURCE71} %{basename:%{SOURCE71}}
584bfd
584bfd
# install galera config file
584bfd
sed -i -r 's|^wsrep_provider=none|wsrep_provider=%{_libdir}/galera/libgalera_smm.so|' support-files/wsrep.cnf
584bfd
install -p -m 0644 support-files/wsrep.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/galera.cnf
584bfd
# install the clustercheck script
584bfd
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
584bfd
touch %{buildroot}%{_sysconfdir}/sysconfig/clustercheck
584bfd
install -p -m 0755 scripts/clustercheck %{buildroot}%{_bindir}/clustercheck
584bfd
584bfd
# for SCL we do not want unprefixed service file
584bfd
%if 0%{?scl:1} && %{with init_systemd}
584bfd
rm %{buildroot}%{_unitdir}/mariadb.service
584bfd
%endif
584bfd
584bfd
# remove duplicate logrotate script
584bfd
rm %{buildroot}%{_sysconfdir}/logrotate.d/mysql
584bfd
# Remove AppArmor files
584bfd
rm -r %{buildroot}%{_datadir}/%{pkg_name}/policy/apparmor
584bfd
19da60
# Buildroot does not have symlink /lib --> /usr/lib
19da60
mv %{buildroot}/%{_lib}/security %{buildroot}%{_libdir}
19da60
19da60
# Move new PAM auth plugin files to the correct SCL locations
19da60
mv %{buildroot}/etc/security %{buildroot}%{_sysconfdir}
19da60
19da60
584bfd
# script without shebang: https://jira.mariadb.org/browse/MDEV-14266
584bfd
chmod -x %{buildroot}%{_datadir}/sql-bench/myisam.cnf
584bfd
584bfd
# Add wsrep_sst_rsync_tunnel script
584bfd
install -p -m 0755 scripts/wsrep_sst_rsync_tunnel %{buildroot}%{_bindir}/wsrep_sst_rsync_tunnel
584bfd
584bfd
# Disable plugins
584bfd
%if %{with gssapi}
584bfd
sed -i 's/^plugin-load-add/#plugin-load-add/' %{buildroot}%{_sysconfdir}/my.cnf.d/auth_gssapi.cnf
584bfd
%endif
584bfd
%if %{with cracklib}
584bfd
sed -i 's/^plugin-load-add/#plugin-load-add/' %{buildroot}%{_sysconfdir}/my.cnf.d/cracklib_password_check.cnf
584bfd
%endif
584bfd
584bfd
%if %{without embedded}
584bfd
rm %{buildroot}%{_mandir}/man1/{mysql_client_test_embedded,mysqltest_embedded}.1*
584bfd
%endif
584bfd
584bfd
584bfd
%if %{without clibrary}
584bfd
rm %{buildroot}%{_sysconfdir}/my.cnf.d/client.cnf
584bfd
# Client library and links
584bfd
rm %{buildroot}%{_libdir}/libmariadb.so.*
584bfd
unlink %{buildroot}%{_libdir}/libmysqlclient.so
584bfd
unlink %{buildroot}%{_libdir}/libmysqlclient_r.so
584bfd
unlink %{buildroot}%{_libdir}/libmariadb.so
584bfd
%if ! 0%{?scl:1}
584bfd
# Client plugins
584bfd
rm %{buildroot}%{_libdir}/%{pkg_name}/plugin/{dialog.so,mysql_clear_password.so,sha256_password.so,auth_gssapi_client.so}
584bfd
%endif
584bfd
%endif
584bfd
584bfd
%if %{without clibrary} || %{without devel}
584bfd
rm %{buildroot}%{_bindir}/mysql_config*
584bfd
rm %{buildroot}%{_bindir}/mariadb_config
584bfd
rm %{buildroot}%{_mandir}/man1/mysql_config*.1*
584bfd
unlink %{buildroot}%{_mandir}/man1/mariadb_config.1*
584bfd
%endif
584bfd
584bfd
%if %{without clibrary} && %{with devel}
584bfd
# This files are already included in mariadb-connector-c
584bfd
rm %{buildroot}%{_includedir}/mysql/mysql_version.h
584bfd
rm %{buildroot}%{_includedir}/mysql/{errmsg.h,ma_list.h,ma_pvio.h,mariadb_com.h,\
584bfd
mariadb_ctype.h,mariadb_dyncol.h,mariadb_stmt.h,mariadb_version.h,ma_tls.h,mysqld_error.h,mysql.h}
584bfd
rm -r %{buildroot}%{_includedir}/mysql/{mariadb,mysql}
584bfd
%endif
584bfd
584bfd
%if %{without devel}
584bfd
rm -r %{buildroot}%{_includedir}/mysql
584bfd
rm %{buildroot}%{_datadir}/aclocal/mysql.m4
584bfd
rm %{buildroot}%{_libdir}/pkgconfig/mariadb.pc
584bfd
%if %{with clibrary}
584bfd
rm %{buildroot}%{_libdir}/libmariadb*.so
584bfd
unlink %{buildroot}%{_libdir}/libmysqlclient.so
584bfd
unlink %{buildroot}%{_libdir}/libmysqlclient_r.so
584bfd
%endif # clibrary
584bfd
%endif # devel
584bfd
584bfd
%if %{without client}
584bfd
rm %{buildroot}%{_bindir}/{msql2mysql,mysql,mysql_find_rows,\
584bfd
mysql_plugin,mysql_waitpid,mysqlaccess,mysqladmin,mysqlbinlog,mysqlcheck,\
584bfd
mysqldump,mysqlimport,mysqlshow,mysqlslap}
584bfd
rm %{buildroot}%{_mandir}/man1/{msql2mysql,mysql,mysql_find_rows,\
584bfd
mysql_plugin,mysql_waitpid,mysqlaccess,mysqladmin,mysqlbinlog,mysqlcheck,\
584bfd
mysqldump,mysqlimport,mysqlshow,mysqlslap}.1*
584bfd
rm %{buildroot}%{_sysconfdir}/my.cnf.d/mysql-clients.cnf
584bfd
%endif
584bfd
584bfd
%if %{without tokudb}
584bfd
%else
19da60
%if 0%{?fedora} || 0%{?rhel} > 7
19da60
# Move the upstream file to the correct location
19da60
mv %{buildroot}/etc/systemd/system/mariadb.service.d/tokudb.conf %{buildroot}%{_unitdir}/mariadb.service.d/tokudb.conf
584bfd
%endif
584bfd
# Move to better location, systemd config files has to be in /lib/
584bfd
mv %{buildroot}%{_sysconfdir}/systemd/system/mariadb.service.d %{buildroot}%{_unitdir}
584bfd
%endif
584bfd
584bfd
%if %{without config}
584bfd
rm %{buildroot}%{_sysconfdir}/my.cnf
584bfd
%endif
584bfd
584bfd
%if %{without common}
584bfd
rm -r %{buildroot}%{_datadir}/%{pkg_name}/charsets
584bfd
%endif
584bfd
584bfd
%if %{without gssapi}
584bfd
rm -r %{buildroot}/etc/my.cnf.d/auth_gssapi.cnf
584bfd
%endif
584bfd
584bfd
%if %{without errmsg}
584bfd
rm %{buildroot}%{_datadir}/%{pkg_name}/errmsg-utf8.txt
584bfd
rm -r %{buildroot}%{_datadir}/%{pkg_name}/{english,czech,danish,dutch,estonian,\
584bfd
french,german,greek,hungarian,italian,japanese,korean,norwegian,norwegian-ny,\
584bfd
polish,portuguese,romanian,russian,serbian,slovak,spanish,swedish,ukrainian,hindi}
584bfd
%endif
584bfd
584bfd
%if %{without bench}
584bfd
rm -r %{buildroot}%{_datadir}/sql-bench
584bfd
%endif
584bfd
584bfd
%if %{without test}
584bfd
%if %{with embedded}
584bfd
rm %{buildroot}%{_bindir}/{mysqltest_embedded,mysql_client_test_embedded}
584bfd
rm %{buildroot}%{_mandir}/man1/{mysqltest_embedded,mysql_client_test_embedded}.1*
584bfd
%endif # embedded
584bfd
rm %{buildroot}%{_bindir}/test-connect-t
584bfd
rm %{buildroot}%{_bindir}/{mysql_client_test,mysqltest}
584bfd
rm %{buildroot}%{_mandir}/man1/{mysql_client_test,my_safe_process,mysqltest}.1*
584bfd
rm %{buildroot}%{_mandir}/man1/{mysql-test-run,mysql-stress-test}.pl.1*
584bfd
%endif # test
584bfd
584bfd
%if %{without galera}
584bfd
rm %{buildroot}%{_sysconfdir}/my.cnf.d/galera.cnf
584bfd
rm %{buildroot}%{_sysconfdir}/sysconfig/clustercheck
584bfd
rm %{buildroot}%{_bindir}/{clustercheck,galera_new_cluster}
584bfd
rm %{buildroot}%{_bindir}/galera_recovery
584bfd
rm %{buildroot}%{_datadir}/%{pkg_name}/systemd/use_galera_new_cluster.conf
584bfd
%endif
584bfd
584bfd
%if %{without rocksdb}
584bfd
rm %{buildroot}%{_mandir}/man1/mysql_ldb.1*
584bfd
%endif
584bfd
584bfd
%if 0%{?scl:1}
584bfd
# generate a configuration file for daemon
584bfd
cat << EOF | tee -a %{buildroot}%{?_scl_scripts}/service-environment
584bfd
# Services are started in a fresh environment without any influence of user's
584bfd
# environment (like environment variable values). As a consequence,
584bfd
# information of all enabled collections will be lost during service start up.
584bfd
# If user needs to run a service under any software collection enabled, this
584bfd
# collection has to be written into %{scl_upper}_SCLS_ENABLED variable
584bfd
# in %{?_scl_scripts}/service-environment.
584bfd
%{scl_upper}_SCLS_ENABLED="%{scl}"
584bfd
EOF
584bfd
584bfd
# clear *.lst files, so it the spec works with --short-circuit RPM option
584bfd
# otherwise we'd have the content repeated
584bfd
rm -f *.lst
584bfd
584bfd
# Creating syspath without prefix for mariadb-config package
584bfd
%scl_syspaths_install_wrapper -n mariadb-config -m link %{_sysconfdir}/my.cnf %{_root_sysconfdir}/%{scl_prefix}my.cnf
584bfd
%scl_syspaths_install_wrapper -n mariadb-config -m link %{_sysconfdir}/my.cnf.d %{_root_sysconfdir}/%{scl_prefix}my.cnf.d
584bfd
584bfd
# Creating syspath without prefix for mariadb package
584bfd
mariadb_binaries='msql2mysql my_print_defaults mysql mysql_find_rows mysql_plugin
584bfd
mysql_waitpid mysqlaccess mysqladmin mysqlbinlog mysqlcheck mysqldump
584bfd
mysqlimport mysqlshow mysqlslap'
584bfd
584bfd
%scl_syspaths_install_wrappers -n mariadb -m script -p bin $mariadb_binaries
584bfd
584bfd
mans= ; for bin in $mariadb_binaries; do mans+=" man1/$bin.1.gz" ; done
584bfd
%scl_syspaths_install_wrappers -n mariadb -m link -p man $mans
584bfd
584bfd
# Creating syspath without prefix for mariadb-server package
584bfd
mariadb_server_binaries='aria_chk aria_dump_log aria_ftdump aria_pack
584bfd
aria_read_log innochecksum myisam_ftdump myisamchk myisamlog
584bfd
myisampack mysql_install_db mysql_secure_installation mysql_tzinfo_to_sql mysql_upgrade
584bfd
mysqld_safe mysqld_safe_helper replace resolve_stack_dump resolveip
584bfd
wsrep_sst_common wsrep_sst_mysqldump wsrep_sst_rsync'
584bfd
584bfd
mariadb_backup_binaries_no_man='wsrep_sst_mariabackup mariabackup mbstream'
584bfd
584bfd
%scl_syspaths_install_wrappers -n mariadb-server -m script -p bin $mariadb_server_binaries
584bfd
%scl_syspaths_install_wrappers -n mariadb-backup -m script -p bin $mariadb_backup_binaries_no_man
584bfd
584bfd
mans= ; for bin in $mariadb_server_binaries; do mans+=" man1/$bin.1.gz" ; done
584bfd
%scl_syspaths_install_wrappers -n mariadb-server -m link -p man $mans
584bfd
584bfd
%scl_syspaths_install_wrapper -n mariadb-server -m link %{logfiledir} %{_root_localstatedir}/log/%{scl_prefix}mariadb
584bfd
%scl_syspaths_install_wrapper -n mariadb-server -m link %{dbdatadir} %{_root_localstatedir}/lib/%{scl_prefix}mysql
584bfd
584bfd
%scl_syspaths_install_wrapper -n mariadb-server -m link %{_unitdir}/%{daemon_name}.service %{_unitdir}/%{daemon_no_prefix}.service
584bfd
%scl_syspaths_install_wrapper -n mariadb-server -m link %{_unitdir}/%{daemon_name}@.service %{_unitdir}/%{daemon_no_prefix}@.service
584bfd
584bfd
# Creating syspath without prefix for mariadb-server-utils package
584bfd
mariadb_server_utils_binaries='
584bfd
mysql_convert_table_format mysql_fix_extensions mysql_setpermission
584bfd
mysqldumpslow mysqld_multi mysqlhotcopy mysqltest perror'
584bfd
584bfd
%scl_syspaths_install_wrappers -n mariadb-server-utils -m script -p bin $mariadb_server_utils_binaries
584bfd
584bfd
mans= ; for bin in $mariadb_server_utils_binaries; do mans+=" man1/$bin.1.gz" ; done
584bfd
%scl_syspaths_install_wrappers -n mariadb-server-utils -m link -p man $mans
584bfd
584bfd
# Creating syspath without prefix for mariadb-server-galera package
584bfd
mariadb_server_galera_binaries='galera_new_cluster'
584bfd
mariadb_server_galera_binaries+=' galera_recovery'
584bfd
mariadb_server_galera_binaries_no_man='clustercheck'
584bfd
584bfd
%scl_syspaths_install_wrappers -n mariadb-server-galera -m script -p bin $mariadb_server_galera_binaries
584bfd
%scl_syspaths_install_wrappers -n mariadb-server-galera -m script -p bin $mariadb_server_galera_binaries_no_man
584bfd
584bfd
mans= ; for bin in $mariadb_server_galera_binaries; do mans+=" man1/$bin.1.gz" ; done
584bfd
%scl_syspaths_install_wrappers -n mariadb-server-galera -m link -p man $mans
584bfd
584bfd
%endif #scl
584bfd
584bfd
584bfd
%check
584bfd
%if %{with test}
584bfd
%if %runselftest
584bfd
%{?scl:scl enable %{scl} %{?dts} - << "EOF"}
584bfd
set -ex
584bfd
584bfd
# Workaround for rhbz#1618810
584bfd
OPENSSL_SYSTEM_CIPHERS_OVERRIDE=xyz_nonexistent_file
584bfd
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE
584bfd
OPENSSL_CONF=''
584bfd
export OPENSSL_CONF
584bfd
584bfd
# hack to let 32- and 64-bit tests run concurrently on same build machine
584bfd
export MTR_PARALLEL=1
584bfd
# builds might happen at the same host, avoid collision
584bfd
export MTR_BUILD_THREAD=%{__isa_bits}
584bfd
584bfd
# The cmake build scripts don't provide any simple way to control the
584bfd
# options for mysql-test-run, so ignore the make target and just call it
584bfd
# manually.  Nonstandard options chosen are:
584bfd
# --force to continue tests after a failure
584bfd
# no retries please
584bfd
# test SSL with --ssl
584bfd
# skip tests that are listed in rh-skipped-tests.list
584bfd
# avoid redundant test runs with --binlog-format=mixed
584bfd
# increase timeouts to prevent unwanted failures during mass rebuilds
584bfd
584bfd
# Usefull arguments:
584bfd
#    --do-test=mysql_client_test_nonblock \
584bfd
#    --skip-rpl
584bfd
#    --suite=roles
584bfd
#    --mem for running in the RAM; Not enough space in KOJI for this
584bfd
584bfd
(
584bfd
  set -ex
584bfd
584bfd
  cd mysql-test
584bfd
  perl ./mysql-test-run.pl --parallel=auto --force --retry=1 --ssl --mem \
abe1a0
    --suite-timeout=5000 --testcase-timeout=50 \
584bfd
    --mysqld=--binlog-format=mixed --force-restart \
584bfd
    --shutdown-timeout=60 --max-test-fail=10 \
584bfd
    --skip-test=spider \
584bfd
%if %{ignore_testsuite_result}
584bfd
    --max-test-fail=9999 || :
584bfd
%else
584bfd
    --skip-test-list=unstable-tests
584bfd
%endif
584bfd
584bfd
# Second run for the SPIDER suites that fail with SCA (ssl self signed certificate)
584bfd
  perl ./mysql-test-run.pl --parallel=auto --force --retry=1 --mem \
584bfd
    --suite-timeout=60 --testcase-timeout=10 \
584bfd
    --mysqld=--binlog-format=mixed --force-restart \
584bfd
    --shutdown-timeout=60 --max-test-fail=0 \
19da60
    --skip-ssl --big-test --suite=spider,spider/bg,spider/bugfix,spider/handler \
584bfd
%if %{ignore_testsuite_result}
584bfd
    --max-test-fail=999 || :
584bfd
%endif
584bfd
)
584bfd
19da60
# NOTE: the Spider SE has 2 more hidden testsuites "oracle" and "oracle2".
19da60
#       however, all of the tests fail with: "failed: 12521: Can't use wrapper 'oracle' for SQL connection"
19da60
584bfd
%{?scl:EOF}
584bfd
%endif # if dry run
584bfd
%endif # with test
584bfd
584bfd
584bfd
584bfd
%pre server
584bfd
/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
584bfd
/usr/sbin/useradd -M -N -g mysql -o -r -d %{mysqluserhome} -s /sbin/nologin \
584bfd
  -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
584bfd
584bfd
%if %{with clibrary}
584bfd
# Can be dropped on F27 EOL
584bfd
%ldconfig_scriptlets libs
584bfd
%endif
584bfd
584bfd
%if %{with embedded}
584bfd
# Can be dropped on F27 EOL
584bfd
%ldconfig_scriptlets embedded
584bfd
%endif
584bfd
584bfd
%if %{with galera}
584bfd
%post server-galera
584bfd
# Do what README at support-files/policy/selinux/README and upstream page
584bfd
# http://galeracluster.com/documentation-webpages/firewallsettings.html recommend:
584bfd
semanage port -a -t mysqld_port_t -p tcp 4568 >/dev/null 2>&1 || :
584bfd
semanage port -a -t mysqld_port_t -p tcp 4567 >/dev/null 2>&1 || :
584bfd
semanage port -a -t mysqld_port_t -p udp 4567 >/dev/null 2>&1 || :
584bfd
semodule -i %{_datadir}/selinux/packages/%{name}/%{name}-server-galera.pp >/dev/null 2>&1 || :
584bfd
%endif
584bfd
584bfd
%post server
584bfd
%if 0%{?scl:1}
584bfd
semanage fcontext -a -e "%{se_daemon_source}" "%{daemondir}/%{daemon_name}.service" >/dev/null 2>&1 || :
584bfd
semanage fcontext -a -t mysqld_var_run_t "%{pidfiledir}" >/dev/null 2>&1 || :
584bfd
# work-around for rhbz#1172683
584bfd
semanage fcontext -a -t mysqld_exec_t %{_root_libexecdir}/mysqld-scl-helper >/dev/null 2>&1 || :
584bfd
# work-around for rhbz#1464803
584bfd
semanage fcontext -a -t mysqld_exec_t %{_root_bindir}/mysqld_safe_helper >/dev/null 2>&1 || :
584bfd
selinuxenabled && load_policy || :
584bfd
restorecon -R "%{?_scl_root}/" >/dev/null 2>&1 || :
584bfd
restorecon -R "%{_sysconfdir}" >/dev/null 2>&1 || :
584bfd
restorecon -R "%{_localstatedir}" >/dev/null 2>&1 || :
584bfd
restorecon -R "%{daemondir}/%{daemon_name}.service" >/dev/null 2>&1 || :
584bfd
restorecon -R "%{pidfiledir}" >/dev/null 2>&1 || :
584bfd
%endif
584bfd
%systemd_post %{daemon_name}.service
584bfd
584bfd
%preun server
584bfd
%systemd_preun %{daemon_name}.service
584bfd
584bfd
%if %{with galera}
584bfd
%postun server-galera
584bfd
if [ $1 -eq 0 ]; then
584bfd
    semodule -r %{name}-server-galera 2>/dev/null || :
584bfd
fi
584bfd
%endif
584bfd
584bfd
%postun server
584bfd
%systemd_postun_with_restart %{daemon_name}.service
584bfd
584bfd
584bfd
584bfd
%if %{with client}
584bfd
%files
584bfd
%{_bindir}/msql2mysql
584bfd
%{_bindir}/mysql
584bfd
%{_bindir}/mysql_find_rows
584bfd
%{_bindir}/mysql_plugin
584bfd
%{_bindir}/mysql_waitpid
584bfd
%{_bindir}/mysqlaccess
584bfd
%{_bindir}/mysqladmin
584bfd
%{_bindir}/mysqlbinlog
584bfd
%{_bindir}/mysqlcheck
584bfd
%{_bindir}/mysqldump
584bfd
%{_bindir}/mysqlimport
584bfd
%{_bindir}/mysqlshow
584bfd
%{_bindir}/mysqlslap
584bfd
584bfd
%{_mandir}/man1/msql2mysql.1*
584bfd
%{_mandir}/man1/mysql.1*
584bfd
%{_mandir}/man1/mysql_find_rows.1*
584bfd
%{_mandir}/man1/mysql_plugin.1*
584bfd
%{_mandir}/man1/mysql_waitpid.1*
584bfd
%{_mandir}/man1/mysqlaccess.1*
584bfd
%{_mandir}/man1/mysqladmin.1*
584bfd
%{_mandir}/man1/mysqlbinlog.1*
584bfd
%{_mandir}/man1/mysqlcheck.1*
584bfd
%{_mandir}/man1/mysqldump.1*
584bfd
%{_mandir}/man1/mysqlimport.1*
584bfd
%{_mandir}/man1/mysqlshow.1*
584bfd
%{_mandir}/man1/mysqlslap.1*
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/mysql-clients.cnf
584bfd
584bfd
# Client plugins
584bfd
%if 0%{?scl:1}
584bfd
%{_libdir}/%{pkg_name}/plugin/dialog.so
584bfd
%{_libdir}/%{pkg_name}/plugin/mysql_clear_password.so
584bfd
%{_libdir}/%{pkg_name}/plugin/sha256_password.so
584bfd
%{_libdir}/%{pkg_name}/plugin/auth_gssapi_client.so
584bfd
%endif
584bfd
584bfd
%endif
584bfd
584bfd
%if %{with clibrary}
584bfd
%files libs
584bfd
%{_libdir}/libmariadb.so.*
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/client.cnf
584bfd
%endif
584bfd
584bfd
%if %{with config}
584bfd
%files config
584bfd
# Although the default my.cnf contains only server settings, we put it in the
584bfd
# common package because it can be used for client settings too.
584bfd
%dir %{_sysconfdir}/my.cnf.d
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf
584bfd
%endif
584bfd
584bfd
%if %{with common}
584bfd
%files common
584bfd
%doc %{_datadir}/doc/%{_pkgdocdirname}
584bfd
%dir %{_datadir}/%{pkg_name}
584bfd
%{_datadir}/%{pkg_name}/charsets
584bfd
%if %{with clibrary}
584bfd
%{_libdir}/%{pkg_name}/plugin/dialog.so
584bfd
%{_libdir}/%{pkg_name}/plugin/mysql_clear_password.so
584bfd
%endif # clibrary
584bfd
%endif # common
584bfd
584bfd
%if %{with errmsg}
584bfd
%files errmsg
584bfd
%{_datadir}/%{pkg_name}/errmsg-utf8.txt
584bfd
%{_datadir}/%{pkg_name}/english
584bfd
%lang(cs) %{_datadir}/%{pkg_name}/czech
584bfd
%lang(da) %{_datadir}/%{pkg_name}/danish
584bfd
%lang(nl) %{_datadir}/%{pkg_name}/dutch
584bfd
%lang(et) %{_datadir}/%{pkg_name}/estonian
584bfd
%lang(fr) %{_datadir}/%{pkg_name}/french
584bfd
%lang(de) %{_datadir}/%{pkg_name}/german
584bfd
%lang(el) %{_datadir}/%{pkg_name}/greek
584bfd
%lang(hi) %{_datadir}/%{pkg_name}/hindi
584bfd
%lang(hu) %{_datadir}/%{pkg_name}/hungarian
584bfd
%lang(it) %{_datadir}/%{pkg_name}/italian
584bfd
%lang(ja) %{_datadir}/%{pkg_name}/japanese
584bfd
%lang(ko) %{_datadir}/%{pkg_name}/korean
584bfd
%lang(no) %{_datadir}/%{pkg_name}/norwegian
584bfd
%lang(no) %{_datadir}/%{pkg_name}/norwegian-ny
584bfd
%lang(pl) %{_datadir}/%{pkg_name}/polish
584bfd
%lang(pt) %{_datadir}/%{pkg_name}/portuguese
584bfd
%lang(ro) %{_datadir}/%{pkg_name}/romanian
584bfd
%lang(ru) %{_datadir}/%{pkg_name}/russian
584bfd
%lang(sr) %{_datadir}/%{pkg_name}/serbian
584bfd
%lang(sk) %{_datadir}/%{pkg_name}/slovak
584bfd
%lang(es) %{_datadir}/%{pkg_name}/spanish
584bfd
%lang(sv) %{_datadir}/%{pkg_name}/swedish
584bfd
%lang(uk) %{_datadir}/%{pkg_name}/ukrainian
584bfd
%endif
584bfd
584bfd
%if %{with galera}
584bfd
%files server-galera
584bfd
%doc Docs/README-wsrep
584bfd
%license LICENSE.clustercheck
584bfd
%{_bindir}/clustercheck
584bfd
%{_bindir}/galera_new_cluster
584bfd
%{_bindir}/galera_recovery
584bfd
%{_datadir}/%{pkg_name}/systemd/use_galera_new_cluster.conf
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/galera.cnf
584bfd
%attr(0640,root,root) %ghost %config(noreplace) %{_sysconfdir}/sysconfig/clustercheck
584bfd
%{_datadir}/selinux/packages/%{name}/%{name}-server-galera.pp
584bfd
%endif
584bfd
584bfd
%files server
584bfd
%doc README.wsrep_sst_rsync_tunnel
584bfd
584bfd
%{_bindir}/aria_chk
584bfd
%{_bindir}/aria_dump_log
584bfd
%{_bindir}/aria_ftdump
584bfd
%{_bindir}/aria_pack
584bfd
%{_bindir}/aria_read_log
584bfd
%{_bindir}/mariadb-service-convert
584bfd
%{_bindir}/myisamchk
584bfd
%{_bindir}/myisam_ftdump
584bfd
%{_bindir}/myisamlog
584bfd
%{_bindir}/myisampack
584bfd
%{_bindir}/my_print_defaults
584bfd
%{_bindir}/mysql_install_db
584bfd
%{_bindir}/mysql_secure_installation
584bfd
%{_bindir}/mysql_tzinfo_to_sql
584bfd
%{_bindir}/mysqld_safe
19da60
%{_bindir}/mysqld_safe_helper
584bfd
%{_bindir}/innochecksum
584bfd
%{_bindir}/replace
584bfd
%{_bindir}/resolve_stack_dump
584bfd
%{_bindir}/resolveip
584bfd
# wsrep_sst_common should be moved to /usr/share/mariadb: https://jira.mariadb.org/browse/MDEV-14296
584bfd
%{_bindir}/wsrep_*
584bfd
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/%{pkg_name}-server.cnf
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/enable_encryption.preset
584bfd
584bfd
%{_libexecdir}/mysqld
584bfd
%if 0%{?scl:1}
584bfd
%{_libexecdir}/mysqld-scl-helper
584bfd
%endif
584bfd
584bfd
%{_libdir}/%{pkg_name}/INFO_SRC
584bfd
%{_libdir}/%{pkg_name}/INFO_BIN
584bfd
%if %{without common}
584bfd
%dir %{_datadir}/%{pkg_name}
584bfd
%endif
584bfd
584bfd
%dir %{_libdir}/%{pkg_name}
584bfd
%dir %{_libdir}/%{pkg_name}/plugin
584bfd
%{_libdir}/%{pkg_name}/plugin/*
19da60
%{_libdir}/security/pam_user_map.so
abe1a0
%config(noreplace) %{_sysconfdir}/security/user_map.conf
584bfd
%{?with_oqgraph:%exclude %{_libdir}/%{pkg_name}/plugin/ha_oqgraph.so}
584bfd
%{?with_connect:%exclude %{_libdir}/%{pkg_name}/plugin/ha_connect.so}
584bfd
%{?with_cracklib:%exclude %{_libdir}/%{pkg_name}/plugin/cracklib_password_check.so}
584bfd
%{?with_rocksdb:%exclude %{_libdir}/%{pkg_name}/plugin/ha_rocksdb.so}
584bfd
%{?with_tokudb:%exclude %{_libdir}/%{pkg_name}/plugin/ha_tokudb.so}
584bfd
%{?with_gssapi:%exclude %{_libdir}/%{pkg_name}/plugin/auth_gssapi.so}
584bfd
%{?with_sphinx:%exclude %{_libdir}/%{pkg_name}/plugin/ha_sphinx.so}
584bfd
%{?with_cassandra:%exclude %{_libdir}/%{pkg_name}/plugin/ha_cassandra.so}
584bfd
# Client plugins
584bfd
%if 0%{?scl:1}
584bfd
%exclude %{_libdir}/%{pkg_name}/plugin/dialog.so
584bfd
%exclude %{_libdir}/%{pkg_name}/plugin/mysql_clear_password.so
584bfd
%exclude %{_libdir}/%{pkg_name}/plugin/sha256_password.so
584bfd
%exclude %{_libdir}/%{pkg_name}/plugin/auth_gssapi_client.so
584bfd
%else
584bfd
%if %{with clibrary}
584bfd
%exclude %{_libdir}/%{pkg_name}/plugin/dialog.so
584bfd
%exclude %{_libdir}/%{pkg_name}/plugin/mysql_clear_password.so
584bfd
%endif
584bfd
%endif
584bfd
584bfd
584bfd
%{_mandir}/man1/aria_chk.1*
584bfd
%{_mandir}/man1/aria_dump_log.1*
584bfd
%{_mandir}/man1/aria_ftdump.1*
584bfd
%{_mandir}/man1/aria_pack.1*
584bfd
%{_mandir}/man1/aria_read_log.1*
584bfd
%{_mandir}/man1/galera_new_cluster.1*
584bfd
%{_mandir}/man1/galera_recovery.1*
584bfd
%{_mandir}/man1/mariadb-service-convert.1*
584bfd
%{_mandir}/man1/myisamchk.1*
584bfd
%{_mandir}/man1/myisamlog.1*
584bfd
%{_mandir}/man1/myisampack.1*
584bfd
%{_mandir}/man1/myisam_ftdump.1*
584bfd
%{_mandir}/man1/my_print_defaults.1*
584bfd
%{_mandir}/man1/mysql.server.1*
584bfd
%{_mandir}/man1/mysql_install_db.1*
584bfd
%{_mandir}/man1/mysql_secure_installation.1*
584bfd
%{_mandir}/man1/mysql_tzinfo_to_sql.1*
584bfd
%{_mandir}/man1/mysqld_safe.1*
584bfd
%{_mandir}/man1/mysqld_safe_helper.1*
584bfd
%{_mandir}/man1/innochecksum.1*
584bfd
%{_mandir}/man1/replace.1*
584bfd
%{_mandir}/man1/resolveip.1*
584bfd
%{_mandir}/man1/resolve_stack_dump.1*
584bfd
%{_mandir}/man8/mysqld.8*
584bfd
%{_mandir}/man1/wsrep_*.1*
584bfd
584bfd
%{_datadir}/%{pkg_name}/fill_help_tables.sql
584bfd
%{_datadir}/%{pkg_name}/install_spider.sql
584bfd
%{_datadir}/%{pkg_name}/maria_add_gis_sp.sql
584bfd
%{_datadir}/%{pkg_name}/maria_add_gis_sp_bootstrap.sql
584bfd
%{_datadir}/%{pkg_name}/mysql_system_tables.sql
584bfd
%{_datadir}/%{pkg_name}/mysql_system_tables_data.sql
584bfd
%{_datadir}/%{pkg_name}/mysql_test_data_timezone.sql
584bfd
%{_datadir}/%{pkg_name}/mysql_performance_tables.sql
584bfd
%{_datadir}/%{pkg_name}/mysql_test_db.sql
584bfd
%if %{with mroonga}
584bfd
%{_datadir}/%{pkg_name}/mroonga/install.sql
584bfd
%{_datadir}/%{pkg_name}/mroonga/uninstall.sql
584bfd
%license %{_datadir}/%{pkg_name}/mroonga/COPYING
584bfd
%license %{_datadir}/%{pkg_name}/mroonga/AUTHORS
19da60
%license %{_datadir}/%{name}-server/groonga-normalizer-mysql/lgpl-2.0.txt
19da60
%license %{_datadir}/%{name}-server/groonga/COPYING
19da60
%doc %{_datadir}/%{name}-server/groonga-normalizer-mysql/README.md
19da60
%doc %{_datadir}/%{name}-server/groonga/README.md
584bfd
%endif
584bfd
%{_datadir}/%{pkg_name}/wsrep.cnf
584bfd
%{_datadir}/%{pkg_name}/wsrep_notify
584bfd
%dir %{_datadir}/%{pkg_name}/policy
584bfd
%dir %{_datadir}/%{pkg_name}/policy/selinux
584bfd
%{_datadir}/%{pkg_name}/policy/selinux/README
584bfd
%{_datadir}/%{pkg_name}/policy/selinux/mariadb-server.*
584bfd
%{_datadir}/%{pkg_name}/policy/selinux/mariadb.*
584bfd
%{_datadir}/%{pkg_name}/systemd/mariadb.service
584bfd
# mariadb@ is installed only when we have cmake newer than 3.3
584bfd
%if 0%{?fedora} || 0%{?rhel} > 7
584bfd
%{_datadir}/%{pkg_name}/systemd/mariadb@.service
584bfd
%endif
584bfd
584bfd
%{daemondir}/%{daemon_name}*
584bfd
%{_libexecdir}/mysql-prepare-db-dir
584bfd
%{_libexecdir}/mysql-check-socket
584bfd
%{_libexecdir}/mysql-check-upgrade
584bfd
%{_libexecdir}/mysql-scripts-common
584bfd
584bfd
%attr(0755,mysql,mysql) %dir %{pidfiledir}
584bfd
%attr(0755,mysql,mysql) %dir %{dbdatadir}
584bfd
%{?scl:%attr(0755,mysql,mysql) %dir /var/lib/mysql}
584bfd
%attr(0750,mysql,mysql) %dir %{logfiledir}
584bfd
# This does what it should.
584bfd
# RPMLint error "conffile-without-noreplace-flag /var/log/mariadb/mariadb.log" is false positive.
584bfd
%attr(0640,mysql,mysql) %config %ghost %verify(not md5 size mtime) %{logfile}
584bfd
%config(noreplace) %{logrotateddir}/%{daemon_name}
584bfd
584bfd
%{?scl:%config(noreplace) %{?_scl_scripts}/service-environment}
584bfd
584bfd
%{_tmpfilesdir}/%{name}.conf
584bfd
%{_sysusersdir}/%{name}.conf
584bfd
584bfd
%if %{with cracklib}
584bfd
%files cracklib-password-check
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/cracklib_password_check.cnf
584bfd
%{_libdir}/%{pkg_name}/plugin/cracklib_password_check.so
584bfd
%endif
584bfd
584bfd
%if %{with backup}
584bfd
%files backup
584bfd
%{_bindir}/mariabackup
584bfd
%{_bindir}/mbstream
584bfd
%{_mandir}/man1/mariabackup.1*
584bfd
%{_mandir}/man1/mbstream.1*
584bfd
%endif
584bfd
584bfd
%if %{with rocksdb}
584bfd
%files rocksdb-engine
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/rocksdb.cnf
584bfd
%{_bindir}/myrocks_hotbackup
584bfd
%{_bindir}/mysql_ldb
584bfd
%{_bindir}/sst_dump
584bfd
%{_libdir}/%{pkg_name}/plugin/ha_rocksdb.so
584bfd
%{_mandir}/man1/mysql_ldb.1*
584bfd
%endif
584bfd
584bfd
%if %{with tokudb}
584bfd
%files tokudb-engine
584bfd
%{_bindir}/tokuftdump
584bfd
%{_bindir}/tokuft_logprint
584bfd
%{_mandir}/man1/tokuftdump.1*
584bfd
%{_mandir}/man1/tokuft_logprint.1*
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/tokudb.cnf
584bfd
%{_libdir}/%{pkg_name}/plugin/ha_tokudb.so
584bfd
%{_unitdir}/mariadb.service.d/tokudb.conf
584bfd
%endif
584bfd
584bfd
%if %{with gssapi}
584bfd
%files gssapi-server
584bfd
%{_libdir}/%{pkg_name}/plugin/auth_gssapi.so
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/auth_gssapi.cnf
584bfd
%endif
584bfd
584bfd
%if %{with sphinx}
584bfd
%files sphinx-engine
584bfd
%{_libdir}/%{pkg_name}/plugin/ha_sphinx.so
584bfd
%endif
584bfd
584bfd
%if %{with oqgraph}
584bfd
%files oqgraph-engine
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/oqgraph.cnf
584bfd
%{_libdir}/%{pkg_name}/plugin/ha_oqgraph.so
584bfd
%endif
584bfd
584bfd
%if %{with connect}
584bfd
%files connect-engine
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/connect.cnf
584bfd
%{_libdir}/%{pkg_name}/plugin/ha_connect.so
584bfd
%endif
584bfd
584bfd
%if %{with cassandra}
584bfd
%files cassandra-engine
584bfd
%config(noreplace) %{_sysconfdir}/my.cnf.d/cassandra.cnf
584bfd
%{_libdir}/%{pkg_name}/plugin/ha_cassandra.so
584bfd
%endif
584bfd
584bfd
%files server-utils
584bfd
# Perl utilities
584bfd
%{_bindir}/mysql_convert_table_format
584bfd
%{_bindir}/mysql_fix_extensions
584bfd
%{_bindir}/mysql_setpermission
584bfd
%{_bindir}/mysqldumpslow
584bfd
%{_bindir}/mysqld_multi
584bfd
%{_bindir}/mysqlhotcopy
584bfd
%{_mandir}/man1/mysql_convert_table_format.1*
584bfd
%{_mandir}/man1/mysql_fix_extensions.1*
584bfd
%{_mandir}/man1/mysqldumpslow.1*
584bfd
%{_mandir}/man1/mysqld_multi.1*
584bfd
%{_mandir}/man1/mysqlhotcopy.1*
584bfd
%{_mandir}/man1/mysql_setpermission.1*
584bfd
# Utilities that can be used remotely
584bfd
%{_bindir}/mysql_upgrade
584bfd
%{_bindir}/perror
584bfd
%{_mandir}/man1/mysql_upgrade.1*
584bfd
%{_mandir}/man1/perror.1*
584bfd
584bfd
%if %{with devel}
584bfd
%files devel
584bfd
%{_includedir}/*
584bfd
%{_datadir}/aclocal/mysql.m4
584bfd
%{_libdir}/pkgconfig/mariadb.pc
584bfd
%if %{with clibrary}
584bfd
%{_libdir}/{libmysqlclient.so.18,libmariadb.so,libmysqlclient.so,libmysqlclient_r.so}
584bfd
%{_bindir}/mysql_config*
584bfd
%{_bindir}/mariadb_config*
584bfd
%{_libdir}/libmariadb.so
584bfd
%{_libdir}/libmysqlclient.so
584bfd
%{_libdir}/libmysqlclient_r.so
584bfd
%{_mandir}/man1/mysql_config*
584bfd
%{_mandir}/man1/mariadb_config*
584bfd
%endif
584bfd
%endif
584bfd
584bfd
%if %{with embedded}
584bfd
%files embedded
584bfd
%{_libdir}/libmariadbd.so.*
584bfd
584bfd
%files embedded-devel
584bfd
%{_libdir}/libmysqld.so
584bfd
%{_libdir}/libmariadbd.so
584bfd
%endif
584bfd
584bfd
%if %{with bench}
584bfd
%files bench
584bfd
%{_datadir}/sql-bench
584bfd
%doc %{_datadir}/sql-bench/README
584bfd
%endif
584bfd
584bfd
%if %{with test}
584bfd
%files test
584bfd
%if %{with embedded}
584bfd
%{_bindir}/test-connect-t
584bfd
%{_bindir}/mysql_client_test_embedded
584bfd
%{_bindir}/mysqltest_embedded
584bfd
%{_mandir}/man1/mysql_client_test_embedded.1*
584bfd
%{_mandir}/man1/mysqltest_embedded.1*
584bfd
%endif
584bfd
%{_bindir}/mysql_client_test
584bfd
%{_bindir}/my_safe_process
584bfd
%{_bindir}/mysqltest
584bfd
%attr(-,mysql,mysql) %{_datadir}/mysql-test
584bfd
%{_mandir}/man1/mysql_client_test.1*
584bfd
%{_mandir}/man1/my_safe_process.1*
584bfd
%{_mandir}/man1/mysqltest.1*
584bfd
%{_mandir}/man1/mysql-stress-test.pl.1*
584bfd
%{_mandir}/man1/mysql-test-run.pl.1*
584bfd
%endif
584bfd
584bfd
%if 0%{?scl:1}
584bfd
%scl_syspaths_files -n mariadb
584bfd
%scl_syspaths_files -n mariadb-config
584bfd
%scl_syspaths_files -n mariadb-backup
584bfd
%scl_syspaths_files -n mariadb-server
584bfd
%scl_syspaths_files -n mariadb-server-utils
584bfd
%scl_syspaths_files -n mariadb-server-galera
584bfd
%endif
584bfd
584bfd
%changelog
363386
* Thu Jun 30 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3:10.3.35-1
363386
- Rebase to 10.3.35
363386
363386
* Thu Jun 30 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3:10.3.34-1
363386
- Rebase to 10.3.34
363386
- Patch 16 upstreamed
363386
abe1a0
* Mon Jan 17 2022 Zuzana Miklankova <zmiklank@redhat.com> - 3:10.3.32-2
abe1a0
- Add delaycompress option to the logrotate script
abe1a0
- Resolves: rhbz:#2050538
abe1a0
abe1a0
* Fri Nov 26 2021 Zuzana Miklankova <zmiklank@redhat.com> - 3:10.3.32-1
abe1a0
- Rebase to 10.3.32
abe1a0
- Increase test suite and test case timeout
abe1a0
- Relates: rhbz:#1991341
abe1a0
abe1a0
* Fri Nov 26 2021 Zuzana Miklankova <zmiklank@redhat.com> - 3:10.3.31-1
abe1a0
- Rebase to 10.3.31
abe1a0
abe1a0
* Fri Sep 24 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.30-1
abe1a0
- Rebase to 10.3.30
abe1a0
abe1a0
* Mon Aug 09 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.29-2
abe1a0
- Set user_map.conf file to be noreplace config file
abe1a0
abe1a0
* Fri Jun 25 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.29-1
abe1a0
- Rebase to 10.3.29
abe1a0
- Resolves: rhbz#1976002
abe1a0
6e265c
* Thu Apr 01 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.28-2
6e265c
- Release bump
6e265c
6e265c
* Tue Mar 30 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.28-1
6e265c
- Rebase to 10.3.28
6e265c
19da60
* Wed Nov 11 2020 Michal Schorm <mschorm@redhat.com> - 3:10.3.27-1
19da60
- Rebase to 10.3.27
19da60
19da60
* Wed Nov 04 2020 Michal Schorm <mschorm@redhat.com> - 3:10.3.26-1
19da60
- Rebase to 10.3.26
19da60
19da60
* Tue Nov 03 2020 Michal Schorm <mschorm@redhat.com> - 3:10.3.25-1
19da60
- Rebase to 10.3.25
19da60
19da60
* Fri May 15 2020 Michal Schorm <mschorm@redhat.com> - 3:10.3.23-1
19da60
- Rebase to 10.3.23
19da60
19da60
* Fri May 15 2020 Michal Schorm <mschorm@redhat.com> - 3:10.3.22-1
19da60
- Rebase to 10.3.22
19da60
19da60
* Wed Jan 29 2020 Lukas Javorsky <ljavork@redhat.com> - 3:10.3.21-1
19da60
- Rebase to 10.3.21
19da60
19da60
* Mon Dec 16 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.20-3
19da60
- Delete covscan patch, fixed by upstream
19da60
19da60
* Mon Dec 16 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.20-2
19da60
- Change path of groonga's packaged files
19da60
19da60
* Mon Dec 16 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.20-1
19da60
- Rebase to 10.3.20
19da60
19da60
* Mon Dec 16 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.18-1
19da60
- Rebase to 10.3.18
19da60
19da60
* Mon Dec 16 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.17-2
19da60
- Fix the debug build
19da60
19da60
* Fri Dec 13 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.17-1
19da60
- Rebase to 10.3.17
19da60
19da60
* Fri Dec 13 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.16-1
19da60
- Rebase to 10.3.16
19da60
- Added patch for armv7hl builds of spider SE
19da60
19da60
* Thu Dec 12 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.15-1
19da60
- Rebase to 10.3.15
19da60
- CVEs fixed:
19da60
  CVE-2019-2510 CVE-2019-2537
19da60
- CVEs fixed:
19da60
  CVE-2019-2614 CVE-2019-2627 CVE-2019-2628
19da60
19da60
* Thu Dec 12 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.13-7
19da60
- Fix building of TokuDB with Jemalloc 5
19da60
- Fix building with / without lz4
19da60
19da60
* Mon Dec 09 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.13-6
19da60
- Fix several SSL tests that failed because of different SSL cipher expectation
19da60
19da60
* Mon Nov 25 2019 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.3.13-5
19da60
- Enable connect package to be build
19da60
  Resolves #1762205
19da60
584bfd
* Tue Mar 19 2019 Michal Schorm <mschorm@redhat.com> - 3:10.3.13-4
584bfd
- Enable testsuite during build
584bfd
  Resolves: #1688529
584bfd
- Fix SPECfile problems
584bfd
  Related: #1688392
584bfd
- Ship client plugins in SCL
584bfd
  Resolves: #1689204
584bfd
584bfd
* Wed Mar 13 2019 Honza Horak <hhorak@redhat.com> - 3:10.3.13-2
584bfd
- Remove wsrep_sst_common from syspaths
584bfd
584bfd
* Wed Mar 13 2019 Honza Horak <hhorak@redhat.com> - 3:10.3.13-1
584bfd
- Rebase to 10.3.13
584bfd
  Related: #1582609
584bfd
584bfd
* Thu Feb 07 2019 Jakub Janco <jjanco@redhat.com> - 3:10.3.12-2
584bfd
- Fix logrotate ang logfile path
584bfd
584bfd
* Tue Jan 08 2019 Honza Horak <hhorak@redhat.com> - 3:10.3.12-1
584bfd
- Rebase to 10.3.12
584bfd
584bfd
* Mon Dec 17 2018 Honza Horak <hhorak@redhat.com> - 3:10.3.11-2
584bfd
- SCLizing spec
584bfd
584bfd
* Mon Dec 10 2018 Michal Schorm <mschorm@redhat.com> - 3:10.3.11-1
584bfd
- Rebase to 10.3.11
584bfd
- Remove README.mysql-cnf as we don't ship example configuration files anymore
584bfd
  Resolves: #1653318
584bfd
- CVEs fixed:
584bfd
  CVE-2018-3282, CVE-2016-9843, CVE-2018-3174, CVE-2018-3143, CVE-2018-3156
584bfd
  CVE-2018-3251, CVE-2018-3185, CVE-2018-3277, CVE-2018-3162, CVE-2018-3173
584bfd
  CVE-2018-3200, CVE-2018-3284
584bfd
584bfd
* Fri Oct 12 2018 Michal Schorm <mschorm@redhat.com> - 3:10.3.10-3
584bfd
- Fix "-fstack-protector-strong" static analysis errors
584bfd
  Resolves: #1624139
584bfd
- Add wsrep_sst_rsync_tunnel script, add README
584bfd
  Resolves: #1650463
584bfd
- Fix few covscan issues
584bfd
  Resolves: #1649707
584bfd
- Fix galera_new_cluster script
584bfd
  Resolves: #1641663
584bfd
584bfd
* Fri Oct 12 2018 Michal Schorm <mschorm@redhat.com> - 3:10.3.10-2
584bfd
- Fix RPMDiff errors - license and path macros
584bfd
  Resolves: #1638720
584bfd
584bfd
* Fri Oct 05 2018 Michal Schorm <mschorm@redhat.com> - 3:10.3.10-1
584bfd
- Rebase to 10.3.10
584bfd
  Resolves: #1637034
584bfd
584bfd
* Wed Aug 22 2018 Michal Schorm <mschorm@redhat.com> - 3:10.3.9-1
584bfd
- Rebase to 10.3.9
584bfd
- Add workaround for short SSL certificates
584bfd
- Fix parallel installability for x86_64 and i686 devel packages
584bfd
- CVEs fixed: #1603531
584bfd
  CVE-2018-3058 CVE-2018-3063 CVE-2018-3064 CVE-2018-3066
584bfd
584bfd
* Mon Aug 13 2018 Michal Schorm <mschorm@redhat.com> - 3:10.3.8-6
584bfd
- Use openssl-devel instead of pkgconfig(openssl)
584bfd
- Enable conflicts against mysql (instead of community-mysql)
584bfd
  Related: #1581034
584bfd
584bfd
* Sun Aug 12 2018 Honza Horak <hhorak@redhat.com> - 3:10.3.8-5
584bfd
- Define explicit conflicts with mysql
584bfd
  Resolves: #1581034
584bfd
584bfd
* Wed Jul 25 2018 Honza Horak <hhorak@redhat.com> - 3:10.3.8-4
584bfd
- Do not build config on systems where mariadb-connector-c-config exists instead
584bfd
584bfd
* Tue Jul 17 2018 Honza Horak <hhorak@redhat.com> - 3:10.3.8-3
584bfd
- Move config files mysql-clients.cnf and enable_encryption.preset to correct
584bfd
  sub-packages, similar to what upstream does
584bfd
584bfd
* Tue Jul 03 2018 Michal Schorm <mschorm@redhat.com> - 3:10.3.8-1
584bfd
- Rebase to 10.3.8
584bfd
- Build TokuDB with jemalloc
584bfd
584bfd
* Wed Jun 27 2018 Michal Schorm <mschorm@redhat.com> - 3:10.3.7-2
584bfd
- Rebase to 10.3.7
584bfd
- Remove the galera obsoletes
584bfd
584bfd
* Tue Jun 05 2018 Honza Horak <hhorak@redhat.com> - 3:10.2.15-2
584bfd
- Use mysqladmin for checking the socket
584bfd
- Jemalloc dependency moved to the TokuDB subpackage.
584bfd
  CMake jemalloc option removed, not used anymore.
584bfd
  The server doesn't need jemalloc since 10.2: https://jira.mariadb.org/browse/MDEV-11059
584bfd
- Build MariaDB with TokuDB without Jemalloc.
584bfd
584bfd
* Wed May 23 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.15-1
584bfd
- Rebase to 10.2.15
584bfd
- CVEs fixed: #1568962
584bfd
  CVE-2018-2755 CVE-2018-2761 CVE-2018-2766 CVE-2018-2771 CVE-2018-2781
584bfd
  CVE-2018-2782 CVE-2018-2784 CVE-2018-2787 CVE-2018-2813 CVE-2018-2817
584bfd
  CVE-2018-2819 CVE-2018-2786 CVE-2018-2759 CVE-2018-2777 CVE-2018-2810
584bfd
584bfd
* Thu Mar 29 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.14-1
584bfd
- Rebase to 10.2.14
584bfd
- Update testsuite run for SSL self signed certificates
584bfd
584bfd
* Tue Mar 6 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.13-2
584bfd
- Further fix of ldconfig scriptlets for F27
584bfd
- Fix hardcoded paths, move unversioned libraries and symlinks to the devel subpackage
584bfd
584bfd
* Thu Mar 1 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.13-1
584bfd
- Rebase to 10.2.13
584bfd
584bfd
* Mon Feb 26 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.12-8
584bfd
- SPECfile refresh, RHEL6, SySV init and old fedora stuff removed
584bfd
584bfd
* Sun Feb 25 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.12-7
584bfd
- Rebuilt for ldconfig_post and ldconfig_postun bug
584bfd
  Related: #1548331
584bfd
584bfd
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3:10.2.12-6
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
584bfd
584bfd
* Fri Jan 26 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.12-5
584bfd
- Use '-ldl' compiler flag when associated library used
584bfd
  Resolves: #1538990
584bfd
584bfd
* Thu Jan 25 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.12-4
584bfd
- Fix the upgrade path. Build TokuDB subpackage again, but build a unsupported
584bfd
  configuration by upstream (without Jemalloc).
584bfd
  Jemmalloc has been updated to version 5, which isn't backwards compatible.
584bfd
- Use downstream tmpfiles instead of the upstream one
584bfd
  Related: #1538066
584bfd
584bfd
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 3:10.2.12-3
584bfd
- Rebuilt for switch to libxcrypt
584bfd
584bfd
* Thu Jan 11 2018 Honza Horak <hhorak@redhat.com> - 3:10.2.12-1
584bfd
- Do not build connect plugin with mongo and jdbc connectors
584bfd
- Support MYSQLD_OPTS and _WSREP_NEW_CLUSTER env vars in init script,
584bfd
  same as it is done in case of systemd unit file
584bfd
  Related: #1455850
584bfd
- Print the same messages as before when starting the service in SysV init,
584bfd
  to not scare users
584bfd
  Related: #1463411
584bfd
584bfd
* Wed Jan 10 2018 Michal Schorm <mschorm@redhat.com> - 3:10.2.12-1
584bfd
- Rebase to 10.2.12
584bfd
- Temporary fix for https://jira.mariadb.org/browse/MDEV-14537 removed
584bfd
- TokuDB disabled
584bfd
584bfd
* Mon Dec 11 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.11-2
584bfd
- Temporary fix for #1523875 removed, bug in Annobin fixed
584bfd
  Resolves: #1523875
584bfd
584bfd
* Sat Dec 09 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.11-1
584bfd
- Rebase to 10.2.11
584bfd
- Temporary fix for https://jira.mariadb.org/browse/MDEV-14537 introduced
584bfd
- Temporary fix for #1523875 intoruced
584bfd
  Related: #1523875
584bfd
584bfd
* Wed Dec 06 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.10-2
584bfd
- Fix PID file location
584bfd
  Related: #1483331, #1515779
584bfd
- Remove 'Group' tags as they should not be used any more
584bfd
  Related: https://fedoraproject.org/wiki/RPMGroups
584bfd
584bfd
* Mon Nov 20 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.10-1
584bfd
- Rebase to 10.2.10 version
584bfd
- Patch 2: mariadb-install-test.patch has been incorporated by upstream
584bfd
- Patch 8: mariadb-install-db-sharedir.patch; upstream started to use macros
584bfd
- Update PCRE check
584bfd
- Start using location libdir/mariadb for plugins
584bfd
- Move libraries to libdir
584bfd
- Divided to more sub-packages to match upstream's RPM list
584bfd
  Resolves: #1490401; #1400463
584bfd
- Update of Cmake arguments to supported format
584bfd
  Related: https://lists.launchpad.net/maria-discuss/msg04852.html
584bfd
- Remove false Provides
584bfd
584bfd
* Thu Oct 05 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.9-3
584bfd
- Fix client library obsolete
584bfd
  Related: #1498956
584bfd
- Enable testsuite again
584bfd
- RPMLint error fix:
584bfd
  Remove unused python scripts which remained from TokuDB upstream
584bfd
- RPMLint error fix: description line too long
584bfd
584bfd
* Wed Oct 04 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.9-2
584bfd
- Fix of "with" and "without" macros, so they works
584bfd
- Use 'iproute' dependency instead of 'net-tools'
584bfd
  Related: #1496131
584bfd
- Set server package to own /usr/lib64/mysql directory
584bfd
- Use correct obsolete, so upgrade from maridb 10.1 to 10.2 is possible
584bfd
  with dnf "--allowerasing" option
584bfd
  Related: #1497234
584bfd
- Fix building with client library
584bfd
584bfd
* Thu Sep 28 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.9-1
584bfd
- Rebase to 10.2.9
584bfd
- Testsuite temorarly disabled in order to fast deploy critical fix
584bfd
  Related: #1497234
584bfd
584bfd
* Wed Sep 20 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.8-5
584bfd
- Fix building without client library part
584bfd
- Start building mariadb without client library part,
584bfd
  use mariadb-connector-c package >= 3.0 instead
584bfd
- Use obosletes of "-libs" in "-common", if built without client library part
584bfd
584bfd
* Mon Aug 28 2017 Honza Horak <hhorak@redhat.com> - 3:10.2.8-2
584bfd
- Fix paths in galera_recovery and galera_new_cluster
584bfd
  Resolves: #1403416
584bfd
- Support --defaults-group-suffix properly in systemd unit file
584bfd
  Resolves: #1485777
584bfd
- Allow 4567 port for tcp as well
584bfd
- Install mysql-wait-ready on RHEL-6 for the SysV init
584bfd
- Run mysql-prepare-db-dir as non-root
584bfd
- Sync mysql.init with community-mysql
584bfd
584bfd
* Sun Aug 20 2017 Honza Horak <hhorak@redhat.com> - 3:10.2.8-1
584bfd
- Rebase to 10.2.8
584bfd
584bfd
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3:10.2.7-8
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
584bfd
584bfd
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3:10.2.7-7
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
584bfd
584bfd
* Tue Jul 25 2017 Adam Williamson <awilliam@redhat.com> - 3:10.2.7-6
584bfd
- Revert previous change, go back to libmariadb headers (RHBZ #1474764)
584bfd
584bfd
* Fri Jul 21 2017 Adam Williamson <awilliam@redhat.com> - 3:10.2.7-5
584bfd
- Install correct headers (server, not client) - MDEV-13370
584bfd
584bfd
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 3:10.2.7-4
584bfd
- Rebuilt for s390x binutils bug
584bfd
584bfd
* Tue Jul 18 2017 Jonathan Wakely <jwakely@redhat.com> - 3:10.2.7-3
584bfd
- Rebuilt for Boost 1.64
584bfd
584bfd
* Thu Jul 13 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.7-2
584bfd
- Remove mysql-wait-* scripts. They aren't needed when using systemd "Type=notify"
584bfd
584bfd
* Thu Jul 13 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.7-1
584bfd
- Rebase to 10.2.7
584bfd
- Get back mysql_config, its "--libmysqld-libs" is still needed
584bfd
584bfd
* Wed Jul 12 2017 Adam Williamson <awilliam@redhat.com> - 3:10.2.6-4
584bfd
- Add manual Provides: for the libmysqlcient compat symlink
584bfd
584bfd
* Wed Jul 12 2017 Adam Williamson <awilliam@redhat.com> - 3:10.2.6-3
584bfd
- Move libmysqlclient.so.18 compat link to -libs subpackage
584bfd
584bfd
* Tue Jul 11 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.6-2
584bfd
- Disable Dtrace
584bfd
- Disable Sphinx, circural dependency
584bfd
584bfd
* Tue Jul 11 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.6-1
584bfd
- Rebase to 10.2.6
584bfd
- SSL patch removed
584bfd
- 'libmariadb.so.3' replaced 'limysqlclient.so.18.0.0', symlinks provided
584bfd
- "make test" removed, it needs running server and same test are included in the testsuite
584bfd
584bfd
* Mon Jul 10 2017 Michal Schorm <mschorm@redhat.com> - 3:10.1.25-1
584bfd
- Rebase to 10.1.25
584bfd
- Disable plugins 'cracklib' and 'gssapi' by default
584bfd
- Related: #1468028, #1464070
584bfd
- Looks like the testsuite removes its 'var' content correctly,
584bfd
  no need to do that explicitly.
584bfd
584bfd
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 3:10.1.24-5
584bfd
- Rebuild due to bug in RPM (RHBZ #1468476)
584bfd
584bfd
* Mon Jun 19 2017 Michal Schorm <mschorm@redhat.com> - 3:10.1.24-4
584bfd
- Use "/run" location instead of "/var/run" symlink
584bfd
- Related: #1455811
584bfd
- Remove AppArmor files
584bfd
584bfd
* Fri Jun 09 2017 Honza Horak <hhorak@redhat.com> - 3:10.1.24-3
584bfd
- Downstream script mariadb-prepare-db-dir fixed for CVE-2017-3265
584bfd
- Resolves: #1458940
584bfd
- Check properly that datadir includes only expected files
584bfd
- Related: #1356897
584bfd
584bfd
* Wed Jun 07 2017 Michal Schorm <mschorm@redhat.com> - 3:10.1.24-2
584bfd
- Fixed incorrect Jemalloc initialization; #1459671
584bfd
584bfd
* Fri Jun 02 2017 Michal Schorm <mschorm@redhat.com> - 3:10.1.24-1
584bfd
- Rebase to 10.1.24
584bfd
- Build dependecies Bison and Libarchive added, others corrected
584bfd
- Disabling Mroonga engine for i686 architecture, as it is not supported by MariaDB
584bfd
- Removed patches: (fixed by upstream)
584bfd
    Patch5:  mariadb-file-contents.patch
584bfd
    Patch14: mariadb-example-config-files.patch
584bfd
    Patch31: mariadb-string-overflow.patch
584bfd
    Patch32: mariadb-basedir.patch
584bfd
    Patch41: mariadb-galera-new-cluster-help.patch
584bfd
- Resolves: rhbz#1414387
584bfd
    CVE-2017-3313
584bfd
- Resolves partly: rhbz#1443408
584bfd
    CVE-2017-3308 CVE-2017-3309 CVE-2017-3453 CVE-2017-3456 CVE-2017-3464
584bfd
584bfd
* Tue May 23 2017 Michal Schorm <mschorm@redhat.com> - 3:10.1.21-6
584bfd
- Plugin oqgraph enabled
584bfd
- Plugin jemalloc enabled
584bfd
- 'force' option for 'rm' removed
584bfd
- Enabled '--big-test' option for the testsuite
584bfd
- Disabled '--skip-rpl' option for the testsuite = replication tests enabled
584bfd
- Multilib manpage added
584bfd
584bfd
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:10.1.21-5
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
584bfd
584bfd
* Tue Mar 07 2017 Michal Schorm <mschorm@redhat.com> - 3:10.1.21-4
584bfd
- Cracklib plugin enabled
584bfd
- Removed strmov patch, it is no longer needed. The issue was fixed long ago in both MariaDB and MySQL
584bfd
584bfd
* Wed Feb 15 2017 Michal Schorm <mschorm@redhat.com> - 3:10.1.21-3
584bfd
- Fix for some RPMLint issues
584bfd
- Fix: Only server utilities can be move to server-utils subpackage. The rest (from client)
584bfd
  were moved back to where they came from (client - the main subpackage)
584bfd
- Added correct "Obsoletes" for the server-utils subpackage
584bfd
- Fixed FTBFS in F26 on x86_64, because of -Werror option
584bfd
- Related: #1421092, #1395127
584bfd
584bfd
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3:10.1.21-2
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
584bfd
584bfd
* Tue Jan 24 2017 Michal Schorm <mschorm@redhat.com> - 3:10.1.21-1
584bfd
- Rebase to version 10.1.21
584bfd
- Most of the non-essential utilites has been moved to the new sub-package mariadb-server-utils
584bfd
- Patches "admincrash" and "errno" removed, they are no longer relevant
584bfd
  "mysql-embedded-check.c" removed, no longer relevant
584bfd
- Buildrequires krb5-devel duplicity removed
584bfd
- Manpage for mysql_secure_installation extended
584bfd
- Preparation for the CrackLib plugin to be added (waiting for correct SELinux rules to be relased)
584bfd
- Related: #1260821, #1205082, #1414387
584bfd
584bfd
* Tue Jan 03 2017 Honza Horak <hhorak@redhat.com> - 3:10.1.20-3
584bfd
- Add explicit EVR requirement in main package for -libs
584bfd
- Related: #1406320
584bfd
584bfd
* Tue Dec 20 2016 Honza Horak <hhorak@redhat.com> - 3:10.1.20-2
584bfd
- Use correct macro when removing doc files
584bfd
- Resolves: #1400981
584bfd
584bfd
* Sat Dec 17 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.20-1
584bfd
- Rebase to version 10.1.20
584bfd
- Related: #1405258
584bfd
584bfd
* Fri Dec 02 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-6
584bfd
- Move patch from specfile to standalone patch file
584bfd
- Related: #1382988
584bfd
584bfd
* Thu Dec 01 2016 Rex Dieter <rdieter@fedoraproject.org> - 3:10.1.19-6
584bfd
- -devel: use pkgconfig(openssl) to allow any implementation (like compat-openssl10)
584bfd
584bfd
* Wed Nov 30 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-5
584bfd
- Testsuite blacklists heavily updated. Current tracker: #1399847
584bfd
- Log-error option added to all config files examples
584bfd
- Resolves: #1382988
584bfd
584bfd
* Wed Nov 16 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-4
584bfd
- JdbcMariaDB.jar test removed
584bfd
- PCRE version check added
584bfd
- Related: #1382988, #1396945, #1096787
584bfd
584bfd
* Wed Nov 16 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-4
584bfd
- test suite ENABLED, consensus was made it still should be run every build
584bfd
584bfd
* Wed Nov 16 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-2
584bfd
- fixed bug 1382988
584bfd
- added comment to the test suite
584bfd
- test suite DISABLED for most builds in Koji, see comments
584bfd
584bfd
* Wed Nov 16 2016 Michal Schorm <mschorm@redhat.com> - 3:10.1.19-1
584bfd
- Update to 10.1.19
584bfd
- added temporary support to build with OpenSSL 1.0 on Fedora >= 26
584bfd
- added krb5-devel pkg as Buldrquires to prevent gssapi failure
584bfd
584bfd
* Tue Oct  4 2016 Jakub Dorňák <jdornak@redhat.com> - 3:10.1.18-1
584bfd
- Update to 10.1.18
584bfd
584bfd
* Wed Aug 31 2016 Jakub Dorňák <jdornak@redhat.com> - 3:10.1.17-1
584bfd
- Update to 10.1.17
584bfd
584bfd
* Mon Aug 29 2016 Jakub Dorňák <jdornak@redhat.com> - 3:10.1.16-2
584bfd
- Fixed galera replication
584bfd
- Resolves: #1352946
584bfd
584bfd
* Tue Jul 19 2016 Jakub Dorňák <jdornak@redhat.com> - 3:10.1.16-1
584bfd
- Update to 10.1.16
584bfd
584bfd
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 3:10.1.14-5
584bfd
- Fail build when test-suite fails
584bfd
- Use license macro for inclusion of licenses
584bfd
584bfd
* Thu Jul 14 2016 Honza Horak <hhorak@redhat.com> - 3:10.1.14-4
584bfd
- Revert Update to 10.1.15, this release is broken
584bfd
  https://lists.launchpad.net/maria-discuss/msg03691.html
584bfd
584bfd
* Thu Jul 14 2016 Honza Horak <hhorak@redhat.com> - 2:10.1.15-3
584bfd
- Check datadir more carefully to avoid unwanted data corruption
584bfd
- Related: #1335849
584bfd
584bfd
* Thu Jul  7 2016 Jakub Dorňák <jdornak@redhat.com> - 2:10.1.15-2
584bfd
- Bump epoch
584bfd
  (related to the downgrade from the pre-release version)
584bfd
584bfd
* Fri Jul  1 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.15-1
584bfd
- Update to 10.1.15
584bfd
584bfd
* Fri Jul  1 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.14-3
584bfd
- Revert "Update to 10.2.0"
584bfd
  It is possible that MariaDB 10.2.0 won't be stable till f25 GA.
584bfd
584bfd
* Tue Jun 21 2016 Pavel Raiskup <praiskup@redhat.com> - 1:10.1.14-3
584bfd
- BR multilib-rpm-config and use it for multilib workarounds
584bfd
- install architecture dependant pc file to arch-dependant location
584bfd
584bfd
* Thu May 26 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.2.0-2
584bfd
- Fix mysql-prepare-db-dir
584bfd
- Resolves: #1335849
584bfd
584bfd
* Thu May 12 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.2.0-1
584bfd
- Update to 10.2.0
584bfd
584bfd
* Thu May 12 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.14-1
584bfd
- Add selinux policy
584bfd
- Update to 10.1.14 (includes various bug fixes)
584bfd
- Add -h and --help options to galera_new_cluster
584bfd
584bfd
* Thu Apr  7 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.13-3
584bfd
- wsrep_on in galera.cnf
584bfd
584bfd
* Tue Apr  5 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.13-2
584bfd
- Moved /etc/sysconfig/clustercheck
584bfd
  and /usr/share/mariadb/systemd/use_galera_new_cluster.conf
584bfd
  to mariadb-server-galera
584bfd
584bfd
* Tue Mar 29 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.13-1
584bfd
- Update to 10.1.13
584bfd
584bfd
* Wed Mar 23 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.12-4
584bfd
- Fixed conflict with mariadb-galera-server
584bfd
584bfd
* Tue Mar 22 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.12-3
584bfd
- Add subpackage mariadb-server-galera
584bfd
- Resolves: 1310622
584bfd
584bfd
* Tue Mar 01 2016 Honza Horak <hhorak@redhat.com> - 1:10.1.12-2
584bfd
- Rebuild for BZ#1309199 (symbol versioning)
584bfd
584bfd
* Mon Feb 29 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.12-1
584bfd
- Update to 10.1.12
584bfd
584bfd
* Tue Feb 16 2016 Honza Horak <hhorak@redhat.com> - 1:10.1.11-9
584bfd
- Remove dangling symlink to /etc/init.d/mysql
584bfd
584bfd
* Sat Feb 13 2016 Honza Horak <hhorak@redhat.com> - 1:10.1.11-8
584bfd
- Use epoch for obsoleting mariadb-galera-server
584bfd
584bfd
* Fri Feb 12 2016 Honza Horak <hhorak@redhat.com> - 1:10.1.11-7
584bfd
- Add Provides: bundled(pcre) in case we build with bundled pcre
584bfd
- Related: #1302296
584bfd
- embedded-devel should require libaio-devel
584bfd
- Resolves: #1290517
584bfd
584bfd
* Fri Feb 12 2016 Honza Horak <hhorak@redhat.com> - 1:10.1.11-6
584bfd
- Fix typo s/obsolate/obsolete/
584bfd
584bfd
* Thu Feb 11 2016 Honza Horak <hhorak@redhat.com> - 1:10.1.11-5
584bfd
- Add missing requirements for proper wsrep functionality
584bfd
- Obsolate mariadb-galera & mariadb-galera-server (thanks Tomas Repik)
584bfd
- Resolves: #1279753
584bfd
- Re-enable using libedit, which should be now fixed
584bfd
- Related: #1201988
584bfd
- Remove mariadb-wait-ready call from systemd unit, we have now systemd notify support
584bfd
- Make mariadb@.service similar to mariadb.service
584bfd
584bfd
* Mon Feb 08 2016 Honza Horak <hhorak@redhat.com> - 1:10.1.11-4
584bfd
- Use systemd unit file more compatible with upstream
584bfd
584bfd
* Sun Feb 07 2016 Honza Horak <hhorak@redhat.com> - 1:10.1.11-3
584bfd
- Temporarily disabling oqgraph for
584bfd
  https://mariadb.atlassian.net/browse/MDEV-9479
584bfd
584bfd
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.1.11-2
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
584bfd
584bfd
* Wed Feb  3 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.11-1
584bfd
- Update to 10.1.11
584bfd
584bfd
* Tue Jan 19 2016 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.10-1
584bfd
- Update to 10.1.10
584bfd
584bfd
* Mon Dec 07 2015 Dan Horák <dan[at]danny.cz> - 1:10.1.8-3
584bfd
- rebuilt for s390(x)
584bfd
584bfd
* Tue Nov 03 2015 Honza Horak <hhorak@redhat.com> - 1:10.1.8-2
584bfd
- Expand variables in server.cnf
584bfd
584bfd
* Thu Oct 22 2015 Jakub Dorňák <jdornak@redhat.com> - 1:10.1.8-1
584bfd
- Update to 10.1.8
584bfd
584bfd
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 1:10.0.21-2
584bfd
- Rebuilt for Boost 1.59
584bfd
584bfd
* Mon Aug 10 2015 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.21-1
584bfd
- Update to 10.0.21
584bfd
584bfd
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:10.0.20-3
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
584bfd
584bfd
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 1:10.0.20-2
584bfd
- rebuild for Boost 1.58
584bfd
584bfd
* Tue Jun 23 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.20-1
584bfd
- Update to 10.0.20
584bfd
584bfd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:10.0.19-3
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
584bfd
584bfd
* Wed Jun 03 2015 Dan Horák <dan[at]danny.cz> - 1:10.0.19-2
584bfd
- Update lists of failing tests (jdornak)
584bfd
- Related: #1149647
584bfd
584bfd
* Mon May 11 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.19-1
584bfd
- Update to 10.0.19
584bfd
584bfd
* Thu May 07 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.18-1
584bfd
- Update to 10.0.18
584bfd
584bfd
* Thu May 07 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.17-4
584bfd
- Include client plugins into -common package since they are used by both -libs
584bfd
  and base packages.
584bfd
- Do not use libedit
584bfd
- Related: #1201988
584bfd
- Let plugin dir to be owned by -common
584bfd
- Use correct comment in the init script
584bfd
- Related: #1184604
584bfd
- Add openssl as BuildRequires to run some openssl tests during build
584bfd
- Related: #1189180
584bfd
- Fail in case any command in check fails
584bfd
- Related: #1124791
584bfd
- Fix mysqladmin crash if run with -u root -p
584bfd
- Resolves: #1207170
584bfd
584bfd
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1:10.0.17-3
584bfd
- Rebuilt for GCC 5 C++11 ABI change
584bfd
584bfd
* Fri Mar 06 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.17-2
584bfd
- Wait for daemon ends
584bfd
- Resolves: #1072958
584bfd
- Do not include symlink to libmysqlclient if not shipping the library
584bfd
- Do not use scl prefix more than once in paths
584bfd
  Based on https://www.redhat.com/archives/sclorg/2015-February/msg00038.html
584bfd
584bfd
* Wed Mar 04 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.17-1
584bfd
- Rebase to version 10.0.17
584bfd
- Added variable for turn off skipping some tests
584bfd
584bfd
* Tue Mar 03 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.16-6
584bfd
- Check permissions when starting service on RHEL-6
584bfd
- Resolves: #1194699
584bfd
- Do not create test database by default
584bfd
- Related: #1194611
584bfd
584bfd
* Fri Feb 13 2015 Matej Muzila <mmuzila@redhat.com> - 1:10.0.16-4
584bfd
- Enable tokudb
584bfd
584bfd
* Tue Feb 10 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.16-3
584bfd
- Fix openssl_1 test
584bfd
584bfd
* Wed Feb  4 2015 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.16-2
584bfd
- Include new certificate for tests
584bfd
- Update lists of failing tests
584bfd
- Related: #1186110
584bfd
584bfd
* Tue Feb  3 2015 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.16-9
584bfd
- Rebase to version 10.0.16
584bfd
- Resolves: #1187895
584bfd
584bfd
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1:10.0.15-9
584bfd
- Rebuild for boost 1.57.0
584bfd
584bfd
* Mon Jan 26 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.15-8
584bfd
- Fix typo in the config file
584bfd
584bfd
* Sun Jan 25 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.15-7
584bfd
- Do not create log file in post script
584bfd
584bfd
* Sat Jan 24 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.15-6
584bfd
- Move server settings to config file under my.cnf.d dir
584bfd
584bfd
* Sat Jan 24 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.15-5
584bfd
- Fix path for sysconfig file
584bfd
  Filter provides in el6 properly
584bfd
  Fix initscript file location
584bfd
584bfd
* Tue Jan 06 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.15-4
584bfd
- Disable failing tests connect.mrr, connect.updelx2 on ppc and s390
584bfd
584bfd
* Mon Dec 22 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.15-3
584bfd
- Fix macros paths in my.cnf
584bfd
- Create old location for pid file if it remained in my.cnf
584bfd
584bfd
* Fri Dec 05 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.15-2
584bfd
- Rework usage of macros and remove some compatibility artefacts
584bfd
584bfd
* Thu Nov 27 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.15-1
584bfd
- Update to 10.0.15
584bfd
584bfd
* Thu Nov 20 2014 Jan Stanek <jstanek@redhat.com> - 1:10.0.14-8
584bfd
- Applied upstream fix for mysql_config --cflags output.
584bfd
- Resolves: #1160845
584bfd
584bfd
* Fri Oct 24 2014 Jan Stanek <jstanek@redhat.com> - 1:10.0.14-7
584bfd
- Fixed compat service file.
584bfd
- Resolves: #1155700
584bfd
584bfd
* Mon Oct 13 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-6
584bfd
- Remove bundled cmd-line-utils
584bfd
- Related: #1079637
584bfd
- Move mysqlimport man page to proper package
584bfd
- Disable main.key_cache test on s390
584bfd
  Releated: #1149647
584bfd
584bfd
* Wed Oct 08 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-5
584bfd
- Disable tests connect.part_file, connect.part_table
584bfd
  and connect.updelx
584bfd
- Related: #1149647
584bfd
584bfd
* Wed Oct 01 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-4
584bfd
- Add bcond_without mysql_names
584bfd
  Use more correct path when deleting mysql logrotate script
584bfd
584bfd
* Wed Oct 01 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-3
584bfd
- Build with system libedit
584bfd
- Resolves: #1079637
584bfd
584bfd
* Mon Sep 29 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-2
584bfd
- Add with_debug option
584bfd
584bfd
* Mon Sep 29 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.14-1
584bfd
- Update to 10.0.14
584bfd
584bfd
* Wed Sep 24 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-8
584bfd
- Move connect engine to a separate package
584bfd
  Rename oqgraph engine to align with upstream packages
584bfd
- Move some files to correspond with MariaDB upstream packages
584bfd
  client.cnf into -libs, mysql_plugin and msql2mysql into base,
584bfd
  tokuftdump and aria_* into -server, errmsg-utf8.txt into -errmsg
584bfd
- Remove duplicate cnf files packaged using %%doc
584bfd
- Check upgrade script added to warn about need for mysql_upgrade
584bfd
584bfd
* Wed Sep 24 2014 Matej Muzila <mmuzila@redhat.com> - 1:10.0.13-7
584bfd
- Client related libraries moved from mariadb-server to mariadb-libs
584bfd
- Related: #1138843
584bfd
584bfd
* Mon Sep 08 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-6
584bfd
- Disable vcol_supported_sql_funcs_myisam test on all arches
584bfd
- Related: #1096787
584bfd
- Install systemd service file on RHEL-7+
584bfd
  Server requires any mysql package, so it should be fine with older client
584bfd
584bfd
* Thu Sep 04 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-5
584bfd
- Fix paths in mysql_install_db script
584bfd
- Resolves: #1134328
584bfd
- Use %%cmake macro
584bfd
584bfd
* Tue Aug 19 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-4
584bfd
- Build config subpackage everytime
584bfd
- Disable failing tests: innodb_simulate_comp_failures_small, key_cache
584bfd
  rhbz#1096787
584bfd
584bfd
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:10.0.13-3
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
584bfd
584bfd
* Thu Aug 14 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-2
584bfd
- Include mysqld_unit only if required; enable tokudb in f20-
584bfd
584bfd
* Wed Aug 13 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.13-1
584bfd
- Rebase to version 10.0.13
584bfd
584bfd
* Tue Aug 12 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-8
584bfd
- Introduce -config subpackage and ship base config files here
584bfd
584bfd
* Tue Aug  5 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-7
584bfd
- Adopt changes from mysql, thanks Bjorn Munch <bjorn.munch@oracle.com>
584bfd
584bfd
* Mon Jul 28 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-6
584bfd
- Use explicit sysconfdir
584bfd
- Absolut path for default value for pid file and error log
584bfd
584bfd
* Tue Jul 22 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-5
584bfd
- Hardcoded paths removed to work fine in chroot
584bfd
- Spec rewrite to be more similar to oterh MySQL implementations
584bfd
- Use variable for daemon unit name
584bfd
- Include SysV init script if built on older system
584bfd
- Add possibility to not ship some sub-packages
584bfd
584bfd
* Mon Jul 21 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-4
584bfd
- Reformating spec and removing unnecessary snippets
584bfd
584bfd
* Tue Jul 15 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-3
584bfd
- Enable OQGRAPH engine and package it as a sub-package
584bfd
- Add support for TokuDB engine for x86_64 (currently still disabled)
584bfd
- Re-enable tokudb_innodb_xa_crash again, seems to be fixed now
584bfd
- Drop superfluous -libs and -embedded ldconfig deps (thanks Ville Skyttä)
584bfd
- Separate -lib and -common sub-packages
584bfd
- Require /etc/my.cnf instead of shipping it
584bfd
- Include README.mysql-cnf
584bfd
- Multilib support re-worked
584bfd
- Introduce new option with_mysqld_unit
584bfd
- Removed obsolete mysql-cluster, the package should already be removed
584bfd
- Improve error message when log file is not writable
584bfd
- Compile all binaries with full RELRO (RHBZ#1092548)
584bfd
- Use modern symbol filtering with compatible backup
584bfd
- Add more groupnames for server's my.cnf
584bfd
- Error messages now provided by a separate package (thanks Alexander Barkov)
584bfd
- Expand paths in helper scripts using cmake
584bfd
584bfd
* Wed Jun 18 2014 Mikko Tiihonen <mikko.tiihonen@iki.fi> - 1:10.0.12-2
584bfd
- Use -fno-delete-null-pointer-checks to avoid segfaults with gcc 4.9
584bfd
584bfd
* Tue Jun 17 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.12-1
584bfd
- Rebase to version 10.0.12
584bfd
584bfd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:10.0.11-5
584bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
584bfd
584bfd
* Tue Jun  3 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.11-4
584bfd
- rebuild with tests failing on different arches disabled (#1096787)
584bfd
584bfd
* Thu May 29 2014 Dan Horák <dan[at]danny.cz> - 1:10.0.11-2
584bfd
- rebuild with tests failing on big endian arches disabled (#1096787)
584bfd
584bfd
* Wed May 14 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.11-1
584bfd
- Rebase to version 10.0.11
584bfd
584bfd
* Mon May 05 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.10-3
584bfd
- Script for socket check enhanced
584bfd
584bfd
* Thu Apr 10 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.10-2
584bfd
- use system pcre library
584bfd
584bfd
* Thu Apr 10 2014 Jakub Dorňák <jdornak@redhat.com> - 1:10.0.10-1
584bfd
- Rebase to version 10.0.10
584bfd
584bfd
* Wed Mar 12 2014 Honza Horak <hhorak@redhat.com> - 1:5.5.36-2
584bfd
- Server crashes on SQL select containing more group by and left join statements using innodb tables
584bfd
- Resolves: #1065676
584bfd
- Fix paths in helper scripts
584bfd
- Move language files into mariadb directory
584bfd
584bfd
* Thu Mar 06 2014 Honza Horak <hhorak@redhat.com> - 1:5.5.36-1
584bfd
- Rebase to 5.5.36
584bfd
  https://kb.askmonty.org/en/mariadb-5536-changelog/
584bfd
584bfd
* Tue Feb 25 2014 Honza Horak <hhorak@redhat.com> 1:5.5.35-5
584bfd
- Daemon helper scripts sanity changes and spec files clean-up
584bfd
584bfd
* Tue Feb 11 2014 Honza Horak <hhorak@redhat.com> 1:5.5.35-4
584bfd
- Fix typo in mysqld.service
584bfd
- Resolves: #1063981
584bfd
584bfd
* Wed Feb  5 2014 Honza Horak <hhorak@redhat.com> 1:5.5.35-3
584bfd
- Do not touch the log file in post script, so it does not get wrong owner
584bfd
- Resolves: #1061045
584bfd
584bfd
* Thu Jan 30 2014 Honza Horak <hhorak@redhat.com> 1:5.5.35-1
584bfd
- Rebase to 5.5.35
584bfd
  https://kb.askmonty.org/en/mariadb-5535-changelog/
584bfd
  Also fixes: CVE-2014-0001, CVE-2014-0412, CVE-2014-0437, CVE-2013-5908,
584bfd
  CVE-2014-0420, CVE-2014-0393, CVE-2013-5891, CVE-2014-0386, CVE-2014-0401,
584bfd
  CVE-2014-0402
584bfd
- Resolves: #1054043
584bfd
- Resolves: #1059546
584bfd
584bfd
* Tue Jan 14 2014 Honza Horak <hhorak@redhat.com> - 1:5.5.34-9
584bfd
- Adopt compatible system versioning
584bfd
- Related: #1045013
584bfd
- Use compatibility mysqld.service instead of link
584bfd
- Related: #1014311
584bfd
584bfd
* Mon Jan 13 2014 Rex Dieter <rdieter@fedoraproject.org> 1:5.5.34-8
584bfd
- move mysql_config alternatives scriptlets to -devel too
584bfd
584bfd
* Fri Jan 10 2014 Honza Horak <hhorak@redhat.com> 1:5.5.34-7
584bfd
- Build with -O3 on ppc64
584bfd
- Related: #1051069
584bfd
- Move mysql_config to -devel sub-package and remove Require: mariadb
584bfd
- Related: #1050920
584bfd
584bfd
* Fri Jan 10 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> 1:5.5.34-6
584bfd
- Disable main.gis-precise test also for AArch64
584bfd
- Disable perfschema.func_file_io and perfschema.func_mutex for AArch64
584bfd
  (like it is done for 32-bit ARM)
584bfd
584bfd
* Fri Jan 10 2014 Honza Horak <hhorak@redhat.com> 1:5.5.34-5
584bfd
- Clean all non-needed doc files properly
584bfd
584bfd
* Wed Jan  8 2014 Honza Horak <hhorak@redhat.com> 1:5.5.34-4
584bfd
- Read socketfile location in mariadb-prepare-db-dir script
584bfd
584bfd
* Mon Jan  6 2014 Honza Horak <hhorak@redhat.com> 1:5.5.34-3
584bfd
- Don't test EDH-RSA-DES-CBC-SHA cipher, it seems to be removed from openssl
584bfd
  which now makes mariadb/mysql FTBFS because openssl_1 test fails
584bfd
- Related: #1044565
584bfd
- Use upstream's layout for symbols version in client library
584bfd
- Related: #1045013
584bfd
- Check if socket file is not being used by another process at a time
584bfd
  of starting the service
584bfd
- Related: #1045435
584bfd
- Use %%ghost directive for the log file
584bfd
- Related: 1043501
584bfd
584bfd
* Wed Nov 27 2013 Honza Horak <hhorak@redhat.com> 1:5.5.34-2
584bfd
- Fix mariadb-wait-ready script
584bfd
584bfd
* Fri Nov 22 2013 Honza Horak <hhorak@redhat.com> 1:5.5.34-1
584bfd
- Rebase to 5.5.34
584bfd
584bfd
* Mon Nov  4 2013 Honza Horak <hhorak@redhat.com> 1:5.5.33a-4
584bfd
- Fix spec file to be ready for backport by Oden Eriksson
584bfd
- Resolves: #1026404
584bfd
584bfd
* Mon Nov  4 2013 Honza Horak <hhorak@redhat.com> 1:5.5.33a-3
584bfd
- Add pam-devel to build-requires in order to build
584bfd
- Related: #1019945
584bfd
- Check if correct process is running in mysql-wait-ready script
584bfd
- Related: #1026313
584bfd
584bfd
* Mon Oct 14 2013 Honza Horak <hhorak@redhat.com> 1:5.5.33a-2
584bfd
- Turn on test suite
584bfd
584bfd
* Thu Oct 10 2013 Honza Horak <hhorak@redhat.com> 1:5.5.33a-1
584bfd
- Rebase to 5.5.33a
584bfd
  https://kb.askmonty.org/en/mariadb-5533-changelog/
584bfd
  https://kb.askmonty.org/en/mariadb-5533a-changelog/
584bfd
- Enable outfile_loaddata test
584bfd
- Disable tokudb_innodb_xa_crash test
584bfd
584bfd
* Mon Sep  2 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-12
584bfd
- Re-organize my.cnf to include only generic settings
584bfd
- Resolves: #1003115
584bfd
- Move pid file location to /var/run/mariadb
584bfd
- Make mysqld a symlink to mariadb unit file rather than the opposite way
584bfd
- Related: #999589
584bfd
584bfd
* Thu Aug 29 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-11
584bfd
- Move log file into /var/log/mariadb/mariadb.log
584bfd
- Rename logrotate script to mariadb
584bfd
- Resolves: #999589
584bfd
584bfd
* Wed Aug 14 2013 Rex Dieter <rdieter@fedoraproject.org> 1:5.5.32-10
584bfd
- fix alternatives usage
584bfd
584bfd
* Tue Aug 13 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-9
584bfd
- Multilib issues solved by alternatives
584bfd
- Resolves: #986959
584bfd
584bfd
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 1:5.5.32-8
584bfd
- Perl 5.18 rebuild
584bfd
584bfd
* Wed Jul 31 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-7
584bfd
- Do not use login shell for mysql user
584bfd
584bfd
* Tue Jul 30 2013 Honza Horak <hhorak@redhat.com> - 1:5.5.32-6
584bfd
- Remove unneeded systemd-sysv requires
584bfd
- Provide mysql-compat-server symbol
584bfd
- Create mariadb.service symlink
584bfd
- Fix multilib header location for arm
584bfd
- Enhance documentation in the unit file
584bfd
- Use scriptstub instead of links to avoid multilib conflicts
584bfd
- Add condition for doc placement in F20+
584bfd
584bfd
* Sun Jul 28 2013 Dennis Gilmore <dennis@ausil.us> - 1:5.5.32-5
584bfd
- remove "Requires(pretrans): systemd" since its not possible
584bfd
- when installing mariadb and systemd at the same time. as in a new install
584bfd
584bfd
* Sat Jul 27 2013 Kevin Fenzi <kevin@scrye.com> 1:5.5.32-4
584bfd
- Set rpm doc macro to install docs in unversioned dir
584bfd
584bfd
* Fri Jul 26 2013 Dennis Gilmore <dennis@ausil.us> 1:5.5.32-3
584bfd
- add Requires(pre) on systemd for the server package
584bfd
584bfd
* Tue Jul 23 2013 Dennis Gilmore <dennis@ausil.us> 1:5.5.32-2
584bfd
- replace systemd-units requires with systemd
584bfd
- remove solaris files
584bfd
584bfd
* Fri Jul 19 2013 Honza Horak <hhorak@redhat.com> 1:5.5.32-1
584bfd
- Rebase to 5.5.32
584bfd
  https://kb.askmonty.org/en/mariadb-5532-changelog/
584bfd
- Clean-up un-necessary systemd snippets
584bfd
584bfd
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1:5.5.31-7
584bfd
- Perl 5.18 rebuild
584bfd
584bfd
* Mon Jul  1 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-6
584bfd
- Test suite params enhanced to decrease server condition influence
584bfd
- Fix misleading error message when uninstalling built-in plugins
584bfd
- Related: #966873
584bfd
584bfd
* Thu Jun 27 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-5
584bfd
- Apply fixes found by Coverity static analysis tool
584bfd
584bfd
* Wed Jun 19 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-4
584bfd
- Do not use pretrans scriptlet, which doesn't work in anaconda
584bfd
- Resolves: #975348
584bfd
584bfd
* Fri Jun 14 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-3
584bfd
- Explicitly enable mysqld if it was enabled in the beginning
584bfd
  of the transaction.
584bfd
584bfd
* Thu Jun 13 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-2
584bfd
- Apply man page fix from Jan Stanek
584bfd
584bfd
* Fri May 24 2013 Honza Horak <hhorak@redhat.com> 1:5.5.31-1
584bfd
- Rebase to 5.5.31
584bfd
  https://kb.askmonty.org/en/mariadb-5531-changelog/
584bfd
- Preserve time-stamps in case of installed files
584bfd
- Use /var/tmp instead of /tmp, since the later is using tmpfs,
584bfd
  which can cause problems
584bfd
- Resolves: #962087
584bfd
- Fix test suite requirements
584bfd
584bfd
* Sun May  5 2013 Honza Horak <hhorak@redhat.com> 1:5.5.30-2
584bfd
- Remove mytop utility, which is packaged separately
584bfd
- Resolve multilib conflicts in mysql/private/config.h
584bfd
584bfd
* Fri Mar 22 2013 Honza Horak <hhorak@redhat.com> 1:5.5.30-1
584bfd
- Rebase to 5.5.30
584bfd
  https://kb.askmonty.org/en/mariadb-5530-changelog/
584bfd
584bfd
* Fri Mar 22 2013 Honza Horak <hhorak@redhat.com> 1:5.5.29-11
584bfd
- Obsolete MySQL since it is now renamed to community-mysql
584bfd
- Remove real- virtual names
584bfd
584bfd
* Thu Mar 21 2013 Honza Horak <hhorak@redhat.com> 1:5.5.29-10
584bfd
- Adding epoch to have higher priority than other mysql implementations
584bfd
  when comes to provider comparison
584bfd
584bfd
* Wed Mar 13 2013 Honza Horak <hhorak@redhat.com> 5.5.29-9
584bfd
- Let mariadb-embedded-devel conflict with MySQL-embedded-devel
584bfd
- Adjust mariadb-sortbuffer.patch to correspond with upstream patch
584bfd
584bfd
* Mon Mar  4 2013 Honza Horak <hhorak@redhat.com> 5.5.29-8
584bfd
- Mask expected warnings about setrlimit in test suite
584bfd
584bfd
* Thu Feb 28 2013 Honza Horak <hhorak@redhat.com> 5.5.29-7
584bfd
- Use configured prefix value instead of guessing basedir
584bfd
  in mysql_config
584bfd
- Resolves: #916189
584bfd
- Export dynamic columns and non-blocking API functions documented
584bfd
  by upstream
584bfd
584bfd
* Wed Feb 27 2013 Honza Horak <hhorak@redhat.com> 5.5.29-6
584bfd
- Fix sort_buffer_length option type
584bfd
584bfd
* Wed Feb 13 2013 Honza Horak <hhorak@redhat.com> 5.5.29-5
584bfd
- Suppress warnings in tests and skip tests also on ppc64p7
584bfd
584bfd
* Tue Feb 12 2013 Honza Horak <hhorak@redhat.com> 5.5.29-4
584bfd
- Suppress warning in tests on ppc
584bfd
- Enable fixed index_merge_myisam test case
584bfd
584bfd
* Thu Feb 07 2013 Honza Horak <hhorak@redhat.com> 5.5.29-3
584bfd
- Packages need to provide also %%_isa version of mysql package
584bfd
- Provide own symbols with real- prefix to distinguish from mysql
584bfd
  unambiguously
584bfd
- Fix format for buffer size in error messages (MDEV-4156)
584bfd
- Disable some tests that fail on ppc and s390
584bfd
- Conflict only with real-mysql, otherwise mariadb conflicts with ourself
584bfd
584bfd
* Tue Feb 05 2013 Honza Horak <hhorak@redhat.com> 5.5.29-2
584bfd
- Let mariadb-libs to own /etc/my.cnf.d
584bfd
584bfd
* Thu Jan 31 2013 Honza Horak <hhorak@redhat.com> 5.5.29-1
584bfd
- Rebase to 5.5.29
584bfd
  https://kb.askmonty.org/en/mariadb-5529-changelog/
584bfd
- Fix inaccurate default for socket location in mysqld-wait-ready
584bfd
- Resolves: #890535
584bfd
584bfd
* Thu Jan 31 2013 Honza Horak <hhorak@redhat.com> 5.5.28a-8
584bfd
- Enable obsoleting mysql
584bfd
584bfd
* Wed Jan 30 2013 Honza Horak <hhorak@redhat.com> 5.5.28a-7
584bfd
- Adding necessary hacks for perl dependency checking, rpm is still
584bfd
  not wise enough
584bfd
- Namespace sanity re-added for symbol default_charset_info
584bfd
584bfd
* Mon Jan 28 2013 Honza Horak <hhorak@redhat.com> 5.5.28a-6
584bfd
- Removed %%{_isa} from provides/obsoletes, which doesn't allow
584bfd
  proper obsoleting
584bfd
- Do not obsolete mysql at the time of testing
584bfd
584bfd
* Thu Jan 10 2013 Honza Horak <hhorak@redhat.com> 5.5.28a-5
584bfd
- Added licenses LGPLv2 and BSD
584bfd
- Removed wrong usage of %%{epoch}
584bfd
- Test-suite is run in %%check
584bfd
- Removed perl dependency checking adjustment, rpm seems to be smart enough
584bfd
- Other minor spec file fixes
584bfd
584bfd
* Tue Dec 18 2012 Honza Horak <hhorak@redhat.com> 5.5.28a-4
584bfd
- Packaging of MariaDB based on MySQL package
584bfd