← Back to team overview

maria-discuss team mailing list archive

MariaDB 10.2.7 and libmysql compatibility

 

i am missing something (probably simple like symbol versioning however done with some hack) or is it really not possible by providing symlinks to avoid "libmysqlclient.so.18 => not found" and all clients linked against 10.1.x failing?

attached my current rpm-spec - the server itself works fine and i really want to avoid building a "server-only" package for the whole lifetime of Fedora25/26 as well as not wait for Fedora 27 to get 10.2.x

[root@testserver:/usr/lib64/mysql]$ ls
insgesamt 308K
lrwxrwxrwx 1 root root 13 2017-07-13 13:15 libmysqlclient.so.18.0.0 -> libmariadb.so lrwxrwxrwx 1 root root 13 2017-07-13 13:15 libmysqlclient.so.18 -> libmariadb.so
-rwxr-xr-x 1 root root 305K 2017-07-13 13:15 libmariadb.so.3
lrwxrwxrwx 1 root root 15 2017-07-13 13:15 libmariadb.so -> libmariadb.so.3 lrwxrwxrwx 1 root root 17 2017-07-13 13:15 libmysqlclient_r.so -> libmysqlclient.so lrwxrwxrwx 1 root root 13 2017-07-13 13:15 libmysqlclient.so -> libmariadb.so

[root@testserver:/usr/lib64/mysql]$ ldd /usr/sbin/dbmail-imapd
        linux-vdso.so.1 (0x00007fff2fdfd000)
        libgmime-2.6.so.0 => /lib64/libgmime-2.6.so.0 (0x00007f0b0fd94000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007f0b0fb42000)
        libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f0b0f82f000)
        libevent-2.0.so.5 => /lib64/libevent-2.0.so.5 (0x00007f0b0f7e5000)
        libzdb.so.11 => /lib64/libzdb.so.11 (0x00007f0b0f7d0000)
libdbmail.so.0 => /usr/lib64/dbmail/libdbmail.so.0 (0x00007f0b0f759000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0b0f53b000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f0b0f175000)
        libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007f0b0ede2000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f0b0ebcc000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f0b0e95a000)
        libffi.so.6 => /lib64/libffi.so.6 (0x00007f0b0e750000)
        libmysqlclient.so.18 => not found
        libm.so.6 => /lib64/libm.so.6 (0x00007f0b0e447000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f0b0e243000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007f0b0dfd1000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f0b0db70000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00007f0b0d96a000) libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007f0b0d768000)
        libmhash.so.2 => /lib64/libmhash.so.2 (0x00007f0b0d53c000)
libevent_pthreads-2.0.so.5 => /lib64/libevent_pthreads-2.0.so.5 (0x00007f0b0d538000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f0b0d302000)
        /lib64/ld-linux-x86-64.so.2 (0x0000559e18ffe000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f0b0d0db000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f0b0cebe000)
        libmount.so.1 => /lib64/libmount.so.1 (0x00007f0b0cc74000)
        libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f0b0ca46000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f0b0c7f9000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f0b0c513000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f0b0c30f000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f0b0c0dc000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007f0b0bed9000)
        libblkid.so.1 => /lib64/libblkid.so.1 (0x00007f0b0bc96000)
        libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f0b0ba91000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f0b0b889000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f0b0b678000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f0b0b474000)

Name:              mariadb
Version:           10.2.7
Release:           4%{?dist}
Epoch:             5
Summary:           MariaDB client programs and shared libraries
Group:             Applications/Databases
License:           GPLv2
URL:               https://downloads.mariadb.org/
Source0:           %{name}-%{version}.tar.gz
Source1:           mysqld.service
Source2:           mysqld-dbmail.service
Source3:           mysqld-replication.service
Source4:           mysqld-wait-ready
Source5:           mysqld-dbmail-wait-ready
Source999:         filter-requires-mysql.sh
BuildRequires:     bison
BuildRequires:     cmake
BuildRequires:     gcc-c++
BuildRequires:     gperf
BuildRequires:     libaio-devel
BuildRequires:     libedit-devel
BuildRequires:     ncurses-devel
BuildRequires:     openssl-devel
BuildRequires:     perl
BuildRequires:     perl(Data::Dumper)
BuildRequires:     perl(Socket)
BuildRequires:     perl(Test::More)
BuildRequires:     perl(Time::HiRes)
BuildRequires:     procps-ng
BuildRequires:     systemtap-sdt-devel
BuildRequires:     time
BuildRequires:     zlib-devel
Requires:          bash
Requires:          fileutils
Requires:          grep
Requires:          %{name}-libs = %{epoch}:%{version}-%{release}
Provides:          mysql = %{epoch}:%{version}-%{release}, mysql%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes:         mysql, community-mysql

