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