[fix] Fix Provides and Obsoletes for packages
[packages/centos7/MySQL-wsrep.git] / mysql.spec
1 # Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; version 2 of the License.
6 #
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 # GNU General Public License for more details.
11 #
12 # You should have received a copy of the GNU General Public License
13 # along with this program; see the file COPYING. If not, write to the
14 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
15 # MA  02110-1301  USA.
16
17 ##############################################################################
18 # Some common macro definitions
19 ##############################################################################
20
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
26
27 %global mysql_version   5.6.23
28 %global wsrep_version   25.10
29 %global wsrep_revision  XXXX
30
31 %global mysqld_user     mysql
32 %global mysqld_group    mysql
33 %global mysqldatadir    /var/lib/mysql
34
35 %global release         %{wsrep_version}
36 %global short_product_tag 5.6
37
38 #
39 # Macros we use which are not available in all supported versions of RPM
40 #
41 # - defined/undefined are missing on RHEL4
42 #
43 %if %{expand:%{?defined:0}%{!?defined:1}}
44 %define defined()       %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
45 %endif
46 %if %{expand:%{?undefined:0}%{!?undefined:1}}
47 %define undefined()     %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
48 %endif
49
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.
57 # See:
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
63
64 ##############################################################################
65 # Command line handling
66 ##############################################################################
67 #
68 # To set options:
69 #
70 #   $ rpmbuild --define="option <x>" ...
71 #
72
73 # ----------------------------------------------------------------------------
74 # Commercial builds
75 # ----------------------------------------------------------------------------
76 %if %{undefined commercial}
77 %define commercial 0
78 %endif
79
80 # ----------------------------------------------------------------------------
81 # Source name
82 # ----------------------------------------------------------------------------
83 %if %{undefined src_base}
84 #%define src_base mysql-wsrep
85 %define src_base mysql
86 %endif
87 #%define src_dir %{src_base}-%{mysql_version}-%{wsrep_version}
88 %define src_dir %{src_base}-%{mysql_version}
89
90 # ----------------------------------------------------------------------------
91 # Feature set (storage engines, options).  Default to community (everything)
92 # ----------------------------------------------------------------------------
93 %if %{undefined feature_set}
94 %define feature_set community
95 %endif
96
97 # ----------------------------------------------------------------------------
98 # Server comment strings
99 # ----------------------------------------------------------------------------
100 %if %{undefined compilation_comment_debug}
101 %define compilation_comment_debug       MySQL Community Server - Debug (GPL)
102 %endif
103 %if %{undefined compilation_comment_release}
104 %define compilation_comment_release     MySQL Community Server (GPL)
105 %endif
106
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}
113   %else
114     %define product_suffix      %{nil}
115   %endif
116 %endif
117
118 %if %{undefined server_suffix}
119 %define server_suffix   %{nil}
120 %endif
121
122 # ----------------------------------------------------------------------------
123 # Distribution support
124 # ----------------------------------------------------------------------------
125
126 # Disable post build checks for time being.
127 BuildConflicts: post-build-checks
128
129 BuildRequires: gcc-c++ ncurses-devel perl zlib-devel cmake libaio-devel bison flex
130
131 %if 0%{?rhel} == 6 || 0%{?rhel} == 7 || 0%{?fedora} == 20 || 0%{?fedora} == 21
132 BuildRequires: time
133 %endif
134
135 %if 0%{?suse_version}
136 %if 0%{?suse_version} == 1110
137 BuildRequires: gdbm-devel gperf openldap2-client procps pwdutils
138 %endif
139 %if 0%{?suse_version} == 1310 || 0%{?suse_version} == 1315 || 0%{?suse_version} == 1320
140 BuildRequires: gperf procps time
141 %endif
142 %endif
143
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
149     %define dist .sle11
150   %endif
151   %if 0%{?suse_version} == 1310
152     %define dist .suse13.1
153   %endif
154   %if 0%{?suse_version} == 1315
155     %define dist .sle12
156   %endif
157   %if 0%{?suse_version} == 1320
158     %define dist .suse13.2
159   %endif
160   # Still missing?
161   %if %{undefined dist}
162     %define dist .DIST
163   %endif
164 %endif
165
166
167 # Avoid debuginfo RPMs, leaves binaries unstripped
168 %define debug_package   %{nil}
169
170 # Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
171 # test for __debug_package
172 %define __strip         /bin/true
173
174 # ----------------------------------------------------------------------------
175 # Support optional "tcmalloc" library (experimental)
176 # ----------------------------------------------------------------------------
177 %if %{defined malloc_lib_target}
178 %define WITH_TCMALLOC 1
179 %else
180 %define WITH_TCMALLOC 0
181 %endif
182
183 ##############################################################################
184 # Configuration based upon above user input, not to be set directly
185 ##############################################################################
186
187 %if 0%{?commercial}
188 %define license_files_server    %{src_dir}/LICENSE.mysql
189 %define license_type            Commercial
190 %else
191 %define license_files_server    COPYING README
192 %define license_type            GPL
193 %endif
194
195 ##############################################################################
196 # Main spec file section
197 ##############################################################################
198
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}
211 #wsrep_patch_tag
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
219
220 # Regression tests may take a long time, override the default to skip them 
221 %{!?runselftest:%global runselftest 0}
222
223 # Think about what you use here since the first step is to
224 # run a rm -rf
225 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
226
227 # From the manual
228 %description
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
233 %{mysql_vendor}
234
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
240 further info.
241
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.
245
246 ##############################################################################
247 # Sub package definition
248 ##############################################################################
249
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}
255
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.
263
264 # ----------------------------------------------------------------------------
265
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
270 # RedHat
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
275 %endif
276 %endif
277 # SUSE
278 %if 0%{?suse_version}
279 Requires: aaa_base coreutils grep procps rsync lsof
280 %if 0%{suse_version} == 1110
281 Requires: pwdutils
282 %endif
283 %endif
284
285 %if 0%{?commercial}
286 Obsoletes:      MySQL-server
287 %else
288 Obsoletes:      MySQL-server-advanced
289 %endif
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
298
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
304 %{mysql_vendor}
305
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
311 further info.
312
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.
316
317 This package includes the MySQL server binary as well as related utilities
318 to run and administer a MySQL server.
319
320 Built with wsrep patch %{wsrep_version}.
321
322 If you want to access and work with the database, you have to install
323 package "mysql-wsrep-client%{product_suffix}" as well!
324
325 # ----------------------------------------------------------------------------
326 %package -n mysql-wsrep-client%{product_suffix}
327 Summary:        MySQL - Client
328 Group:          Applications/Databases
329 %if 0%{?commercial}
330 Obsoletes:      MySQL-client
331 %else
332 Obsoletes:      MySQL-client-advanced
333 %endif
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
341
342 %description -n mysql-wsrep-client%{product_suffix}
343 This package contains the standard MySQL clients and administration tools.
344
345 For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
346
347 # ----------------------------------------------------------------------------
348 %package -n mysql-wsrep-test%{product_suffix}
349 Summary:        MySQL - Test suite
350 Group:          Applications/Databases
351 %if 0%{?commercial}
352 #Requires:       MySQL-client-advanced perl
353 Requires:       mysql-wsrep-client%{product_suffix} perl
354 Obsoletes:      MySQL-test
355 %else
356 #Requires:       MySQL-client perl
357 Requires:       mysql-wsrep-client%{product_suffix} perl
358 Obsoletes:      MySQL-test-advanced
359 %endif
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
367 AutoReqProv:    no
368
369 %description -n mysql-wsrep-test%{product_suffix}
370 This package contains the MySQL regression test suite.
371
372 For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
373
374 # ----------------------------------------------------------------------------
375 %package -n mysql-wsrep-devel%{product_suffix}
376 Summary:        MySQL - Development header files and libraries
377 Group:          Applications/Databases
378 %if 0%{?commercial}
379 Obsoletes:      MySQL-devel
380 %else
381 Obsoletes:      MySQL-devel-advanced
382 %endif
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
390
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.
394
395 For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
396
397 # ----------------------------------------------------------------------------
398 %package -n mysql-wsrep-shared%{product_suffix}
399 Summary:        MySQL - Shared libraries
400 Group:          Applications/Databases
401 %if 0%{?commercial}
402 Obsoletes:      MySQL-shared
403 %else
404 Obsoletes:      MySQL-shared-advanced
405 %endif
406 Provides:       mysql-libs
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
414
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.
418
419 ##############################################################################
420 %prep
421 %setup -q -T -a 0 -c -n %{src_dir}
422 %patch0 -p1
423 %patch1 -p1
424 %patch2 -p1
425 %patch3 -p1
426 %patch4 -p1
427 %patch5 -p1
428 #wsrep_apply_patch_tag
429 ##############################################################################
430 %build
431
432 # Fail quickly and obviously if user tries to build as root
433 %if %runselftest
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."
438         exit 1
439     fi
440 %endif
441
442 # Be strict about variables, bail at earliest opportunity, etc.
443 set -eu
444
445 # Optional package files
446 touch optional-files-devel
447
448 #
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.
452 #
453
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"
458 RPM_OPT_FLAGS=
459 %endif
460
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)))}
469
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}
475 %else
476 %define ssl_option   -DWITH_SSL=%{with_ssl}
477 %endif
478
479 # Build debug mysqld and libmysqld.a
480 mkdir debug
481 (
482   cd debug
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 / /' \
489                 -e 's/ -ip / /' \
490                 -e 's/^ //' \
491                 -e 's/ $//'`
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 / /' \
497                   -e 's/ -ip / /' \
498                   -e 's/^ //' \
499                   -e 's/ $//'`
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}" \
506            %{ssl_option} \
507            -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
508            -DMYSQL_SERVER_SUFFIX="%{server_suffix}" \
509            -DWITH_WSREP=1 \
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
514 )
515 # Build full release
516 mkdir release
517 (
518   cd release
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}" \
525            %{ssl_option} \
526            -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
527            -DMYSQL_SERVER_SUFFIX="%{server_suffix}" \
528            -DWITH_WSREP=1 \
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
533 )
534
535 %if %runselftest
536   MTR_BUILD_THREAD=auto
537   export MTR_BUILD_THREAD
538
539   (cd release && make test-bt-fast || true)
540 %endif
541
542 ##############################################################################
543 %install
544
545 RBR=$RPM_BUILD_ROOT
546 MBD=$RPM_BUILD_DIR/%{src_dir}
547
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}
557
558 mkdir -p $RBR%{_sysconfdir}/my.cnf.d
559
560 # Install all binaries
561 (
562   cd $MBD/release
563   make DESTDIR=$RBR install
564 )
565
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/
570
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
574
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
578
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
582
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
587
588
589 # Install SELinux files in datadir
590 install -m 600 $MBD/support-files/RHEL4-SElinux/mysql.{fc,te} \
591   $RBR%{_datadir}/mysql/SELinux/RHEL4
592
593 %if %{WITH_TCMALLOC}
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}"
599 %endif
600
601 # Remove man pages we explicitly do not want to package, avoids 'unpackaged
602 # files' warning.
603 # This has become obsolete:  rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
604
605 ##############################################################################
606 #  Post processing actions, i.e. when installed
607 ##############################################################################
608
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.
612
613 # ATTENTION: Parts of this are duplicated in the "triggerpostun" !
614
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 ]
618 then
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'`
621 fi
622 if [ -z "$mysql_datadir" ]
623 then
624   mysql_datadir=%{mysqldatadir}
625 fi
626 if [ -z "$PID_FILE_PATT" ]
627 then
628   PID_FILE_PATT="$mysql_datadir/*.pid"
629 fi
630
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.
633
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`
638 fi
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}'
647
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'`
652
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>"
656
657   error_text=
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/.
666 "
667   fi
668
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.
675 "
676   fi
677
678   if [ -n "$error_text" ]; then
679     cat <<HERE >&2
680
681 ******************************************************************
682 A MySQL server package ($installed) is installed.
683 $error_text
684 A manual upgrade is required.
685
686 - Ensure that you have a complete, working backup of your data and my.cnf
687   files
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-'
692
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
699
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 ******************************************************************
703 HERE
704     exit 1
705   fi
706 fi
707
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 ;;
716 esac
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?
721
722 STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
723
724 if [ -f $STATUS_FILE ]; then
725         echo "Some previous upgrade was not finished:"
726         ls -ld $STATUS_FILE
727         echo "Please check its status, then do"
728         echo "    rm $STATUS_FILE"
729         echo "before repeating the MySQL upgrade."
730         exit 1
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."
736         exit 1
737 fi
738
739 NEW_VERSION=%{mysql_version}-%{release}
740
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
748         echo                                         >> $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
753              echo                                         >> $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
757              echo                                         >> $STATUS_FILE
758         fi
759
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
765                 echo                                       >> $STATUS_FILE
766                 echo "Server process:"                     >> $STATUS_FILE
767                 ps -fp `cat $PID_FILE_PATT`                >> $STATUS_FILE
768                 echo                                       >> $STATUS_FILE
769                 echo "SERVER_TO_START=$SERVER_TO_START"    >> $STATUS_FILE
770         else
771                 # Take a note we checked it ...
772                 echo "PID file:"                           >> $STATUS_FILE
773                 ls -l   $PID_FILE_PATT                     >> $STATUS_FILE 2>&1
774         fi
775 fi
776
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"
784         sleep 5
785 fi
786
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.
790
791 # ATTENTION: Parts of this are duplicated in the "triggerpostun" !
792
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 ]
796 then
797   mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
798 fi
799 if [ -z "$mysql_datadir" ]
800 then
801   mysql_datadir=%{mysqldatadir}
802 fi
803
804 NEW_VERSION=%{mysql_version}-%{release}
805 STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
806
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-`
813 else
814         SERVER_TO_START=''
815 fi
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
820 else
821         # If the directory exists, we may assume it is an upgrade.
822         echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE
823 fi
824
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
836 fi
837
838 # ----------------------------------------------------------------------
839 # Create a MySQL user and group. Do not report any problems if it already
840 # exists.
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
846 # (BUG#12823)
847 usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
848
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
854
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
863
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"!
869 fi
870
871 # ----------------------------------------------------------------------
872 # Upgrade databases if needed would go here - but it cannot be automated yet
873 # ----------------------------------------------------------------------
874
875 # ----------------------------------------------------------------------
876 # Change permissions again to fix any new files.
877 # ----------------------------------------------------------------------
878 chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
879
880 # ----------------------------------------------------------------------
881 # Fix permissions for the permission database so that only the user
882 # can read them.
883 # ----------------------------------------------------------------------
884 chmod -R og-rw $mysql_datadir/mysql
885
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
895   echo
896   echo
897   echo 'Notes regarding SELinux on this platform:'
898   echo '========================================='
899   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.'
903   echo
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:'
907   echo
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:'
913   echo '       make load'
914   echo
915   echo
916 fi
917
918 if [ -x sbin/restorecon ] ; then
919   sbin/restorecon -R var/lib/mysql
920 fi
921
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"
928                 sleep 5
929         fi
930 fi
931
932 # Collect an upgrade history ...
933 echo "Upgrade/install finished at `date`"        >> $STATUS_FILE
934 echo                                             >> $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"
939
940
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
945 #information."
946
947 %preun -n mysql-wsrep-server%{product_suffix}
948
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.
951 #   Action                           Count
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 "
955 #
956 #  http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
957
958 if [ $1 = 0 ] ; then
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
969                 fi
970         fi
971 fi
972
973 # We do not remove the mysql user since it may still own a lot of
974 # database files.
975
976 %triggerpostun -n mysql-wsrep-server%{product_suffix} --MySQL-server-community
977
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.
986 #
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.
990
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 ]
994 then
995   mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
996 fi
997 if [ -z "$mysql_datadir" ]
998 then
999   mysql_datadir=%{mysqldatadir}
1000 fi
1001
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
1005
1006 if [ -f $STATUS_FILE ] ; then
1007         SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
1008 else
1009         # This should never happen, but let's be prepared
1010         SERVER_TO_START=''
1011 fi
1012 echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
1013
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
1019 fi
1020
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"
1027                 sleep 5
1028         fi
1029 fi
1030
1031 echo "Trigger 'postun --community' finished at `date`"        >> $STATUS_HISTORY
1032 echo                                             >> $STATUS_HISTORY
1033 echo "====="                                     >> $STATUS_HISTORY
1034
1035
1036 # ----------------------------------------------------------------------
1037 # Clean up the BuildRoot after build is done
1038 # ----------------------------------------------------------------------
1039 %clean
1040 [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
1041   && rm -rf $RPM_BUILD_ROOT;
1042
1043 ##############################################################################
1044 #  Files section
1045 ##############################################################################
1046
1047 %files -n mysql-wsrep%{product_suffix}
1048 # Intentionally empty - this is a pure meta package.
1049
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}
1055 %endif
1056 %doc Docs/ChangeLog
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
1063
1064 %if 0%{?commercial}
1065 %doc %attr(644, root, root) %{_infodir}/mysql.info*
1066 %endif
1067
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*
1096
1097 %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
1098 %ghost %config(noreplace,missingok) %{_sysconfdir}/wsrep.cnf
1099 %dir %{_sysconfdir}/my.cnf.d
1100
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
1132
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
1139
1140 %if %{WITH_TCMALLOC}
1141 %attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
1142 %endif
1143
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
1148
1149 # ----------------------------------------------------------------------------
1150 %files -n mysql-wsrep-client%{product_suffix}
1151
1152 %defattr(-, root, root, 0755)
1153 %if %{defined license_files_server}
1154 %doc %{license_files_server}
1155 %endif
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
1171
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*
1185
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}
1191 %endif
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
1202
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}
1208 %endif
1209 # Shared libraries (omit for architectures that don't support them)
1210 %{_libdir}/libmysql*.so*
1211
1212 %post -n mysql-wsrep-shared%{product_suffix}
1213 /sbin/ldconfig
1214
1215 %postun -n mysql-wsrep-shared%{product_suffix}
1216 /sbin/ldconfig
1217
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}
1223 %endif
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*
1231
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
1235 # merging BK trees)
1236 ##############################################################################
1237 %changelog
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
1240
1241 * Thu Sep 24 2015 Ivan Suzdal <isuzdal@mirantis.com> - 5.6.23-25.10%{?dist}~mos8.0.1
1242 - Bump release version
1243
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.
1247
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.
1253
1254 * Tue Jan 20 2015 Teemu Ollakka <teemu.ollakka@galeracluster.com>
1255
1256 - Reworked to build wsrep patched packages exclusively
1257 - OBS compatible
1258
1259 * Mon Oct 06 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1260 - Add license info in each subpackage
1261
1262 * Wed May 28 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1263 - Updated usergroup to mysql on datadir
1264
1265 * Wed Oct 30 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1266 - Removed non gpl file docs/mysql.info from community packages
1267
1268 * Mon Sep 09 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1269 - Updated logic to get the correct count of PID files
1270
1271 * Fri Aug 16 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1272 - Added provides lowercase mysql tags
1273
1274 * Wed Jun 26 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1275 - Cleaned up spec file to resolve rpm dependencies.
1276
1277 * Mon Nov 05 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1278
1279 - Allow to override the default to use the bundled yaSSL by an option like
1280       --define="with_ssl /path/to/ssl"
1281
1282 * Wed Oct 10 2012 Bjorn Munch <bjorn.munch@oracle.com>
1283
1284 - Replace old my-*.cnf config file examples with template my-default.cnf
1285
1286 * Fri Oct 05 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1287
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).
1292
1293 * Tue Jul 24 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1294
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!
1300
1301 * Mon Jul 16 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1302
1303 - Add the man page for the "mysql_config_editor".
1304
1305 * Mon Jun 11 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1306
1307 - Make sure newly added "SPECIFIC-ULN/" directory does not disturb packaging.
1308
1309 * Wed Feb 29 2012 Brajmohan Saxena <brajmohan.saxena@oracle.com>
1310
1311 - Removal all traces of the readline library from mysql (BUG 13738013)
1312
1313 * Wed Sep 28 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1314
1315 - Fix duplicate mentioning of "mysql_plugin" and its manual page,
1316   it is better to keep alphabetic order in the files list (merging!).
1317
1318 * Wed Sep 14 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1319
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:"
1327
1328 * Tue Sep 13 2011 Jonathan Perkin <jonathan.perkin@oracle.com>
1329
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.
1334
1335 * Tue Sep 13 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1336
1337 - "make_win_bin_dist" and its manual are dropped, cmake does it different.
1338
1339 * Thu Sep 08 2011 Daniel Fischer <daniel.fischer@oracle.com>
1340
1341 - Add mysql_plugin man page.
1342
1343 * Tue Aug 30 2011 Tor Didriksen <tor.didriksen@oracle.com>
1344
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
1348
1349 * Tue Aug 30 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1350
1351 - Add the manual page for "mysql_plugin" to the server package.
1352
1353 * Fri Aug 19 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1354
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}".
1357
1358 * Fri Aug 12 2011 Daniel Fischer <daniel.fischer@oracle.com>
1359
1360 - Source plugin library files list from cmake-generated file.
1361
1362 * Mon Jul 25 2011 Chuck Bell <chuck.bell@oracle.com>
1363
1364 - Added the mysql_plugin client - enables or disables plugins.
1365
1366 * Thu Jul 21 2011 Sunanda Menon <sunanda.menon@oracle.com>
1367
1368 - Fix bug#12561297: Added the MySQL embedded binary
1369
1370 * Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1371
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".
1376
1377 * Thu Feb 10 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1378
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.
1383
1384 * Mon Jan 31 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1385
1386 - Install the new "manifest" files: "INFO_SRC" and "INFO_BIN".
1387
1388 * Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1389
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.
1393
1394 * Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1395
1396 - Added test authentication (WL#1054) plugin binaries
1397
1398 * Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1399
1400 - Added example external authentication (WL#1054) plugin binaries
1401
1402 * Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
1403
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".
1408
1409 * Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1410
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).
1419
1420 * Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1421
1422 - Implement SELinux checks from distribution-specific spec file.
1423
1424 * Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1425
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
1431   unpackaged files
1432 - Remove cluster RPMs
1433
1434 * Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1435
1436 - Add "--with-perfschema" to the configure options.
1437
1438 * Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1439
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.
1443
1444 * Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1445
1446 - Fix a wrong path name in handling the debug plugins.
1447
1448 * Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1449
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.
1453
1454 * Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1455
1456 - Set "Oracle and/or its affiliates" as the vendor and copyright owner,
1457   accept upgrading from packages showing MySQL or Sun as vendor.
1458
1459 * Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1460
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
1466   over "CC" ("CXX").
1467 - Drop the old "with_static" argument analysis, this is not supported
1468   in 5.1 since ages.
1469 - Introduce variables to control the handlers individually, as well
1470   as other options.
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".
1478
1479 * Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1480
1481 - Change RPM file naming:
1482   - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
1483   - Release counts from 1, not 0.
1484
1485 * Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1486
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).
1492
1493 * Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1494
1495 - Fix some problems with the directives around "tcmalloc" (experimental),
1496   remove erroneous traces of the InnoDB plugin (that is 5.1 only).
1497
1498 * Fri Oct 09 2009 Magnus Blaudd <mvensson@mysql.com>
1499
1500 - Removed mysql_fix_privilege_tables
1501
1502 * Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
1503
1504 - "mysqlmanager" got removed from version 5.4, all references deleted.
1505
1506 * Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1507
1508 - Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
1509
1510 * Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1511
1512 - This version does not contain the "Instance manager", "mysqlmanager":
1513   Remove it from the spec file so that packaging succeeds.
1514
1515 * Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
1516
1517 - Add conditionals for bundled zlib and innodb plugin
1518
1519 * Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
1520
1521 - Install plugin libraries in appropriate packages.
1522 - Disable libdaemon_example and ftexample plugins.
1523
1524 * Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
1525
1526 - Update variable used for mysql-test suite location to match source.
1527
1528 * Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
1529
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.
1532
1533 * Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
1534
1535 - Removed "mysql_upgrade_shell"
1536 - Removed some copy/paste between debug and normal build
1537
1538 * Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
1539
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.
1542
1543 * Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
1544
1545 - Removed the "Federated" storage engine option, and enabled in all
1546
1547 * Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
1548
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)
1560
1561 * Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
1562
1563 - Made the "Federated" storage engine an option
1564 - Made the "Cluster" storage engine and sub packages an option
1565
1566 * Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
1567
1568 - Add the man pages for "ndbd" and "ndb_mgmd".
1569
1570 * Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
1571
1572 - Require a manual upgrade if the alread-installed mysql-server is
1573   from another vendor, or is of a different major version.
1574
1575 * Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
1576
1577 - "ndb_size.tmpl" is not needed any more,
1578   "man1/mysql_install_db.1" lacked the trailing '*'.
1579
1580 * Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
1581
1582 - Removed man page for "mysql_create_system_tables"
1583
1584 * Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
1585
1586 - Add debug server.
1587
1588 * Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
1589
1590 - Remove Max RPMs; the server RPMs contain a mysqld compiled with all
1591   features that previously only were built into Max.
1592
1593 * Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
1594
1595 - Add several man pages for NDB which are now created.
1596
1597 * Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
1598
1599 - Put back "libmygcc.a", found no real reason it was removed.
1600
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.
1603
1604 * Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
1605
1606 - Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
1607
1608 * Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
1609
1610 - Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
1611   in the server RPM.
1612 - The "mysqlmanager" man page got moved from section 1 to 8.
1613
1614 * Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
1615
1616 - Call "make install" using "benchdir_root=%%{_datadir}",
1617   because that is affecting the regression test suite as well.
1618
1619 * Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
1620
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
1623   (bug#22081).
1624
1625 * Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
1626
1627 - Add "--with-partition" to all server builds.
1628
1629 - Use "--report-features" in one test run per server build.
1630
1631 * Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com>
1632
1633 - The "max" server is removed from packages, effective from 5.1.12-beta.
1634   Delete all steps to build, package, or install it.
1635
1636 * Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
1637
1638 - Fix a typing error in the "make" target for the Perl script to run the tests.
1639
1640 * Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
1641
1642 - Use the Perl script to run the tests, because it will automatically check
1643   whether the server is configured with SSL.
1644
1645 * Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
1646
1647 - move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
1648
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.
1652
1653 * Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
1654
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.
1658
1659 * Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
1660
1661 - To run "mysql_upgrade", we need a running server;
1662   start it in isolation and skip password checks.
1663
1664 * Sat May 20 2006 Kent Boortz <kent@mysql.com>
1665
1666 - Always compile for PIC, position independent code.
1667
1668 * Wed May 10 2006 Kent Boortz <kent@mysql.com>
1669
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.
1673
1674 * Mon May 01 2006 Kent Boortz <kent@mysql.com>
1675
1676 - Use "./libtool --mode=execute" instead of searching for the
1677   executable in current directory and ".libs".
1678
1679 * Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
1680
1681 - Install and run "mysql_upgrade"
1682
1683 * Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
1684
1685 - Remove sql-bench, and MySQL-bench RPM (will be built as an independent
1686   project from the mysql-bench repository)
1687
1688 * Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
1689
1690 - Remove old mysqltestmanager and related programs
1691 * Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
1692
1693 - Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
1694
1695 * Wed Mar 08 2006 Kent Boortz <kent@mysql.com>
1696
1697 - Changed product name from "Community Edition" to "Community Server"
1698
1699 * Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
1700
1701 - Fast mutexes is now disabled by default, but should be
1702   used in Linux builds.
1703
1704 * Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
1705
1706 - Reintroduced a max build
1707 - Limited testing of 'debug' and 'max' servers
1708 - Berkeley DB only in 'max'
1709
1710 * Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
1711
1712 - Use "-i" on "make test-force";
1713   this is essential for later evaluation of this log file.
1714
1715 * Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
1716
1717 - Pass '-static' to libtool, link static with our own libraries, dynamic
1718   with system libraries.  Link with the bundled zlib.
1719
1720 * Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
1721
1722 - Modified RPM spec to match new 5.1 debug+max combined community packaging.
1723
1724 * Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
1725
1726 - Added "client/mysqlslap"
1727
1728 * Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
1729
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"
1734
1735 * Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
1736
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.)
1741
1742 * Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
1743
1744 - Extend the file existence check for "init.d/mysql" on un-install
1745   to also guard the call to "insserv"/"chkconfig".
1746
1747 * Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
1748
1749 - added more man pages
1750
1751 * Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1752
1753 - Made yaSSL support an option (off by default)
1754
1755 * Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1756
1757 - Enabled yaSSL support
1758
1759 * Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
1760
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
1764
1765 * Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1766
1767 - For 5.x, always compile with --with-big-tables
1768 - Copy the config.log file to location outside
1769   the build tree
1770
1771 * Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1772
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"
1778
1779 * Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
1780
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.
1787
1788 * Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
1789
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)
1792
1793 * Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
1794
1795 - Fixed the creation of the mysql user group account in the postinstall
1796   section (BUG 12348)
1797 - Fixed enabling the Archive storage engine in the Max binary
1798
1799 * Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
1800
1801 - Fixed the Requires: tag for the server RPM (BUG 12233)
1802
1803 * Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
1804
1805 - create a "mysql" user group and assign the mysql user account to that group
1806   in the server postinstall section. (BUG 10984)
1807
1808 * Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
1809
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
1813   glibc 2.2.5.
1814
1815 * Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
1816
1817 - added mysql_client_test to the "bench" subpackage (BUG 10676)
1818 - added the libndbclient static and shared libraries (BUG 10676)
1819
1820 * Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
1821
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
1826
1827 * Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
1828
1829 - Added a "make clean" between separate calls to "BuildMySQL".
1830
1831 * Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
1832
1833 - Removed the mysql_tableinfo script made obsolete by the information schema
1834
1835 * Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
1836
1837 - Enabled the "blackhole" storage engine for the Max RPM
1838
1839 * Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
1840
1841 - removed the MySQL manual files (html/ps/texi) - they have been removed
1842   from the MySQL sources and are now available seperately.
1843
1844 * Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
1845
1846 - old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
1847   mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
1848
1849 * Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
1850
1851 - Disabled RAID in the Max binaries once and for all (it has finally been
1852   removed from the source tree)
1853
1854 * Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
1855
1856 - Install MySQL Instance Manager together with mysqld, touch mysqlmanager
1857   password file
1858
1859 * Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
1860
1861 - Fixed the compilation comments and moved them into the separate build sections
1862   for Max and Standard
1863
1864 * Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
1865
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
1869
1870 * Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
1871
1872 - replaced obsoleted "BuildPrereq" with "BuildRequires" instead
1873
1874 * Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
1875
1876 - enabled the "Federated" storage engine for the max binary
1877
1878 * Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
1879
1880 - ISAM and merge storage engines were purged. As well as appropriate
1881   tools and manpages (isamchk and isamlog)
1882
1883 * Fri Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
1884
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
1888
1889 * Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1890
1891 - MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1892
1893 * Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1894
1895 - do not link statically on IA64/AMD64 as these systems do not have
1896   a patched glibc installed
1897
1898 * Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1899
1900 - Added libmygcc.a to the devel subpackage (required to link applications
1901   against the the embedded server libmysqld.a) (BUG 4921)
1902
1903 * Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1904
1905 - Added EXCEPTIONS-CLIENT to the "devel" package
1906
1907 * Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1908
1909 - disabled OpenSSL in the Max binaries again (the RPM packages were the
1910   only exception to this anyway) (BUG 1043)
1911
1912 * Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1913
1914 - fixed server postinstall (mysql_install_db was called with the wrong
1915   parameter)
1916
1917 * Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1918
1919 - added mysql_tzinfo_to_sql to the server subpackage
1920 - run "make clean" instead of "make distclean"
1921
1922 * Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1923
1924 - added ncurses-devel to the build prerequisites (BUG 3377)
1925
1926 * Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1927
1928 - when using gcc, _always_ use CXX=gcc
1929 - replaced Copyright with License field (Copyright is obsolete)
1930
1931 * Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1932
1933 - added myisam_ftdump to the Server package
1934
1935 * Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1936
1937 - link the mysql client against libreadline instead of libedit (BUG 2289)
1938
1939 * Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1940
1941 - marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1942
1943 * Fri Dec 12 2003 Lenz Grimmer <lenz@mysql.com>
1944
1945 - fixed file permissions (BUG 1672)
1946
1947 * Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1948
1949 - made testing for gcc3 a bit more robust
1950
1951 * Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1952
1953 - added missing file mysql_create_system_tables to the server subpackage
1954
1955 * Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1956
1957 - removed dependency on MySQL-client from the MySQL-devel subpackage
1958   as it is not really required. (BUG 1610)
1959
1960 * Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1961
1962 - Fixed BUG 1162 (removed macro names from the changelog)
1963 - Really fixed BUG 998 (disable the checking for installed but
1964   unpackaged files)
1965
1966 * Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
1967
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.
1972
1973 * Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
1974
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)
1984
1985 * Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1986
1987 - re-enabled RAID again
1988
1989 * Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1990
1991 - disabled MyISAM RAID (--with-raid) - it throws an assertion which
1992   needs to be investigated first.
1993
1994 * Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1995
1996 - added missing file mysql_secure_installation to server subpackage
1997   (BUG 141)
1998
1999 * Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
2000
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
2004
2005 * Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
2006
2007 - removed unused CC and CXX variables
2008 - CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
2009
2010 * Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
2011
2012 - renamed package "MySQL" to "MySQL-server"
2013 - fixed Copyright tag
2014 - added mysql_waitpid to client subpackage (required for mysql-test-run)
2015
2016 * Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
2017
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
2022   separately
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
2026
2027 * Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
2028
2029 - MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
2030   (mixing 3.23 and 4.0 packages)
2031
2032 * Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
2033
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
2038
2039 * Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
2040
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
2048
2049 * Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
2050
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
2055
2056 * Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
2057
2058 - Use more RPM macros (e.g. infodir, mandir) to make the spec
2059   file more portable
2060 - reorganized the installation of documentation files: let RPM
2061   take care of this
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
2067
2068 * Mon Oct  8 2001 Monty
2069
2070 - Added embedded server as a separate RPM
2071
2072 * Fri Apr 13 2001 Monty
2073
2074 - Added mysqld-max to the distribution
2075
2076 * Tue Jan 2  2001  Monty
2077
2078 - Added mysql-test to the bench package
2079
2080 * Fri Aug 18 2000 Tim Smith <tim@mysql.com>
2081
2082 - Added separate libmysql_r directory; now both a threaded
2083   and non-threaded library is shipped.
2084
2085 * Wed Sep 29 1999 David Axmark <davida@mysql.com>
2086
2087 - Added the support-files/my-example.cnf to the docs directory.
2088
2089 - Removed devel dependency on base since it is about client
2090   development.
2091
2092 * Wed Sep 8 1999 David Axmark <davida@mysql.com>
2093
2094 - Cleaned up some for 3.23.
2095
2096 * Thu Jul 1 1999 David Axmark <davida@mysql.com>
2097
2098 - Added support for shared libraries in a separate sub
2099   package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
2100
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.
2104
2105 * Mon Feb 22 1999 David Axmark <david@detron.se>
2106
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
2110   specific) switches.
2111
2112 - Removed the repetitive description parts for the sub rpms. Maybe add
2113   again if RPM gets a multiline macro capability.
2114
2115 - Added support for a pt_BR translation. Translation contributed by
2116   Jorge Godoy <jorge@bestway.com.br>.
2117
2118 * Wed Nov 4 1998 David Axmark <david@detron.se>
2119
2120 - A lot of changes in all the rpm and install scripts. This may even
2121   be a working RPM :-)
2122
2123 * Sun Aug 16 1998 David Axmark <david@detron.se>
2124
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.