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