1# Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
2#
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; version 2 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10# GNU General Public License for more details.
11#
12# You should have received a copy of the GNU General Public License
13# along with this program; see the file COPYING. If not, write to the
14# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
15# MA  02110-1301  USA.
16
17# Rebuild on OL5/RHEL5 needs following rpmbuild options:
18#  rpmbuild --define 'dist .el5' --define 'rhel 5' --define 'el5 1' mysql.spec
19
20# Install cmake28 from EPEL when building on OL5/RHEL5 and OL6/RHEL6.
21
22# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
23# change these, has to be exactly as is.
24
25%undefine _missing_build_ids_terminate_build
26%global mysql_vendor Oracle and/or its affiliates
27%global percona_server_vendor Percona, Inc
28%global mysqldatadir /var/lib/mysql
29
30%global mysql_version 5.7.36
31%global percona_server_version 39
32%global revision 305619d
33%global tokudb_backup_version %{mysql_version}-%{percona_server_version}
34%global rpm_release 1
35
36%global release %{percona_server_version}.%{rpm_release}%{?dist}
37
38# By default, a build will be done using the system SSL library
39%{?with_ssl: %global ssl_option -DWITH_SSL=%{with_ssl}}
40%{!?with_ssl: %global ssl_option -DWITH_SSL=system}
41
42# By default a build will be done including the TokuDB
43%{!?with_tokudb: %global tokudb 1}
44
45# By default a build will be done including the RocksDB
46%{!?with_rocksdb: %global rocksdb 1}
47
48# Pass path to mecab lib
49%{?with_mecab: %global mecab_option -DWITH_MECAB=%{with_mecab}}
50%{?with_mecab: %global mecab 1}
51
52# Regression tests may take a long time, override the default to skip them
53%{!?runselftest:%global runselftest 0}
54
55%{!?with_systemd:                %global systemd 0}
56%{?el7:                          %global systemd 1}
57%{?el8:                          %global systemd 1}
58%{!?with_debuginfo:              %global nodebuginfo 0}
59%{!?product_suffix:              %global product_suffix -57}
60%{!?feature_set:                 %global feature_set community}
61%{!?compilation_comment_release: %global compilation_comment_release Percona Server (GPL), Release %{percona_server_version}, Revision %{revision}}
62%{!?compilation_comment_debug:   %global compilation_comment_debug Percona Server - Debug (GPL), Release %{percona_server_version}, Revision %{revision}}
63%{!?src_base:                    %global src_base percona-server}
64
65# Setup cmake flags for TokuDB
66%if 0%{?tokudb}
67  %global TOKUDB_FLAGS -DWITH_VALGRIND=OFF -DUSE_VALGRIND=OFF -DDEBUG_EXTNAME=OFF -DBUILD_TESTING=OFF -DUSE_GTAGS=OFF -DUSE_CTAGS=OFF -DUSE_ETAGS=OFF -DUSE_CSCOPE=OFF -DTOKUDB_BACKUP_PLUGIN_VERSION=%{tokudb_backup_version}
68  %global TOKUDB_DEBUG_ON -DTOKU_DEBUG_PARANOID=ON
69  %global TOKUDB_DEBUG_OFF -DTOKU_DEBUG_PARANOID=OFF
70%else
71  %global TOKUDB_FLAGS -DWITHOUT_TOKUDB=1
72  %global TOKUDB_DEBUG_ON %{nil}
73  %global TOKUDB_DEBUG_OFF %{nil}
74%endif
75
76# Setup cmake flags for RocksDB
77%if 0%{?rocksdb}
78  %global ROCKSDB_FLAGS -DWITH_ROCKSDB=1
79%else
80  %global ROCKSDB_FLAGS -DWITH_ROCKSDB=0
81%endif
82
83# On rhel 5/6 we still have renamed library to libperconaserverclient
84%if 0%{?rhel} > 6
85  %global shared_lib_pri_name mysqlclient
86  %global shared_lib_sec_name perconaserverclient
87%else
88  %global shared_lib_pri_name mysqlclient
89  %global shared_lib_sec_name perconaserverclient
90%endif
91
92# Version for compat libs
93%if 0%{?rhel} > 6
94%global compatver             5.6.28
95%global percona_compatver     76.1
96%global compatlib             18
97%global compatsrc             https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-%{compatver}-%{percona_compatver}/binary/redhat/7/x86_64/Percona-Server-shared-56-%{compatver}-rel%{percona_compatver}.el7.x86_64.rpm
98%endif
99
100# multiarch
101%global multiarchs            ppc %{power64} %{ix86} x86_64 %{sparc}
102
103# Hack to support el5 where __isa_bits not defined. Note: supports i386 and x86_64 only, sorry.
104%if x%{?__isa_bits} == x
105%ifarch %{ix86}
106%global __isa_bits            32
107%endif
108%ifarch x86_64
109%global __isa_bits            64
110%endif
111%endif
112
113%global src_dir               %{src_base}-%{mysql_version}-%{percona_server_version}
114
115# We build debuginfo package so this is not used
116%if 0%{?nodebuginfo}
117%global _enable_debug_package 0
118%global debug_package         %{nil}
119%global __os_install_post     /usr/lib/rpm/brp-compress %{nil}
120%endif
121
122%if 0%{?commercial}
123%global license_files_server  %{src_dir}/LICENSE.mysql
124%global license_type          Commercial
125%else
126%global license_files_server  %{src_dir}/README
127%global license_type          GPLv2
128%endif
129
130Name:           Percona-Server%{product_suffix}
131Summary:        Percona-Server: a very fast and reliable SQL database server
132Group:          Applications/Databases
133Version:        %{mysql_version}
134Release:        %{release}
135License:        Copyright (c) 2000, 2015, %{mysql_vendor}. All rights reserved. Under the GNU General Public License (http://www.gnu.org/licenses/).
136Source0:        http://www.percona.com/downloads/Percona-Server-5.7/Percona-Server-%{mysql_version}-%{percona_server_version}/source/%{src_dir}.tar.gz
137URL:            http://www.percona.com/
138Packager:       Percona MySQL Development Team <mysqldev@percona.com>
139Vendor:         %{percona_server_vendor}
140Source4:        my_config.h
141Source5:        mysql_config.sh
142Source10:       http://jenkins.percona.com/downloads/boost/boost_1_59_0.tar.gz
143Source90:       filter-provides.sh
144Source91:       filter-requires.sh
145Patch0:         mysql-5.7-sharedlib-rename.patch
146BuildRequires:  cmake >= 2.8.2
147BuildRequires:  gcc
148BuildRequires:  gcc-c++
149BuildRequires:  perl
150%{?el7:BuildRequires: perl(Time::HiRes)}
151%{?el7:BuildRequires: perl(Env)}
152BuildRequires:  time
153BuildRequires:  libaio-devel
154BuildRequires:  ncurses-devel
155BuildRequires:  pam-devel
156BuildRequires:  readline-devel
157BuildRequires:  numactl-devel
158BuildRequires:  openssl-devel
159BuildRequires:  zlib-devel
160BuildRequires:  bison
161BuildRequires:  openldap-devel
162BuildRequires:  libcurl-devel
163%if 0%{?systemd}
164BuildRequires:  systemd
165BuildRequires:  pkgconfig(systemd)
166%endif
167BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
168
169%if 0%{?rhel} > 6
170# For rpm => 4.9 only: https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering
171%global __requires_exclude ^perl\\((GD|hostnames|lib::mtr|lib::v1|mtr_|My::)
172%global __provides_exclude_from ^(/usr/share/(mysql|mysql-test)/.*|%{_libdir}/mysql/plugin/.*\\.so)$
173%else
174# https://fedoraproject.org/wiki/EPEL:Packaging#Generic_Filtering_on_EPEL6
175%global __perl_provides %{SOURCE90}
176%global __perl_requires %{SOURCE91}
177%endif
178
179%description
180The Percona Server software delivers a very fast, multi-threaded, multi-user,
181and robust SQL (Structured Query Language) database server. Percona Server
182is intended for mission-critical, heavy-load production systems.
183
184Percona recommends that all production deployments be protected with a support
185contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
186be eligible for hot fixes, and boost your team's productivity.
187
188%package -n Percona-Server-server%{product_suffix}
189Summary:        Percona Server: a very fast and reliable SQL database server
190Group:          Applications/Databases
191Requires:       coreutils
192Requires:       grep
193Requires:       procps
194Requires:       shadow-utils
195Requires:       net-tools
196Requires:       openssl
197Requires(pre):  Percona-Server-shared%{product_suffix}
198Requires:       Percona-Server-client%{product_suffix}
199Provides:       MySQL-server%{?_isa} = %{version}-%{release}
200Provides:       mysql-server = %{version}-%{release}
201Provides:       mysql-server%{?_isa} = %{version}-%{release}
202Conflicts:      Percona-SQL-server-50 Percona-Server-server-51 Percona-Server-server-55 Percona-Server-server-56
203
204%if 0%{?systemd}
205Requires(post):   systemd
206Requires(preun):  systemd
207Requires(postun): systemd
208%else
209Requires(post):   /sbin/chkconfig
210Requires(preun):  /sbin/chkconfig
211Requires(preun):  /sbin/service
212%endif
213
214%if 0%{?rhel} == 8
215Obsoletes:      mariadb-connector-c-config
216%endif
217
218%description -n Percona-Server-server%{product_suffix}
219The Percona Server software delivers a very fast, multi-threaded, multi-user,
220and robust SQL (Structured Query Language) database server. Percona Server
221is intended for mission-critical, heavy-load production systems.
222
223Percona recommends that all production deployments be protected with a support
224contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
225be eligible for hot fixes, and boost your team's productivity.
226
227This package includes the Percona Server with XtraDB binary
228as well as related utilities to run and administer Percona Server.
229
230If you want to access and work with the database, you have to install
231package "Percona-Server-client%{product_suffix}" as well!
232
233%package -n Percona-Server-client%{product_suffix}
234Summary:        Percona Server - Client
235Group:          Applications/Databases
236Requires:       Percona-Server-shared%{product_suffix}
237Provides:       mysql-client MySQL-client mysql MySQL
238Conflicts:      Percona-SQL-client-50 Percona-Server-client-51 Percona-Server-client-55 Percona-Server-client-56
239
240%description -n Percona-Server-client%{product_suffix}
241This package contains the standard Percona Server client and administration tools.
242
243For a description of Percona Server see http://www.percona.com/software/percona-server/
244
245%package -n Percona-Server-test%{product_suffix}
246Summary:        Test suite for the Percona Server
247Group:          Applications/Databases
248Requires:       Percona-Server-server%{product_suffix} = %{version}-%{release}
249%if 0%{?rhel} == 8
250Requires:       perl(Getopt::Long)
251Requires:       perl(Memoize)
252Requires:       perl(Time::HiRes)
253%endif
254Provides:       mysql-test = %{version}-%{release}
255Provides:       mysql-test%{?_isa} = %{version}-%{release}
256Conflicts:      Percona-SQL-test-50 Percona-Server-test-51 Percona-Server-test-55 Percona-Server-test-56
257
258%description -n Percona-Server-test%{product_suffix}
259This package contains the Percona Server regression test suite.
260
261For a description of Percona Server see http://www.percona.com/software/percona-server/
262
263%package -n Percona-Server-devel%{product_suffix}
264Summary:        Percona Server - Development header files and libraries
265Group:          Applications/Databases
266Provides:       mysql-devel = %{version}-%{release}
267Provides:       mysql-devel%{?_isa} = %{version}-%{release}
268Conflicts:      Percona-SQL-devel-50 Percona-Server-devel-51 Percona-Server-devel-55 Percona-Server-devel-56
269Obsoletes:      mariadb-connector-c-devel
270%if 0%{?rhel} > 6
271Obsoletes:      mariadb-devel
272%endif
273
274%description -n Percona-Server-devel%{product_suffix}
275This package contains the development header files and libraries necessary
276to develop Percona Server client applications.
277
278For a description of Percona Server see http://www.percona.com/software/percona-server/
279
280%package -n Percona-Server-shared%{product_suffix}
281Summary:        Percona Server - Shared libraries
282Group:          Applications/Databases
283Provides:       mysql-libs = %{version}-%{release}
284Provides:       mysql-libs%{?_isa} = %{version}-%{release}
285Provides:       mysql-shared
286%if 0%{?rhel} > 6
287Requires(pre):  Percona-Server-shared-compat%{product_suffix}
288%endif
289
290%description -n Percona-Server-shared%{product_suffix}
291This package contains the shared libraries (*.so*) which certain languages
292and applications need to dynamically load and use Percona Server.
293
294%if 0%{?compatlib}
295%package -n Percona-Server-shared-compat%{product_suffix}
296Summary:        Shared compat libraries for Percona Server %{compatver}-%{percona_compatver} database client applications
297Group:          Applications/Databases
298Provides:       mysql-libs-compat = %{version}-%{release}
299Provides:       mysql-libs-compat%{?_isa} = %{version}-%{release}
300Provides:       MySQL-shared-compat%{?_isa} = %{version}-%{release}
301%if 0%{?rhel} > 6
302Provides:       libmysqlclient.so.18()(64bit)
303Provides:       libmysqlclient.so.18(libmysqlclient_16)(64bit)
304Provides:       libmysqlclient.so.18(libmysqlclient_18)(64bit)
305Obsoletes:      mariadb-libs
306Conflicts:      Percona-Server-shared-55
307Conflicts:      Percona-Server-shared-56
308%endif
309
310%description -n Percona-Server-shared-compat%{product_suffix}
311This package contains the shared compat libraries for Percona Server %{compatver}-%{percona_compatver} client
312applications.
313%endif
314
315%if 0%{?tokudb}
316# ----------------------------------------------------------------------------
317%package -n Percona-Server-tokudb%{product_suffix}
318Summary:        Percona Server - TokuDB package
319Group:          Applications/Databases
320Requires:       Percona-Server-server%{product_suffix} = %{version}-%{release}
321Requires:       Percona-Server-shared%{product_suffix} = %{version}-%{release}
322Requires:       Percona-Server-client%{product_suffix} = %{version}-%{release}
323Requires:       jemalloc >= 3.3.0
324Provides:       tokudb-plugin = %{version}-%{release}
325
326Requires:		selinux-policy
327Requires:		policycoreutils
328Requires(pre):		policycoreutils
329Requires(post):		policycoreutils
330Requires(postun):       policycoreutils
331
332%if 0%{?rhel} == 6
333BuildRequires: 		selinux-policy
334%else
335BuildRequires: 		selinux-policy-devel
336%endif
337
338%description -n Percona-Server-tokudb%{product_suffix}
339This package contains the TokuDB plugin for Percona Server %{version}-%{release}
340%endif
341
342%if 0%{?rocksdb}
343# ----------------------------------------------------------------------------
344%package -n Percona-Server-rocksdb%{product_suffix}
345Summary:        Percona Server - RocksDB package
346Group:          Applications/Databases
347Requires:       Percona-Server-server%{product_suffix} = %{version}-%{release}
348Requires:       Percona-Server-shared%{product_suffix} = %{version}-%{release}
349Requires:       Percona-Server-client%{product_suffix} = %{version}-%{release}
350
351%description -n Percona-Server-rocksdb%{product_suffix}
352This package contains the RocksDB plugin for Percona Server %{version}-%{release}
353%endif
354
355%prep
356%setup -q -T -a 0 -a 10 -c -n %{src_dir}
357pushd %{src_dir}
358%patch0 -p1
359
360%build
361# Fail quickly and obviously if user tries to build as root
362%if 0%{?runselftest}
363if [ "x$(id -u)" = "x0" ] ; then
364   echo "The MySQL regression tests may fail if run as root."
365   echo "If you really need to build the RPM as root, use"
366   echo "--define='runselftest 0' to skip the regression tests."
367   exit 1
368fi
369%endif
370
371# Download compat libs
372%if 0%{?compatlib}
373%if 0%{?rhel} > 6
374(
375  rm -rf percona-compatlib
376  mkdir percona-compatlib
377  pushd percona-compatlib
378  wget %{compatsrc}
379  rpm2cpio Percona-Server-shared-56-%{compatver}-rel%{percona_compatver}.el7.x86_64.rpm | cpio --extract --make-directories --verbose
380  popd
381)
382%endif # 0%{?rhel} > 6
383%endif # 0%{?compatlib}
384
385# Build debug versions of mysqld and libmysqld.a
386mkdir debug
387(
388  cd debug
389  # Attempt to remove any optimisation flags from the debug build
390  optflags=$(echo "%{optflags}" | sed -e 's/-O2 / /' -e 's/-Wp,-D_FORTIFY_SOURCE=2/ -Wno-missing-field-initializers -Wno-error /')
391  cmake ../%{src_dir} \
392           -DBUILD_CONFIG=mysql_release \
393           -DINSTALL_LAYOUT=RPM \
394           -DCMAKE_BUILD_TYPE=Debug \
395           -DWITH_BOOST=.. \
396           -DCMAKE_C_FLAGS="$optflags" \
397           -DCMAKE_CXX_FLAGS="$optflags" \
398           -DENABLE_DTRACE=0 \
399%if 0%{?systemd}
400           -DWITH_SYSTEMD=1 \
401%endif
402           -DWITH_INNODB_MEMCACHED=1 \
403           -DINSTALL_LIBDIR="%{_lib}/mysql" \
404           -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \
405           -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
406           -DINSTALL_MYSQLSHAREDIR=share/percona-server \
407           -DINSTALL_SUPPORTFILESDIR=share/percona-server \
408           -DFEATURE_SET="%{feature_set}" \
409           -DWITH_EMBEDDED_SERVER=0 \
410           -DWITH_EMBEDDED_SHARED_LIBRARY=0 \
411           -DWITH_PAM=1 \
412           -DWITH_ROCKSDB=1 \
413           -DWITH_INNODB_MEMCACHED=1 \
414           -DWITH_ZLIB=system \
415           -DWITH_SCALABILITY_METRICS=ON \
416           -DROCKSDB_DISABLE_AVX2=1 \
417           -DROCKSDB_DISABLE_MARCH_NATIVE=1 \
418           %{?ssl_option} \
419           %{?mecab_option} \
420           -DCOMPILATION_COMMENT="%{compilation_comment_debug}" %{TOKUDB_FLAGS} %{TOKUDB_DEBUG_OFF} %{ROCKSDB_FLAGS}
421  echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
422  make %{?_smp_mflags} VERBOSE=1
423)
424
425# Build full release
426mkdir release
427(
428  cd release
429  cmake ../%{src_dir} \
430           -DBUILD_CONFIG=mysql_release \
431           -DINSTALL_LAYOUT=RPM \
432           -DCMAKE_BUILD_TYPE=RelWithDebInfo \
433           -DWITH_BOOST=.. \
434           -DCMAKE_C_FLAGS="%{optflags}" \
435           -DCMAKE_CXX_FLAGS="%{optflags}" \
436           -DENABLE_DTRACE=0 \
437%if 0%{?systemd}
438           -DWITH_SYSTEMD=1 \
439%endif
440           -DWITH_INNODB_MEMCACHED=1 \
441           -DINSTALL_LIBDIR="%{_lib}/mysql" \
442           -DINSTALL_PLUGINDIR="%{_lib}/mysql/plugin" \
443           -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
444           -DINSTALL_MYSQLSHAREDIR=share/percona-server \
445           -DINSTALL_SUPPORTFILESDIR=share/percona-server \
446           -DFEATURE_SET="%{feature_set}" \
447           -DWITH_EMBEDDED_SERVER=0 \
448           -DWITH_EMBEDDED_SHARED_LIBRARY=0 \
449           -DWITH_PAM=1 \
450           -DWITH_ROCKSDB=1 \
451           -DWITH_INNODB_MEMCACHED=1 \
452           -DWITH_ZLIB=system \
453           -DWITH_SCALABILITY_METRICS=ON \
454           -DROCKSDB_DISABLE_AVX2=1 \
455           -DROCKSDB_DISABLE_MARCH_NATIVE=1 \
456           %{?ssl_option} \
457           %{?mecab_option} \
458           -DCOMPILATION_COMMENT="%{compilation_comment_release}" %{TOKUDB_FLAGS} %{TOKUDB_DEBUG_OFF} %{ROCKSDB_FLAGS}
459  echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
460  make %{?_smp_mflags} VERBOSE=1
461)
462
463%install
464%if 0%{?compatlib}
465  # Install compat libs
466  %if 0%{?rhel} > 6
467    install -D -m 0755 percona-compatlib/usr/lib64/libmysqlclient.so.18.1.0 %{buildroot}%{_libdir}/mysql/libmysqlclient.so.18.1.0
468    install -D -m 0755 percona-compatlib/usr/lib64/libmysqlclient_r.so.18.1.0 %{buildroot}%{_libdir}/mysql/libmysqlclient_r.so.18.1.0
469  %endif # 0%{?rhel} > 6
470%endif # 0%{?compatlib}
471
472MBD=$RPM_BUILD_DIR/%{src_dir}
473
474# Ensure that needed directories exists
475install -d -m 0751 %{buildroot}/var/lib/mysql
476install -d -m 0755 %{buildroot}/var/run/mysqld
477install -d -m 0750 %{buildroot}/var/lib/mysql-files
478install -d -m 0750 %{buildroot}/var/lib/mysql-keyring
479
480# SElinux
481%if 0%{?tokudb}
482pushd $MBD/%{src_dir}/policy/selinux
483make -f /usr/share/selinux/devel/Makefile
484install -D -m 0644 $MBD/%{src_dir}/policy/selinux/percona-server.pp %{buildroot}%{_datadir}/selinux/packages/percona-server/percona-server.pp
485popd
486# SElinux END
487%endif
488
489# Install all binaries
490cd $MBD/release
491make DESTDIR=%{buildroot} install
492
493# Install logrotate and autostart
494install -D -m 0644 $MBD/release/support-files/mysql-log-rotate %{buildroot}%{_sysconfdir}/logrotate.d/mysql
495install -d %{buildroot}%{_sysconfdir}/percona-server.conf.d
496install -D -m 0644 $MBD/%{src_dir}/build-ps/rpm/percona-server.cnf %{buildroot}%{_sysconfdir}/percona-server.cnf
497install -D -m 0644 $MBD/%{src_dir}/build-ps/rpm/mysqld.cnf %{buildroot}%{_sysconfdir}/percona-server.conf.d/mysqld.cnf
498install -D -m 0644 $MBD/%{src_dir}/build-ps/rpm/mysqld_safe.cnf %{buildroot}%{_sysconfdir}/percona-server.conf.d/mysqld_safe.cnf
499
500#%if 0%{?rhel} > 6
501#  install -D -m 0644 $MBD/%{src_dir}/build-ps/rpm/percona-server.cnf %{buildroot}%{_sysconfdir}/my.cnf
502#%endif
503install -d %{buildroot}%{_sysconfdir}/my.cnf.d
504%if 0%{?systemd}
505%else
506  install -D -m 0755 $MBD/%{src_dir}/build-ps/rpm/mysql.init %{buildroot}%{_sysconfdir}/init.d/mysql
507%endif
508
509# Add libdir to linker
510install -d -m 0755 %{buildroot}%{_sysconfdir}/ld.so.conf.d
511echo "%{_libdir}/mysql" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/mysql-%{_arch}.conf
512
513# multiarch support
514%ifarch %{multiarchs}
515  mv %{buildroot}/%{_includedir}/mysql/my_config.h \
516   %{buildroot}/%{_includedir}/mysql/my_config_%{_arch}.h
517  install -p -m 0644 %{SOURCE4} %{buildroot}/%{_includedir}/mysql/my_config.h
518  mv %{buildroot}/%{_bindir}/mysql_config %{buildroot}/%{_bindir}/mysql_config-%{__isa_bits}
519  install -p -m 0755 %{SOURCE5} %{buildroot}/%{_bindir}/mysql_config
520%endif
521
522
523# Remove files pages we explicitly do not want to package
524rm -rf %{buildroot}%{_infodir}/mysql.info*
525rm -rf %{buildroot}%{_datadir}/percona-server/mysql.server
526rm -rf %{buildroot}%{_datadir}/percona-server/mysqld_multi.server
527rm -f %{buildroot}%{_datadir}/percona-server/win_install_firewall.sql
528rm -rf %{buildroot}%{_bindir}/mysql_embedded
529rm -rf %{buildroot}/usr/cmake/coredumper-relwithdebinfo.cmake
530rm -rf %{buildroot}/usr/cmake/coredumper.cmake
531
532%if 0%{?tokudb}
533  rm -f %{buildroot}%{_prefix}/README.md
534  rm -f %{buildroot}%{_prefix}/COPYING.AGPLv3
535  rm -f %{buildroot}%{_prefix}/COPYING.GPLv2
536  rm -f %{buildroot}%{_prefix}/PATENTS
537%else
538  # Not needed if TokuDB package is not created
539  rm -rf %{buildroot}%{_bindir}/ps_tokudb_admin
540%endif
541
542# Remove upcoming man pages, to avoid breakage when they materialize
543# Keep this comment as a placeholder for future cases
544# rm -f %{buildroot}%{_mandir}/man1/<manpage>.1
545
546%check
547%if 0%{?runselftest}
548  pushd release
549    make test VERBOSE=1
550    export MTR_BUILD_THREAD=auto
551  pushd mysql-test
552  ./mtr \
553    --mem --parallel=auto --force --retry=0 \
554    --mysqld=--binlog-format=mixed \
555    --suite-timeout=720 --testcase-timeout=30 \
556    --clean-vardir
557  rm -r $(readlink var) var
558%endif
559
560%pretrans -n Percona-Server-server%{product_suffix}
561if [ -d %{_datadir}/mysql ] && [ ! -L %{_datadir}/mysql ]; then
562  MYCNF_PACKAGE=$(rpm -qf /usr/share/mysql --queryformat "%{NAME}")
563fi
564
565if [ "$MYCNF_PACKAGE" == "mariadb-libs" -o "$MYCNF_PACKAGE" == "mysql-libs" ]; then
566  MODIFIED=$(rpm -Va "$MYCNF_PACKAGE" | grep '/usr/share/mysql' | awk '{print $1}' | grep -c 5)
567  if [ "$MODIFIED" == 1 ]; then
568    cp -r %{_datadir}/mysql %{_datadir}/mysql.old
569  fi
570fi
571
572%pre -n Percona-Server-server%{product_suffix}
573/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
574/usr/sbin/useradd -M %{!?el5:-N} -g mysql -o -r -d /var/lib/mysql -s /bin/false \
575    -c "Percona Server" -u 27 mysql >/dev/null 2>&1 || :
576if [ "$1" = 1 ]; then
577  if [ -f %{_sysconfdir}/my.cnf ]; then
578    timestamp=$(date '+%Y%m%d-%H%M')
579    cp %{_sysconfdir}/my.cnf \
580    %{_sysconfdir}/my.cnf.rpmsave-${timestamp}
581  fi
582fi
583
584%post -n Percona-Server-server%{product_suffix}
585datadir=$(/usr/bin/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p' | tail -n 1)
586/bin/chmod 0751 "$datadir" >/dev/null 2>&1 || :
587if [ ! -e /var/log/mysqld.log ]; then
588    /usr/bin/install -m0640 -omysql -gmysql /dev/null /var/log/mysqld.log
589fi
590#/bin/touch /var/log/mysqld.log >/dev/null 2>&1 || :
591%if 0%{?systemd}
592  %systemd_post mysqld.service
593  if [ $1 == 1 ]; then
594      /usr/bin/systemctl enable mysqld >/dev/null 2>&1 || :
595  fi
596%else
597  if [ $1 == 1 ]; then
598      /sbin/chkconfig --add mysql
599  fi
600%endif
601
602%if 0%{?rhel} > 6
603  MYCNF_PACKAGE="mariadb-libs"
604%else
605  MYCNF_PACKAGE="mysql-libs"
606%endif
607
608if [ -e /etc/my.cnf ]; then
609  MYCNF_PACKAGE=$(rpm -qi `rpm -qf /etc/my.cnf` | grep -m 1 Name | awk '{print $3}')
610fi
611if [ "$MYCNF_PACKAGE" == "mariadb-libs" -o "$MYCNF_PACKAGE" == "mysql-libs" -o "$MYCNF_PACKAGE" == "Percona-Server-server-57" ]; then
612  MODIFIED=$(rpm -Va "$MYCNF_PACKAGE" | grep '/etc/my.cnf' | awk '{print $1}' | grep -c 5)
613  if [ "$MODIFIED" == 1 ]; then
614      cp /etc/my.cnf /etc/my.cnf.old
615  fi
616else
617  cp /etc/my.cnf /etc/my.cnf.old
618fi
619if [ ! -f /etc/my.cnf ]; then
620  rm -rf /etc/my.cnf
621  update-alternatives --install /etc/my.cnf my.cnf "/etc/percona-server.cnf" 200
622else
623  if [ "$MYCNF_PACKAGE" == "Percona-Server-server-57" ]; then
624      real_file=$(readlink -f /etc/my.cnf)
625      if [ -L /etc/my.cnf ] && [ "x${real_file}" == "x/etc/percona-server.cnf" ]; then
626          rm -rf /etc/my.cnf
627          update-alternatives --install /etc/my.cnf my.cnf "/etc/percona-server.cnf" 200
628      else
629          echo " -------------"
630          echo "   *  The suggested mysql options and settings are in /etc/percona-server.conf.d/mysqld.cnf"
631          echo "   *  If you want to use mysqld.cnf as default configuration file please make backup of /etc/my.cnf"
632          echo "   *  Once it is done please execute the following commands:"
633          echo " rm -rf /etc/my.cnf"
634          echo " update-alternatives --install /etc/my.cnf my.cnf \"/etc/percona-server.cnf\" 200"
635          echo " -------------"
636      fi
637  else
638      echo " -------------"
639      echo "   *  The suggested mysql options and settings are in /etc/percona-server.conf.d/mysqld.cnf"
640      echo "   *  If you want to use mysqld.cnf as default configuration file please make backup of /etc/my.cnf"
641      echo "   *  Once it is done please execute the following commands:"
642      echo " rm -rf /etc/my.cnf"
643      echo " update-alternatives --install /etc/my.cnf my.cnf \"/etc/percona-server.cnf\" 200"
644      echo " -------------"
645      cnflog=$(/usr/bin/my_print_defaults mysqld|grep -c log-error)
646      if [ $cnflog = 0 -a -f /etc/my.cnf -a ! -L /etc/my.cnf ]; then
647          sed -i "/^\[mysqld\]$/a log-error=/var/log/mysqld.log" /etc/my.cnf
648      fi
649      cnfpid=$(/usr/bin/my_print_defaults mysqld|grep -c pid-file)
650      if [ $cnfpid = 0 -a -f /etc/my.cnf -a ! -L /etc/my.cnf ]; then
651          sed -i "/^\[mysqld\]$/a pid-file=/var/run/mysqld/mysqld.pid" /etc/my.cnf
652      fi
653  fi
654fi
655echo "Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit."
656echo "Run the following commands to create these functions:"
657echo "mysql -e \"CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'\""
658echo "mysql -e \"CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'\""
659echo "mysql -e \"CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'\""
660echo "See http://www.percona.com/doc/percona-server/5.7/management/udf_percona_toolkit.html for more details"
661
662%preun -n Percona-Server-server%{product_suffix}
663%if 0%{?systemd}
664  %systemd_preun mysqld.service
665%else
666  if [ "$1" = 0 ]; then
667    /sbin/service mysql stop >/dev/null 2>&1 || :
668    /sbin/chkconfig --del mysql
669  fi
670%endif
671if [ "$1" = 0 ]; then
672  timestamp=$(date '+%Y%m%d-%H%M')
673  if [ -L %{_datadir}/mysql ]; then
674      rm %{_datadir}/mysql
675  fi
676  if [ ! -L /etc/my.cnf ]; then
677    cp -p /etc/my.cnf /etc/my.cnf_backup-${timestamp}
678  else
679    realfile=$(readlink -f /etc/my.cnf)
680    cp "${realfile}" "${realfile}_backup-${timestamp}"
681  fi
682  cp -rp /etc/percona-server.conf.d /etc/percona-server.conf.d_backup-${timestamp}
683  cp -rp /etc/my.cnf.d /etc/my.cnf.d_backup-${timestamp}
684fi
685
686
687%postun -n Percona-Server-server%{product_suffix}
688%if 0%{?systemd}
689  %systemd_postun_with_restart mysqld.service
690%else
691  if [ $1 -ge 1 ]; then
692    /sbin/service mysql condrestart >/dev/null 2>&1 || :
693  fi
694%endif
695
696%posttrans -n Percona-Server-server%{product_suffix}
697if [ -d %{_datadir}/mysql ] && [ ! -L %{_datadir}/mysql ]; then
698  MYCNF_PACKAGE=$(rpm -qf /usr/share/mysql --queryformat "%{NAME}")
699  if [ "$MYCNF_PACKAGE" == "file %{_datadir}/mysql is not owned by any package" ]; then
700    mv %{_datadir}/mysql %{_datadir}/mysql.old
701  fi
702fi
703
704if [ ! -d %{_datadir}/mysql ] && [ ! -L %{_datadir}/mysql ]; then
705    ln -s %{_datadir}/percona-server %{_datadir}/mysql
706fi
707
708%post -n Percona-Server-shared%{product_suffix} -p /sbin/ldconfig
709
710%postun -n Percona-Server-shared%{product_suffix} -p /sbin/ldconfig
711
712%if 0%{?compatlib}
713%post -n Percona-Server-shared-compat%{product_suffix}
714for lib in libmysqlclient{.so.18.0.0,.so.18,_r.so.18.0.0,_r.so.18}; do
715  if [ ! -f %{_libdir}/mysql/${lib} ]; then
716    ln -s libmysqlclient.so.18.1.0 %{_libdir}/mysql/${lib};
717  fi
718done
719/sbin/ldconfig
720
721%postun -n Percona-Server-shared-compat%{product_suffix}
722for lib in libmysqlclient{.so.18.0.0,.so.18,_r.so.18.0.0,_r.so.18}; do
723  if [ -h %{_libdir}/mysql/${lib} ]; then
724    rm -f %{_libdir}/mysql/${lib};
725  fi
726done
727/sbin/ldconfig
728%endif
729
730%if 0%{?tokudb}
731%post -n Percona-Server-tokudb%{product_suffix}
732/usr/sbin/semodule -i %{_datadir}/selinux/packages/percona-server/percona-server.pp >/dev/null 2>&1 || :
733if [ $1 -eq 1 ] ; then
734  echo -e "\n\n * This release of Percona Server is distributed with TokuDB storage engine."
735  echo -e " * Run the following script to enable the TokuDB storage engine in Percona Server:\n"
736  echo -e "\tps-admin --enable-tokudb -u <mysql_admin_user> -p[mysql_admin_pass] [-S <socket>] [-h <host> -P <port>]\n"
737  echo -e " * See http://www.percona.com/doc/percona-server/5.7/tokudb/tokudb_installation.html for more installation details\n"
738  echo -e " * See http://www.percona.com/doc/percona-server/5.7/tokudb/tokudb_intro.html for an introduction to TokuDB\n\n"
739fi
740
741%postun -n Percona-Server-tokudb%{product_suffix}
742if [ $1 -eq 0 ] ; then
743    /usr/sbin/semodule -r percona-server >/dev/null 2>&1 || :
744fi
745
746%endif
747
748%if 0%{?rocksdb}
749%post -n Percona-Server-rocksdb%{product_suffix}
750if [ $1 -eq 1 ] ; then
751  echo -e "\n\n * This release of Percona Server is distributed with RocksDB storage engine."
752  echo -e " * Run the following script to enable the RocksDB storage engine in Percona Server:\n"
753  echo -e "\tps-admin --enable-rocksdb -u <mysql_admin_user> -p[mysql_admin_pass] [-S <socket>] [-h <host> -P <port>]\n"
754fi
755%endif
756
757
758%files -n Percona-Server-server%{product_suffix}
759%defattr(-, root, root, -)
760%doc %{?license_files_server}
761%doc %{src_dir}/Docs/INFO_SRC*
762%doc release/Docs/INFO_BIN*
763%attr(644, root, root) %{_mandir}/man1/innochecksum.1*
764%attr(644, root, root) %{_mandir}/man1/my_print_defaults.1*
765%attr(644, root, root) %{_mandir}/man1/myisam_ftdump.1*
766%attr(644, root, root) %{_mandir}/man1/myisamchk.1*
767%attr(644, root, root) %{_mandir}/man1/myisamlog.1*
768%attr(644, root, root) %{_mandir}/man1/myisampack.1*
769%attr(644, root, root) %{_mandir}/man8/mysqld.8*
770%attr(644, root, root) %{_mandir}/man1/mysqld_multi.1*
771%attr(644, root, root) %{_mandir}/man1/mysqld_safe.1*
772%attr(644, root, root) %{_mandir}/man1/mysqldumpslow.1*
773%attr(644, root, root) %{_mandir}/man1/mysql_install_db.1*
774%attr(644, root, root) %{_mandir}/man1/mysql_plugin.1*
775%attr(644, root, root) %{_mandir}/man1/mysql_secure_installation.1*
776%attr(644, root, root) %{_mandir}/man1/mysql_upgrade.1*
777%attr(644, root, root) %{_mandir}/man1/mysqlman.1*
778%attr(644, root, root) %{_mandir}/man1/mysql.server.1*
779%attr(644, root, root) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
780%attr(644, root, root) %{_mandir}/man1/perror.1*
781%attr(644, root, root) %{_mandir}/man1/replace.1*
782%attr(644, root, root) %{_mandir}/man1/resolve_stack_dump.1*
783%attr(644, root, root) %{_mandir}/man1/resolveip.1*
784%attr(644, root, root) %{_mandir}/man1/mysql_ssl_rsa_setup.1*
785%attr(644, root, root) %{_mandir}/man1/lz4_decompress.1*
786%attr(644, root, root) %{_mandir}/man1/zlib_decompress.1*
787
788%dir %{_sysconfdir}/my.cnf.d
789%dir %{_sysconfdir}/percona-server.conf.d
790%config(noreplace) %{_sysconfdir}/percona-server.cnf
791%config(noreplace) %{_sysconfdir}/percona-server.conf.d/mysqld.cnf
792%config(noreplace) %{_sysconfdir}/percona-server.conf.d/mysqld_safe.cnf
793%if 0%{?rhel} > 6
794#%ghost %config(noreplace) %{_sysconfdir}/my.cnf
795%ghost %{_sysconfdir}/my.cnf
796%endif
797
798
799%attr(755, root, root) %{_bindir}/innochecksum
800%attr(755, root, root) %{_bindir}/my_print_defaults
801%attr(755, root, root) %{_bindir}/myisam_ftdump
802%attr(755, root, root) %{_bindir}/myisamchk
803%attr(755, root, root) %{_bindir}/myisamlog
804%attr(755, root, root) %{_bindir}/myisampack
805%attr(755, root, root) %{_bindir}/mysql_install_db
806%attr(755, root, root) %{_bindir}/mysql_plugin
807%attr(755, root, root) %{_bindir}/mysql_secure_installation
808%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
809%attr(755, root, root) %{_bindir}/mysql_upgrade
810%attr(755, root, root) %{_bindir}/mysqldumpslow
811%attr(755, root, root) %{_bindir}/ps_mysqld_helper
812%attr(755, root, root) %{_bindir}/perror
813%attr(755, root, root) %{_bindir}/replace
814%attr(755, root, root) %{_bindir}/resolve_stack_dump
815%attr(755, root, root) %{_bindir}/resolveip
816%attr(755, root, root) %{_bindir}/mysql_ssl_rsa_setup
817%attr(755, root, root) %{_bindir}/lz4_decompress
818%attr(755, root, root) %{_bindir}/zlib_decompress
819%attr(755, root, root) %{_bindir}/ps-admin
820%if 0%{?systemd}
821%attr(755, root, root) %{_bindir}/mysqld_pre_systemd
822%else
823%attr(755, root, root) %{_bindir}/mysqld_multi
824%attr(755, root, root) %{_bindir}/mysqld_safe
825%endif
826%attr(755, root, root) %{_sbindir}/mysqld
827%attr(755, root, root) %{_sbindir}/mysqld-debug
828
829%dir %{_libdir}/mysql/plugin
830%attr(755, root, root) %{_libdir}/mysql/plugin/adt_null.so
831%attr(755, root, root) %{_libdir}/mysql/plugin/auth_socket.so
832%attr(755, root, root) %{_libdir}/mysql/plugin/ha_example.so
833%attr(755, root, root) %{_libdir}/mysql/plugin/innodb_engine.so
834%attr(755, root, root) %{_libdir}/mysql/plugin/keyring_file.so
835%attr(755, root, root) %{_libdir}/mysql/plugin/libmemcached.so
836%attr(755, root, root) %{_libdir}/mysql/plugin/locking_service.so
837%attr(755, root, root) %{_libdir}/mysql/plugin/mypluglib.so
838%attr(755, root, root) %{_libdir}/mysql/plugin/mysql_no_login.so
839%attr(755, root, root) %{_libdir}/mysql/plugin/rewrite_example.so
840%attr(755, root, root) %{_libdir}/mysql/plugin/rewriter.so
841%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_master.so
842%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_slave.so
843%attr(755, root, root) %{_libdir}/mysql/plugin/validate_password.so
844%attr(755, root, root) %{_libdir}/mysql/plugin/version_token.so
845%attr(755, root, root) %{_libdir}/mysql/plugin/mysqlx.so
846%attr(755, root, root) %{_libdir}/mysql/plugin/keyring_udf.so
847%attr(755, root, root) %{_libdir}/mysql/plugin/connection_control.so
848%attr(755, root, root) %{_libdir}/mysql/plugin/group_replication.so
849%attr(755, root, root) %{_libdir}/mysql/plugin/authentication_ldap_sasl_client.so
850%attr(755, root, root) %{_libdir}/mysql/plugin/udf_example.so
851%attr(755, root, root) %{_libdir}/mysql/plugin/data_masking*
852%dir %{_libdir}/mysql/plugin/debug
853%attr(755, root, root) %{_libdir}/mysql/plugin/debug/adt_null.so
854%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_socket.so
855%attr(755, root, root) %{_libdir}/mysql/plugin/debug/ha_example.so
856%attr(755, root, root) %{_libdir}/mysql/plugin/debug/innodb_engine.so
857%attr(755, root, root) %{_libdir}/mysql/plugin/debug/keyring_file.so
858%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libmemcached.so
859%attr(755, root, root) %{_libdir}/mysql/plugin/debug/locking_service.so
860%attr(755, root, root) %{_libdir}/mysql/plugin/debug/mypluglib.so
861%attr(755, root, root) %{_libdir}/mysql/plugin/debug/mysql_no_login.so
862%attr(755, root, root) %{_libdir}/mysql/plugin/debug/rewrite_example.so
863%attr(755, root, root) %{_libdir}/mysql/plugin/debug/rewriter.so
864%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_master.so
865%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_slave.so
866%attr(755, root, root) %{_libdir}/mysql/plugin/debug/validate_password.so
867%attr(755, root, root) %{_libdir}/mysql/plugin/debug/version_token.so
868%attr(755, root, root) %{_libdir}/mysql/plugin/debug/mysqlx.so
869%attr(755, root, root) %{_libdir}/mysql/plugin/debug/keyring_udf.so
870%attr(755, root, root) %{_libdir}/mysql/plugin/debug/connection_control.so
871%attr(755, root, root) %{_libdir}/mysql/plugin/debug/group_replication.so
872%attr(755, root, root) %{_libdir}/mysql/plugin/debug/udf_example.so
873%attr(755, root, root) %{_libdir}/mysql/plugin/debug/data_masking.so
874%if 0%{?mecab}
875%{_libdir}/mysql/mecab
876%attr(755, root, root) %{_libdir}/mysql/plugin/libpluginmecab.so
877%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libpluginmecab.so
878%endif
879# Percona plugins
880%attr(755, root, root) %{_libdir}/mysql/plugin/audit_log.so
881%attr(755, root, root) %{_libdir}/mysql/plugin/debug/audit_log.so
882%attr(755, root, root) %{_libdir}/mysql/plugin/scalability_metrics.so
883%attr(755, root, root) %{_libdir}/mysql/plugin/debug/scalability_metrics.so
884%attr(755, root, root) %{_libdir}/mysql/plugin/auth_pam.so
885%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_pam.so
886%attr(755, root, root) %{_libdir}/mysql/plugin/auth_pam_compat.so
887%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_pam_compat.so
888%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.*
889%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libfnv1a_udf.*
890%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.*
891%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libfnv_udf.*
892%attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.*
893%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libmurmur_udf.*
894%attr(755, root, root) %{_libdir}/mysql/plugin/dialog.so
895%attr(755, root, root) %{_libdir}/mysql/plugin/debug/dialog.so
896%attr(755, root, root) %{_libdir}/mysql/plugin/auth.so
897%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth.so
898%attr(755, root, root) %{_libdir}/mysql/plugin/query_response_time.so
899%attr(755, root, root) %{_libdir}/mysql/plugin/debug/query_response_time.so
900%attr(755, root, root) %{_libdir}/mysql/plugin/debug/authentication_ldap_sasl_client.so
901%attr(755, root, root) %{_libdir}/mysql/plugin/keyring_vault.so
902%attr(755, root, root) %{_libdir}/mysql/plugin/debug/keyring_vault.so
903#
904%attr(644, root, root) %{_datadir}/percona-server/fill_help_tables.sql
905%attr(644, root, root) %{_datadir}/percona-server/mysql_sys_schema.sql
906%attr(644, root, root) %{_datadir}/percona-server/mysql_system_tables.sql
907%attr(644, root, root) %{_datadir}/percona-server/mysql_system_tables_data.sql
908%attr(644, root, root) %{_datadir}/percona-server/mysql_test_data_timezone.sql
909%attr(644, root, root) %{_datadir}/percona-server/mysql-log-rotate
910%attr(644, root, root) %{_datadir}/percona-server/mysql_security_commands.sql
911%attr(644, root, root) %{_datadir}/percona-server/dictionary.txt
912%attr(644, root, root) %{_datadir}/percona-server/innodb_memcached_config.sql
913%attr(644, root, root) %{_datadir}/percona-server/install_rewriter.sql
914%attr(644, root, root) %{_datadir}/percona-server/uninstall_rewriter.sql
915%attr(644, root, root) %{_datadir}/percona-server/magic
916%if 0%{?systemd}
917%attr(644, root, root) %{_unitdir}/mysqld@.service
918%attr(644, root, root) %{_unitdir}/mysqld.service
919%attr(644, root, root) %{_prefix}/lib/tmpfiles.d/mysql.conf
920%else
921%attr(755, root, root) %{_sysconfdir}/init.d/mysql
922%endif
923%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
924%dir %attr(751, mysql, mysql) /var/lib/mysql
925%dir %attr(755, mysql, mysql) /var/run/mysqld
926%dir %attr(750, mysql, mysql) /var/lib/mysql-files
927%dir %attr(750, mysql, mysql) /var/lib/mysql-keyring
928
929%attr(755, root, root) %{_datadir}/percona-server/charsets/
930%attr(755, root, root) %{_datadir}/percona-server/errmsg-utf8.txt
931%attr(755, root, root) %{_datadir}/percona-server/bulgarian/
932%attr(755, root, root) %{_datadir}/percona-server/czech/
933%attr(755, root, root) %{_datadir}/percona-server/danish/
934%attr(755, root, root) %{_datadir}/percona-server/dutch/
935%attr(755, root, root) %{_datadir}/percona-server/english/
936%attr(755, root, root) %{_datadir}/percona-server/estonian/
937%attr(755, root, root) %{_datadir}/percona-server/french/
938%attr(755, root, root) %{_datadir}/percona-server/german/
939%attr(755, root, root) %{_datadir}/percona-server/greek/
940%attr(755, root, root) %{_datadir}/percona-server/hungarian/
941%attr(755, root, root) %{_datadir}/percona-server/italian/
942%attr(755, root, root) %{_datadir}/percona-server/japanese/
943%attr(755, root, root) %{_datadir}/percona-server/korean/
944%attr(755, root, root) %{_datadir}/percona-server/norwegian-ny/
945%attr(755, root, root) %{_datadir}/percona-server/norwegian/
946%attr(755, root, root) %{_datadir}/percona-server/polish/
947%attr(755, root, root) %{_datadir}/percona-server/portuguese/
948%attr(755, root, root) %{_datadir}/percona-server/romanian/
949%attr(755, root, root) %{_datadir}/percona-server/russian/
950%attr(755, root, root) %{_datadir}/percona-server/serbian/
951%attr(755, root, root) %{_datadir}/percona-server/slovak/
952%attr(755, root, root) %{_datadir}/percona-server/spanish/
953%attr(755, root, root) %{_datadir}/percona-server/swedish/
954%attr(755, root, root) %{_datadir}/percona-server/ukrainian/
955
956%files -n Percona-Server-client%{product_suffix}
957%defattr(-, root, root, -)
958%doc %{?license_files_server}
959%attr(755, root, root) %{_bindir}/mysql
960%attr(755, root, root) %{_bindir}/mysqladmin
961%attr(755, root, root) %{_bindir}/mysqlbinlog
962%attr(755, root, root) %{_bindir}/mysqlcheck
963%attr(755, root, root) %{_bindir}/mysqldump
964%attr(755, root, root) %{_bindir}/mysqlimport
965%attr(755, root, root) %{_bindir}/mysqlpump
966%attr(755, root, root) %{_bindir}/mysqlshow
967%attr(755, root, root) %{_bindir}/mysqlslap
968%attr(755, root, root) %{_bindir}/mysql_config_editor
969
970%attr(644, root, root) %{_mandir}/man1/mysql.1*
971%attr(644, root, root) %{_mandir}/man1/mysqladmin.1*
972%attr(644, root, root) %{_mandir}/man1/mysqlbinlog.1*
973%attr(644, root, root) %{_mandir}/man1/mysqlcheck.1*
974%attr(644, root, root) %{_mandir}/man1/mysqldump.1*
975%attr(644, root, root) %{_mandir}/man1/mysqlpump.1*
976%attr(644, root, root) %{_mandir}/man1/mysqlimport.1*
977%attr(644, root, root) %{_mandir}/man1/mysqlshow.1*
978%attr(644, root, root) %{_mandir}/man1/mysqlslap.1*
979%attr(644, root, root) %{_mandir}/man1/mysql_config_editor.1*
980
981%files -n Percona-Server-devel%{product_suffix}
982%defattr(-, root, root, -)
983%doc %{?license_files_server}
984%attr(644, root, root) %{_mandir}/man1/comp_err.1*
985%attr(644, root, root) %{_mandir}/man1/mysql_config.1*
986%attr(755, root, root) %{_bindir}/mysql_config
987%attr(755, root, root) %{_bindir}/mysql_config-%{__isa_bits}
988%{_includedir}/mysql
989%{_datadir}/aclocal/mysql.m4
990%{_libdir}/mysql/lib%{shared_lib_pri_name}.a
991%{_libdir}/mysql/libmysqlservices.a
992%{_libdir}/mysql/lib%{shared_lib_pri_name}.so
993%{_libdir}/pkgconfig/%{shared_lib_pri_name}.pc
994
995%files -n Percona-Server-shared%{product_suffix}
996%defattr(-, root, root, -)
997%doc %{?license_files_server}
998%dir %attr(755, root, root) %{_libdir}/mysql
999%attr(644, root, root) %{_sysconfdir}/ld.so.conf.d/mysql-%{_arch}.conf
1000%{_libdir}/mysql/lib%{shared_lib_pri_name}.so.20*
1001#coredumper
1002%attr(755, root, root) %{_includedir}/coredumper/coredumper.h
1003%attr(755, root, root) /usr/lib/libcoredumper.a
1004
1005%if 0%{?compatlib}
1006%files -n Percona-Server-shared-compat%{product_suffix}
1007%defattr(-, root, root, -)
1008%doc %{?license_files_server}
1009%dir %attr(755, root, root) %{_libdir}/mysql
1010%attr(644, root, root) %{_sysconfdir}/ld.so.conf.d/mysql-%{_arch}.conf
1011%{_libdir}/mysql/libmysqlclient.so.%{compatlib}.*
1012%{_libdir}/mysql/libmysqlclient_r.so.%{compatlib}.*
1013%endif
1014
1015%files -n Percona-Server-test%{product_suffix}
1016%defattr(-, root, root, -)
1017%doc %{?license_files_server}
1018%attr(-, root, root) %{_datadir}/mysql-test
1019%attr(755, root, root) %{_bindir}/mysql_client_test
1020%attr(755, root, root) %{_bindir}/mysqltest
1021%attr(755, root, root) %{_bindir}/mysqlxtest
1022
1023%attr(755, root, root) %{_libdir}/mysql/plugin/auth.so
1024%attr(755, root, root) %{_libdir}/mysql/plugin/auth_test_plugin.so
1025%attr(644, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
1026%attr(755, root, root) %{_libdir}/mysql/plugin/libdaemon_example.so
1027%attr(755, root, root) %{_libdir}/mysql/plugin/replication_observers_example_plugin.so
1028%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_framework.so
1029%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_services.so
1030%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_services_threaded.so
1031%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_session_detach.so
1032%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_session_in_thd.so
1033%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_session_info.so
1034%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_2_sessions.so
1035%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_all_col_types.so
1036%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_cmds_1.so
1037%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_commit.so
1038%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_complex.so
1039%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_errors.so
1040%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_lock.so
1041%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_processlist.so
1042%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_replication.so
1043%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_shutdown.so
1044%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_sqlmode.so
1045%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_stored_procedures_functions.so
1046%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_sql_views_triggers.so
1047%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_x_sessions_deinit.so
1048%attr(755, root, root) %{_libdir}/mysql/plugin/libtest_x_sessions_init.so
1049%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_client.so
1050%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_interface.so
1051%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_server.so
1052%attr(755, root, root) %{_libdir}/mysql/plugin/test_security_context.so
1053%attr(755, root, root) %{_libdir}/mysql/plugin/test_udf_services.so
1054%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth.so
1055%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_test_plugin.so
1056%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libdaemon_example.so
1057%attr(755, root, root) %{_libdir}/mysql/plugin/debug/replication_observers_example_plugin.so
1058%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_framework.so
1059%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_services.so
1060%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_services_threaded.so
1061%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_session_detach.so
1062%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_session_in_thd.so
1063%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_session_info.so
1064%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_2_sessions.so
1065%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_all_col_types.so
1066%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_cmds_1.so
1067%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_commit.so
1068%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_complex.so
1069%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_errors.so
1070%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_lock.so
1071%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_processlist.so
1072%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_replication.so
1073%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_shutdown.so
1074%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_sqlmode.so
1075%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_stored_procedures_functions.so
1076%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_sql_views_triggers.so
1077%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_x_sessions_deinit.so
1078%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libtest_x_sessions_init.so
1079%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_client.so
1080%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_interface.so
1081%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_server.so
1082%attr(755, root, root) %{_libdir}/mysql/plugin/debug/test_security_context.so
1083%attr(755, root, root) %{_libdir}/mysql/plugin/debug/test_udf_services.so
1084
1085%if 0%{?tokudb}
1086%files -n Percona-Server-tokudb%{product_suffix}
1087%dir %attr(755, root, root) %{_datadir}/selinux/packages/percona-server
1088%attr(644, root, root) %{_datadir}/selinux/packages/percona-server/percona-server.pp
1089%attr(-, root, root)
1090%{_bindir}/tokuftdump
1091%{_libdir}/mysql/plugin/ha_tokudb.so
1092%attr(755, root, root) %{_libdir}/mysql/plugin/debug/ha_tokudb.so
1093%attr(755, root, root) %{_bindir}/ps_tokudb_admin
1094%attr(755, root, root) %{_bindir}/tokuft_logprint
1095%attr(755, root, root) %{_libdir}/mysql/plugin/tokudb_backup.so
1096%attr(755, root, root) %{_libdir}/mysql/plugin/debug/tokudb_backup.so
1097%attr(755, root, root) %{_libdir}/mysql/libHotBackup.so
1098%{_includedir}/backup.h
1099%endif
1100
1101%if 0%{?rocksdb}
1102%files -n Percona-Server-rocksdb%{product_suffix}
1103%attr(-, root, root)
1104%{_libdir}/mysql/plugin/ha_rocksdb.so
1105%attr(755, root, root) %{_libdir}/mysql/plugin/debug/ha_rocksdb.so
1106%attr(755, root, root) %{_bindir}/ldb
1107%attr(755, root, root) %{_bindir}/mysql_ldb
1108%attr(755, root, root) %{_bindir}/sst_dump
1109%endif
1110
1111
1112%changelog
1113* Mon Feb 22 2021 Percona Development Team <info@percona.com> - 5.7.33-36
1114- Release 5.7.33-36
1115
1116* Wed Aug  2 2017 Evgeniy Patlan <evgeniy.patlan@percona.com>
1117- Added RocksDB
1118
1119* Thu Sep  1 2016 Evgeniy Patlan <evgeniy.patlan@percona.com>
1120- fix license field
1121
1122* Thu Aug 25 2016 Evgeniy Patlan <evgeniy.patlan@percona.com>
1123- Provide my.cnf for all systems
1124
1125* Wed Mar 09 2016 Tomislav Plavcic <tomislav.plavcic@percona.com> - 5.7.11-4
1126- Include mysql-keyring directory
1127- Provide keyring_file.so plugin
1128
1129* Thu Feb 11 2016 Tomislav Plavcic <tomislav.plavcic@percona.com> - 5.7.10-3
1130- Fix for centos6 to write temp pass into log file instead of stdout (#1541769)
1131
1132* Tue Feb 02 2016 Tomislav Plavcic <tomislav.plavcic@percona.com> - 5.7.10-2rc2
1133- Re-added TokuBackup to the packaging (JEN-439)
1134
1135* Thu Dec 10 2015 Tomislav Plavcic <tomislav.plavcic@percona.com> - 5.7.10-1rc1
1136- Initial release PS 5.7.10-1rc1
1137
1138* Tue Sep 29 2015 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.9-1
1139- Updated for 5.7.9
1140- Added libtest_* plugins to test package subpackage
1141- Add mysqlpump man page
1142- Obsolete mysql-connector-c-shared dependencies
1143
1144* Thu Jun 25 2015 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.8-0.2.rc
1145- Add support for pkg-config
1146
1147* Wed May 20 2015 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.8-0.2.rc
1148- Added libtest_framework.so, libtest_services.so, libtest_services_threaded.so plugins
1149- Build and ship mecab plugin
1150
1151* Tue Feb 3 2015 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.6-0.2.m16
1152- Include boost sources
1153- Fix cmake buildrequires
1154- Fix build on el5 with gcc44
1155- Add license info in each subpackage
1156- Soname bump, more compat packages
1157- Updated default shell for mysql user
1158- Added mysql_ssl_rsa_setup
1159- Include mysql-files directory
1160
1161* Thu Sep 18 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.6-0.2.m16
1162- Provide replication_observers_example_plugin.so plugin
1163
1164* Tue Sep 2 2014 Bjorn Munch <bjorn.munch@oracle.com> - 5.7.6-0.1.m16
1165- Updated for 5.7.6
1166
1167* Fri Aug 08 2014 Erlend Dahl <erlend.dahl@oracle.com> - 5.7.5-0.6.m15
1168- Provide mysql_no_login.so plugin
1169
1170* Wed Aug 06 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.5-0.5.m15
1171- Provide mysql-compat-server dependencies
1172
1173* Wed Jul 09 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.5-0.4.m15
1174- Remove perl(GD) and dtrace dependencies
1175
1176* Thu Jun 26 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.5-0.3.m15
1177- Resolve embedded-devel conflict issue
1178
1179* Wed Jun 25 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.5-0.2.m15
1180- Add bench package
1181- Enable dtrace
1182
1183* Thu Apr 24 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.5-0.1.m15
1184- Updated for 5.7.5
1185
1186* Mon Apr 07 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.4-0.5.m14
1187- Fix Cflags for el7
1188
1189* Mon Mar 31 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.4-0.4.m14
1190- Support for enterprise packages
1191- Upgrade from MySQL-* packages
1192
1193* Wed Mar 12 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.4-0.3.m14
1194- Resolve conflict with mysql-libs-compat
1195
1196* Thu Mar 06 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.4-0.2.m14
1197- Resolve conflict issues during upgrade
1198- Add ha_example.so plugin which is now included
1199
1200* Fri Feb 07 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.4-0.1.m14
1201- 5.7.4
1202- Enable shared libmysqld by cmake option
1203- Move mysqltest and test plugins to test subpackage
1204
1205* Mon Nov 18 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.3-0.3.m13
1206- Fixed isa_bits error
1207
1208* Fri Oct 25 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.7.3-0.1.m13
1209- Initial 5.7 port
1210
1211* Fri Oct 25 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.15-1
1212- Fixed uln advanced rpm libyassl.a error
1213- Updated to 5.6.15
1214
1215* Wed Oct 16 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.14-3
1216- Fixed mysql_install_db usage
1217- Improved handling of plugin directory
1218
1219* Fri Sep 27 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.14-2
1220- Refresh mysql-install patch and service renaming
1221
1222* Mon Sep 16 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.14-1
1223- Updated to 5.6.14
1224
1225* Wed Sep 04 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.13-5
1226- Support upgrade from 5.5 ULN packages to 5.6
1227
1228* Tue Aug 27 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.13-4
1229- Enhanced perl filtering
1230- Added openssl-devel to buildreq
1231
1232* Wed Aug 21 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.13-3
1233- Removed mysql_embedded binary to resolve multilib conflict issue
1234
1235* Fri Aug 16 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.13-2
1236- Fixed Provides and Obsoletes issues in server, test packages
1237
1238* Wed Aug 14 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.13-1
1239- Updated to 5.6.13
1240
1241* Mon Aug 05 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-9
1242- Added files list to embedded packages
1243
1244* Thu Aug 01 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-8
1245- Updated libmysqld.a with libmysqld.so in embedded package
1246
1247* Mon Jul 29 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-7
1248- Updated test package dependency from client to server
1249
1250* Wed Jul 24 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-6
1251- Added libs-compat dependency under libs package to resolve server
1252  installation conflicts issue.
1253
1254* Wed Jul 17 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-5
1255- Removed libmysqlclient.so.16 from libs package
1256
1257* Fri Jul 05 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-4
1258- Adjusted to work on OEL6
1259
1260* Wed Jun 26 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-3
1261- Move libs to mysql/
1262- Basic multi arch support
1263- Fix changelog dates
1264
1265* Thu Jun 20 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-2
1266- Major cleanup
1267
1268* Tue Jun 04 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com> - 5.6.12-1
1269- Updated to 5.6.12
1270
1271* Mon Nov 05 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1272
1273- Allow to override the default to use the bundled yaSSL by an option like
1274      --define="with_ssl /path/to/ssl"
1275
1276* Wed Oct 10 2012 Bjorn Munch <bjorn.munch@oracle.com>
1277
1278- Replace old my-*.cnf config file examples with template my-default.cnf
1279
1280* Fri Oct 05 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1281
1282- Let the installation use the new option "--random-passwords" of "mysql_install_db".
1283  (Bug# 12794345 Ensure root password)
1284- Fix an inconsistency: "new install" vs "upgrade" are told from the (non)existence
1285  of "$mysql_datadir/mysql" (holding table "mysql.user" and other system stuff).
1286
1287* Tue Jul 24 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1288
1289- Add a macro "runselftest":
1290  if set to 1 (default), the test suite will be run during the RPM build;
1291  this can be oveeridden via the command line by adding
1292      --define "runselftest 0"
1293  Failures of the test suite will NOT make the RPM build fail!
1294
1295* Mon Jul 16 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1296
1297- Add the man page for the "mysql_config_editor".
1298
1299* Mon Jun 11 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1300
1301- Make sure newly added "SPECIFIC-ULN/" directory does not disturb packaging.
1302
1303* Wed Feb 29 2012 Brajmohan Saxena <brajmohan.saxena@oracle.com>
1304
1305- Removal all traces of the readline library from mysql (BUG 13738013)
1306
1307* Wed Sep 28 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1308
1309- Fix duplicate mentioning of "mysql_plugin" and its manual page,
1310  it is better to keep alphabetic order in the files list (merging!).
1311
1312* Wed Sep 14 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1313
1314- Let the RPM capabilities ("obsoletes" etc) ensure that an upgrade may replace
1315  the RPMs of any configuration (of the current or the preceding release series)
1316  by the new ones. This is done by not using the implicitly generated capabilities
1317  (which include the configuration name) and relying on more generic ones which
1318  just list the function ("server", "client", ...).
1319  The implicit generation cannot be prevented, so all these capabilities must be
1320  explicitly listed in "Obsoletes:"
1321
1322* Tue Sep 13 2011 Jonathan Perkin <jonathan.perkin@oracle.com>
1323
1324- Add support for Oracle Linux 6 and Red Hat Enterprise Linux 6.  Due to
1325  changes in RPM behaviour ($RPM_BUILD_ROOT is removed prior to install)
1326  this necessitated a move of the libmygcc.a installation to the install
1327  phase, which is probably where it belonged in the first place.
1328
1329* Tue Sep 13 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1330
1331- "make_win_bin_dist" and its manual are dropped, cmake does it different.
1332
1333* Thu Sep 08 2011 Daniel Fischer <daniel.fischer@oracle.com>
1334
1335- Add mysql_plugin man page.
1336
1337* Tue Aug 30 2011 Tor Didriksen <tor.didriksen@oracle.com>
1338
1339- Set CXX=g++ by default to add a dependency on libgcc/libstdc++.
1340  Also, remove the use of the -fno-exceptions and -fno-rtti flags.
1341  TODO: update distro_buildreq/distro_requires
1342
1343* Tue Aug 30 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1344
1345- Add the manual page for "mysql_plugin" to the server package.
1346
1347* Fri Aug 19 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1348
1349- Null-upmerge the fix of bug#37165: This spec file is not affected.
1350- Replace "/var/lib/mysql" by the spec file variable "%%{mysqldatadir}".
1351
1352* Fri Aug 12 2011 Daniel Fischer <daniel.fischer@oracle.com>
1353
1354- Source plugin library files list from cmake-generated file.
1355
1356* Mon Jul 25 2011 Chuck Bell <chuck.bell@oracle.com>
1357
1358- Added the mysql_plugin client - enables or disables plugins.
1359
1360* Thu Jul 21 2011 Sunanda Menon <sunanda.menon@oracle.com>
1361
1362- Fix bug#12561297: Added the MySQL embedded binary
1363
1364* Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1365
1366- Fix bug#45415: "rpm upgrade recreates test database"
1367  Let the creation of the "test" database happen only during a new installation,
1368  not in an RPM upgrade.
1369  This affects both the "mkdir" and the call of "mysql_install_db".
1370
1371* Wed Feb 09 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1372
1373- Fix bug#56581: If an installation deviates from the default file locations
1374  ("datadir" and "pid-file"), the mechanism to detect a running server (on upgrade)
1375  should still work, and use these locations.
1376  The problem was that the fix for bug#27072 did not check for local settings.
1377
1378* Mon Jan 31 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1379
1380- Install the new "manifest" files: "INFO_SRC" and "INFO_BIN".
1381
1382* Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1383
1384- EXCEPTIONS-CLIENT has been deleted, remove it from here too
1385- Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
1386  a '-j' argument to make.
1387
1388* Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1389
1390- Added test authentication (WL#1054) plugin binaries
1391
1392* Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1393
1394- Added example external authentication (WL#1054) plugin binaries
1395
1396* Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
1397
1398- With a recent spec file cleanup, names have changed: A "-community" part was dropped.
1399  Reflect that in the "Obsoletes" specifications.
1400- Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
1401- This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
1402
1403* Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1404
1405- Change the behaviour on installation and upgrade:
1406  On installation, do not autostart the server.
1407  *Iff* the server was stopped before the upgrade is started, this is taken as a
1408  sign the administrator is handling that manually, and so the new server will
1409  not be started automatically at the end of the upgrade.
1410  The start/stop scripts will still be installed, so the server will be started
1411  on the next machine boot.
1412  This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).
1413
1414* Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1415
1416- Implement SELinux checks from distribution-specific spec file.
1417
1418* Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1419
1420- Large number of changes to build using CMake
1421- Introduce distribution-specific RPMs
1422- Drop debuginfo, build all binaries with debug/symbols
1423- Remove __os_install_post, use native macro
1424- Remove _unpackaged_files_terminate_build, make it an error to have
1425  unpackaged files
1426- Remove cluster RPMs
1427
1428* Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1429
1430- Add "--with-perfschema" to the configure options.
1431
1432* Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1433
1434- User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
1435  mask "rmdir" return code 1.
1436- Remove "ha_example.*" files from the list, they aren't built.
1437
1438* Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1439
1440- Fix a wrong path name in handling the debug plugins.
1441
1442* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1443
1444- Take the result of the debug plugin build and put it into the optimized tree,
1445  so that it becomes part of the final installation;
1446  include the files in the packlist. Part of the fixes for bug#49022.
1447
1448* Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1449
1450- Set "Oracle and/or its affiliates" as the vendor and copyright owner,
1451  accept upgrading from packages showing MySQL or Sun as vendor.
1452
1453* Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1454
1455- Formatting changes:
1456  Have a consistent structure of separator lines and of indentation
1457  (8 leading blanks => tab).
1458- Introduce the variable "src_dir".
1459- Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
1460  over "CC" ("CXX").
1461- Drop the old "with_static" argument analysis, this is not supported
1462  in 5.1 since ages.
1463- Introduce variables to control the handlers individually, as well
1464  as other options.
1465- Use the new "--with-plugin" notation for the table handlers.
1466- Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
1467  was done back in 2002 already.
1468- Make "--with-zlib-dir=bundled" the default, add an option to disable it.
1469- Add missing manual pages to the file list.
1470- Improve the runtime check for "libgcc.a", protect it against being tried
1471  with the Intel compiler "icc".
1472
1473* Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1474
1475- Change RPM file naming:
1476  - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
1477  - Release counts from 1, not 0.
1478
1479* Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1480
1481- The "semisync" plugin file name has lost its introductory "lib",
1482  adapt the file lists for the subpackages.
1483  This is a part missing from the fix for bug#48351.
1484- Remove the "fix_privilege_tables" manual, it does not exist in 5.5
1485  (and likely, the whole script will go, too).
1486
1487* Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1488
1489- remove erroneous traces of the InnoDB plugin (that is 5.1 only).
1490
1491* Tue Oct 06 2009 Magnus Blaudd <mvensson@mysql.com>
1492
1493- Removed mysql_fix_privilege_tables
1494
1495* Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
1496
1497- "mysqlmanager" got removed from version 5.4, all references deleted.
1498
1499* Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1500
1501- Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
1502
1503* Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1504
1505- This version does not contain the "Instance manager", "mysqlmanager":
1506  Remove it from the spec file so that packaging succeeds.
1507
1508* Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
1509
1510- Add conditionals for bundled zlib and innodb plugin
1511
1512* Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
1513
1514- Install plugin libraries in appropriate packages.
1515- Disable libdaemon_example and ftexample plugins.
1516
1517* Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
1518
1519- Update variable used for mysql-test suite location to match source.
1520
1521* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
1522
1523- Correct yesterday's fix, so that it also works for the last flag,
1524  and fix a wrong quoting: un-quoted quote marks must not be escaped.
1525
1526* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
1527
1528- Removed "mysql_upgrade_shell"
1529- Removed some copy/paste between debug and normal build
1530
1531* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
1532
1533- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
1534  This should cover both gcc and icc flags.  Fixes bug#40546.
1535
1536* Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
1537
1538- Removed the "Federated" storage engine option, and enabled in all
1539
1540* Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
1541
1542- Get rid of the "warning: Installed (but unpackaged) file(s) found:"
1543  Some generated files aren't needed in RPMs:
1544  - the "sql-bench/" subdirectory
1545  Some files were missing:
1546  - /usr/share/aclocal/mysql.m4  ("devel" subpackage)
1547  - Manual "mysqlbug" ("server" subpackage)
1548  - Program "innochecksum" and its manual ("server" subpackage)
1549  - Manual "mysql_find_rows" ("client" subpackage)
1550  - Script "mysql_upgrade_shell" ("client" subpackage)
1551  - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
1552  - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
1553
1554* Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
1555
1556- Made the "Federated" storage engine an option
1557- Made the "Cluster" storage engine and sub packages an option
1558
1559* Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
1560
1561- Add the man pages for "ndbd" and "ndb_mgmd".
1562
1563* Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
1564
1565- Require a manual upgrade if the alread-installed mysql-server is
1566  from another vendor, or is of a different major version.
1567
1568* Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
1569
1570- "ndb_size.tmpl" is not needed any more,
1571  "man1/mysql_install_db.1" lacked the trailing '*'.
1572
1573* Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
1574
1575- Removed man page for "mysql_create_system_tables"
1576
1577* Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
1578
1579- Add debug server.
1580
1581* Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
1582
1583- Remove Max RPMs; the server RPMs contain a mysqld compiled with all
1584  features that previously only were built into Max.
1585
1586* Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
1587
1588- Add several man pages for NDB which are now created.
1589
1590* Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
1591
1592- Put back "libmygcc.a", found no real reason it was removed.
1593
1594- Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
1595  correct "libgcc.a" path is returned for the 32/64 bit architecture.
1596
1597* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
1598
1599- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
1600
1601* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
1602
1603- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
1604  in the server RPM.
1605- The "mysqlmanager" man page got moved from section 1 to 8.
1606
1607* Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
1608
1609- Call "make install" using "benchdir_root=%%{_datadir}",
1610  because that is affecting the regression test suite as well.
1611
1612* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
1613
1614- Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
1615  replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
1616  (bug#22081).
1617
1618* Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
1619
1620- Add "--with-partition" t 2006 Joerg Bruehe <joerg@mysql.com>
1621
1622- Use the Perl script to run the tests, because it will automatically check
1623  whether the server is configured with SSL.
1624
1625* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
1626
1627- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
1628
1629- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
1630  there are some more aspects which need to be solved before this is possible.
1631  For now, just ensure the binary "mysql_upgrade" is delivered and installysql.com>
1632
1633- To run "mysql_upgrade", we need a running server;
1634  start it in isolation and skip password checks.
1635
1636* Sat May 20 2006 Kent Boortz <kent@mysql.com>
1637
1638- Always compile for PIC, position independent code.
1639
1640* Wed May 10 2006 Kent Boortz <kent@mysql.com>
1641
1642- Use character set "all" when compiling with Cluster, to make Cluster
1643  nodes independent on the character set directory, and the problem
1644  that two RPM sub packages both wants to install this directory.
1645
1646* Mon May 01 2006 Kent Boortz <kent@mysql.com>
1647
1648- Use "./libtool --mode=execute" instead of searching for the
1649  executable in current directory and ".libs".
1650
1651* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
1652
1653- Install and run "mysql_upgrade"
1654
1655* Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
1656
1657- Remove sql-bench, and MySQL-bench RPM (will be built as an independent
1658  project from the mysql-bench repository)
1659
1660* Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
1661
1662- Remove old mysqltestmanager and related programs
1663* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
1664
1665- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
1666
1667* Tue Mar 07 2006 Kent Boortz <kent@mysql.com>
1668
1669- Changed product name from "Community Edition" to "Community Server"
1670
1671* Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
1672
1673- Fast mutexes is now disabled by default, but should be
1674  used in Linux builds.
1675
1676* Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
1677
1678- Reintroduced a max build
1679- Limited testing of 'debug' and 'max' servers
1680- Berkeley DB only in 'max'
1681
1682* Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
1683
1684- Use "-i" on "make test-force";
1685  this is essential for later evaluation of this log file.
1686
1687* Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
1688
1689- Pass '-static' to libtool, link static with our own libraries, dynamic
1690  with system libraries.  Link with the bundled zlib.
1691
1692* Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
1693
1694- Modified RPM spec to match new 5.1 debug+max combined community packaging.
1695
1696* Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
1697
1698- Added "client/mysqlslap"
1699
1700* Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
1701
1702- Added zlib to the list of (static) libraries installed
1703- Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
1704- Compile MySQL with bundled zlib
1705- Fixed %%packager name to "MySQL Production Engineering Team"
1706
1707* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
1708
1709- Avoid using the "bundled" zlib on "shared" builds:
1710  As it is not installed (on the build system), this gives dependency
1711  problems with "libtool" causing the build to fail.
1712  (Change was done on Nov 11, but left uncommented.)
1713
1714* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
1715
1716- Extend the file existence check for "init.d/mysql" on un-install
1717  to also guard the call to "insserv"/"chkconfig".
1718
1719* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
1720
1721- added more man pages
1722
1723* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1724
1725- Made yaSSL support an option (off by default)
1726
1727* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1728
1729- Enabled yaSSL support
1730
1731* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
1732
1733- Give mode arguments the same way in all places
1734lenz@mysql.com>
1735
1736- fixed the removing of the RPM_BUILD_ROOT in the %%clean section (the
1737  $RBR variable did not get expanded, thus leaving old build roots behind)
1738
1739* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
1740
1741- Fixed the creation of the mysql user group account in the postinstall
1742  section (BUG 12348)
1743- Fixed enabling the Archive storage engine in the Max binary
1744
1745* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
1746
1747- Fixed the Requires: tag for the server RPM (BUG 12233)
1748
1749* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
1750
1751- create a "mysql" user group and assign the mysql user account to that group
1752  in the server postinstall section. (BUG 10984)
1753
1754* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
1755
1756- Do not build statically on i386 by default, only when adding either "--with
1757  static" or "--define '_with_static 1'" to the RPM build options. Static
1758  linking really only makes sense when linking against the specially patched
1759  glibc 2.2.5.
1760
1761* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
1762
1763- added mysql_client_test to the "bench" subpackage (BUG 10676)
1764- added the libndbclient static and shared libraries (BUG 10676)
1765
1766* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
1767
1768- use "mysqldatadir" variable instead of hard-coding the path multiple times
1769- use the "mysqld_user" variable on all occasions a user name is referenced
1770- removed (incomplete) Brazilian translations
1771- removed redundant release tags from the subpackage descriptions
1772
1773* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
1774
1775- Added a "make clean" between separate calls to "BuildMySQL".
1776
1777* Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
1778
1779- Removed the mysql_tableinfo script made obsolete by the information schema
1780
1781* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
1782
1783- Enabled the "blackhole" storage engine for the Max RPM
1784
1785* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
1786
1787- removed the MySQL manual files (html/ps/texi) - they have been removed
1788  from the MySQL sources and are now available seperately.
1789
1790* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
1791
1792- old mysqlmanager, mysq* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
1793
1794- enabled the "Ndbcluster" storage engine for the max binary
1795- added extra make install in ndb subdir after Max build to get ndb binaries
1796- added packages for ndbcluster storage engine
1797
1798* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
1799
1800- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
1801
1802* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
1803
1804- enabled the "Federated" storage engine for the max binary
1805
1806* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
1807
1808- ISAM and merge storage engines were purged. As well as appropriate
1809  tools and manpages (isamchk and isamlog)
1810
1811* Fri Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
1812
1813- enabled the "Archive" storage engine for the max binary
1814- enabled the "CSV" storage engine for the max binary
1815- enabled the "Example" storage engine for the max binary
1816
1817* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1818
1819- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1820
1821* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1822
1823- do not link statically on IA64/AMD64 as these systems do not have
1824  a patched glibc installed
1825
1826* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1827
1828- Added libmygcc.a to the devel subpackage (required to link applications
1829  against the the embedded server libmysqld.a) (BUG 4921)
1830
1831* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1832
1833- Added EXCEPTIONS-CLIENT to the "devel" package
1834
1835* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1836
1837- disabled OpenSSL in the Max binaries again (the RPM packages were the
1838  only exception to this anyway) (BUG 1043)
1839
1840* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1841
1842- fixed server postinstall (mysql_install_db was called with the wrong
1843  parameter)
1844
1845* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1846
1847- added mysql_tzinfo_to_sql to the server subpackage
1848- run "make clean" instead of "make distclean"
1849
1850* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1851
1852- added ncurses-devel to the build prerequisites (BUG 3377)
1853
1854* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1855
1856- when using gcc, _always_ use CXX=gcc
1857- replaced Copyright with License field (Copyright is obsolete)
1858
1859* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1860
1861- added myisam_ftdump to the Server package
1862
1863* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1864
1865- link the mysql client against libreadline instead of libedit (BUG 2289)
1866
1867* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1868
1869- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1870
1871* Sat Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
1872
1873- fixed file permissions (BUG 1672)
1874
1875* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1876
1877- made testing for gcc3 a bit more robust
1878
1879* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1880
1881- added missing file mysql_create_system_tables to the server subpackage
1882
1883* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1884
1885- removed dependency on MySQL-client from the MySQL-devel subpackage
1886  as it is not really required. (BUG 1610)
1887
1888* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1889
1890- Fixed BUG 1162 (removed macro names from the changelog)
1891- Really fixed BUG 998 (disable the checking for installed but
1892  unpackaged files)
1893
1894* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
1895
1896- Fixed BUG 959 (libmysqld not being compiled properly)
1897- Fixed BUG 998 (RPM build errors): added missing files to the
1898  distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
1899  mysql_fix_privilege_tables.1), removed "-n" from install section.
1900
1901* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
1902
1903- removed the GIF Icon (file was not included in the sources anyway)
1904- removed unused variable shared_lib_version
1905- do not run automake before building the standard binary
1906  (should not be necessary)
1907- add server suffix '-standard' to standard binary (to be in line
1908  with the binary tarball distributions)
1909- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
1910  _datadir, _includedir) throughout the spec file.
1911- allow overriding CC and CXX (required when building with other compilers)
1912
1913* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1914
1915- re-enabled RAID again
1916
1917* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1918
1919- disabled MyISAM RAID (--with-raid)- it throws an assertion which
1920  needs to be investigated first.
1921
1922* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1923
1924- added missing file mysql_secure_installation to server subpackage
1925  (BUG 141)
1926
1927* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
1928
1929- re-added missing pre- and post(un)install scripts to server subpackage
1930- added config file /etc/my.cnf to the file list (just for completeness)
1931- make sure to create the datadir with 755 permissions
1932
1933* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
1934
1935- removed unusedql.com>
1936
1937- Reworked the build steps a little bit: the Max binary is supposed
1938  to include OpenSSL, which cannot be linked statically, thus trying
1939  to statically link against a special glibc is futile anyway
1940- because of this, it is not required to make yet another build run
1941  just to compile the shared libs (saves a lot of time)
1942- updated package description of the Max subpackage
1943- clean up the BuildRoot directory afterwards
1944
1945* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
1946
1947- Updated Packager information
1948- Fixed the build options: the regular package is supposed to
1949  include InnoDB and linked statically, while the Max package
1950  should include BDB and SSL support
1951
1952* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
1953
1954- Use more RPM macros (e.g. infodir, mandir) to make the spec
1955  file more portable
1956- reorganized the installation of documentation files: let RPM
1957  take care of this
1958- reorganized the file list: actually install man pages along
1959  with the binaries of the respective subpackage
1960- do not include libmysqld.a in the devel subpackage as well, if we
1961  have a special "embedded" subpackage
1962- reworked the package descriptions
1963
1964* Mon Oct  8 2001 Monty
1965
1966- Added embedded server as a separate RPM
1967
1968* Fri Apr 13 2001 Monty
1969
1970- Added mysqld-max to the distribution
1971
1972* Tue Jan 2  2001  Monty
1973
1974- Added mysql-test to the bench package
1975
1976* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
1977
1978- Added separate libmysql_r directory; now both a threaded
1979  and non-threaded library is shipped.
1980
1981* Tue Sep 28 1999 David Axmark <davida@mysql.com>
1982
1983- Added the support-files/my-example.cnf to the docs directory.
1984
1985- Removed devel dependency on base since it is about client
1986  development.
1987
1988* Wed Sep 8 1999 David Axmark <davida@mysql.com>
1989
1990- Cleaned up some for 3.23.
1991
1992* Thu Jul 1 1999 David Axmark <davida@mysql.com>
1993
1994- Added support for shared libraries in a separate sub
1995  package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
1996
1997- The --enable-assembler switch is now automatically disables on
1998  platforms there assembler code is unavailable. This should allow
1999  building this RPM on non i386 systems.
2000
2001* Mon Feb 22 1999 David Axmark <david@detron.se>
2002
2003- Removed unportable cc switches from the spec file. The defaults can
2004  now be overridden with environment variables. This feature is used
2005  to compile the official RPM with optimal (but compiler version
2006  specific) switches.
2007
2008- Removed the repetitive description parts for the sub rpms. Maybe add
2009  again if RPM gets a multiline macro capability.
2010
2011- Added support for a pt_BR translation. Translation contributed by
2012  Jorge Godoy <jorge@bestway.com.br>.
2013
2014* Wed Nov 4 1998 David Axmark <david@detron.se>
2015
2016- A lot of changes in all the rpm and install scripts. This may even
2017  be a working RPM :-)
2018
2019* Sun Aug 16 1998 David Axmark <david@detron.se>
2020
2021- A developers changelog for MySQL is available in the source RPM. And
2022  there is a history of major user visible changed in the Reference
2023  Manual.  Only RPM specific changes will be documented here.
2024