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