|
|
|
@ -1,10 +1,3 @@
|
|
|
|
|
# To both save infrastrucutre resources and workaround for i686 FTBFS
|
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
|
|
|
|
|
|
# This is a fix for the https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
|
|
|
|
|
# So the beaviour will be the same also in F31 nad F32
|
|
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
|
|
|
|
|
# Prefix that is used for patches
|
|
|
|
|
%global pkg_name %{name}
|
|
|
|
|
%global pkgnamepatch mariadb
|
|
|
|
@ -18,7 +11,7 @@ ExcludeArch: %{ix86}
|
|
|
|
|
# The last version on which the full testsuite has been run
|
|
|
|
|
# In case of further rebuilds of that version, don't require full testsuite to be run
|
|
|
|
|
# run only "main" suite
|
|
|
|
|
%global last_tested_version 10.11.6
|
|
|
|
|
%global last_tested_version 10.5.22
|
|
|
|
|
# Set to 1 to force run the testsuite even if it was already tested in current version
|
|
|
|
|
%global force_run_testsuite 0
|
|
|
|
|
|
|
|
|
@ -33,6 +26,11 @@ ExcludeArch: %{ix86}
|
|
|
|
|
# Turn that off to ensure such files don't get included in RPMs (cf bz#884755).
|
|
|
|
|
%global _default_patch_flags --no-backup-if-mismatch
|
|
|
|
|
|
|
|
|
|
# Temporary workaround to fix the "internal compiler error" described in https://bugzilla.redhat.com/show_bug.cgi?id=2239498
|
|
|
|
|
# TODO: Remove when the issue is resolved
|
|
|
|
|
%ifarch i686
|
|
|
|
|
%global _lto_cflags %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Mroonga engine
|
|
|
|
@ -61,14 +59,18 @@ ExcludeArch: %{ix86}
|
|
|
|
|
%bcond_without pam
|
|
|
|
|
|
|
|
|
|
# Other plugins
|
|
|
|
|
# S3 storage engine
|
|
|
|
|
# https://mariadb.com/kb/en/s3-storage-engine/
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%bcond_without cracklib
|
|
|
|
|
%bcond_without connect
|
|
|
|
|
%bcond_without sphinx
|
|
|
|
|
%bcond_without s3
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with cracklib
|
|
|
|
|
%bcond_with connect
|
|
|
|
|
%bcond_with sphinx
|
|
|
|
|
%bcond_with s3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%bcond_without gssapi
|
|
|
|
@ -108,7 +110,7 @@ ExcludeArch: %{ix86}
|
|
|
|
|
# MariaDB 10.0 and later requires pcre >= 10.34, otherwise we need to use
|
|
|
|
|
# the bundled library, since the package cannot be build with older version
|
|
|
|
|
# https://mariadb.com/kb/en/pcre/
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 8
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%bcond_without unbundled_pcre
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with unbundled_pcre
|
|
|
|
@ -139,6 +141,8 @@ ExcludeArch: %{ix86}
|
|
|
|
|
# Home directory of mysql user should be same for all packages that create it
|
|
|
|
|
%global mysqluserhome /var/lib/mysql
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Provide mysql names for compatibility
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%bcond_without mysql_names
|
|
|
|
@ -150,28 +154,30 @@ ExcludeArch: %{ix86}
|
|
|
|
|
%global sameevr %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Name: mariadb
|
|
|
|
|
Version: 10.11.6
|
|
|
|
|
Version: 10.5.22
|
|
|
|
|
Release: 1%{?with_debug:.debug}%{?dist}
|
|
|
|
|
Epoch: 3
|
|
|
|
|
|
|
|
|
|
Summary: A very fast and robust SQL database server
|
|
|
|
|
URL: http://mariadb.org
|
|
|
|
|
# Exceptions allow client libraries to be linked with most open source SW, not only GPL code. See README.mysql-license
|
|
|
|
|
License: GPLv2 with exceptions and LGPLv2 and BSD
|
|
|
|
|
License: GPLv2 and LGPLv2
|
|
|
|
|
|
|
|
|
|
# Original upstream sources archive URL
|
|
|
|
|
# Source0: https://downloads.mariadb.org/interstitial/mariadb-%{version}/source/mariadb-%{version}.tar.gz
|
|
|
|
|
# Non-existent URL containing correct archive name
|
|
|
|
|
# The archive was created by executing the "generate-modified-sources.sh" script
|
|
|
|
|
Source0: https://fedoraproject.org/mariadb-%{version}-downstream_modified.tar.gz
|
|
|
|
|
|
|
|
|
|
Source0: https://downloads.mariadb.org/interstitial/mariadb-%{version}/source/mariadb-%{version}.tar.gz
|
|
|
|
|
Source1: https://github.com/fmtlib/fmt/archive/refs/tags/8.0.1.zip
|
|
|
|
|
Source2: mysql_config_multilib.sh
|
|
|
|
|
Source3: my.cnf.in
|
|
|
|
|
Source6: README.mysql-docs
|
|
|
|
|
Source7: README.mysql-license
|
|
|
|
|
Source6: README.mariadb-docs
|
|
|
|
|
Source8: README.wsrep_sst_rsync_tunnel
|
|
|
|
|
Source10: mysql.tmpfiles.d.in
|
|
|
|
|
Source10: mariadb.tmpfiles.d.in
|
|
|
|
|
Source11: mysql.service.in
|
|
|
|
|
Source12: mysql-prepare-db-dir.sh
|
|
|
|
|
Source14: mysql-check-socket.sh
|
|
|
|
|
Source15: mysql-scripts-common.sh
|
|
|
|
|
Source16: mysql-check-upgrade.sh
|
|
|
|
|
Source12: mariadb-prepare-db-dir.sh
|
|
|
|
|
Source14: mariadb-check-socket.sh
|
|
|
|
|
Source15: mariadb-scripts-common.sh
|
|
|
|
|
Source16: mariadb-check-upgrade.sh
|
|
|
|
|
Source18: mysql@.service.in
|
|
|
|
|
Source50: rh-skipped-tests-base.list
|
|
|
|
|
Source51: rh-skipped-tests-arm.list
|
|
|
|
@ -213,13 +219,8 @@ Patch7: %{pkgnamepatch}-scripts.patch
|
|
|
|
|
Patch9: %{pkgnamepatch}-ownsetup.patch
|
|
|
|
|
# Patch10: Fix cipher name in the SSL Cipher name test
|
|
|
|
|
Patch10: %{pkgnamepatch}-ssl-cipher-tests.patch
|
|
|
|
|
# Patch16: Workaround for "chown 0" with priviledges dropped to "mysql" user
|
|
|
|
|
Patch16: %{pkgnamepatch}-auth_pam_tool_dir.patch
|
|
|
|
|
# Patch17: Revert of an upstream commit
|
|
|
|
|
Patch17: upstream_5cc2096f93b7f130b36f8bc0fc43440db9a848e4.patch
|
|
|
|
|
|
|
|
|
|
Patch11: %{pkgnamepatch}-fmt_bundle.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: cmake gcc-c++
|
|
|
|
|
BuildRequires: multilib-rpm-config
|
|
|
|
|
BuildRequires: selinux-policy-devel
|
|
|
|
@ -242,8 +243,6 @@ BuildRequires: bison bison-devel
|
|
|
|
|
|
|
|
|
|
%{?with_debug:BuildRequires: valgrind-devel}
|
|
|
|
|
|
|
|
|
|
# auth_pam.so plugin will be build if pam-devel is installed
|
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
|
# use either new enough version of pcre2 or provide bundles(pcre2)
|
|
|
|
|
%{?with_unbundled_pcre:BuildRequires: pcre2-devel >= 10.34 pkgconf}
|
|
|
|
|
%{!?with_unbundled_pcre:Provides: bundled(pcre2) = %{pcre_bundled_version}}
|
|
|
|
@ -293,8 +292,6 @@ BuildRequires: perl(warnings)
|
|
|
|
|
# for running some openssl tests rhbz#1189180
|
|
|
|
|
BuildRequires: openssl openssl-devel
|
|
|
|
|
|
|
|
|
|
#BuildRequires: fmt-devel
|
|
|
|
|
|
|
|
|
|
%if %{with debug}
|
|
|
|
|
BuildRequires: valgrind-devel
|
|
|
|
|
%endif
|
|
|
|
@ -320,7 +317,7 @@ Provides: mysql-compat-client%{?_isa} = %{sameevr}
|
|
|
|
|
|
|
|
|
|
Suggests: %{name}-server%{?_isa} = %{sameevr}
|
|
|
|
|
|
|
|
|
|
Conflicts: mysql
|
|
|
|
|
Conflicts: %{?fedora:community-}mysql
|
|
|
|
|
|
|
|
|
|
# Filtering: https://docs.fedoraproject.org/en-US/packaging-guidelines/AutoProvidesAndRequiresFiltering/
|
|
|
|
|
%global __requires_exclude ^perl\\((hostnames|lib::mtr|lib::v1|mtr_|My::|wsrep)
|
|
|
|
@ -330,11 +327,11 @@ Conflicts: mysql
|
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
MariaDB is a community developed branch of MySQL - a multi-user, multi-threaded
|
|
|
|
|
MariaDB is a community developed fork from MySQL - a multi-user, multi-threaded
|
|
|
|
|
SQL database server. It is a client/server implementation consisting of
|
|
|
|
|
a server daemon (mysqld) and many different client programs and libraries.
|
|
|
|
|
a server daemon (mariadbd) and many different client programs and libraries.
|
|
|
|
|
The base package contains the standard MariaDB/MySQL client programs and
|
|
|
|
|
generic MySQL files.
|
|
|
|
|
utilities.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with clibrary}
|
|
|
|
@ -356,7 +353,7 @@ to a MariaDB/MySQL server.
|
|
|
|
|
|
|
|
|
|
# At least main config file /etc/my.cnf is shared for client and server part
|
|
|
|
|
# Since we want to support combination of different client and server
|
|
|
|
|
# implementations (e.g. mariadb library and mysql server),
|
|
|
|
|
# implementations (e.g. mariadb library and community-mysql server),
|
|
|
|
|
# we need the config file(s) to be in a separate package, so no extra packages
|
|
|
|
|
# are pulled, because these would likely conflict.
|
|
|
|
|
# More specifically, the dependency on the main configuration file (/etc/my.cnf)
|
|
|
|
@ -418,10 +415,10 @@ Requires: rsync
|
|
|
|
|
|
|
|
|
|
%description server-galera
|
|
|
|
|
MariaDB is a multi-user, multi-threaded SQL database server. It is a
|
|
|
|
|
client/server implementation consisting of a server daemon (mysqld)
|
|
|
|
|
client/server implementation consisting of a server daemon (mariadbd)
|
|
|
|
|
and many different client programs and libraries. This package contains
|
|
|
|
|
the MariaDB server and some accompanying files and directories.
|
|
|
|
|
MariaDB is a community developed branch of MySQL.
|
|
|
|
|
added files to allow MariaDB server to operate as a Galera cluster
|
|
|
|
|
member. MariaDB is a community developed fork originally from MySQL.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -454,7 +451,7 @@ Suggests: logrotate
|
|
|
|
|
Requires: %{_sysconfdir}/my.cnf
|
|
|
|
|
Requires: %{_sysconfdir}/my.cnf.d
|
|
|
|
|
|
|
|
|
|
# Aditional SELinux rules (common for MariaDB & MySQL) shipped in a separate package
|
|
|
|
|
# Additional SELinux rules (common for MariaDB & MySQL) shipped in a separate package
|
|
|
|
|
# For cases, where we want to fix a SELinux issues in MariaDB sooner than patched selinux-policy-targeted package is released
|
|
|
|
|
%if %require_mysql_selinux
|
|
|
|
|
Requires: (mysql-selinux if selinux-policy-targeted)
|
|
|
|
@ -477,21 +474,19 @@ Provides: mysql-server%{?_isa} = %{sameevr}
|
|
|
|
|
Provides: mysql-compat-server = %{sameevr}
|
|
|
|
|
Provides: mysql-compat-server%{?_isa} = %{sameevr}
|
|
|
|
|
%endif
|
|
|
|
|
Conflicts: mysql-server
|
|
|
|
|
Conflicts: %{?fedora:community-}mysql-server
|
|
|
|
|
|
|
|
|
|
# Bench subpackage has been deprecated in F32
|
|
|
|
|
Obsoletes: %{name}-bench <= %{sameevr}
|
|
|
|
|
|
|
|
|
|
%if %{without tokudb}
|
|
|
|
|
Obsoletes: %{name}-tokudb-engine <= %{sameevr}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description server
|
|
|
|
|
MariaDB is a multi-user, multi-threaded SQL database server. It is a
|
|
|
|
|
client/server implementation consisting of a server daemon (mysqld)
|
|
|
|
|
client/server implementation consisting of a server daemon (mariadbd)
|
|
|
|
|
and many different client programs and libraries. This package contains
|
|
|
|
|
the MariaDB server and some accompanying files and directories.
|
|
|
|
|
MariaDB is a community developed branch of MySQL.
|
|
|
|
|
MariaDB is a community developed fork from MySQL.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with oqgraph}
|
|
|
|
@ -584,7 +579,7 @@ This plugin includes support for Kerberos on Unix.
|
|
|
|
|
Summary: PAM authentication plugin for the MariaDB server
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-server%{?_isa} = %{sameevr}
|
|
|
|
|
# This subpackage NEED the 'mysql' user/group (created during mariadb-server %pre) to be available prior installation
|
|
|
|
|
# This subpackage NEED the 'mysql' user/group (created during mariadb-server %%pre) to be available prior installation
|
|
|
|
|
Requires(pre): %{name}-server%{?_isa} = %{sameevr}
|
|
|
|
|
|
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
@ -606,15 +601,29 @@ The Sphinx storage engine for MariaDB.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with s3}
|
|
|
|
|
%package s3-engine
|
|
|
|
|
Summary: The S3 storage engine for MariaDB
|
|
|
|
|
Requires: %{name}-server%{?_isa} = %{sameevr}
|
|
|
|
|
|
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
|
|
|
|
|
|
%description s3-engine
|
|
|
|
|
The S3 read only storage engine allows archiving MariaDB tables in Amazon S3,
|
|
|
|
|
or any third-party public or private cloud that implements S3 API,
|
|
|
|
|
but still have them accessible for reading in MariaDB.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package server-utils
|
|
|
|
|
Summary: Non-essential server utilities for MariaDB/MySQL applications
|
|
|
|
|
Requires: %{name}-server%{?_isa} = %{sameevr}
|
|
|
|
|
%if %{with mysql_names}
|
|
|
|
|
Provides: mysql-perl = %{sameevr}
|
|
|
|
|
%endif
|
|
|
|
|
Conflicts: mysql-server
|
|
|
|
|
Conflicts: %{?fedora:community-}mysql-server
|
|
|
|
|
# mysqlhotcopy needs DBI/DBD support
|
|
|
|
|
Requires: perl(DBI) perl(DBD::mysql)
|
|
|
|
|
Requires: perl(DBI) perl(DBD::MariaDB)
|
|
|
|
|
|
|
|
|
|
%description server-utils
|
|
|
|
|
This package contains all non-essential server utilities and scripts for
|
|
|
|
@ -634,18 +643,18 @@ Requires: mariadb-connector-c-devel >= 3.0
|
|
|
|
|
Provides: mysql-devel = %{sameevr}
|
|
|
|
|
Provides: mysql-devel%{?_isa} = %{sameevr}
|
|
|
|
|
%endif
|
|
|
|
|
Conflicts: mysql-devel
|
|
|
|
|
Conflicts: %{?fedora:community-}mysql-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
MariaDB is a multi-user, multi-threaded SQL database server.
|
|
|
|
|
MariaDB is a community developed branch of MySQL.
|
|
|
|
|
%if %{with clibrary}
|
|
|
|
|
This package contains everything needed for developing MariaDB/MySQL client
|
|
|
|
|
and server applications.
|
|
|
|
|
and server plugins and applications.
|
|
|
|
|
%else
|
|
|
|
|
This package contains everything needed for developing MariaDB/MySQL server
|
|
|
|
|
applications. For developing client applications, use mariadb-connector-c
|
|
|
|
|
package.
|
|
|
|
|
plugins and applications. For developing client applications, use
|
|
|
|
|
mariadb-connector-c package.
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -664,7 +673,7 @@ Provides: mysql-embedded%{?_isa} = %{sameevr}
|
|
|
|
|
MariaDB is a multi-user, multi-threaded SQL database server. This
|
|
|
|
|
package contains a version of the MariaDB server that can be embedded
|
|
|
|
|
into a client application instead of running as a separate process.
|
|
|
|
|
MariaDB is a community developed branch of MySQL.
|
|
|
|
|
MariaDB is a community developed fork from MySQL.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package embedded-devel
|
|
|
|
@ -677,11 +686,11 @@ Requires: libaio-devel
|
|
|
|
|
Provides: mysql-embedded-devel = %{sameevr}
|
|
|
|
|
Provides: mysql-embedded-devel%{?_isa} = %{sameevr}
|
|
|
|
|
%endif
|
|
|
|
|
Conflicts: mysql-embedded-devel
|
|
|
|
|
Conflicts: %{?fedora:community-}mysql-embedded-devel
|
|
|
|
|
|
|
|
|
|
%description embedded-devel
|
|
|
|
|
MariaDB is a multi-user, multi-threaded SQL database server.
|
|
|
|
|
MariaDB is a community developed branch of MySQL.
|
|
|
|
|
MariaDB is a community developed fork from MySQL.
|
|
|
|
|
This package contains files needed for developing and testing with
|
|
|
|
|
the embedded version of the MariaDB server.
|
|
|
|
|
%endif
|
|
|
|
@ -705,7 +714,7 @@ Requires: perl(Socket)
|
|
|
|
|
Requires: perl(Sys::Hostname)
|
|
|
|
|
Requires: perl(Test::More)
|
|
|
|
|
Requires: perl(Time::HiRes)
|
|
|
|
|
Conflicts: mysql-test
|
|
|
|
|
Conflicts: %{?fedora:community-}mysql-test
|
|
|
|
|
%if %{with mysql_names}
|
|
|
|
|
Provides: mysql-test = %{sameevr}
|
|
|
|
|
Provides: mysql-test%{?_isa} = %{sameevr}
|
|
|
|
@ -713,14 +722,14 @@ Provides: mysql-test%{?_isa} = %{sameevr}
|
|
|
|
|
|
|
|
|
|
%description test
|
|
|
|
|
MariaDB is a multi-user, multi-threaded SQL database server.
|
|
|
|
|
MariaDB is a community developed branch of MySQL.
|
|
|
|
|
MariaDB is a community developed fork from MySQL.
|
|
|
|
|
This package contains the regression test suite distributed with the MariaDB
|
|
|
|
|
sources.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
%setup -q -n mariadb-%{version}-downstream_modified
|
|
|
|
|
|
|
|
|
|
# Remove JAR files that upstream puts into tarball
|
|
|
|
|
find . -name "*.jar" -type f -exec rm --verbose -f {} \;
|
|
|
|
@ -731,18 +740,16 @@ rm -r storage/rocksdb/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch7 -p1
|
|
|
|
|
%patch9 -p1
|
|
|
|
|
%patch11 -p1
|
|
|
|
|
# The test in Patch 10 has been recently updated by upstream
|
|
|
|
|
# and the test was disabled in the testuite run
|
|
|
|
|
# main.ssl_cipher [ disabled ] MDEV-17184 - Failures with OpenSSL 1.1.1
|
|
|
|
|
# Keeping the patch commented out, need to revisit
|
|
|
|
|
# once the test is re-enabled by upstream in some future release
|
|
|
|
|
#%%patch10 -p1
|
|
|
|
|
%patch16 -p1
|
|
|
|
|
%patch17 -R -p1
|
|
|
|
|
|
|
|
|
|
# generate a list of tests that fail, but are not disabled by upstream
|
|
|
|
|
cat %{SOURCE50} | tee -a mysql-test/unstable-tests
|
|
|
|
@ -760,9 +767,6 @@ cat %{SOURCE52} | tee -a mysql-test/unstable-tests
|
|
|
|
|
cat %{SOURCE53} | tee -a mysql-test/unstable-tests
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
mkdir -p %{_vpath_builddir}/bundles
|
|
|
|
|
cp %{SOURCE1} %{_vpath_builddir}/bundles/
|
|
|
|
|
|
|
|
|
|
cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
|
|
|
|
|
%{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE18} %{SOURCE70} %{SOURCE73} scripts
|
|
|
|
|
|
|
|
|
@ -794,7 +798,6 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
# fail quickly and obviously if user tries to build as root
|
|
|
|
|
%if %runselftest
|
|
|
|
|
if [ x"$(id -u)" = "x0" ]; then
|
|
|
|
@ -807,7 +810,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# The INSTALL_xxx macros have to be specified relative to CMAKE_INSTALL_PREFIX
|
|
|
|
|
# so we can't use %%{_datadir} and so forth here.
|
|
|
|
|
%cmake . \
|
|
|
|
|
%cmake \
|
|
|
|
|
-DBUILD_CONFIG=mysql_release \
|
|
|
|
|
-DFEATURE_SET="community" \
|
|
|
|
|
-DINSTALL_LAYOUT=RPM \
|
|
|
|
@ -848,7 +851,6 @@ fi
|
|
|
|
|
-DCONC_WITH_SSL=%{?with_clibrary:ON}%{!?with_clibrary:NO} \
|
|
|
|
|
-DWITH_SSL=system \
|
|
|
|
|
-DWITH_ZLIB=system \
|
|
|
|
|
-DWITH_LIBFMT=bundled \
|
|
|
|
|
-DLZ4_LIBS=%{_libdir}/liblz4.so \
|
|
|
|
|
-DLZ4_LIBS=%{?with_lz4:%{_libdir}/liblz4.so}%{!?with_lz4:} \
|
|
|
|
|
-DWITH_INNODB_LZ4=%{?with_lz4:ON}%{!?with_lz4:OFF} \
|
|
|
|
@ -859,6 +861,9 @@ fi
|
|
|
|
|
-DPLUGIN_ROCKSDB=%{?with_rocksdb:DYNAMIC}%{!?with_rocksdb:NO} \
|
|
|
|
|
-DPLUGIN_SPHINX=%{?with_sphinx:DYNAMIC}%{!?with_sphinx:NO} \
|
|
|
|
|
-DPLUGIN_CONNECT=%{?with_connect:DYNAMIC}%{!?with_connect:NO} \
|
|
|
|
|
-DPLUGIN_S3=%{?with_s3:DYNAMIC}%{!?with_s3:NO} \
|
|
|
|
|
-DPLUGIN_AUTH_PAM=%{?with_pam:YES}%{!?with_pam:NO} \
|
|
|
|
|
-DPLUGIN_AUTH_PAM_V1=%{?with_pam:DYNAMIC}%{!?with_pam:NO} \
|
|
|
|
|
-DPLUGIN_COLUMNSTORE=NO \
|
|
|
|
|
-DPLUGIN_CLIENT_ED25519=OFF \
|
|
|
|
|
-DPYTHON_SHEBANG=%{python_path} \
|
|
|
|
@ -866,8 +871,6 @@ fi
|
|
|
|
|
-DPLUGIN_AWS_KEY_MANAGEMENT=NO \
|
|
|
|
|
-DCONNECT_WITH_MONGO=OFF \
|
|
|
|
|
-DCONNECT_WITH_JDBC=OFF \
|
|
|
|
|
-DPLUGIN_PROVIDER_LZMA=NO \
|
|
|
|
|
-DPLUGIN_HASHICORP_KEY_MANAGEMENT=NO \
|
|
|
|
|
%{?with_debug: -DCMAKE_BUILD_TYPE=Debug -DWITH_ASAN=OFF -DWITH_INNODB_EXTRA_DEBUG=ON -DWITH_VALGRIND=ON}
|
|
|
|
|
|
|
|
|
|
# The -DSECURITY_HARDENED is used to force a set of compilation flags for hardening
|
|
|
|
@ -963,25 +966,31 @@ rm %{_vpath_builddir}/scripts/my.cnf
|
|
|
|
|
# use different config file name for each variant of server (mariadb / mysql)
|
|
|
|
|
mv %{buildroot}%{_sysconfdir}/my.cnf.d/server.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/%{pkg_name}-server.cnf
|
|
|
|
|
|
|
|
|
|
# remove SysV init script and a symlink to that, we use systemd
|
|
|
|
|
# Remove upstream SysV init script and a symlink to that, we use systemd
|
|
|
|
|
rm %{buildroot}%{_libexecdir}/rcmysql
|
|
|
|
|
# Remove upstream Systemd service files
|
|
|
|
|
rm -r %{buildroot}%{_datadir}/%{pkg_name}/systemd
|
|
|
|
|
# Our downstream Systemd service file have set aliases to the "mysql" names in the [Install] section.
|
|
|
|
|
# They can be enabled / disabled by "systemctl enable / diable <service_name>"
|
|
|
|
|
rm %{buildroot}%{_unitdir}/{mysql,mysqld}.service
|
|
|
|
|
|
|
|
|
|
# install systemd unit files and scripts for handling server startup
|
|
|
|
|
install -D -p -m 644 %{_vpath_builddir}/scripts/mysql.service %{buildroot}%{_unitdir}/%{daemon_name}.service
|
|
|
|
|
install -D -p -m 644 %{_vpath_builddir}/scripts/mysql@.service %{buildroot}%{_unitdir}/%{daemon_name}@.service
|
|
|
|
|
|
|
|
|
|
# helper scripts for service starting
|
|
|
|
|
install -p -m 755 %{_vpath_builddir}/scripts/mariadb-prepare-db-dir %{buildroot}%{_libexecdir}/mariadb-prepare-db-dir
|
|
|
|
|
install -p -m 755 %{_vpath_builddir}/scripts/mariadb-check-socket %{buildroot}%{_libexecdir}/mariadb-check-socket
|
|
|
|
|
install -p -m 755 %{_vpath_builddir}/scripts/mariadb-check-upgrade %{buildroot}%{_libexecdir}/mariadb-check-upgrade
|
|
|
|
|
install -p -m 644 %{_vpath_builddir}/scripts/mariadb-scripts-common %{buildroot}%{_libexecdir}/mariadb-scripts-common
|
|
|
|
|
|
|
|
|
|
# Install downstream version of tmpfiles
|
|
|
|
|
install -D -p -m 0644 %{_vpath_builddir}/scripts/mysql.tmpfiles.d %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
|
|
|
install -D -p -m 0644 %{_vpath_builddir}/scripts/mariadb.tmpfiles.d %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
|
|
|
%if 0%{?mysqld_pid_dir:1}
|
|
|
|
|
echo "d %{pidfiledir} 0755 mysql mysql -" >>%{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# helper scripts for service starting
|
|
|
|
|
install -p -m 755 %{_vpath_builddir}/scripts/mysql-prepare-db-dir %{buildroot}%{_libexecdir}/mysql-prepare-db-dir
|
|
|
|
|
install -p -m 755 %{_vpath_builddir}/scripts/mysql-check-socket %{buildroot}%{_libexecdir}/mysql-check-socket
|
|
|
|
|
install -p -m 755 %{_vpath_builddir}/scripts/mysql-check-upgrade %{buildroot}%{_libexecdir}/mysql-check-upgrade
|
|
|
|
|
install -p -m 644 %{_vpath_builddir}/scripts/mysql-scripts-common %{buildroot}%{_libexecdir}/mysql-scripts-common
|
|
|
|
|
|
|
|
|
|
# install aditional galera selinux policy
|
|
|
|
|
# install additional galera selinux policy
|
|
|
|
|
%if %{with galera}
|
|
|
|
|
install -p -m 644 -D selinux/%{name}-server-galera.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/%{name}-server-galera.pp
|
|
|
|
|
%endif
|
|
|
|
@ -1023,6 +1032,11 @@ rm %{buildroot}%{_mandir}/man1/mytop.1*
|
|
|
|
|
# Should be shipped with mariadb-connector-c
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/mariadb_config.1*
|
|
|
|
|
|
|
|
|
|
# put logrotate script where it needs to be
|
|
|
|
|
mkdir -p %{buildroot}%{logrotateddir}
|
|
|
|
|
mv %{buildroot}%{_datadir}/%{pkg_name}/mysql-log-rotate %{buildroot}%{logrotateddir}/%{daemon_name}
|
|
|
|
|
chmod 644 %{buildroot}%{logrotateddir}/%{daemon_name}
|
|
|
|
|
|
|
|
|
|
# for compatibility with upstream RPMs, create mysqld symlink in sbin
|
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
|
ln -s %{_libexecdir}/mysqld %{buildroot}%{_sbindir}/mysqld
|
|
|
|
@ -1030,17 +1044,10 @@ ln -s %{_libexecdir}/mariadbd %{buildroot}%{_sbindir}/mariadbd
|
|
|
|
|
|
|
|
|
|
# copy additional docs into build tree so %%doc will find them
|
|
|
|
|
install -p -m 0644 %{SOURCE6} %{basename:%{SOURCE6}}
|
|
|
|
|
install -p -m 0644 %{SOURCE7} %{basename:%{SOURCE7}}
|
|
|
|
|
install -p -m 0644 %{SOURCE8} %{basename:%{SOURCE8}}
|
|
|
|
|
install -p -m 0644 %{SOURCE16} %{basename:%{SOURCE16}}
|
|
|
|
|
install -p -m 0644 %{SOURCE71} %{basename:%{SOURCE71}}
|
|
|
|
|
|
|
|
|
|
# Delete upstreams service files
|
|
|
|
|
# We don't use this location of service files
|
|
|
|
|
rm %{buildroot}%{_datadir}/%{pkg_name}/systemd/{mysql,mysqld}.service
|
|
|
|
|
# These may come handy in a future, but right now we use our own services
|
|
|
|
|
rm %{buildroot}/usr/lib/systemd/system/{mysql,mysqld}.service
|
|
|
|
|
|
|
|
|
|
# install galera config file
|
|
|
|
|
%if %{with galera}
|
|
|
|
|
sed -i -r 's|^wsrep_provider=none|wsrep_provider=%{_libdir}/galera/libgalera_smm.so|' %{_vpath_builddir}/support-files/wsrep.cnf
|
|
|
|
@ -1052,20 +1059,18 @@ touch %{buildroot}%{_sysconfdir}/sysconfig/clustercheck
|
|
|
|
|
install -p -m 0755 %{_vpath_builddir}/scripts/clustercheck %{buildroot}%{_bindir}/clustercheck
|
|
|
|
|
|
|
|
|
|
# remove duplicate logrotate script
|
|
|
|
|
rm %{buildroot}%{_datadir}/mariadb/mariadb.logrotate
|
|
|
|
|
rm %{buildroot}%{logrotateddir}/mysql
|
|
|
|
|
# Remove AppArmor files
|
|
|
|
|
rm -r %{buildroot}%{_datadir}/%{pkg_name}/policy/apparmor
|
|
|
|
|
|
|
|
|
|
# Buildroot does not have symlink /lib64 --> /usr/lib64
|
|
|
|
|
%if %{with pam}
|
|
|
|
|
mv %{buildroot}/%{_lib}/security %{buildroot}%{_libdir}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Add wsrep_sst_rsync_tunnel script
|
|
|
|
|
install -p -m 0755 scripts/wsrep_sst_rsync_tunnel %{buildroot}%{_bindir}/wsrep_sst_rsync_tunnel
|
|
|
|
|
|
|
|
|
|
# Remove systemd socket files from %%{_unitdir}
|
|
|
|
|
# We ship them in %%{_datadir}, so users can try them out on their own risk
|
|
|
|
|
rm %{buildroot}%{_unitdir}/%{daemon_name}*.socket
|
|
|
|
|
|
|
|
|
|
# Disable plugins
|
|
|
|
|
%if %{with gssapi}
|
|
|
|
|
sed -i 's/^plugin-load-add/#plugin-load-add/' %{buildroot}%{_sysconfdir}/my.cnf.d/auth_gssapi.cnf
|
|
|
|
@ -1094,7 +1099,6 @@ rm %{buildroot}%{_libdir}/libmariadb.so.*
|
|
|
|
|
unlink %{buildroot}%{_libdir}/libmysqlclient.so
|
|
|
|
|
unlink %{buildroot}%{_libdir}/libmysqlclient_r.so
|
|
|
|
|
unlink %{buildroot}%{_libdir}/libmariadb.so
|
|
|
|
|
rm %{buildroot}%{_mandir}/man3/*
|
|
|
|
|
# Client plugins
|
|
|
|
|
rm %{buildroot}%{_libdir}/%{pkg_name}/plugin/{dialog.so,mysql_clear_password.so,sha256_password.so}
|
|
|
|
|
%if %{with gssapi}
|
|
|
|
@ -1138,6 +1142,8 @@ rm %{buildroot}%{_mandir}/man1/msql2mysql.1*
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/{mysql,mariadb}.1*
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/mysql{access,admin,binlog,check,dump,_find_rows,import,_plugin,show,slap,_waitpid}.1*
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/mariadb-{access,admin,binlog,check,dump,find-rows,import,plugin,show,slap,waitpid}.1*
|
|
|
|
|
|
|
|
|
|
rm %{buildroot}%{_sysconfdir}/my.cnf.d/mysql-clients.cnf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without config}
|
|
|
|
@ -1153,30 +1159,32 @@ rm %{buildroot}%{_datadir}/%{pkg_name}/errmsg-utf8.txt
|
|
|
|
|
rm -r %{buildroot}%{_datadir}/%{pkg_name}/{english,czech,danish,dutch,estonian,\
|
|
|
|
|
french,german,greek,hungarian,italian,japanese,korean,norwegian,norwegian-ny,\
|
|
|
|
|
polish,portuguese,romanian,russian,serbian,slovak,spanish,swedish,ukrainian,hindi,\
|
|
|
|
|
bulgarian,chinese,georgian}
|
|
|
|
|
bulgarian,chinese}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without test}
|
|
|
|
|
%if %{with embedded}
|
|
|
|
|
rm %{buildroot}%{_bindir}/test-connect-t
|
|
|
|
|
rm %{buildroot}%{_bindir}/{mysql_client_test_embedded,mysqltest_embedded}
|
|
|
|
|
rm %{buildroot}%{_bindir}/{mariadb-client-test-embedded,mariadb-test-embedded}
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/{mysql_client_test_embedded,mysqltest_embedded}.1*
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/{mariadb-client-test-embedded,mariadb-test-embedded}.1*
|
|
|
|
|
%endif # embedded
|
|
|
|
|
%if %{with pam}
|
|
|
|
|
rm %{buildroot}/suite/plugins/pam/mariadb_mtr
|
|
|
|
|
rm %{buildroot}/suite/plugins/pam/pam_mariadb_mtr.so
|
|
|
|
|
%endif # pam
|
|
|
|
|
rm %{buildroot}%{_bindir}/{mysql_client_test,mysqltest}
|
|
|
|
|
rm %{buildroot}%{_bindir}/{mariadb-client-test,mariadb-test}
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/{mysql_client_test,mysqltest,my_safe_process}.1*
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/{mariadb-client-test,mariadb-test}.1*
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/{mysql-test-run,mysql-stress-test}.pl.1*
|
|
|
|
|
rm %{buildroot}/suite/plugins/pam/mariadb_mtr
|
|
|
|
|
rm %{buildroot}/suite/plugins/pam/pam_mariadb_mtr.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without galera}
|
|
|
|
|
rm %{buildroot}%{_sysconfdir}/sysconfig/clustercheck
|
|
|
|
|
rm %{buildroot}%{_bindir}/{clustercheck,galera_new_cluster}
|
|
|
|
|
rm %{buildroot}%{_bindir}/galera_recovery
|
|
|
|
|
rm %{buildroot}%{_datadir}/%{pkg_name}/systemd/use_galera_new_cluster.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without rocksdb}
|
|
|
|
@ -1189,6 +1197,10 @@ rm %{buildroot}%{_mandir}/man1/maria{,db-}backup.1*
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/mbstream.1*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without s3}
|
|
|
|
|
rm %{buildroot}%{_mandir}/man1/aria_s3_copy.1*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with test}
|
|
|
|
|
%if %runselftest
|
|
|
|
@ -1233,7 +1245,7 @@ export MTR_BUILD_THREAD=$(( $(date +%s) % 1100 ))
|
|
|
|
|
# If either this version wasn't marked as tested yet or I explicitly want to run the testsuite, run everything we have (~4000 test)
|
|
|
|
|
if [[ "%{last_tested_version}" != "%{version}" ]] || [[ %{force_run_testsuite} -ne 0 ]]
|
|
|
|
|
then
|
|
|
|
|
echo -e "running advanced testsuite"
|
|
|
|
|
echo -e "\n\nRunning the advanced testsuite\n\n"
|
|
|
|
|
perl ./mysql-test-run.pl $common_testsuite_arguments --ssl --big-test --skip-test=spider \
|
|
|
|
|
%if %{ignore_testsuite_result}
|
|
|
|
|
--max-test-fail=9999 || :
|
|
|
|
@ -1241,7 +1253,7 @@ export MTR_BUILD_THREAD=$(( $(date +%s) % 1100 ))
|
|
|
|
|
--skip-test-list=unstable-tests
|
|
|
|
|
%endif
|
|
|
|
|
# Second run for the SPIDER suites that fail with SCA (ssl self signed certificate)
|
|
|
|
|
perl ./mysql-test-run.pl $common_testsuite_arguments --skip-ssl --big-test --suite=spider,spider/bg,spider/bugfix --skip-test-list=unstable-tests \
|
|
|
|
|
perl ./mysql-test-run.pl $common_testsuite_arguments --skip-ssl --big-test --suite=spider,spider/bg,spider/bugfix,spider/handler \
|
|
|
|
|
%if %{ignore_testsuite_result}
|
|
|
|
|
--max-test-fail=999 || :
|
|
|
|
|
%else
|
|
|
|
@ -1252,8 +1264,6 @@ export MTR_BUILD_THREAD=$(( $(date +%s) % 1100 ))
|
|
|
|
|
|
|
|
|
|
# There might be a dangling symlink left from the testing, remove it to not be installed
|
|
|
|
|
rm -rf ./var
|
|
|
|
|
# Remove temporary files created by the testsuite execution
|
|
|
|
|
find ./ -type f -name '*~' -exec rm {} +
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# NOTE: the Spider SE has 2 more hidden testsuites "oracle" and "oracle2".
|
|
|
|
@ -1372,7 +1382,6 @@ fi
|
|
|
|
|
%lang(uk) %{_datadir}/%{pkg_name}/ukrainian
|
|
|
|
|
%lang(bg) %{_datadir}/%{pkg_name}/bulgarian
|
|
|
|
|
%lang(zh) %{_datadir}/%{pkg_name}/chinese
|
|
|
|
|
%lang(ka) %{_datadir}/%{pkg_name}/georgian
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with galera}
|
|
|
|
@ -1382,7 +1391,6 @@ fi
|
|
|
|
|
%{_bindir}/clustercheck
|
|
|
|
|
%{_bindir}/galera_new_cluster
|
|
|
|
|
%{_bindir}/galera_recovery
|
|
|
|
|
%{_datadir}/%{pkg_name}/systemd/use_galera_new_cluster.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/galera.cnf
|
|
|
|
|
%attr(0640,root,root) %ghost %config(noreplace) %{_sysconfdir}/sysconfig/clustercheck
|
|
|
|
|
%{_datadir}/selinux/packages/%{name}/%{name}-server-galera.pp
|
|
|
|
@ -1419,11 +1427,6 @@ fi
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/enable_encryption.preset
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/spider.cnf
|
|
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/provider_lz4.cnf
|
|
|
|
|
#%config(noreplace) %{_sysconfdir}/my.cnf.d/provider_lzma.cnf
|
|
|
|
|
|
|
|
|
|
#%config(noreplace) %{_sysconfdir}/my.cnf.d/hashicorp_key_management.cnf
|
|
|
|
|
|
|
|
|
|
%{_sbindir}/mysqld
|
|
|
|
|
%{_sbindir}/mariadbd
|
|
|
|
|
%{_libexecdir}/{mysqld,mariadbd}
|
|
|
|
@ -1436,6 +1439,7 @@ fi
|
|
|
|
|
|
|
|
|
|
%dir %{_libdir}/%{pkg_name}
|
|
|
|
|
%dir %{_libdir}/%{pkg_name}/plugin
|
|
|
|
|
|
|
|
|
|
%{_libdir}/%{pkg_name}/plugin/*
|
|
|
|
|
%{?with_oqgraph:%exclude %{_libdir}/%{pkg_name}/plugin/ha_oqgraph.so}
|
|
|
|
|
%{?with_connect:%exclude %{_libdir}/%{pkg_name}/plugin/ha_connect.so}
|
|
|
|
@ -1443,6 +1447,7 @@ fi
|
|
|
|
|
%{?with_rocksdb:%exclude %{_libdir}/%{pkg_name}/plugin/ha_rocksdb.so}
|
|
|
|
|
%{?with_gssapi:%exclude %{_libdir}/%{pkg_name}/plugin/auth_gssapi.so}
|
|
|
|
|
%{?with_sphinx:%exclude %{_libdir}/%{pkg_name}/plugin/ha_sphinx.so}
|
|
|
|
|
%{?with_s3:%exclude %{_libdir}/%{pkg_name}/plugin/ha_s3.so}
|
|
|
|
|
%if %{with clibrary}
|
|
|
|
|
%exclude %{_libdir}/%{pkg_name}/plugin/dialog.so
|
|
|
|
|
%exclude %{_libdir}/%{pkg_name}/plugin/mysql_clear_password.so
|
|
|
|
@ -1453,7 +1458,7 @@ fi
|
|
|
|
|
%exclude %dir %{_libdir}/%{pkg_name}/plugin/auth_pam_tool_dir
|
|
|
|
|
%exclude %{_libdir}/%{pkg_name}/plugin/auth_pam_tool_dir/auth_pam_tool
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man1/aria_{chk,dump_log,ftdump,pack,read_log,s3_copy}.1*
|
|
|
|
|
%{_mandir}/man1/aria_{chk,dump_log,ftdump,pack,read_log}.1*
|
|
|
|
|
%{_mandir}/man1/galera_new_cluster.1*
|
|
|
|
|
%{_mandir}/man1/galera_recovery.1*
|
|
|
|
|
%{_mandir}/man1/mariadb-service-convert.1*
|
|
|
|
@ -1479,12 +1484,10 @@ fi
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man1/mysql.server.1*
|
|
|
|
|
|
|
|
|
|
%{_datadir}/%{pkg_name}/mini-benchmark
|
|
|
|
|
%{_datadir}/%{pkg_name}/fill_help_tables.sql
|
|
|
|
|
%{_datadir}/%{pkg_name}/maria_add_gis_sp.sql
|
|
|
|
|
%{_datadir}/%{pkg_name}/maria_add_gis_sp_bootstrap.sql
|
|
|
|
|
%{_datadir}/%{pkg_name}/mysql_system_tables.sql
|
|
|
|
|
%{_datadir}/%{pkg_name}/mysql_sys_schema.sql
|
|
|
|
|
%{_datadir}/%{pkg_name}/mysql_system_tables_data.sql
|
|
|
|
|
%{_datadir}/%{pkg_name}/mysql_test_data_timezone.sql
|
|
|
|
|
%{_datadir}/%{pkg_name}/mysql_performance_tables.sql
|
|
|
|
@ -1508,19 +1511,13 @@ fi
|
|
|
|
|
%{_datadir}/%{pkg_name}/policy/selinux/README
|
|
|
|
|
%{_datadir}/%{pkg_name}/policy/selinux/mariadb-server.*
|
|
|
|
|
%{_datadir}/%{pkg_name}/policy/selinux/mariadb.*
|
|
|
|
|
%{_datadir}/%{pkg_name}/systemd/mariadb.service
|
|
|
|
|
%{_datadir}/%{pkg_name}/systemd/mariadb*@.socket
|
|
|
|
|
# mariadb@ is installed only when we have cmake newer than 3.3
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
%{_datadir}/%{pkg_name}/systemd/mariadb@.service
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{_unitdir}/%{daemon_name}*
|
|
|
|
|
|
|
|
|
|
%{_libexecdir}/mysql-prepare-db-dir
|
|
|
|
|
%{_libexecdir}/mysql-check-socket
|
|
|
|
|
%{_libexecdir}/mysql-check-upgrade
|
|
|
|
|
%{_libexecdir}/mysql-scripts-common
|
|
|
|
|
%{_libexecdir}/mariadb-prepare-db-dir
|
|
|
|
|
%{_libexecdir}/mariadb-check-socket
|
|
|
|
|
%{_libexecdir}/mariadb-check-upgrade
|
|
|
|
|
%{_libexecdir}/mariadb-scripts-common
|
|
|
|
|
|
|
|
|
|
%attr(0755,mysql,mysql) %dir %{pidfiledir}
|
|
|
|
|
%attr(0755,mysql,mysql) %dir %{dbdatadir}
|
|
|
|
@ -1591,6 +1588,14 @@ fi
|
|
|
|
|
%{_libdir}/%{pkg_name}/plugin/ha_connect.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with s3}
|
|
|
|
|
%files s3-engine
|
|
|
|
|
%{_bindir}/aria_s3_copy
|
|
|
|
|
%{_mandir}/man1/aria_s3_copy.1*
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/my.cnf.d/s3.cnf
|
|
|
|
|
%{_libdir}/%{pkg_name}/plugin/ha_s3.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files server-utils
|
|
|
|
|
# Perl utilities
|
|
|
|
|
%{_bindir}/mysql{_convert_table_format,dumpslow,_fix_extensions,hotcopy,_setpermission}
|
|
|
|
@ -1612,7 +1617,6 @@ fi
|
|
|
|
|
%{_datadir}/aclocal/mysql.m4
|
|
|
|
|
%{_libdir}/pkgconfig/*mariadb.pc
|
|
|
|
|
%if %{with clibrary}
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%{_libdir}/{libmysqlclient.so.18,libmariadb.so,libmysqlclient.so,libmysqlclient_r.so}
|
|
|
|
|
%{_bindir}/mysql_config*
|
|
|
|
|
%{_bindir}/mariadb_config*
|
|
|
|
@ -1652,27 +1656,6 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Apr 03 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3:10.11.6-1
|
|
|
|
|
- Rebuilt for MSVSphere 8.10 beta
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Michal Schorm <mschorm@redhat.com> - 3:10.11.6-1
|
|
|
|
|
- Rebase to 10.11.6
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Michal Schorm <mschorm@redhat.com> - 3:10.10.7-1
|
|
|
|
|
- Rebase to 10.10.7
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Michal Schorm <mschorm@redhat.com> - 3:10.9.8-1
|
|
|
|
|
- Rebase to 10.9.8
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Michal Schorm <mschorm@redhat.com> - 3:10.8.8-1
|
|
|
|
|
- Rebase to 10.8.8
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Michal Schorm <mschorm@redhat.com> - 3:10.7.8-1
|
|
|
|
|
- Rebase to 10.7.8
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 Michal Schorm <mschorm@redhat.com> - 3:10.6.16-1
|
|
|
|
|
- Rebase to 10.6.16
|
|
|
|
|
|
|
|
|
|
* Mon Sep 04 2023 Michal Schorm <mschorm@redhat.com> - 3:10.5.22-1
|
|
|
|
|
- Rebase to 10.5.22
|
|
|
|
|
|
|
|
|
@ -1698,37 +1681,103 @@ fi
|
|
|
|
|
* Sun Feb 20 2022 Michal Schorm <mschorm@redhat.com> - 3:10.5.15-1
|
|
|
|
|
- Rebase to 10.5.15
|
|
|
|
|
|
|
|
|
|
* Tue Jan 11 2022 Michal Schorm <mschorm@redhat.com> - 3:10.5.13-1
|
|
|
|
|
* Mon Feb 07 2022 Honza Horak <hhorak@redhat.com> - 3:10.5.13-2
|
|
|
|
|
- Fix md5 in FIPS mode with OpenSSL 3.0.0
|
|
|
|
|
Resolves: #2050541
|
|
|
|
|
|
|
|
|
|
* Thu Dec 02 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.13-1
|
|
|
|
|
- Rebase to 10.5.13
|
|
|
|
|
|
|
|
|
|
* Thu Nov 18 2021 Honza Horak <hhorak@redhat.com> - 3:10.5.12-4
|
|
|
|
|
- Use OpenSSL 3.0.0 patch from upstream
|
|
|
|
|
Related: #1991498
|
|
|
|
|
|
|
|
|
|
* Mon Oct 11 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.12-3
|
|
|
|
|
- Add wsrep_sst_rsync_tunnel script
|
|
|
|
|
|
|
|
|
|
* Tue Aug 24 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.5.12-1
|
|
|
|
|
* Tue Aug 17 2021 Honza Horak <hhorak@redhat.com> - 3:10.5.12-2
|
|
|
|
|
- Fix OpenSSL 3.x compatibility
|
|
|
|
|
Resolves: #1962047
|
|
|
|
|
|
|
|
|
|
* Tue Aug 17 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.12-1
|
|
|
|
|
- Rebase to 10.5.12
|
|
|
|
|
|
|
|
|
|
* Thu Aug 19 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.5.11-1
|
|
|
|
|
* Tue Aug 17 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.11-1
|
|
|
|
|
- Rebase to 10.5.11
|
|
|
|
|
|
|
|
|
|
* Mon Aug 16 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.5.10-2
|
|
|
|
|
- Set user_map.conf file to be noreplace config file
|
|
|
|
|
- Resolves: rhbz#1989621
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Sat Aug 7 2021 Florian Weimer <fweimer@redhat.com> - 3:10.5.10-5
|
|
|
|
|
- Another rebuild against pcre2-10.37 (bug #1970765)
|
|
|
|
|
|
|
|
|
|
* Wed Jul 28 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.5.10-4
|
|
|
|
|
- Rebuild against pcre2-10.37 (bug #1970765)
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com>
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
* Wed May 12 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.10-2
|
|
|
|
|
- Use modified sources instead of the upstream original ones
|
|
|
|
|
|
|
|
|
|
* Tue May 11 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.10-1
|
|
|
|
|
- Rebase to 10.5.10
|
|
|
|
|
|
|
|
|
|
* Mon May 10 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.9-2
|
|
|
|
|
- Modify the upstream sources
|
|
|
|
|
* Tue May 11 2021 Honza Horak <hhorak@redhat.com> - 3:10.5.9-9
|
|
|
|
|
- Fix OpenSSL 3.x compatibility
|
|
|
|
|
Resolves: #1962047
|
|
|
|
|
|
|
|
|
|
* Mon May 03 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.9-8
|
|
|
|
|
- Fix package Conflicts
|
|
|
|
|
|
|
|
|
|
* Fri Apr 30 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.9-7
|
|
|
|
|
- Rebuilt for RHEL 9 BETA
|
|
|
|
|
|
|
|
|
|
* Mon Mar 22 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.9-1
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3:10.5.9-6
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Mar 30 2021 Jonathan Wakely <jwakely@redhat.com> - 3:10.5.9-5
|
|
|
|
|
- Rebuilt for removed libstdc++ symbol (#1937698)
|
|
|
|
|
|
|
|
|
|
* Thu Mar 18 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.9-4
|
|
|
|
|
- Move PAM plugin to standalone subpackage
|
|
|
|
|
|
|
|
|
|
* Thu Mar 18 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.9-3
|
|
|
|
|
- Fixed permissions on files from PAMv2 plugin
|
|
|
|
|
|
|
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3:10.5.9-2
|
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
|
|
|
|
|
* Wed Feb 24 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.9-1
|
|
|
|
|
- Rebase to 10.5.9
|
|
|
|
|
|
|
|
|
|
* Fri Mar 19 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.8-4
|
|
|
|
|
- Move the PAM plugin to a standalone sub-package
|
|
|
|
|
* Tue Feb 16 2021 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.5.8-8
|
|
|
|
|
- Replace the tokudb Obsoletes to the right place
|
|
|
|
|
- Resolves: #1928757
|
|
|
|
|
|
|
|
|
|
* Fri Feb 12 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.8-7
|
|
|
|
|
- Enhance the logrotate script
|
|
|
|
|
- Resolves: #1683981
|
|
|
|
|
|
|
|
|
|
* Fri Feb 12 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.8-6
|
|
|
|
|
- Fix Perl database driver dependency
|
|
|
|
|
|
|
|
|
|
* Wed Feb 10 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.8-5
|
|
|
|
|
- Add support for S3 storage engine
|
|
|
|
|
|
|
|
|
|
* Thu Jan 28 2021 Honza Horak <hhorak@redhat.com> - 3:10.5.8-4
|
|
|
|
|
- For compatibility with upstream RPMs, create mysqld symlink in sbin
|
|
|
|
|
|
|
|
|
|
* Thu Mar 18 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.8-3
|
|
|
|
|
- Fix permissions of the PAMv2 plugin files
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3:10.5.8-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 16 2021 Michal Schorm <mschorm@redhat.com> - 3:10.5.8-2
|
|
|
|
|
- Bump release after several commits cherry-picked from Fedora Rawhide
|
|
|
|
|
* Fri Dec 11 2020 Lukas Javorsky <ljavorsk@redhat.com> - 3:10.5.8-2
|
|
|
|
|
- Add tokudb-engine to obsoletes
|
|
|
|
|
- Resolves: #1906559
|
|
|
|
|
|
|
|
|
|
* Wed Nov 11 2020 Michal Schorm <mschorm@redhat.com> - 3:10.5.8-1
|
|
|
|
|
- Rebase to 10.5.8
|
|
|
|
|