%global __perl_requires %{SOURCE999}
%global __perllib_requires %{SOURCE999}
%global _default_patch_flags --no-backup-if-mismatch

%description
MariaDB is a multi-user, multi-threaded SQL database server

%package           libs
Summary:           The shared libraries required for MariaDB clients
Group:             Applications/Databases
Provides:          mysql-libs = %{epoch}:%{version}-%{release}, mysql-libs%{?_isa} = %{epoch}:%{version}-%{release}
Provides:          libmysqlclient.so.18()(64bit)
Provides:          libmysqlclient.so.18(libmysqlclient_16)(64bit)
Provides:          libmysqlclient.so.18(libmysqlclient_18)(64bit)
Obsoletes:         mysql-libs, community-mysql-libs
%description       libs

%package           server
Summary:           The MariaDB server and related files
Group:             Applications/Databases
Requires:          %{name} = %{epoch}:%{version}-%{release}, %{name}-libs = %{epoch}:%{version}-%{release}
Requires:          sh-utils
Requires(pre):     shadow-utils
Provides:          mysql-server = %{epoch}:%{version}-%{release}, mysql-server%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes:         mysql-server, community-mysql-server
%description       server

%package           devel
Summary:           Files for development of MariaDB applications
Group:             Applications/Databases
Requires:          %{name} = %{epoch}:%{version}-%{release}, %{name}-libs = %{epoch}:%{version}-%{release}
Requires:          openssl-devel
Provides:          mysql-devel = %{epoch}:%{version}-%{release}, mysql-devel%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes:         mysql-devel, community-mysql-devel
%description       devel

%package           test
Summary:           The test suite distributed with MariaDB
Group:             Applications/Databases
Requires:          %{name} = %{epoch}:%{version}-%{release}, %{name}-server = %{epoch}:%{version}-%{release}
Requires:          perl-DBD-MySQL, perl-DBI, perl-Env, perl-Memoize
Provides:          mysql-test = %{epoch}:%{version}-%{release}, mysql-test%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes:         mysql-test, community-mysql-test
%description       test

%package           manpages
Summary:           MariaDB manpages
Group:             Applications/Databases
Provides:          mysql-manpages = %{epoch}:%{version}-%{release}, mysql-manpages%{?_isa} = %{epoch}:%{version}-%{release}
%description       manpages

%prep
%setup -q -n %{name}-%{version}

