1 # Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
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.
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.
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
17 ##############################################################################
18 # Some common macro definitions
19 ##############################################################################
21 # NOTE: "vendor" is used in upgrade/downgrade check, so you can't
22 # change these, has to be exactly as is.
23 %global mysql_old_vendor MySQL AB
24 %global mysql_vendor_2 Sun Microsystems, Inc.
25 %global mysql_vendor Oracle and/or its affiliates
27 %global mysql_version 5.6.23
28 %global wsrep_version 25.10
29 %global wsrep_revision XXXX
31 %global mysqld_user mysql
32 %global mysqld_group mysql
33 %global mysqldatadir /var/lib/mysql
35 %global release %{wsrep_version}
36 %global short_product_tag 5.6
39 # Macros we use which are not available in all supported versions of RPM
41 # - defined/undefined are missing on RHEL4
43 %if %{expand:%{?defined:0}%{!?defined:1}}
44 %define defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
46 %if %{expand:%{?undefined:0}%{!?undefined:1}}
47 %define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
50 # ----------------------------------------------------------------------------
51 # RPM build tools now automatically detect Perl module dependencies. This
52 # detection causes problems as it is broken in some versions, and it also
53 # provides unwanted dependencies from mandatory scripts in our package.
54 # It might not be possible to disable this in all versions of RPM, but here we
55 # try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as
56 # disabling here might fail, and that package has the most problems.
58 # http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides
59 # http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html
60 # ----------------------------------------------------------------------------
61 %undefine __perl_provides
62 %undefine __perl_requires
64 ##############################################################################
65 # Command line handling
66 ##############################################################################
70 # $ rpmbuild --define="option <x>" ...
73 # ----------------------------------------------------------------------------
75 # ----------------------------------------------------------------------------
76 %if %{undefined commercial}
80 # ----------------------------------------------------------------------------
82 # ----------------------------------------------------------------------------
83 %if %{undefined src_base}
84 #%define src_base mysql-wsrep
85 %define src_base mysql
87 #%define src_dir %{src_base}-%{mysql_version}-%{wsrep_version}
88 %define src_dir %{src_base}-%{mysql_version}
90 # ----------------------------------------------------------------------------
91 # Feature set (storage engines, options). Default to community (everything)
92 # ----------------------------------------------------------------------------
93 %if %{undefined feature_set}
94 %define feature_set community
97 # ----------------------------------------------------------------------------
98 # Server comment strings
99 # ----------------------------------------------------------------------------
100 %if %{undefined compilation_comment_debug}
101 %define compilation_comment_debug MySQL Community Server - Debug (GPL)
103 %if %{undefined compilation_comment_release}
104 %define compilation_comment_release MySQL Community Server (GPL)
107 # ----------------------------------------------------------------------------
108 # Product and server suffixes
109 # ----------------------------------------------------------------------------
110 %if %{undefined product_suffix}
111 %if %{defined short_product_tag}
112 %define product_suffix -%{short_product_tag}
114 %define product_suffix %{nil}
118 %if %{undefined server_suffix}
119 %define server_suffix %{nil}
122 # ----------------------------------------------------------------------------
123 # Distribution support
124 # ----------------------------------------------------------------------------
126 # Disable post build checks for time being.
127 BuildConflicts: post-build-checks
129 BuildRequires: gcc-c++ ncurses-devel perl zlib-devel cmake libaio-devel bison flex
131 %if 0%{?rhel} == 6 || 0%{?rhel} == 7 || 0%{?fedora} == 20 || 0%{?fedora} == 21
135 %if 0%{?suse_version}
136 %if 0%{?suse_version} == 1110
137 BuildRequires: gdbm-devel gperf openldap2-client procps pwdutils
139 %if 0%{?suse_version} == 1310 || 0%{?suse_version} == 1315 || 0%{?suse_version} == 1320
140 BuildRequires: gperf procps time
144 # Define dist tag if not given by platform
145 %if %{undefined dist}
146 # For suse versions see:
147 # https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
148 %if 0%{?suse_version} == 1110
151 %if 0%{?suse_version} == 1310
152 %define dist .suse13.1
154 %if 0%{?suse_version} == 1315
157 %if 0%{?suse_version} == 1320
158 %define dist .suse13.2
161 %if %{undefined dist}
167 # Avoid debuginfo RPMs, leaves binaries unstripped
168 %define debug_package %{nil}
170 # Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
171 # test for __debug_package
172 %define __strip /bin/true
174 # ----------------------------------------------------------------------------
175 # Support optional "tcmalloc" library (experimental)
176 # ----------------------------------------------------------------------------
177 %if %{defined malloc_lib_target}
178 %define WITH_TCMALLOC 1
180 %define WITH_TCMALLOC 0
183 ##############################################################################
184 # Configuration based upon above user input, not to be set directly
185 ##############################################################################
188 %define license_files_server %{src_dir}/LICENSE.mysql
189 %define license_type Commercial
191 %define license_files_server COPYING README
192 %define license_type GPL
195 ##############################################################################
196 # Main spec file section
197 ##############################################################################
199 Name: MySQL%{product_suffix}
200 Summary: MySQL: a very fast and reliable SQL database server
201 Group: Applications/Databases
202 Version: 5.6.23_wsrep_25.10
203 Release: %{release}%{?dist}~mos8.0.2
204 # Distribution: %{distro_description}
205 License: Copyright (c) 2000, 2015, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
206 Source: mysql-5.6.23.tar.gz
207 URL: http://www.mysql.com/
208 Packager: Codership Oy <info@galeracluster.com>
209 Vendor: %{mysql_vendor}
210 # BuildRequires: %{distro_buildreq}
212 Patch0: fix-man-page-links.patch
213 Patch1: scripts__mysqld_safe.sh__signals.patch
214 Patch2: disable_tests.patch
215 Patch3: fix_standalone_tests.patch
216 Patch4: spelling.patch
217 Patch5: mysql-5.6.23_wsrep_25.10.patch
218 Patch6: wsrep_sst_mysqldump.patch
220 # Regression tests may take a long time, override the default to skip them
221 %{!?runselftest:%global runselftest 0}
223 # Think about what you use here since the first step is to
225 BuildRoot: %{_tmppath}/%{name}-%{version}-build
229 The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
230 and robust SQL (Structured Query Language) database server. MySQL Server
231 is intended for mission-critical, heavy-load production systems as well
232 as for embedding into mass-deployed software. MySQL is a trademark of
235 The MySQL software has Dual Licensing, which means you can use the MySQL
236 software free of charge under the GNU General Public License
237 (http://www.gnu.org/licenses/). You can also purchase commercial MySQL
238 licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
239 the GPL. See the chapter "Licensing and Support" in the manual for
242 The MySQL web site (http://www.mysql.com/) provides the latest
243 news and information about the MySQL software. Also please see the
244 documentation and the manual for more information.
246 ##############################################################################
247 # Sub package definition
248 ##############################################################################
250 %package -n mysql-wsrep%{product_suffix}
251 Summary: MySQL: meta package for a server+client setup
252 Group: Applications/Databases
253 Requires: mysql-wsrep-server%{product_suffix}
254 Requires: mysql-wsrep-client%{product_suffix}
256 %description -n mysql-wsrep%{product_suffix}
257 This meta package ensures the installation of a MySQL server and the necessary
258 client programs for operation and administration. It does not itself
259 contain those files but rather causes the installation of the subpackages
260 "mysql-wsrep-server%{product_suffix}" and "mysql-wsrep-client%{product_suffix}".
261 As indicated in the name, the server is built with the "wsrep" plugin so that
262 it can be a node in a MySQL Galera Cluster.
264 # ----------------------------------------------------------------------------
266 %package -n mysql-wsrep-server%{product_suffix}
267 Summary: MySQL: a very fast and reliable SQL database server
268 Group: Applications/Databases
269 # Distro requirements
271 %if 0%{?fedora} || 0%{?rhel}
272 Requires: chkconfig coreutils grep procps shadow-utils net-tools rsync lsof
273 %if 0%{?rhel} == 7 || 0%{?fedora} >= 20
274 Requires: perl-Data-Dumper
278 %if 0%{?suse_version}
279 Requires: aaa_base coreutils grep procps rsync lsof
280 %if 0%{suse_version} == 1110
286 Obsoletes: MySQL-server
288 Obsoletes: MySQL-server-advanced
290 Obsoletes: mysql-server < %{version}-%{release}
291 Obsoletes: mysql-server-advanced
292 Obsoletes: MySQL-server-classic MySQL-server-community MySQL-server-enterprise
293 Obsoletes: MySQL-server-advanced-gpl MySQL-server-enterprise-gpl
294 Obsoletes: mariadb-libs mariadb-server
295 Provides: mysql-server = %{version}-%{release}
296 Provides: mysql-server%{?_isa} = %{version}-%{release}
297 Provides: MySQL-server-wsrep
299 %description -n mysql-wsrep-server%{product_suffix}
300 The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
301 and robust SQL (Structured Query Language) database server. MySQL Server
302 is intended for mission-critical, heavy-load production systems as well
303 as for embedding into mass-deployed software. MySQL is a trademark of
306 The MySQL software has Dual Licensing, which means you can use the MySQL
307 software free of charge under the GNU General Public License
308 (http://www.gnu.org/licenses/). You can also purchase commercial MySQL
309 licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
310 the GPL. See the chapter "Licensing and Support" in the manual for
313 The MySQL web site (http://www.mysql.com/) provides the latest news and
314 information about the MySQL software. Also please see the documentation
315 and the manual for more information.
317 This package includes the MySQL server binary as well as related utilities
318 to run and administer a MySQL server.
320 Built with wsrep patch %{wsrep_version}.
322 If you want to access and work with the database, you have to install
323 package "mysql-wsrep-client%{product_suffix}" as well!
325 # ----------------------------------------------------------------------------
326 %package -n mysql-wsrep-client%{product_suffix}
327 Summary: MySQL - Client
328 Group: Applications/Databases
330 Obsoletes: MySQL-client
332 Obsoletes: MySQL-client-advanced
334 Obsoletes: mysql < %{version}-%{release}
335 Obsoletes: mysql-advanced < %{version}-%{release}
336 Obsoletes: MySQL-client-classic MySQL-client-community MySQL-client-enterprise
337 Obsoletes: MySQL-client-advanced-gpl MySQL-client-enterprise-gpl
338 Provides: mysql = %{version}-%{release}
339 Provides: mysql%{?_isa} = %{version}-%{release}
340 Provides: MySQL-client-wsrep
342 %description -n mysql-wsrep-client%{product_suffix}
343 This package contains the standard MySQL clients and administration tools.
345 For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
347 # ----------------------------------------------------------------------------
348 %package -n mysql-wsrep-test%{product_suffix}
349 Summary: MySQL - Test suite
350 Group: Applications/Databases
352 #Requires: MySQL-client-advanced perl
353 Requires: mysql-wsrep-client%{product_suffix} perl
354 Obsoletes: MySQL-test
356 #Requires: MySQL-client perl
357 Requires: mysql-wsrep-client%{product_suffix} perl
358 Obsoletes: MySQL-test-advanced
360 Obsoletes: mysql-test < %{version}-%{release}
361 Obsoletes: mysql-test-advanced
362 Obsoletes: MySQL-test-classic MySQL-test-community MySQL-test-enterprise
363 Obsoletes: MySQL-test-advanced-gpl MySQL-test-enterprise-gpl
364 Provides: mysql-test = %{version}-%{release}
365 Provides: mysql-test%{?_isa} = %{version}-%{release}
366 Provides: MySQL-test-wsrep
369 %description -n mysql-wsrep-test%{product_suffix}
370 This package contains the MySQL regression test suite.
372 For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
374 # ----------------------------------------------------------------------------
375 %package -n mysql-wsrep-devel%{product_suffix}
376 Summary: MySQL - Development header files and libraries
377 Group: Applications/Databases
379 Obsoletes: MySQL-devel
381 Obsoletes: MySQL-devel-advanced
383 Obsoletes: mysql-devel < %{version}-%{release}
384 Obsoletes: mysql-embedded-devel mysql-devel-advanced mysql-embedded-devel-advanced
385 Obsoletes: MySQL-devel-classic MySQL-devel-community MySQL-devel-enterprise
386 Obsoletes: MySQL-devel-advanced-gpl MySQL-devel-enterprise-gpl
387 Provides: mysql-devel = %{version}-%{release}
388 Provides: mysql-devel%{?_isa} = %{version}-%{release}
389 Provides: MySQL-devel-wsrep
391 %description -n mysql-wsrep-devel%{product_suffix}
392 This package contains the development header files and libraries necessary
393 to develop MySQL client applications.
395 For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
397 # ----------------------------------------------------------------------------
398 %package -n mysql-wsrep-shared%{product_suffix}
399 Summary: MySQL - Shared libraries
400 Group: Applications/Databases
402 Obsoletes: MySQL-shared
404 Obsoletes: MySQL-shared-advanced
407 Provides: MySQL-shared-wsrep
408 Obsoletes: MySQL-shared-standard MySQL-shared-pro
409 Obsoletes: MySQL-shared-pro-cert MySQL-shared-pro-gpl
410 Obsoletes: MySQL-shared-pro-gpl-cert
411 Obsoletes: MySQL-shared-classic MySQL-shared-community MySQL-shared-enterprise
412 Obsoletes: MySQL-shared-advanced-gpl MySQL-shared-enterprise-gpl
413 Obsoletes: mariadb-libs
415 %description -n mysql-wsrep-shared%{product_suffix}
416 This package contains the shared libraries (*.so*) which certain languages
417 and applications need to dynamically load and use MySQL.
419 ##############################################################################
421 %setup -q -T -a 0 -c -n %{src_dir}
428 #wsrep_apply_patch_tag
429 ##############################################################################
432 # Fail quickly and obviously if user tries to build as root
434 if [ x"`id -u`" = x0 ]; then
435 echo "The MySQL regression tests may fail if run as root."
436 echo "If you really need to build the RPM as root, use"
437 echo "--define='runselftest 0' to skip the regression tests."
442 # Be strict about variables, bail at earliest opportunity, etc.
445 # Optional package files
446 touch optional-files-devel
449 # Set environment in order of preference, MYSQL_BUILD_* first, then variable
450 # name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the
451 # default RPM build environment.
454 # This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
455 # the compile in cmd-line-utils/libedit - needs investigation, but for now
456 # we simply unset it and use those specified directly in cmake.
457 %if "%{_arch}" == "ia64"
461 export PATH=${MYSQL_BUILD_PATH:-$PATH}
462 export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
463 export CXX=${MYSQL_BUILD_CXX:-${CXX:-g++}}
464 export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
465 export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors}}
466 export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
467 export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
468 export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:--j$(ncpu=$(cat /proc/cpuinfo | grep processor | wc -l) && echo $(($ncpu > 4 ? 4 : $ncpu)))}
470 # By default, a build will include the bundeled "yaSSL" library for SSL.
471 # However, there may be a need to override.
472 # Protect against undefined variables if there is no override option.
473 %if %{undefined with_ssl}
474 %define ssl_option %{nil}
476 %define ssl_option -DWITH_SSL=%{with_ssl}
479 # Build debug mysqld and libmysqld.a
483 # Attempt to remove any optimisation flags from the debug build
484 CFLAGS=`echo " ${CFLAGS} " | \
485 sed -e 's/ -O[0-9]* / /' \
486 -e 's/-Wp,-D_FORTIFY_SOURCE=2/ /' \
487 -e 's/-D_FORTIFY_SOURCE=2/ /' \
488 -e 's/ -unroll2 / /' \
492 CXXFLAGS=`echo " ${CXXFLAGS} " | \
493 sed -e 's/ -O[0-9]* / /' \
494 -e 's/-Wp,-D_FORTIFY_SOURCE=2/ /' \
495 -e 's/-D_FORTIFY_SOURCE=2/ /' \
496 -e 's/ -unroll2 / /' \
500 # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
501 # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
502 ${CMAKE} ../ -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
503 -DCMAKE_BUILD_TYPE=Debug \
504 -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
505 -DFEATURE_SET="%{feature_set}" \
507 -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
508 -DMYSQL_SERVER_SUFFIX="%{server_suffix}" \
510 -DWSREP_VERSION="%{wsrep_version}" \
511 -DWSREP_REVISION="%{wsrep_revision}"
512 echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
513 make ${MAKE_JFLAG} VERBOSE=1
519 # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
520 # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
521 ${CMAKE} ../ -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
522 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
523 -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
524 -DFEATURE_SET="%{feature_set}" \
526 -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
527 -DMYSQL_SERVER_SUFFIX="%{server_suffix}" \
529 -DWSREP_VERSION="%{wsrep_version}" \
530 -DWSREP_REVISION="%{wsrep_revision}"
531 echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
532 make ${MAKE_JFLAG} VERBOSE=1
536 MTR_BUILD_THREAD=auto
537 export MTR_BUILD_THREAD
539 (cd release && make test-bt-fast || true)
542 ##############################################################################
546 MBD=$RPM_BUILD_DIR/%{src_dir}
548 # Ensure that needed directories exists
549 install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
550 install -d $RBR%{mysqldatadir}/mysql
551 install -d $RBR%{_datadir}/mysql-test
552 install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
553 install -d $RBR%{_includedir}
554 install -d $RBR%{_libdir}
555 install -d $RBR%{_mandir}
556 install -d $RBR%{_sbindir}
558 mkdir -p $RBR%{_sysconfdir}/my.cnf.d
560 # Install all binaries
563 make DESTDIR=$RBR install
566 # FIXME: at some point we should stop doing this and just install everything
567 # FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming
568 # FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
569 mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
571 # Install logrotate and autostart
572 install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
573 install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
575 # Create a symlink "rcmysql", pointing to the init.script. SuSE users
576 # will appreciate that, as all services usually offer this.
577 ln -sf %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
579 # Create a wsrep_sst_rsync_wan symlink.
580 install -d $RBR%{_bindir}
581 ln -sf wsrep_sst_rsync $RBR%{_bindir}/wsrep_sst_rsync_wan
583 # Touch the place where the my.cnf config file might be located
584 # Just to make sure it's in the file list and marked as a config file
585 touch $RBR%{_sysconfdir}/my.cnf
586 touch $RBR%{_sysconfdir}/wsrep.cnf
589 # Install SELinux files in datadir
590 install -m 600 $MBD/support-files/RHEL4-SElinux/mysql.{fc,te} \
591 $RBR%{_datadir}/mysql/SELinux/RHEL4
594 # Even though this is a shared library, put it under /usr/lib*/mysql, so it
595 # doesn't conflict with possible shared lib by the same name in /usr/lib*. See
596 # `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
597 install -m 644 "%{malloc_lib_source}" \
598 "$RBR%{_libdir}/mysql/%{malloc_lib_target}"
601 # Remove man pages we explicitly do not want to package, avoids 'unpackaged
603 # This has become obsolete: rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
605 ##############################################################################
606 # Post processing actions, i.e. when installed
607 ##############################################################################
609 %pre -n mysql-wsrep-server%{product_suffix}
610 # This is the code running at the beginning of a RPM upgrade action,
611 # before replacing the old files with the new ones.
613 # ATTENTION: Parts of this are duplicated in the "triggerpostun" !
615 # There are users who deviate from the default file system layout.
616 # Check local settings to support them.
617 if [ -x %{_bindir}/my_print_defaults ]
619 mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
620 PID_FILE_PATT=`%{_bindir}/my_print_defaults server mysqld | grep '^--pid-file=' | sed -n 's/--pid-file=//p'`
622 if [ -z "$mysql_datadir" ]
624 mysql_datadir=%{mysqldatadir}
626 if [ -z "$PID_FILE_PATT" ]
628 PID_FILE_PATT="$mysql_datadir/*.pid"
631 # Check if we can safely upgrade. An upgrade is only safe if it's from one
632 # of our RPMs in the same version family.
634 # Handle both ways of spelling the capability.
635 installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
636 if [ $? -ne 0 -o -z "$installed" ]; then
637 installed=`rpm -q --whatprovides MySQL-server 2> /dev/null`
639 if [ $? -eq 0 -a -n "$installed" ]; then
640 installed=`echo $installed | sed 's/\([^ ]*\) .*/\1/'` # Tests have shown duplicated package names
641 vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
642 version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
643 myoldvendor='%{mysql_old_vendor}'
644 myvendor_2='%{mysql_vendor_2}'
645 myvendor='%{mysql_vendor}'
646 myversion='%{mysql_version}'
648 old_family=`echo $version \
649 | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
650 new_family=`echo $myversion \
651 | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
653 [ -z "$vendor" ] && vendor='<unknown>'
654 [ -z "$old_family" ] && old_family="<unrecognized version $version>"
655 [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
658 if [ "$vendor" != "$myoldvendor" \
659 -a "$vendor" != "$myvendor_2" \
660 -a "$vendor" != "$myvendor" ]; then
661 error_text="$error_text
662 The current MySQL server package is provided by a different
663 vendor ($vendor) than $myoldvendor, $myvendor_2, or $myvendor.
664 Some files may be installed to different locations, including log
665 files and the service startup script in %{_sysconfdir}/init.d/.
669 if [ "$old_family" != "$new_family" ]; then
670 error_text="$error_text
671 Upgrading directly from MySQL $old_family to MySQL $new_family may not
672 be safe in all cases. A manual dump and restore using mysqldump is
673 recommended. It is important to review the MySQL manual's Upgrading
674 section for version-specific incompatibilities.
678 if [ -n "$error_text" ]; then
681 ******************************************************************
682 A MySQL server package ($installed) is installed.
684 A manual upgrade is required.
686 - Ensure that you have a complete, working backup of your data and my.cnf
688 - Shut down the MySQL server cleanly
689 - Remove the existing MySQL packages. Usually this command will
690 list the packages you should remove:
691 rpm -qa | grep -i '^mysql-'
693 You may choose to use 'rpm --nodeps -ev <package-name>' to remove
694 the package which contains the mysqlclient shared library. The
695 library will be reinstalled by the MySQL-shared-compat package.
696 - Install the new MySQL packages supplied by $myvendor
697 - Ensure that the MySQL server is started
698 - Run the 'mysql_upgrade' program
700 This is a brief description of the upgrade process. Important details
701 can be found in the MySQL manual, in the Upgrading section.
702 ******************************************************************
708 # We assume that if there is exactly one ".pid" file,
709 # it contains the valid PID of a running MySQL server.
710 NR_PID_FILES=`ls -1 $PID_FILE_PATT 2>/dev/null | wc -l`
711 case $NR_PID_FILES in
712 0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server
713 1 ) SERVER_TO_START='true' ;;
714 * ) SERVER_TO_START='' # Situation not clear
715 SEVERAL_PID_FILES=true ;;
717 # That logic may be debated: We might check whether it is non-empty,
718 # contains exactly one number (possibly a PID), and whether "ps" finds it.
719 # OTOH, if there is no such process, it means a crash without a cleanup -
720 # is that a reason not to start a new server after upgrade?
722 STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
724 if [ -f $STATUS_FILE ]; then
725 echo "Some previous upgrade was not finished:"
727 echo "Please check its status, then do"
728 echo " rm $STATUS_FILE"
729 echo "before repeating the MySQL upgrade."
731 elif [ -n "$SEVERAL_PID_FILES" ] ; then
732 echo "You have more than one PID file:"
733 ls -ld $PID_FILE_PATT
734 echo "Please check which one (if any) corresponds to a running server"
735 echo "and delete all others before repeating the MySQL upgrade."
739 NEW_VERSION=%{mysql_version}-%{release}
741 # The "pre" section code is also run on a first installation,
742 # when there is no data directory yet. Protect against error messages.
743 # Check for the existence of subdirectory "mysql/", the database of system
744 # tables like "mysql.user".
745 if [ -d $mysql_datadir/mysql ] ; then
746 echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE
747 echo "'pre' step running at `date`" >> $STATUS_FILE
749 fcount=`ls -ltr $mysql_datadir/*.err 2>/dev/null | wc -l`
750 if [ $fcount -gt 0 ] ; then
751 echo "ERR file(s):" >> $STATUS_FILE
752 ls -ltr $mysql_datadir/*.err >> $STATUS_FILE
754 echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
755 grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
756 tail -1 >> $STATUS_FILE
760 if [ -n "$SERVER_TO_START" ] ; then
761 # There is only one PID file, race possibility ignored
762 echo "PID file:" >> $STATUS_FILE
763 ls -l $PID_FILE_PATT >> $STATUS_FILE
764 cat $PID_FILE_PATT >> $STATUS_FILE
766 echo "Server process:" >> $STATUS_FILE
767 ps -fp `cat $PID_FILE_PATT` >> $STATUS_FILE
769 echo "SERVER_TO_START=$SERVER_TO_START" >> $STATUS_FILE
771 # Take a note we checked it ...
772 echo "PID file:" >> $STATUS_FILE
773 ls -l $PID_FILE_PATT >> $STATUS_FILE 2>&1
777 # Shut down a previously installed server first
778 # Note we *could* make that depend on $SERVER_TO_START, but we rather don't,
779 # so a "stop" is attempted even if there is no PID file.
780 # (Maybe the "stop" doesn't work then, but we might fix that in itself.)
781 if [ -x %{_sysconfdir}/init.d/mysql ] ; then
782 %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
783 echo "Giving mysqld 5 seconds to exit nicely"
787 %post -n mysql-wsrep-server%{product_suffix}
788 # This is the code running at the end of a RPM install or upgrade action,
789 # after the (new) files have been written.
791 # ATTENTION: Parts of this are duplicated in the "triggerpostun" !
793 # There are users who deviate from the default file system layout.
794 # Check local settings to support them.
795 if [ -x %{_bindir}/my_print_defaults ]
797 mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
799 if [ -z "$mysql_datadir" ]
801 mysql_datadir=%{mysqldatadir}
804 NEW_VERSION=%{mysql_version}-%{release}
805 STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
807 # ----------------------------------------------------------------------
808 # Create data directory if needed, check whether upgrade or install
809 # ----------------------------------------------------------------------
810 if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi
811 if [ -f $STATUS_FILE ] ; then
812 SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
816 # echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
817 if [ ! -d $mysql_datadir/mysql ] ; then
818 mkdir $mysql_datadir/mysql $mysql_datadir/test
819 echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE
821 # If the directory exists, we may assume it is an upgrade.
822 echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE
825 # ----------------------------------------------------------------------
826 # Make MySQL start/shutdown automatically when the machine does it.
827 # ----------------------------------------------------------------------
828 # NOTE: This still needs to be debated. Should we check whether these links
829 # for the other run levels exist(ed) before the upgrade?
830 # use chkconfig on Enterprise Linux and newer SuSE releases
831 if [ -x /sbin/chkconfig ] ; then
832 /sbin/chkconfig --add mysql
833 # use insserv for older SuSE Linux versions
834 elif [ -x /sbin/insserv ] ; then
835 /sbin/insserv %{_sysconfdir}/init.d/mysql
838 # ----------------------------------------------------------------------
839 # Create a MySQL user and group. Do not report any problems if it already
841 # ----------------------------------------------------------------------
842 groupadd -r %{mysqld_group} 2> /dev/null || true
843 useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \
844 -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
845 # The user may already exist, make sure it has the proper group nevertheless
847 usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
849 # ----------------------------------------------------------------------
850 # Change permissions so that the user that will run the MySQL daemon
851 # owns all database files.
852 # ----------------------------------------------------------------------
853 chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
855 # ----------------------------------------------------------------------
856 # Initiate databases if needed
857 # ----------------------------------------------------------------------
858 if ! grep '^MySQL RPM upgrade' $STATUS_FILE >/dev/null 2>&1 ; then
859 # Fix bug#45415: no "mysql_install_db" on an upgrade
860 # Do this as a negative to err towards more "install" runs
861 # rather than to miss one.
862 %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} --random-passwords
864 # Attention: Now 'root' is the only database user,
865 # its password is a random value found in ~/.mysql_secret,
866 # and the "password expired" flag is set:
867 # Any client needs that password, and the first command
868 # executed must be a new "set password"!
871 # ----------------------------------------------------------------------
872 # Upgrade databases if needed would go here - but it cannot be automated yet
873 # ----------------------------------------------------------------------
875 # ----------------------------------------------------------------------
876 # Change permissions again to fix any new files.
877 # ----------------------------------------------------------------------
878 chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
880 # ----------------------------------------------------------------------
881 # Fix permissions for the permission database so that only the user
883 # ----------------------------------------------------------------------
884 chmod -R og-rw $mysql_datadir/mysql
886 # ----------------------------------------------------------------------
887 # install SELinux files - but don't override existing ones
888 # ----------------------------------------------------------------------
889 SETARGETDIR=/etc/selinux/targeted/src/policy
890 SEDOMPROG=$SETARGETDIR/domains/program
891 SECONPROG=$SETARGETDIR/file_contexts/program
892 if [ -f /etc/redhat-release ] \
893 && (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
894 || grep -q "CentOS release 4" /etc/redhat-release) ; then
897 echo 'Notes regarding SELinux on this platform:'
898 echo '========================================='
900 echo 'The default policy might cause server startup to fail because it is'
901 echo 'not allowed to access critical files. In this case, please update'
902 echo 'your installation.'
904 echo 'The default policy might also cause inavailability of SSL related'
905 echo 'features because the server is not allowed to access /dev/random'
906 echo 'and /dev/urandom. If this is a problem, please do the following:'
908 echo ' 1) install selinux-policy-targeted-sources from your OS vendor'
909 echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':'
910 echo ' allow mysqld_t random_device_t:chr_file read;'
911 echo ' allow mysqld_t urandom_device_t:chr_file read;'
912 echo ' 3) cd to '$SETARGETDIR' and issue the following command:'
918 if [ -x sbin/restorecon ] ; then
919 sbin/restorecon -R var/lib/mysql
922 # Was the server running before the upgrade? If so, restart the new one.
923 if [ "$SERVER_TO_START" = "true" ] ; then
924 # Restart in the same way that mysqld will be started normally.
925 if [ -x %{_sysconfdir}/init.d/mysql ] ; then
926 %{_sysconfdir}/init.d/mysql start
927 echo "Giving mysqld 5 seconds to start"
932 # Collect an upgrade history ...
933 echo "Upgrade/install finished at `date`" >> $STATUS_FILE
935 echo "=====" >> $STATUS_FILE
936 STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
937 cat $STATUS_FILE >> $STATUS_HISTORY
938 mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun"
941 #echo "Thank you for installing the MySQL Community Server! For Production
942 #systems, we recommend MySQL Enterprise, which contains enterprise-ready
943 #software, intelligent advisory services, and full production support with
944 #scheduled service packs and more. Visit www.mysql.com/enterprise for more
947 %preun -n mysql-wsrep-server%{product_suffix}
949 # Which '$1' does this refer to? Fedora docs have info:
950 # " ... a count of the number of versions of the package that are installed.
952 # Install the first time 1
953 # Upgrade 2 or higher (depending on the number of versions installed)
954 # Remove last version of package 0 "
956 # http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
959 # Stop MySQL before uninstalling it
960 if [ -x %{_sysconfdir}/init.d/mysql ] ; then
961 %{_sysconfdir}/init.d/mysql stop > /dev/null
962 # Remove autostart of MySQL
963 # use chkconfig on Enterprise Linux and newer SuSE releases
964 if [ -x /sbin/chkconfig ] ; then
965 /sbin/chkconfig --del mysql
966 # For older SuSE Linux versions
967 elif [ -x /sbin/insserv ] ; then
968 /sbin/insserv -r %{_sysconfdir}/init.d/mysql
973 # We do not remove the mysql user since it may still own a lot of
976 %triggerpostun -n mysql-wsrep-server%{product_suffix} --MySQL-server-community
978 # Setup: We renamed this package, so any existing "server-community"
979 # package will be removed when this "server" is installed.
980 # Problem: RPM will first run the "pre" and "post" sections of this script,
981 # and only then the "preun" of that old community server.
982 # But this "preun" includes stopping the server and uninstalling the service,
983 # "chkconfig --del mysql" which removes the symlinks to the start script.
984 # Solution: *After* the community server got removed, restart this server
985 # and re-install the service.
987 # For information about triggers in spec files, see the Fedora docs:
988 # http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html
989 # For all details of this code, see the "pre" and "post" sections.
991 # There are users who deviate from the default file system layout.
992 # Check local settings to support them.
993 if [ -x %{_bindir}/my_print_defaults ]
995 mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
997 if [ -z "$mysql_datadir" ]
999 mysql_datadir=%{mysqldatadir}
1002 NEW_VERSION=%{mysql_version}-%{release}
1003 STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST # Note the difference!
1004 STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
1006 if [ -f $STATUS_FILE ] ; then
1007 SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
1009 # This should never happen, but let's be prepared
1012 echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
1014 if [ -x /sbin/chkconfig ] ; then
1015 /sbin/chkconfig --add mysql
1016 # use insserv for older SuSE Linux versions
1017 elif [ -x /sbin/insserv ] ; then
1018 /sbin/insserv %{_sysconfdir}/init.d/mysql
1021 # Was the server running before the upgrade? If so, restart the new one.
1022 if [ "$SERVER_TO_START" = "true" ] ; then
1023 # Restart in the same way that mysqld will be started normally.
1024 if [ -x %{_sysconfdir}/init.d/mysql ] ; then
1025 %{_sysconfdir}/init.d/mysql start
1026 echo "Giving mysqld 5 seconds to start"
1031 echo "Trigger 'postun --community' finished at `date`" >> $STATUS_HISTORY
1032 echo >> $STATUS_HISTORY
1033 echo "=====" >> $STATUS_HISTORY
1036 # ----------------------------------------------------------------------
1037 # Clean up the BuildRoot after build is done
1038 # ----------------------------------------------------------------------
1040 [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
1041 && rm -rf $RPM_BUILD_ROOT;
1043 ##############################################################################
1045 ##############################################################################
1047 %files -n mysql-wsrep%{product_suffix}
1048 # Intentionally empty - this is a pure meta package.
1050 # ----------------------------------------------------------------------------
1051 %files -n mysql-wsrep-server%{product_suffix} -f release/support-files/plugins.files
1052 %defattr(-,root,root,0755)
1053 %if %{defined license_files_server}
1054 %doc %{license_files_server}
1057 %doc release/Docs/INFO_SRC*
1058 %doc release/Docs/INFO_BIN*
1059 %doc release/support-files/my-default.cnf
1060 %doc Docs/README-wsrep
1061 %doc release/support-files/wsrep.cnf
1062 %doc release/support-files/wsrep_notify
1065 %doc %attr(644, root, root) %{_infodir}/mysql.info*
1068 %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
1069 %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
1070 %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
1071 %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
1072 %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
1073 %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
1074 %doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
1075 %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
1076 %doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
1077 %doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
1078 %doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
1079 %doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
1080 %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
1081 %doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1*
1082 %doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
1083 %doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
1084 %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
1085 %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
1086 %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
1087 %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
1088 %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
1089 %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1090 %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
1091 %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
1092 %doc %attr(644, root, man) %{_mandir}/man1/perror.1*
1093 %doc %attr(644, root, man) %{_mandir}/man1/replace.1*
1094 %doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
1095 %doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
1097 %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
1098 %ghost %config(noreplace,missingok) %{_sysconfdir}/wsrep.cnf
1099 %dir %{_sysconfdir}/my.cnf.d
1101 %attr(755, root, root) %{_bindir}/innochecksum
1102 %attr(755, root, root) %{_bindir}/my_print_defaults
1103 %attr(755, root, root) %{_bindir}/myisam_ftdump
1104 %attr(755, root, root) %{_bindir}/myisamchk
1105 %attr(755, root, root) %{_bindir}/myisamlog
1106 %attr(755, root, root) %{_bindir}/myisampack
1107 %attr(755, root, root) %{_bindir}/mysql_convert_table_format
1108 %attr(755, root, root) %{_bindir}/mysql_fix_extensions
1109 %attr(755, root, root) %{_bindir}/mysql_install_db
1110 %attr(755, root, root) %{_bindir}/mysql_plugin
1111 %attr(755, root, root) %{_bindir}/mysql_secure_installation
1112 %attr(755, root, root) %{_bindir}/mysql_setpermission
1113 %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
1114 %attr(755, root, root) %{_bindir}/mysql_upgrade
1115 %attr(755, root, root) %{_bindir}/mysql_zap
1116 %attr(755, root, root) %{_bindir}/mysqlbug
1117 %attr(755, root, root) %{_bindir}/mysqld_multi
1118 %attr(755, root, root) %{_bindir}/mysqld_safe
1119 %attr(755, root, root) %{_bindir}/mysqldumpslow
1120 %attr(755, root, root) %{_bindir}/mysqlhotcopy
1121 %attr(755, root, root) %{_bindir}/mysqltest
1122 %attr(755, root, root) %{_bindir}/perror
1123 %attr(755, root, root) %{_bindir}/replace
1124 %attr(755, root, root) %{_bindir}/resolve_stack_dump
1125 %attr(755, root, root) %{_bindir}/resolveip
1126 %attr(755, root, root) %{_bindir}/wsrep_sst_common
1127 %attr(755, root, root) %{_bindir}/wsrep_sst_mysqldump
1128 %attr(755, root, root) %{_bindir}/wsrep_sst_rsync
1129 %attr(755, root, root) %{_bindir}/wsrep_sst_rsync_wan
1130 %attr(755, root, root) %{_bindir}/wsrep_sst_xtrabackup
1131 %attr(755, root, root) %{_bindir}/wsrep_sst_xtrabackup-v2
1133 %attr(755, root, root) %{_sbindir}/mysqld
1134 %attr(755, root, root) %{_sbindir}/mysqld-debug
1135 %attr(755, root, root) %{_sbindir}/rcmysql
1136 %dir %{_libdir}/mysql/plugin
1137 %dir %{_libdir}/mysql/plugin/debug
1138 %attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
1140 %if %{WITH_TCMALLOC}
1141 %attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
1144 %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
1145 %attr(755, root, root) %{_sysconfdir}/init.d/mysql
1146 %attr(755, root, root) %{_datadir}/mysql/
1147 %dir %attr(755, mysql, mysql) /var/lib/mysql
1149 # ----------------------------------------------------------------------------
1150 %files -n mysql-wsrep-client%{product_suffix}
1152 %defattr(-, root, root, 0755)
1153 %if %{defined license_files_server}
1154 %doc %{license_files_server}
1156 %attr(755, root, root) %{_bindir}/msql2mysql
1157 %attr(755, root, root) %{_bindir}/mysql
1158 %attr(755, root, root) %{_bindir}/mysql_find_rows
1159 %attr(755, root, root) %{_bindir}/mysql_waitpid
1160 %attr(755, root, root) %{_bindir}/mysqlaccess
1161 # XXX: This should be moved to %{_sysconfdir}
1162 %attr(644, root, root) %{_bindir}/mysqlaccess.conf
1163 %attr(755, root, root) %{_bindir}/mysqladmin
1164 %attr(755, root, root) %{_bindir}/mysqlbinlog
1165 %attr(755, root, root) %{_bindir}/mysqlcheck
1166 %attr(755, root, root) %{_bindir}/mysqldump
1167 %attr(755, root, root) %{_bindir}/mysqlimport
1168 %attr(755, root, root) %{_bindir}/mysqlshow
1169 %attr(755, root, root) %{_bindir}/mysqlslap
1170 %attr(755, root, root) %{_bindir}/mysql_config_editor
1172 %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
1173 %doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
1174 %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
1175 %doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
1176 %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
1177 %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
1178 %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
1179 %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
1180 %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
1181 %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
1182 %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
1183 %doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
1184 %doc %attr(644, root, man) %{_mandir}/man1/mysql_config_editor.1*
1186 # ----------------------------------------------------------------------------
1187 %files -n mysql-wsrep-devel%{product_suffix} -f optional-files-devel
1188 %defattr(-, root, root, 0755)
1189 %if %{defined license_files_server}
1190 %doc %{license_files_server}
1192 %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
1193 %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
1194 %attr(755, root, root) %{_bindir}/mysql_config
1195 %dir %attr(755, root, root) %{_includedir}/mysql
1196 %dir %attr(755, root, root) %{_libdir}/mysql
1197 %{_includedir}/mysql/*
1198 %{_datadir}/aclocal/mysql.m4
1199 %{_libdir}/mysql/libmysqlclient.a
1200 %{_libdir}/mysql/libmysqlclient_r.a
1201 %{_libdir}/mysql/libmysqlservices.a
1203 # ----------------------------------------------------------------------------
1204 %files -n mysql-wsrep-shared%{product_suffix}
1205 %defattr(-, root, root, 0755)
1206 %if %{defined license_files_server}
1207 %doc %{license_files_server}
1209 # Shared libraries (omit for architectures that don't support them)
1210 %{_libdir}/libmysql*.so*
1212 %post -n mysql-wsrep-shared%{product_suffix}
1215 %postun -n mysql-wsrep-shared%{product_suffix}
1218 # ----------------------------------------------------------------------------
1219 %files -n mysql-wsrep-test%{product_suffix}
1220 %defattr(-, root, root, 0755)
1221 %if %{defined license_files_server}
1222 %doc %{license_files_server}
1224 %attr(-, root, root) %{_datadir}/mysql-test
1225 %attr(755, root, root) %{_bindir}/mysql_client_test
1226 %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
1227 %doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
1228 %doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
1229 %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
1230 %doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
1232 ##############################################################################
1233 # The spec file changelog only includes changes made to the spec file
1234 # itself - note that they must be ordered by date (important when
1236 ##############################################################################
1238 * Tue Sep 29 2015 Ivan Suzdal <isuzdal@mirantis.com> - 5.6.23-25.10%{?dist}~mos8.0.2
1239 - Add Obsoletes and Provide for packages
1241 * Thu Sep 24 2015 Ivan Suzdal <isuzdal@mirantis.com> - 5.6.23-25.10%{?dist}~mos8.0.1
1242 - Bump release version
1244 * Thu Jan 29 2015 Joerg Bruehe <joerg.bruehe@fromdual.com>
1245 - Add a meta-package "mysql-wsrep" that requires both "server" and "client".
1246 - Fix the fall-back definition of "dist", it must start with a period.
1248 * Mon Jan 26 2015 Joerg Bruehe <joerg.bruehe@fromdual.com>
1249 - Allow "rpmlint", but suppress "post-build-checks" (fail on SuSE 12 + 13).
1250 - Improve handling of undefined "%%{dist}".
1251 - Fix wrong changelog dates, to get rid of warnings about "bogus date".
1252 - Escape percent signs in changelog, to get rid of "rpmlint" warnings.
1254 * Tue Jan 20 2015 Teemu Ollakka <teemu.ollakka@galeracluster.com>
1256 - Reworked to build wsrep patched packages exclusively
1259 * Mon Oct 06 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1260 - Add license info in each subpackage
1262 * Wed May 28 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1263 - Updated usergroup to mysql on datadir
1265 * Wed Oct 30 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1266 - Removed non gpl file docs/mysql.info from community packages
1268 * Mon Sep 09 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1269 - Updated logic to get the correct count of PID files
1271 * Fri Aug 16 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1272 - Added provides lowercase mysql tags
1274 * Wed Jun 26 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1275 - Cleaned up spec file to resolve rpm dependencies.
1277 * Mon Nov 05 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1279 - Allow to override the default to use the bundled yaSSL by an option like
1280 --define="with_ssl /path/to/ssl"
1282 * Wed Oct 10 2012 Bjorn Munch <bjorn.munch@oracle.com>
1284 - Replace old my-*.cnf config file examples with template my-default.cnf
1286 * Fri Oct 05 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1288 - Let the installation use the new option "--random-passwords" of "mysql_install_db".
1289 (Bug# 12794345 Ensure root password)
1290 - Fix an inconsistency: "new install" vs "upgrade" are told from the (non)existence
1291 of "$mysql_datadir/mysql" (holding table "mysql.user" and other system stuff).
1293 * Tue Jul 24 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1295 - Add a macro "runselftest":
1296 if set to 1 (default), the test suite will be run during the RPM build;
1297 this can be oveeridden via the command line by adding
1298 --define "runselftest 0"
1299 Failures of the test suite will NOT make the RPM build fail!
1301 * Mon Jul 16 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1303 - Add the man page for the "mysql_config_editor".
1305 * Mon Jun 11 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1307 - Make sure newly added "SPECIFIC-ULN/" directory does not disturb packaging.
1309 * Wed Feb 29 2012 Brajmohan Saxena <brajmohan.saxena@oracle.com>
1311 - Removal all traces of the readline library from mysql (BUG 13738013)
1313 * Wed Sep 28 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1315 - Fix duplicate mentioning of "mysql_plugin" and its manual page,
1316 it is better to keep alphabetic order in the files list (merging!).
1318 * Wed Sep 14 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1320 - Let the RPM capabilities ("obsoletes" etc) ensure that an upgrade may replace
1321 the RPMs of any configuration (of the current or the preceding release series)
1322 by the new ones. This is done by not using the implicitly generated capabilities
1323 (which include the configuration name) and relying on more generic ones which
1324 just list the function ("server", "client", ...).
1325 The implicit generation cannot be prevented, so all these capabilities must be
1326 explicitly listed in "Obsoletes:"
1328 * Tue Sep 13 2011 Jonathan Perkin <jonathan.perkin@oracle.com>
1330 - Add support for Oracle Linux 6 and Red Hat Enterprise Linux 6. Due to
1331 changes in RPM behaviour ($RPM_BUILD_ROOT is removed prior to install)
1332 this necessitated a move of the libmygcc.a installation to the install
1333 phase, which is probably where it belonged in the first place.
1335 * Tue Sep 13 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1337 - "make_win_bin_dist" and its manual are dropped, cmake does it different.
1339 * Thu Sep 08 2011 Daniel Fischer <daniel.fischer@oracle.com>
1341 - Add mysql_plugin man page.
1343 * Tue Aug 30 2011 Tor Didriksen <tor.didriksen@oracle.com>
1345 - Set CXX=g++ by default to add a dependency on libgcc/libstdc++.
1346 Also, remove the use of the -fno-exceptions and -fno-rtti flags.
1347 TODO: update distro_buildreq/distro_requires
1349 * Tue Aug 30 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1351 - Add the manual page for "mysql_plugin" to the server package.
1353 * Fri Aug 19 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1355 - Null-upmerge the fix of bug#37165: This spec file is not affected.
1356 - Replace "/var/lib/mysql" by the spec file variable "%%{mysqldatadir}".
1358 * Fri Aug 12 2011 Daniel Fischer <daniel.fischer@oracle.com>
1360 - Source plugin library files list from cmake-generated file.
1362 * Mon Jul 25 2011 Chuck Bell <chuck.bell@oracle.com>
1364 - Added the mysql_plugin client - enables or disables plugins.
1366 * Thu Jul 21 2011 Sunanda Menon <sunanda.menon@oracle.com>
1368 - Fix bug#12561297: Added the MySQL embedded binary
1370 * Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1372 - Fix bug#45415: "rpm upgrade recreates test database"
1373 Let the creation of the "test" database happen only during a new installation,
1374 not in an RPM upgrade.
1375 This affects both the "mkdir" and the call of "mysql_install_db".
1377 * Thu Feb 10 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1379 - Fix bug#56581: If an installation deviates from the default file locations
1380 ("datadir" and "pid-file"), the mechanism to detect a running server (on upgrade)
1381 should still work, and use these locations.
1382 The problem was that the fix for bug#27072 did not check for local settings.
1384 * Mon Jan 31 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1386 - Install the new "manifest" files: "INFO_SRC" and "INFO_BIN".
1388 * Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1390 - EXCEPTIONS-CLIENT has been deleted, remove it from here too
1391 - Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
1392 a '-j' argument to make.
1394 * Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1396 - Added test authentication (WL#1054) plugin binaries
1398 * Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1400 - Added example external authentication (WL#1054) plugin binaries
1402 * Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
1404 - With a recent spec file cleanup, names have changed: A "-community" part was dropped.
1405 Reflect that in the "Obsoletes" specifications.
1406 - Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
1407 - This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
1409 * Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1411 - Change the behaviour on installation and upgrade:
1412 On installation, do not autostart the server.
1413 *Iff* the server was stopped before the upgrade is started, this is taken as a
1414 sign the administrator is handling that manually, and so the new server will
1415 not be started automatically at the end of the upgrade.
1416 The start/stop scripts will still be installed, so the server will be started
1417 on the next machine boot.
1418 This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).
1420 * Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1422 - Implement SELinux checks from distribution-specific spec file.
1424 * Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1426 - Large number of changes to build using CMake
1427 - Introduce distribution-specific RPMs
1428 - Drop debuginfo, build all binaries with debug/symbols
1429 - Remove __os_install_post, use native macro
1430 - Remove _unpackaged_files_terminate_build, make it an error to have
1432 - Remove cluster RPMs
1434 * Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1436 - Add "--with-perfschema" to the configure options.
1438 * Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1440 - User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
1441 mask "rmdir" return code 1.
1442 - Remove "ha_example.*" files from the list, they aren't built.
1444 * Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1446 - Fix a wrong path name in handling the debug plugins.
1448 * Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1450 - Take the result of the debug plugin build and put it into the optimized tree,
1451 so that it becomes part of the final installation;
1452 include the files in the packlist. Part of the fixes for bug#49022.
1454 * Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1456 - Set "Oracle and/or its affiliates" as the vendor and copyright owner,
1457 accept upgrading from packages showing MySQL or Sun as vendor.
1459 * Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1461 - Formatting changes:
1462 Have a consistent structure of separator lines and of indentation
1463 (8 leading blanks => tab).
1464 - Introduce the variable "src_dir".
1465 - Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
1467 - Drop the old "with_static" argument analysis, this is not supported
1469 - Introduce variables to control the handlers individually, as well
1471 - Use the new "--with-plugin" notation for the table handlers.
1472 - Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
1473 was done back in 2002 already.
1474 - Make "--with-zlib-dir=bundled" the default, add an option to disable it.
1475 - Add missing manual pages to the file list.
1476 - Improve the runtime check for "libgcc.a", protect it against being tried
1477 with the Intel compiler "icc".
1479 * Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1481 - Change RPM file naming:
1482 - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
1483 - Release counts from 1, not 0.
1485 * Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1487 - The "semisync" plugin file name has lost its introductory "lib",
1488 adapt the file lists for the subpackages.
1489 This is a part missing from the fix for bug#48351.
1490 - Remove the "fix_privilege_tables" manual, it does not exist in 5.5
1491 (and likely, the whole script will go, too).
1493 * Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1495 - Fix some problems with the directives around "tcmalloc" (experimental),
1496 remove erroneous traces of the InnoDB plugin (that is 5.1 only).
1498 * Fri Oct 09 2009 Magnus Blaudd <mvensson@mysql.com>
1500 - Removed mysql_fix_privilege_tables
1502 * Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
1504 - "mysqlmanager" got removed from version 5.4, all references deleted.
1506 * Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1508 - Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
1510 * Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1512 - This version does not contain the "Instance manager", "mysqlmanager":
1513 Remove it from the spec file so that packaging succeeds.
1515 * Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
1517 - Add conditionals for bundled zlib and innodb plugin
1519 * Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
1521 - Install plugin libraries in appropriate packages.
1522 - Disable libdaemon_example and ftexample plugins.
1524 * Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
1526 - Update variable used for mysql-test suite location to match source.
1528 * Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
1530 - Correct yesterday's fix, so that it also works for the last flag,
1531 and fix a wrong quoting: un-quoted quote marks must not be escaped.
1533 * Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
1535 - Removed "mysql_upgrade_shell"
1536 - Removed some copy/paste between debug and normal build
1538 * Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
1540 - Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
1541 This should cover both gcc and icc flags. Fixes bug#40546.
1543 * Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
1545 - Removed the "Federated" storage engine option, and enabled in all
1547 * Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
1549 - Get rid of the "warning: Installed (but unpackaged) file(s) found:"
1550 Some generated files aren't needed in RPMs:
1551 - the "sql-bench/" subdirectory
1552 Some files were missing:
1553 - /usr/share/aclocal/mysql.m4 ("devel" subpackage)
1554 - Manual "mysqlbug" ("server" subpackage)
1555 - Program "innochecksum" and its manual ("server" subpackage)
1556 - Manual "mysql_find_rows" ("client" subpackage)
1557 - Script "mysql_upgrade_shell" ("client" subpackage)
1558 - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
1559 - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
1561 * Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
1563 - Made the "Federated" storage engine an option
1564 - Made the "Cluster" storage engine and sub packages an option
1566 * Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
1568 - Add the man pages for "ndbd" and "ndb_mgmd".
1570 * Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
1572 - Require a manual upgrade if the alread-installed mysql-server is
1573 from another vendor, or is of a different major version.
1575 * Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
1577 - "ndb_size.tmpl" is not needed any more,
1578 "man1/mysql_install_db.1" lacked the trailing '*'.
1580 * Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
1582 - Removed man page for "mysql_create_system_tables"
1584 * Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
1588 * Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
1590 - Remove Max RPMs; the server RPMs contain a mysqld compiled with all
1591 features that previously only were built into Max.
1593 * Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
1595 - Add several man pages for NDB which are now created.
1597 * Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
1599 - Put back "libmygcc.a", found no real reason it was removed.
1601 - Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
1602 correct "libgcc.a" path is returned for the 32/64 bit architecture.
1604 * Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
1606 - Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
1608 * Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
1610 - Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
1612 - The "mysqlmanager" man page got moved from section 1 to 8.
1614 * Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
1616 - Call "make install" using "benchdir_root=%%{_datadir}",
1617 because that is affecting the regression test suite as well.
1619 * Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
1621 - Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
1622 replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
1625 * Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
1627 - Add "--with-partition" to all server builds.
1629 - Use "--report-features" in one test run per server build.
1631 * Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com>
1633 - The "max" server is removed from packages, effective from 5.1.12-beta.
1634 Delete all steps to build, package, or install it.
1636 * Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
1638 - Fix a typing error in the "make" target for the Perl script to run the tests.
1640 * Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
1642 - Use the Perl script to run the tests, because it will automatically check
1643 whether the server is configured with SSL.
1645 * Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
1647 - move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
1649 - Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
1650 there are some more aspects which need to be solved before this is possible.
1651 For now, just ensure the binary "mysql_upgrade" is delivered and installed.
1653 * Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
1655 - Close a gap of the previous version by explicitly using
1656 a newly created temporary directory for the socket to be used
1657 in the "mysql_upgrade" operation, overriding any local setting.
1659 * Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
1661 - To run "mysql_upgrade", we need a running server;
1662 start it in isolation and skip password checks.
1664 * Sat May 20 2006 Kent Boortz <kent@mysql.com>
1666 - Always compile for PIC, position independent code.
1668 * Wed May 10 2006 Kent Boortz <kent@mysql.com>
1670 - Use character set "all" when compiling with Cluster, to make Cluster
1671 nodes independent on the character set directory, and the problem
1672 that two RPM sub packages both wants to install this directory.
1674 * Mon May 01 2006 Kent Boortz <kent@mysql.com>
1676 - Use "./libtool --mode=execute" instead of searching for the
1677 executable in current directory and ".libs".
1679 * Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
1681 - Install and run "mysql_upgrade"
1683 * Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
1685 - Remove sql-bench, and MySQL-bench RPM (will be built as an independent
1686 project from the mysql-bench repository)
1688 * Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
1690 - Remove old mysqltestmanager and related programs
1691 * Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
1693 - Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
1695 * Wed Mar 08 2006 Kent Boortz <kent@mysql.com>
1697 - Changed product name from "Community Edition" to "Community Server"
1699 * Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
1701 - Fast mutexes is now disabled by default, but should be
1702 used in Linux builds.
1704 * Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
1706 - Reintroduced a max build
1707 - Limited testing of 'debug' and 'max' servers
1708 - Berkeley DB only in 'max'
1710 * Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
1712 - Use "-i" on "make test-force";
1713 this is essential for later evaluation of this log file.
1715 * Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
1717 - Pass '-static' to libtool, link static with our own libraries, dynamic
1718 with system libraries. Link with the bundled zlib.
1720 * Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
1722 - Modified RPM spec to match new 5.1 debug+max combined community packaging.
1724 * Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
1726 - Added "client/mysqlslap"
1728 * Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
1730 - Added zlib to the list of (static) libraries installed
1731 - Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
1732 - Compile MySQL with bundled zlib
1733 - Fixed %%packager name to "MySQL Production Engineering Team"
1735 * Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
1737 - Avoid using the "bundled" zlib on "shared" builds:
1738 As it is not installed (on the build system), this gives dependency
1739 problems with "libtool" causing the build to fail.
1740 (Change was done on Nov 11, but left uncommented.)
1742 * Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
1744 - Extend the file existence check for "init.d/mysql" on un-install
1745 to also guard the call to "insserv"/"chkconfig".
1747 * Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
1749 - added more man pages
1751 * Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1753 - Made yaSSL support an option (off by default)
1755 * Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1757 - Enabled yaSSL support
1759 * Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
1761 - Give mode arguments the same way in all places
1762 - Moved copy of mysqld.a to "standard" build, but
1763 disabled it as we don't do embedded yet in 5.0
1765 * Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1767 - For 5.x, always compile with --with-big-tables
1768 - Copy the config.log file to location outside
1771 * Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1773 - Removed unneeded/obsolete configure options
1774 - Added archive engine to standard server
1775 - Removed the embedded server from experimental server
1776 - Changed suffix "-Max" => "-max"
1777 - Changed comment string "Max" => "Experimental"
1779 * Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
1781 - added a usermod call to assign a potential existing mysql user to the
1782 correct user group (BUG#12823)
1783 - Save the perror binary built during Max build so it supports the NDB
1784 error codes (BUG#13740)
1785 - added a separate macro "mysqld_group" to be able to define the
1786 user group of the mysql user seperately, if desired.
1788 * Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
1790 - fixed the removing of the RPM_BUILD_ROOT in the %%clean section (the
1791 $RBR variable did not get expanded, thus leaving old build roots behind)
1793 * Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
1795 - Fixed the creation of the mysql user group account in the postinstall
1797 - Fixed enabling the Archive storage engine in the Max binary
1799 * Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
1801 - Fixed the Requires: tag for the server RPM (BUG 12233)
1803 * Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
1805 - create a "mysql" user group and assign the mysql user account to that group
1806 in the server postinstall section. (BUG 10984)
1808 * Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
1810 - Do not build statically on i386 by default, only when adding either "--with
1811 static" or "--define '_with_static 1'" to the RPM build options. Static
1812 linking really only makes sense when linking against the specially patched
1815 * Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
1817 - added mysql_client_test to the "bench" subpackage (BUG 10676)
1818 - added the libndbclient static and shared libraries (BUG 10676)
1820 * Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
1822 - use "mysqldatadir" variable instead of hard-coding the path multiple times
1823 - use the "mysqld_user" variable on all occasions a user name is referenced
1824 - removed (incomplete) Brazilian translations
1825 - removed redundant release tags from the subpackage descriptions
1827 * Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
1829 - Added a "make clean" between separate calls to "BuildMySQL".
1831 * Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
1833 - Removed the mysql_tableinfo script made obsolete by the information schema
1835 * Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
1837 - Enabled the "blackhole" storage engine for the Max RPM
1839 * Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
1841 - removed the MySQL manual files (html/ps/texi) - they have been removed
1842 from the MySQL sources and are now available seperately.
1844 * Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
1846 - old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
1847 mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
1849 * Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
1851 - Disabled RAID in the Max binaries once and for all (it has finally been
1852 removed from the source tree)
1854 * Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
1856 - Install MySQL Instance Manager together with mysqld, touch mysqlmanager
1859 * Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
1861 - Fixed the compilation comments and moved them into the separate build sections
1862 for Max and Standard
1864 * Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
1866 - enabled the "Ndbcluster" storage engine for the max binary
1867 - added extra make install in ndb subdir after Max build to get ndb binaries
1868 - added packages for ndbcluster storage engine
1870 * Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
1872 - replaced obsoleted "BuildPrereq" with "BuildRequires" instead
1874 * Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
1876 - enabled the "Federated" storage engine for the max binary
1878 * Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
1880 - ISAM and merge storage engines were purged. As well as appropriate
1881 tools and manpages (isamchk and isamlog)
1883 * Fri Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
1885 - enabled the "Archive" storage engine for the max binary
1886 - enabled the "CSV" storage engine for the max binary
1887 - enabled the "Example" storage engine for the max binary
1889 * Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1891 - MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1893 * Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1895 - do not link statically on IA64/AMD64 as these systems do not have
1896 a patched glibc installed
1898 * Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1900 - Added libmygcc.a to the devel subpackage (required to link applications
1901 against the the embedded server libmysqld.a) (BUG 4921)
1903 * Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1905 - Added EXCEPTIONS-CLIENT to the "devel" package
1907 * Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1909 - disabled OpenSSL in the Max binaries again (the RPM packages were the
1910 only exception to this anyway) (BUG 1043)
1912 * Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1914 - fixed server postinstall (mysql_install_db was called with the wrong
1917 * Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1919 - added mysql_tzinfo_to_sql to the server subpackage
1920 - run "make clean" instead of "make distclean"
1922 * Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1924 - added ncurses-devel to the build prerequisites (BUG 3377)
1926 * Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1928 - when using gcc, _always_ use CXX=gcc
1929 - replaced Copyright with License field (Copyright is obsolete)
1931 * Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1933 - added myisam_ftdump to the Server package
1935 * Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1937 - link the mysql client against libreadline instead of libedit (BUG 2289)
1939 * Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1941 - marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1943 * Fri Dec 12 2003 Lenz Grimmer <lenz@mysql.com>
1945 - fixed file permissions (BUG 1672)
1947 * Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1949 - made testing for gcc3 a bit more robust
1951 * Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1953 - added missing file mysql_create_system_tables to the server subpackage
1955 * Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1957 - removed dependency on MySQL-client from the MySQL-devel subpackage
1958 as it is not really required. (BUG 1610)
1960 * Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1962 - Fixed BUG 1162 (removed macro names from the changelog)
1963 - Really fixed BUG 998 (disable the checking for installed but
1966 * Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
1968 - Fixed BUG 959 (libmysqld not being compiled properly)
1969 - Fixed BUG 998 (RPM build errors): added missing files to the
1970 distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
1971 mysql_fix_privilege_tables.1), removed "-n" from install section.
1973 * Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
1975 - removed the GIF Icon (file was not included in the sources anyway)
1976 - removed unused variable shared_lib_version
1977 - do not run automake before building the standard binary
1978 (should not be necessary)
1979 - add server suffix '-standard' to standard binary (to be in line
1980 with the binary tarball distributions)
1981 - Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
1982 _datadir, _includedir) throughout the spec file.
1983 - allow overriding CC and CXX (required when building with other compilers)
1985 * Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1987 - re-enabled RAID again
1989 * Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1991 - disabled MyISAM RAID (--with-raid) - it throws an assertion which
1992 needs to be investigated first.
1994 * Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1996 - added missing file mysql_secure_installation to server subpackage
1999 * Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
2001 - re-added missing pre- and post(un)install scripts to server subpackage
2002 - added config file /etc/my.cnf to the file list (just for completeness)
2003 - make sure to create the datadir with 755 permissions
2005 * Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
2007 - removed unused CC and CXX variables
2008 - CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
2010 * Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
2012 - renamed package "MySQL" to "MySQL-server"
2013 - fixed Copyright tag
2014 - added mysql_waitpid to client subpackage (required for mysql-test-run)
2016 * Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
2018 - moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
2019 Linux distributions now support this scheme as proposed by the LSB either
2020 directly or via a compatibility symlink)
2021 - Use new "restart" init script action instead of starting and stopping
2023 - Be more flexible in activating the automatic bootup - use insserv (on
2024 older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
2025 others) to create the respective symlinks
2027 * Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
2029 - MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
2030 (mixing 3.23 and 4.0 packages)
2032 * Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
2034 - Turn off OpenSSL in MySQL-Max for now until it works properly again
2035 - enable RAID for the Max binary instead
2036 - added compatibility link: safe_mysqld -> mysqld_safe to ease the
2037 transition from 3.23
2039 * Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
2041 - Reworked the build steps a little bit: the Max binary is supposed
2042 to include OpenSSL, which cannot be linked statically, thus trying
2043 to statically link against a special glibc is futile anyway
2044 - because of this, it is not required to make yet another build run
2045 just to compile the shared libs (saves a lot of time)
2046 - updated package description of the Max subpackage
2047 - clean up the BuildRoot directory afterwards
2049 * Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
2051 - Updated Packager information
2052 - Fixed the build options: the regular package is supposed to
2053 include InnoDB and linked statically, while the Max package
2054 should include BDB and SSL support
2056 * Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
2058 - Use more RPM macros (e.g. infodir, mandir) to make the spec
2060 - reorganized the installation of documentation files: let RPM
2062 - reorganized the file list: actually install man pages along
2063 with the binaries of the respective subpackage
2064 - do not include libmysqld.a in the devel subpackage as well, if we
2065 have a special "embedded" subpackage
2066 - reworked the package descriptions
2068 * Mon Oct 8 2001 Monty
2070 - Added embedded server as a separate RPM
2072 * Fri Apr 13 2001 Monty
2074 - Added mysqld-max to the distribution
2076 * Tue Jan 2 2001 Monty
2078 - Added mysql-test to the bench package
2080 * Fri Aug 18 2000 Tim Smith <tim@mysql.com>
2082 - Added separate libmysql_r directory; now both a threaded
2083 and non-threaded library is shipped.
2085 * Wed Sep 29 1999 David Axmark <davida@mysql.com>
2087 - Added the support-files/my-example.cnf to the docs directory.
2089 - Removed devel dependency on base since it is about client
2092 * Wed Sep 8 1999 David Axmark <davida@mysql.com>
2094 - Cleaned up some for 3.23.
2096 * Thu Jul 1 1999 David Axmark <davida@mysql.com>
2098 - Added support for shared libraries in a separate sub
2099 package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
2101 - The --enable-assembler switch is now automatically disables on
2102 platforms there assembler code is unavailable. This should allow
2103 building this RPM on non i386 systems.
2105 * Mon Feb 22 1999 David Axmark <david@detron.se>
2107 - Removed unportable cc switches from the spec file. The defaults can
2108 now be overridden with environment variables. This feature is used
2109 to compile the official RPM with optimal (but compiler version
2112 - Removed the repetitive description parts for the sub rpms. Maybe add
2113 again if RPM gets a multiline macro capability.
2115 - Added support for a pt_BR translation. Translation contributed by
2116 Jorge Godoy <jorge@bestway.com.br>.
2118 * Wed Nov 4 1998 David Axmark <david@detron.se>
2120 - A lot of changes in all the rpm and install scripts. This may even
2121 be a working RPM :-)
2123 * Sun Aug 16 1998 David Axmark <david@detron.se>
2125 - A developers changelog for MySQL is available in the source RPM. And
2126 there is a history of major user visible changed in the Reference
2127 Manual. Only RPM specific changes will be documented here.