Blame SPECS/mariadb.spec

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