%build
LTO_FLAGS="-flto -ffat-lto-objects -fuse-linker-plugin"
LTO_FLAGS=""
export CFLAGS="%{optflags} %{O3_flags} -fPIC -minline-all-stringops -fwrapv -fno-stack-protector -fstack-protector --param=ssp-buffer-size=8 -fexceptions -fno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wno-stack-protector $LTO_FLAGS -Wa,--noexecstack"
export CXXFLAGS="$CFLAGS -fno-rtti "
export FFLAGS="$CFLAGS"
export FCFLAGS="$CFLAGS"
export SH_LDFLAGS="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump %{optflags} %{O3_flags} -fPIC -minline-all-stringops -fwrapv -fno-stack-protector -fstack-protector --param=ssp-buffer-size=8 -fexceptions -fno-strict-aliasing $LTO_FLAGS -Wa,--noexecstack"
export LDFLAGS="$SH_LDFLAGS -pie -fPIE"
cmake . \
 -DFEATURE_SET="large" \
 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
 -DINSTALL_INCLUDEDIR=include/mysql \
 -DINSTALL_LAYOUT=RPM \
 -DDAEMON_NAME="mysqld" \
 -DDAEMON_NO_PREFIX="mysqld" \
 -DNICE_PROJECT_NAME="MariaDB" \
 -DINSTALL_LIBDIR="%{_lib}/mysql" \
 -DINSTALL_MANDIR=share/man \
 -DINSTALL_MYSQLSHAREDIR=share/mysql \
 -DINSTALL_MYSQLTESTDIR=share/mysql-test \
 -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \
 -DINSTALL_SBINDIR=libexec \
 -DINSTALL_SCRIPTDIR=bin \
 -DINSTALL_SQLBENCHDIR= \
 -DINSTALL_SUPPORTFILESDIR=share/mysql \
 -DMYSQL_DATADIR="%{_sharedstatedir}/mysql" \
 -DMYSQL_UNIX_ADDR="%{_sharedstatedir}/mysql/mysql.sock" \
 -DENABLED_PROFILING=OFF \
 -DENABLE_DEBUG_SYNC=OFF \
 -DENABLE_DTRACE=OFF \
 -DPLUGIN_ARIA=YES \
 -DPLUGIN_CSV=YES \
 -DPLUGIN_MYISAM=YES \
 -DPLUGIN_ARCHIVE=NO \
 -DPLUGIN_BLACKHOLE=NO \
 -DPLUGIN_CASSANDRA=NO \
 -DPLUGIN_CONNECT=NO \
 -DPLUGIN_EXAMPLE=NO \
 -DPLUGIN_FEDERATED=NO \
 -DPLUGIN_FEDERATEDX=NO \
 -DPLUGIN_FEEDBACK=NO \
 -DPLUGIN_MROONGA=NO \
 -DPLUGIN_MYISAMMRG=NO \
 -DPLUGIN_OQGRAPH=NO \
 -DPLUGIN_PARTITION=NO \
 -DPLUGIN_PERFSCHEMA=NO \
 -DPLUGIN_ROCKSDB=NO \
 -DPLUGIN_SEMISYNC=NO \
 -DPLUGIN_SEQUENCE=NO \
 -DPLUGIN_SPHINX=NO \
 -DPLUGIN_SPIDER=NO \
 -DPLUGIN_TOKUDB=NO \
 -DWITHOUT_DYNAMIC_PLUGINS=ON \
 -DWITH_ATOMIC_OPS=smp \
 -DWITH_EMBEDDED_SERVER=OFF \
 -DWITH_INNODB_DISALLOW_WRITES=OFF \
 -DWITH_INNODB_BZIP2=OFF \
 -DWITH_INNODB_LZ4=OFF \
 -DWITH_INNODB_LZMA=OFF \
 -DWITH_INNODB_LZO=OFF \
 -DWITH_MYSQLCOMPAT=1 \
 -DSECURITY_HARDENED=OFF \
 -DWITH_LIBARCHIVE=OFF \
 -DWITH_LIBWRAP=OFF \
 -DWITH_MARIABACKUP=OFF \
 -DWITH_PIC=NO \
 -DWITH_READLINE=OFF \
 -DWITH_SAFEMALLOC=OFF \
 -DWITH_SYSTEMD=OFF \
 -DWITH_VALGRIND=OFF \
 -DWITH_WSREP=OFF \
 -DWITH_JEMALLOC=system \
 -DWITH_SSL=system \
 -DWITH_ZLIB=system \
 -DCOMPILATION_COMMENT="thelounge"
%{__make} %{?_smp_mflags} VERBOSE=1

