← Back to team overview

maria-discuss team mailing list archive

Fwd: [MariaDB Announce] MariaDB 10.2.9, MariaDB 10.1.28 and MariaDB Connector/J releases

 

it would be really cool if MariaDB minor updates (10.2.8 to 10.2.9 in that case) would work like for any other software - just replace the tarball, raise the version in the spec-file and hit "rpmbuild -bb mariadb.spec"

CMakeError.log as tar.bz2 attached....
________________________________________________________________________________________

CMake Error at sql/CMakeLists.txt:387 (TARGET_LINK_LIBRARIES):
  Target "mysqld" of type EXECUTABLE may not be linked into another target.
One may link only to STATIC or SHARED libraries, or to executables with the
  ENABLE_EXPORTS property set.


CMake Deprecation Warning at cmake/for_clients.cmake:15 (CMAKE_POLICY):
  The OLD behavior for policy CMP0007 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:415 (INCLUDE)
________________________________________________________________________________________

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 \
 -DPLUGIN_XTRADB=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_INNODB_SNAPPY=OFF \
 -DWITH_MYSQLCOMPAT=ON \
 -DSECURITY_HARDENED=OFF \
 -DWITH_LIBARCHIVE=OFF \
 -DWITH_LIBWRAP=OFF \
 -DWITH_MARIABACKUP=OFF \
 -DWITH_PIC=NO \
 -DWITH_READLINE=OFF \
 -DWITH_SAFEMALLOC=OFF \
 -DWITH_VALGRIND=OFF \
 -DWITH_WSREP=OFF \
 -DWITH_JEMALLOC=OFF \
 -DWITH_SSL=system \
 -DWITH_ZLIB=system \
 -DCOMPILATION_COMMENT="thelounge"
%{__make} %{?_smp_mflags}
________________________________________________________________________________________


-------- Weitergeleitete Nachricht --------
Betreff: [MariaDB Announce] MariaDB 10.2.9, MariaDB 10.1.28 and MariaDB Connector/J releases
Datum: Thu, 28 Sep 2017 11:57:47 +0200
Von: MariaDB Announce List <announce@xxxxxxxxxxx>
An: announce@xxxxxxxxxxx

The MariaDB project is pleased to announce the availability
of MariaDB 10.2.9, MariaDB 10.1.28, MariaDB Connector/J 2.1.2
and MariaDB Connector/J 1.6.5.
These are all stable (GA) releases. See the Release Notes and
Changelogs for details.


- - Links  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

MariaDB 10.2.9
  - Release Notes: https://mariadb.com/kb/en/mdb-1029-rn/
  - Changelog:     https://mariadb.com/kb/en/mdb-1029-cl/
  - Downloads:     https://downloads.mariadb.org/mariadb/10.2.9

  About MariaDB 10.2:
   - https://mariadb.com/kb/en/what-is-mariadb-102/

MariaDB 10.1.28
  - Release Notes: https://mariadb.com/kb/en/mdb-10128-rn/
  - Changelog:     https://mariadb.com/kb/en/mdb-10128-cl/
  - Downloads:     https://downloads.mariadb.org/mariadb/10.1.28

  About MariaDB 10.1:
   - https://mariadb.com/kb/en/what-is-mariadb-101/

  APT and YUM Repository Configuration Generator:
   - https://downloads.mariadb.org/mariadb/repositories/


MariaDB Connector/J 2.1.2
  - Release Notes: https://mariadb.com/kb/en/mcj-212-rn/
  - Changelog:     https://mariadb.com/kb/en/mcj-212-cl/
  - Downloads: https://downloads.mariadb.org/connector-java/2.1.2/

MariaDB Connector/J 1.6.5
  - Release Notes: https://mariadb.com/kb/en/mcj-165-rn/
  - Changelog:     https://mariadb.com/kb/en/mcj-165-cl/
  - Downloads: https://downloads.mariadb.org/connector-java/1.6.5/

  About MariaDB Connector/J:
   - https://mariadb.com/kb/en/about-mariadb-connector-j/

- - MariaDB Books  - - - - - - - - - - - - - - - - - - - - - - - - - -

There is an ever-growing library of MariaDB books available to help
you get the most out of MariaDB. See the MariaDB Books page for
details and links:

  - https://mariadb.com/kb/en/mariadb/books/


- - User Feedback plugin - - - - - - - - - - - - - - - - - - - - - - -

MariaDB includes a User Feedback plugin. This plugin is disabled by
default. If enabled, it submits basic, completely anonymous MariaDB
usage information. This information is used by the developers to
track trends in MariaDB usage to better guide development efforts.

If you would like to help make MariaDB better, please add
"feedback=ON" to your my.cnf or my.ini file!