%install
make install DESTDIR=%{buildroot}
sed -e 's/-lprobes_mysql//' -e 's/-lmysqlclient_r/-lmysqlclient/' %{buildroot}%{_bindir}/mysql_config > mysql_config.tmp
cp -p -f mysql_config.tmp %{buildroot}%{_bindir}/mysql_config
chmod 0755 %{buildroot}%{_bindir}/mysql_config
chmod 0644 %{buildroot}%{_datadir}/mysql/*.sql
ln -s ../../../../../bin/mysql_config %{buildroot}%{_libdir}/mysql/mysql_config
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d %{buildroot}%{_unitdir}
install -m 0755 -d %{buildroot}%{_sharedstatedir}/mysql
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/mysqld.service
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/mysqld-dbmail.service
install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/replication.service
install -m 0755 %{SOURCE4} %{buildroot}%{_libexecdir}/mysqld-wait-ready
install -m 0755 %{SOURCE5} %{buildroot}%{_libexecdir}/mysqld-dbmail-wait-ready
echo "%{_libdir}/mysql" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
rm -f %{buildroot}%{_libdir}/mysql/libmysqlclient_r.so*
ln -s libmysqlclient.so %{buildroot}%{_libdir}/mysql/libmysqlclient_r.so
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
mv %{buildroot}/%{_datadir}/pkgconfig/*.pc %{buildroot}/%{_libdir}/pkgconfig
strip -s --strip-unneeded \
 %{buildroot}%{_bindir}/aria_chk \
 %{buildroot}%{_bindir}/aria_dump_log \
 %{buildroot}%{_bindir}/aria_ftdump \
 %{buildroot}%{_bindir}/aria_pack \
 %{buildroot}%{_bindir}/aria_read_log \
 %{buildroot}%{_bindir}/innochecksum \
 %{buildroot}%{_bindir}/my_print_defaults \
 %{buildroot}%{_bindir}/myisam_ftdump \
 %{buildroot}%{_bindir}/myisamchk \
 %{buildroot}%{_bindir}/myisamlog \
 %{buildroot}%{_bindir}/myisampack \
 %{buildroot}%{_bindir}/mysql \
 %{buildroot}%{_bindir}/mysql_client_test \
 %{buildroot}%{_bindir}/mysql_plugin \
 %{buildroot}%{_bindir}/mysql_tzinfo_to_sql \
 %{buildroot}%{_bindir}/mysql_upgrade \
 %{buildroot}%{_bindir}/mysql_waitpid \
 %{buildroot}%{_bindir}/mysqladmin \
 %{buildroot}%{_bindir}/mysqlbinlog \
 %{buildroot}%{_bindir}/mysqlcheck \
 %{buildroot}%{_bindir}/mysqldump \
 %{buildroot}%{_bindir}/mysqlimport \
 %{buildroot}%{_bindir}/mysqlshow \
 %{buildroot}%{_bindir}/mysqlslap \
 %{buildroot}%{_bindir}/mysqltest \
 %{buildroot}%{_bindir}/perror \
 %{buildroot}%{_bindir}/replace \
 %{buildroot}%{_bindir}/resolveip \
 %{buildroot}%{_libdir}/mysql/libmysqlclient.so* \
 %{buildroot}%{_libdir}/mysql/libmariadb.so.* \
 %{buildroot}%{_libexecdir}/mysqld
rm -rf \
 %{buildroot}%{_bindir}/msql2mysql \
 %{buildroot}%{_bindir}/mysql_fix_extensions \
 %{buildroot}%{_bindir}/mysql_secure_installation \
 %{buildroot}%{_bindir}/mysql_setpermission \
 %{buildroot}%{_bindir}/mysqlaccess.conf \
 %{buildroot}%{_bindir}/mysqlbug \
 %{buildroot}%{_bindir}/mysqld_multi \
 %{buildroot}%{_bindir}/mysqld_safe \
 %{buildroot}%{_bindir}/mysqld_safe_helper \
 %{buildroot}%{_bindir}/mytop \
 %{buildroot}%{_bindir}/resolve_stack_dump \
 %{buildroot}%{_bindir}/tokuftdump \
 %{buildroot}%{_datadir}/mysql/binary-configure \
 %{buildroot}%{_datadir}/mysql/charsets/README \
 %{buildroot}%{_datadir}/mysql/config.*.ini \
 %{buildroot}%{_datadir}/mysql/install_spider.sql \
 %{buildroot}%{_datadir}/mysql/magic \
 %{buildroot}%{_datadir}/mysql/my-*.cnf \
 %{buildroot}%{_datadir}/mysql/mysql-log-rotate \
 %{buildroot}%{_datadir}/mysql/mysql.server \
 %{buildroot}%{_datadir}/mysql/mysqld_multi.server \
 %{buildroot}%{_datadir}/mysql/ndb-config-2-node.ini \
 %{buildroot}%{_datadir}/mysql/policy/ \
 %{buildroot}%{_datadir}/mysql/solaris/postinstall-solaris \
 %{buildroot}%{_datadir}/mysql/wsrep.cnf \
 %{buildroot}%{_datadir}/mysql/wsrep_notify \
 %{buildroot}%{_datarootdir}/mysql/SELinux/ \
 %{buildroot}%{_docdir}/COPYING \
 %{buildroot}%{_docdir}/COPYING.LESSER \
 %{buildroot}%{_docdir}/COPYING.thirdparty \
 %{buildroot}%{_docdir}/CREDITS \
 %{buildroot}%{_docdir}/EXCEPTIONS-CLIENT \
 %{buildroot}%{_docdir}/INSTALL-BINARY \
 %{buildroot}%{_docdir}/README \
 %{buildroot}%{_docdir}/README-TOKUDB \
 %{buildroot}%{_docdir}/README-wsrep \
 %{buildroot}%{_docdir}/README.md \
 %{buildroot}%{_libdir}/mysql/*.a \
 %{buildroot}%{_libdir}/mysql/mysql_config \
 %{buildroot}%{_libdir}/mysql/plugin/ \
 %{buildroot}%{_libexecdir}/mysqld_safe_helper \
 %{buildroot}%{_libexecdir}/rcmysql \
 %{buildroot}%{_mandir}/man1/comp_err.1* \
 %{buildroot}%{_mandir}/man1/mysql-stress-test.pl.1* \
 %{buildroot}%{_mandir}/man1/mysql-test-run.pl.1* \
 %{buildroot}%{_prefix}/COPYING \
 %{buildroot}%{_prefix}/INSTALL-BINARY \
 %{buildroot}%{_prefix}/README \
 %{buildroot}%{_prefix}/data/mysql/.empty \
 %{buildroot}%{_prefix}/data/test/.empty \
 %{buildroot}%{_prefix}/docs/ChangeLog \
 %{buildroot}%{_sysconfdir}/init.d/mysql \
 %{buildroot}%{_sysconfdir}/logrotate.d/mysql \
 %{buildroot}%{_sysconfdir}/my.cnf \
 %{buildroot}%{_sysconfdir}/my.cnf.d/
rm -rf \
 %{buildroot}/usr/share/mysql-test/plugin/connect \
 %{buildroot}/usr/share/mysql-test/plugin/mroonga \
 %{buildroot}/usr/share/mysql-test/plugin/sphinx \
 %{buildroot}/usr/share/mysql-test/plugin/spider \
 %{buildroot}/usr/share/mysql-test/plugin/tokudb \
 %{buildroot}/usr/share/mysql-test/suite/archive \
 %{buildroot}/usr/share/mysql-test/suite/binlog_encryption \
 %{buildroot}/usr/share/mysql-test/suite/encryption \
 %{buildroot}/usr/share/mysql-test/suite/federated \
 %{buildroot}/usr/share/mysql-test/suite/galera \
 %{buildroot}/usr/share/mysql-test/suite/mariabackup \
 %{buildroot}/usr/share/mysql-test/suite/perfschema \
 %{buildroot}/usr/share/mysql-test/suite/rocks* \
 %{buildroot}/usr/share/mysql-test/suite/wsrep
pushd %{buildroot}%{_libdir}/mysql/
 ln -s libmariadb.so libmysqlclient.so.18
 ln -s libmariadb.so libmysqlclient.so.18.0.0
popd

%pre server
%{_sbindir}/groupadd -g 27 -o -r mysql &> /dev/null
%{_sbindir}/useradd -M -N -g mysql -o -r -d /dev/null -s %{_sbindir}/nologin -c "MariaDB Server" -u 27 mysql &> /dev/null
exit 0

%post server
%systemd_post
%{_bindir}/chmod 0755 %{_sharedstatedir}/mysql
exit 0

%post libs -p %{_sbindir}/ldconfig
%postun libs -p %{_sbindir}/ldconfig

%files
%{_bindir}/my_print_defaults
%{_bindir}/mysql
%{_bindir}/mysql_find_rows
%{_bindir}/mysqlaccess
%{_bindir}/mysqladmin
%{_bindir}/mysqlbinlog
%{_bindir}/mysqlcheck
%{_bindir}/mysqldump
%{_bindir}/mysqlimport
%{_bindir}/mysqlshow

%files libs
%dir %{_libdir}/mysql
%dir %{_datadir}/mysql
%{_datadir}/mysql/charsets
%{_datadir}/mysql/english
%{_libdir}/mysql/libmariadb.so.*
%{_libdir}/mysql/libmysqlclient.so.*
%{_sysconfdir}/ld.so.conf.d/*
%lang(cs) %{_datadir}/mysql/czech
%lang(da) %{_datadir}/mysql/danish
%lang(de) %{_datadir}/mysql/german
%lang(el) %{_datadir}/mysql/greek
%lang(es) %{_datadir}/mysql/spanish
%lang(et) %{_datadir}/mysql/estonian
%lang(fr) %{_datadir}/mysql/french
%lang(hu) %{_datadir}/mysql/hungarian
%lang(it) %{_datadir}/mysql/italian
%lang(ja) %{_datadir}/mysql/japanese
%lang(ko) %{_datadir}/mysql/korean
%lang(nl) %{_datadir}/mysql/dutch
%lang(no) %{_datadir}/mysql/norwegian
%lang(no) %{_datadir}/mysql/norwegian-ny
%lang(pl) %{_datadir}/mysql/polish
%lang(pt) %{_datadir}/mysql/portuguese
%lang(ro) %{_datadir}/mysql/romanian
%lang(ru) %{_datadir}/mysql/russian
%lang(sk) %{_datadir}/mysql/slovak
%lang(sr) %{_datadir}/mysql/serbian
%lang(sv) %{_datadir}/mysql/swedish
%lang(uk) %{_datadir}/mysql/ukrainian

%files server
%attr(0755,mysql,mysql) %dir %{_sharedstatedir}/mysql
%{_bindir}/innochecksum
%{_bindir}/myisamchk
%{_bindir}/mysql_upgrade
%{_bindir}/mysqldumpslow
%{_bindir}/perror
%{_datadir}/mysql/errmsg-utf8.txt
%{_datadir}/mysql/maria_add_gis_sp.sql
%{_datadir}/mysql/maria_add_gis_sp_bootstrap.sql
%{_datadir}/mysql/mysql_performance_tables.sql
%{_datadir}/mysql/mysql_system_tables.sql
%{_datadir}/mysql/mysql_system_tables_data.sql
%{_datadir}/mysql/mysql_to_mariadb.sql
%{_libexecdir}/mysqld
%{_libexecdir}/mysqld-dbmail-wait-ready
%{_libexecdir}/mysqld-wait-ready
%{_unitdir}/mysqld-dbmail.service
%{_unitdir}/mysqld.service
%{_unitdir}/replication.service

%files devel
%{_bindir}/mariadb_config
%{_bindir}/mysql_config
%{_datarootdir}/aclocal/mysql.m4
%{_includedir}/mysql
%{_libdir}/mysql/libmariadb.so
%{_libdir}/mysql/libmysqlclient.so
%{_libdir}/mysql/libmysqlclient_r.so
%{_libdir}/pkgconfig/mariadb.pc

%files test
%attr(-,mysql,mysql) %{_datadir}/mysql-test
%{_bindir}/aria_chk
%{_bindir}/aria_dump_log
%{_bindir}/aria_ftdump
%{_bindir}/aria_pack
%{_bindir}/aria_read_log
%{_bindir}/myisam_ftdump
%{_bindir}/myisamlog
%{_bindir}/myisampack
%{_bindir}/mysql_client_test
%{_bindir}/mysql_convert_table_format
%{_bindir}/mysql_plugin
%{_bindir}/mysql_waitpid
%{_bindir}/mysqlhotcopy
%{_bindir}/mysqlslap
%{_bindir}/mysqltest
%{_bindir}/replace
%{_bindir}/resolveip
%{_datadir}/mysql/mysql_test_data_timezone.sql

%files manpages
%{_mandir}/man1/*
%{_mandir}/man8/*
%{_bindir}/mysql_install_db
%{_bindir}/mysql_tzinfo_to_sql
%{_datadir}/mysql/fill_help_tables.sql

%changelog
* Thu Jul 13 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.2.7
- compat-symlinks and rpm-provides so that it works without rebuild every package linkd against 10.1.x

* Wed Jul 5 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.1.25

* Sat Jun 3 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.1.24

* Wed May 3 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.1.23
- add "-DWITH_MARIABACKUP=OFF" to buildflags
- remove "/usr/share/mysql-test/suite/mariabackup" from package
- add "perl-Memoize" as requirement for the test-suite

* Sun Mar 19 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.1.22

* Fri Jan 20 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.1.21
- clenaup build process as we start a new major version

* Thu Jan 19 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- enable -O3 but disable options which are generally profitable only with profile feedback available
- O3_flags="-O3 -fno-strict-aliasing -fno-gcse-after-reload -fno-inline-functions -fno-ipa-cp -fno-ipa-cp-clone -fno-peel-loops -fno-predictive-commoning -fno-tree-loop-distribute-patterns -fno-unswitch-loops"

* Sat Oct 29 2016 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.28

* Tue Aug 30 2016 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.27

* Sat Jun 25 2016 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.26

* Sun May 1 2016 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.25

* Sat Feb 20 2016 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.24

* Sat Dec 19 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.23

* Thu Aug 6 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.21
- remove all the RuntimeDirectory crap from systemd-units
- start with '--pid-file=/dev/null' since systemd is fine without
- see https://bugzilla.redhat.com/show_bug.cgi?id=1226509

* Thu Jun 18 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.20

* Wed May 27 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- ship 'replication.service' with future builds to make updates easier

* Wed May 13 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- remove '-ffixed-ebp' for AVX support
- add compiler flags to LDFLAGS for optimized linking

* Sat May 9 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.19

* Sat Feb 28 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.17

* Tue Jan 27 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.16

* Mon Jan 26 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- include "mysqld-dbmail.service" and "mysqld-dbmail-wait-ready" for easier deployments

* Mon Jan 19 2015 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.0.15 for Fedora 20
- remove remaining fedora specific hacks except perl-requires for now

* Mon Dec 22 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.41

* Thu Oct 9 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.40

* Wed Aug 6 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.39

* Mon Jun 9 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.38

* Thu Apr 17 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.37
- LANG=en_GB.UTF-8

* Fri Mar 7 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- move unused tools to "mariadb-test"
- remove multilib-hacks

* Thu Mar 6 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- move some scripts and perl-DBI dependencies to "mariadb-test"
- move "INFO_BIN" and "INFO_SRC" to "mariadb-test"
- cleanup SPEC, combine "strip" and "rm" in multiline commands

* Wed Mar 5 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- remove all fedora patches
- add requirement for perl-Env to "mariadb-test"

* Wed Feb 26 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.36

* Wed Jan 29 2014 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.35

* Thu Nov 21 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.34

* Fri Sep 20 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.33a

* Tue Sep 17 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.33

* Thu Jul 18 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.32
- build without dynamic plugins

* Thu May 23 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.31

* Tue Mar 12 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 5.5.30

* Wed Feb 27 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- remove unused files and scripts
- remove "%{_sysconfdir}/my.cnf"

* Mon Feb 25 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- remove "preun" from SPEC to avoid stop and disable service at updates

* Wed Feb 20 2013 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- MariaDB 5.5.29
- Rebase with MariaDB sources and drift from Fedora
- http://fedoraproject.org/wiki/Features/ReplaceMySQLwithMariaDB
- provide MariaDB and MySQL and obsolete mysql-packages
- do not build mysql-embedded
- disable dtrace
- remove selftest, we do this with the test-suite
- disable unused storage engines

Follow ups