See http://mariadb.com/kb/en/user-feedback-plugin for more
information.


- - Quality  - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The project always strives for quality, but in reality, nothing is
perfect. Please take time to report any issues you encounter at:

  - http://jira.mariadb.org


- - Support MariaDB  - - - - - - - - - - - - - - - - - - - - - - - - -

If you would like to contribute to the MariaDB Foundation, please see
the "contributing" and "donations" pages. We also have merchandise
available in a cafepress store. All proceeds go to support the
MariaDB Foundation.

  - https://mariadb.com/kb/en/contributing

  - https://mariadb.org/donate/


We hope you enjoy MariaDB!

--
MariaDB
         Website - http://mariadb.org
         Twitter - http://twitter.com/mariadbfdn
  Knowledge Base - http://mariadb.com/kb
_______________________________________________
announce mailing list
announce@xxxxxxxxxxx
https://lists.askmonty.org/cgi-bin/mailman/listinfo/announce
To unsubscribe, send an email with "unsubscribe" as the Subject: to announce-request@xxxxxxxxxxx

Attachment: CMakeError.log.tar.bz2
Description: application/bzip

# command 'rpmbuild -bb mariadb.spec --with production' will tune for current hardware while default stays 'sandybridge'

%if %{?_with_production:1}%{!?_with_production:0}
 %global rpmsuffix native
 %global build_native_release 1
 %global optflags $(sed "s/sandybridge/native/g" <<< "%{optflags}")
%else
 %global rpmsuffix sandybridge
 %global build_native_release 0
%endif

Name:              mariadb
Version:           10.2.9
Release:           1.%{build_native_release}%{?dist}.%{rpmsuffix}
Epoch:             6
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
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:     systemd-devel
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}, mariadb-connector-c = %{epoch}:%{version}-%{release}, mariadb-connector-c%{?_isa} = %{epoch}:%{version}-%{release}
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}, mariadb-connector-c-devel = %{epoch}:%{version}-%{release}, mariadb-connector-c-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
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 -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 -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 \
 -DPLUGIN_XTRADB=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_INNODB_SNAPPY=OFF \
 -DWITH_MYSQLCOMPAT=ON \
 -DSECURITY_HARDENED=OFF \
 -DWITH_LIBARCHIVE=OFF \
 -DWITH_LIBWRAP=OFF \
 -DWITH_MARIABACKUP=OFF \
 -DWITH_PIC=NO \
 -DWITH_READLINE=OFF \
 -DWITH_SAFEMALLOC=OFF \
 -DWITH_VALGRIND=OFF \
 -DWITH_WSREP=OFF \
 -DWITH_JEMALLOC=OFF \
 -DWITH_SSL=system \
 -DWITH_ZLIB=system \
 -DCOMPILATION_COMMENT="thelounge"
%{__make} %{?_smp_mflags}

%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
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/ \
 %{buildroot}/usr/bin/galera_new_cluster \
 %{buildroot}/usr/bin/galera_recovery \
 %{buildroot}/usr/bin/mariadb-service-convert \
 %{buildroot}/usr/lib/systemd/system/mariadb.service \
 %{buildroot}/usr/lib/systemd/system/mariadb@.service \
 %{buildroot}/usr/lib/systemd/system/mariadb@bootstrap.service.d/use_galera_new_cluster.conf \
 %{buildroot}/usr/share/mysql/systemd/mariadb.service \
 %{buildroot}/usr/share/mysql/systemd/mariadb@.service \
 %{buildroot}/usr/share/mysql/systemd/use_galera_new_cluster.conf

rm -rf \
 %{buildroot}/usr/share/mysql-test/plugin/connect \
 %{buildroot}/usr/share/mysql-test/plugin/mroonga \
 %{buildroot}/usr/share/mysql-test/plugin/rocksdb \
 %{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

%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.*
%{_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(hi) %{_datadir}/mysql/hindi
%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
%{_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 Sep 28 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.2.9

* Tue Sep 26 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- provide 'mariadb-connector-c' and 'mariadb-connector-c-devel'

* Sun Sep 24 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- move binary compat libraries to own package

* Sat Aug 19 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.2.8

* Thu Jul 13 2017 Reindl Harald <h.reindl@xxxxxxxxxxxxx>
- update to 10.2.7
- compat-symlinks and rpm-provides for software linked against 10.1.x
- ship pre-built binary 'libmysqlclient.so.18.0.0' from 10.1.x
- add 'systemd-devel' to BuildRequires for 'Type=notify' support
- change systemd-units to 'Type=notify'
- remove 'ExecStartPost' hacks from previous 'Type=simple'

* 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