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.24
29
%global mysqld_user mysql
30
%global mysqld_group mysql
31
%global mysqldatadir /var/lib/mysql
37
# Macros we use which are not available in all supported versions of RPM
39
# - defined/undefined are missing on RHEL4
41
%if %{expand:%{?defined:0}%{!?defined:1}}
42
%define defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
44
%if %{expand:%{?undefined:0}%{!?undefined:1}}
45
%define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
48
# ----------------------------------------------------------------------------
49
# RPM build tools now automatically detect Perl module dependencies. This
50
# detection causes problems as it is broken in some versions, and it also
51
# provides unwanted dependencies from mandatory scripts in our package.
52
# It might not be possible to disable this in all versions of RPM, but here we
53
# try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as
54
# disabling here might fail, and that package has the most problems.
56
# http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides
57
# http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html
58
# ----------------------------------------------------------------------------
59
%undefine __perl_provides
60
%undefine __perl_requires
62
##############################################################################
63
# Command line handling
64
##############################################################################
68
# $ rpmbuild --define="option <x>" ...
71
# ----------------------------------------------------------------------------
73
# ----------------------------------------------------------------------------
74
%if %{undefined commercial}
78
# ----------------------------------------------------------------------------
80
# ----------------------------------------------------------------------------
81
%if %{undefined src_base}
82
%define src_base mysql
84
%define src_dir %{src_base}-%{mysql_version}
86
# ----------------------------------------------------------------------------
87
# Feature set (storage engines, options). Default to community (everything)
88
# ----------------------------------------------------------------------------
89
%if %{undefined feature_set}
90
%define feature_set community
93
# ----------------------------------------------------------------------------
94
# Server comment strings
95
# ----------------------------------------------------------------------------
96
%if %{undefined compilation_comment_debug}
97
%define compilation_comment_debug MySQL Community Server - Debug (GPL)
99
%if %{undefined compilation_comment_release}
100
%define compilation_comment_release MySQL Community Server (GPL)
103
# ----------------------------------------------------------------------------
104
# Product and server suffixes
105
# ----------------------------------------------------------------------------
106
%if %{undefined product_suffix}
107
%if %{defined short_product_tag}
108
%define product_suffix -%{short_product_tag}
110
%define product_suffix %{nil}
114
%if %{undefined server_suffix}
115
%define server_suffix %{nil}
118
# ----------------------------------------------------------------------------
119
# Distribution support
120
# ----------------------------------------------------------------------------
121
%if %{undefined distro_specific}
122
%define distro_specific 0
124
%if %{distro_specific}
125
%if %(test -f /etc/enterprise-release && echo 1 || echo 0)
126
%define oelver %(rpm -qf --qf '%%{version}\\n' /etc/enterprise-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
128
%define distro_description Oracle Enterprise Linux 4
129
%define distro_releasetag oel4
130
%define distro_buildreq gcc-c++ gperf ncurses-devel perl time zlib-devel cmake libaio-devel
131
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
134
%define distro_description Oracle Enterprise Linux 5
135
%define distro_releasetag oel5
136
%define distro_buildreq gcc-c++ gperf ncurses-devel perl time zlib-devel cmake libaio-devel
137
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
139
%{error:Oracle Enterprise Linux %{oelver} is unsupported}
143
%if %(test -f /etc/oracle-release && echo 1 || echo 0)
144
%define elver %(rpm -qf --qf '%%{version}\\n' /etc/oracle-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
145
%if "%elver" == "6" || "%elver" == "7"
146
%define distro_description Oracle Linux %elver
147
%define distro_releasetag el%elver
148
%define distro_buildreq gcc-c++ ncurses-devel perl time zlib-devel cmake libaio-devel
149
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
151
%{error:Oracle Linux %{elver} is unsupported}
154
%if %(test -f /etc/redhat-release && echo 1 || echo 0)
155
%define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
156
%if "%rhelver" == "4"
157
%define distro_description Red Hat Enterprise Linux 4
158
%define distro_releasetag rhel4
159
%define distro_buildreq gcc-c++ gperf ncurses-devel perl time zlib-devel cmake libaio-devel
160
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
162
%if "%rhelver" == "5"
163
%define distro_description Red Hat Enterprise Linux 5
164
%define distro_releasetag rhel5
165
%define distro_buildreq gcc-c++ gperf ncurses-devel perl time zlib-devel cmake libaio-devel
166
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
168
%if "%rhelver" == "6"
169
%define distro_description Red Hat Enterprise Linux 6
170
%define distro_releasetag rhel6
171
%define distro_buildreq gcc-c++ ncurses-devel perl time zlib-devel cmake libaio-devel
172
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
174
%{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
179
%if %(test -f /etc/SuSE-release && echo 1 || echo 0)
180
%define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release | cut -d. -f1)
181
%if "%susever" == "10"
182
%define distro_description SUSE Linux Enterprise Server 10
183
%define distro_releasetag sles10
184
%define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client zlib-devel cmake libaio-devel
185
%define distro_requires aaa_base coreutils grep procps pwdutils
187
%if "%susever" == "11"
188
%define distro_description SUSE Linux Enterprise Server 11
189
%define distro_releasetag sles11
190
%define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils zlib-devel cmake libaio-devel
191
%define distro_requires aaa_base coreutils grep procps pwdutils
193
%{error:SuSE %{susever} is unsupported}
197
%{error:Unsupported distribution}
203
%define glibc_version %(/lib/libc.so.6 | grep stable | cut -d, -f1 | cut -c38-)
204
%define distro_description Generic Linux (glibc %{glibc_version})
205
%define distro_releasetag linux_glibc%{glibc_version}
206
%define distro_buildreq gcc-c++ gperf ncurses-devel perl time zlib-devel
207
%define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
210
# Avoid debuginfo RPMs, leaves binaries unstripped
211
%define debug_package %{nil}
213
# Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
214
# test for __debug_package
215
%define __strip /bin/true
217
# ----------------------------------------------------------------------------
218
# Support optional "tcmalloc" library (experimental)
219
# ----------------------------------------------------------------------------
220
%if %{defined malloc_lib_target}
221
%define WITH_TCMALLOC 1
223
%define WITH_TCMALLOC 0
226
##############################################################################
227
# Configuration based upon above user input, not to be set directly
228
##############################################################################
231
%define license_files_server %{src_dir}/LICENSE.mysql
232
%define license_type Commercial
234
%define license_files_server %{src_dir}/COPYING %{src_dir}/README
235
%define license_type GPL
238
##############################################################################
239
# Main spec file section
240
##############################################################################
242
Name: MySQL%{product_suffix}
243
Summary: MySQL: a very fast and reliable SQL database server
244
Group: Applications/Databases
246
Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}
247
Distribution: %{distro_description}
248
License: Copyright (c) 2000, 2015, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
249
Source: http://www.mysql.com/Downloads/MySQL-5.6/%{src_dir}.tar.gz
250
URL: http://www.mysql.com/
251
Packager: MySQL Release Engineering <mysql-build@oss.oracle.com>
252
Vendor: %{mysql_vendor}
253
BuildRequires: %{distro_buildreq}
255
# Regression tests may take a long time, override the default to skip them
256
%{!?runselftest:%global runselftest 1}
258
# Think about what you use here since the first step is to
260
BuildRoot: %{_tmppath}/%{name}-%{version}-build
264
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
265
and robust SQL (Structured Query Language) database server. MySQL Server
266
is intended for mission-critical, heavy-load production systems as well
267
as for embedding into mass-deployed software. MySQL is a trademark of
270
The MySQL software has Dual Licensing, which means you can use the MySQL
271
software free of charge under the GNU General Public License
272
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
273
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
274
the GPL. See the chapter "Licensing and Support" in the manual for
277
The MySQL web site (http://www.mysql.com/) provides the latest
278
news and information about the MySQL software. Also please see the
279
documentation and the manual for more information.
281
##############################################################################
282
# Sub package definition
283
##############################################################################
285
%package -n MySQL-server%{product_suffix}
286
Summary: MySQL: a very fast and reliable SQL database server
287
Group: Applications/Databases
288
Requires: %{distro_requires}
290
Obsoletes: MySQL-server
292
Obsoletes: MySQL-server-advanced
294
Obsoletes: mysql-server < %{version}-%{release}
295
Obsoletes: mysql-server-advanced
296
Obsoletes: MySQL-server-classic MySQL-server-community MySQL-server-enterprise
297
Obsoletes: MySQL-server-advanced-gpl MySQL-server-enterprise-gpl
298
Provides: mysql-server = %{version}-%{release}
299
Provides: mysql-server%{?_isa} = %{version}-%{release}
301
%description -n MySQL-server%{product_suffix}
302
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
303
and robust SQL (Structured Query Language) database server. MySQL Server
304
is intended for mission-critical, heavy-load production systems as well
305
as for embedding into mass-deployed software. MySQL is a trademark of
308
The MySQL software has Dual Licensing, which means you can use the MySQL
309
software free of charge under the GNU General Public License
310
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
311
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
312
the GPL. See the chapter "Licensing and Support" in the manual for
315
The MySQL web site (http://www.mysql.com/) provides the latest news and
316
information about the MySQL software. Also please see the documentation
317
and the manual for more information.
319
This package includes the MySQL server binary as well as related utilities
320
to run and administer a MySQL server.
322
If you want to access and work with the database, you have to install
323
package "MySQL-client%{product_suffix}" as well!
325
# ----------------------------------------------------------------------------
326
%package -n MySQL-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}
341
%description -n MySQL-client%{product_suffix}
342
This package contains the standard MySQL clients and administration tools.
344
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
346
# ----------------------------------------------------------------------------
347
%package -n MySQL-test%{product_suffix}
348
Summary: MySQL - Test suite
349
Group: Applications/Databases
351
Requires: MySQL-client-advanced perl
352
Obsoletes: MySQL-test
354
Requires: MySQL-client perl
355
Obsoletes: MySQL-test-advanced
357
Obsoletes: mysql-test < %{version}-%{release}
358
Obsoletes: mysql-test-advanced
359
Obsoletes: MySQL-test-classic MySQL-test-community MySQL-test-enterprise
360
Obsoletes: MySQL-test-advanced-gpl MySQL-test-enterprise-gpl
361
Provides: mysql-test = %{version}-%{release}
362
Provides: mysql-test%{?_isa} = %{version}-%{release}
365
%description -n MySQL-test%{product_suffix}
366
This package contains the MySQL regression test suite.
368
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
370
# ----------------------------------------------------------------------------
371
%package -n MySQL-devel%{product_suffix}
372
Summary: MySQL - Development header files and libraries
373
Group: Applications/Databases
375
Obsoletes: MySQL-devel
377
Obsoletes: MySQL-devel-advanced
379
Obsoletes: mysql-devel < %{version}-%{release}
380
Obsoletes: mysql-embedded-devel mysql-devel-advanced mysql-embedded-devel-advanced
381
Obsoletes: MySQL-devel-classic MySQL-devel-community MySQL-devel-enterprise
382
Obsoletes: MySQL-devel-advanced-gpl MySQL-devel-enterprise-gpl
383
Provides: mysql-devel = %{version}-%{release}
384
Provides: mysql-devel%{?_isa} = %{version}-%{release}
386
%description -n MySQL-devel%{product_suffix}
387
This package contains the development header files and libraries necessary
388
to develop MySQL client applications.
390
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
392
# ----------------------------------------------------------------------------
393
%package -n MySQL-shared%{product_suffix}
394
Summary: MySQL - Shared libraries
395
Group: Applications/Databases
397
Obsoletes: MySQL-shared
399
Obsoletes: MySQL-shared-advanced
401
Obsoletes: MySQL-shared-standard MySQL-shared-pro
402
Obsoletes: MySQL-shared-pro-cert MySQL-shared-pro-gpl
403
Obsoletes: MySQL-shared-pro-gpl-cert
404
Obsoletes: MySQL-shared-classic MySQL-shared-community MySQL-shared-enterprise
405
Obsoletes: MySQL-shared-advanced-gpl MySQL-shared-enterprise-gpl
407
%description -n MySQL-shared%{product_suffix}
408
This package contains the shared libraries (*.so*) which certain languages
409
and applications need to dynamically load and use MySQL.
411
# ----------------------------------------------------------------------------
412
%package -n MySQL-embedded%{product_suffix}
413
Summary: MySQL - Embedded library
414
Group: Applications/Databases
416
Requires: MySQL-devel-advanced
417
Obsoletes: MySQL-embedded
419
Requires: MySQL-devel
420
Obsoletes: MySQL-embedded-advanced
422
Obsoletes: mysql-embedded < %{version}-%{release}
423
Obsoletes: mysql-embedded-advanced
424
Obsoletes: MySQL-embedded-pro
425
Obsoletes: MySQL-embedded-classic MySQL-embedded-community MySQL-embedded-enterprise
426
Obsoletes: MySQL-embedded-advanced-gpl MySQL-embedded-enterprise-gpl
427
Provides: mysql-embedded = %{version}-%{release}
428
Provides: mysql-emdedded%{?_isa} = %{version}-%{release}
430
%description -n MySQL-embedded%{product_suffix}
431
This package contains the MySQL server as an embedded library.
433
The embedded MySQL server library makes it possible to run a full-featured
434
MySQL server inside the client application. The main benefits are increased
435
speed and more simple management for embedded applications.
437
The API is identical for the embedded MySQL version and the
438
client/server version.
440
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
442
##############################################################################
444
%setup -T -a 0 -c -n %{src_dir}
445
##############################################################################
448
# Fail quickly and obviously if user tries to build as root
450
if [ x"`id -u`" = x0 ]; then
451
echo "The MySQL regression tests may fail if run as root."
452
echo "If you really need to build the RPM as root, use"
453
echo "--define='runselftest 0' to skip the regression tests."
458
# Be strict about variables, bail at earliest opportunity, etc.
461
# Optional package files
462
touch optional-files-devel
465
# Set environment in order of preference, MYSQL_BUILD_* first, then variable
466
# name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the
467
# default RPM build environment.
470
# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
471
# the compile in cmd-line-utils/libedit - needs investigation, but for now
472
# we simply unset it and use those specified directly in cmake.
473
%if "%{_arch}" == "ia64"
477
export PATH=${MYSQL_BUILD_PATH:-$PATH}
478
export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
479
export CXX=${MYSQL_BUILD_CXX:-${CXX:-g++}}
480
export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
481
export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors}}
482
export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
483
export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
484
export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-}
486
# By default, a build will include the bundeled "yaSSL" library for SSL.
487
# However, there may be a need to override.
488
# Protect against undefined variables if there is no override option.
489
%if %{undefined with_ssl}
490
%define ssl_option %{nil}
492
%define ssl_option -DWITH_SSL=%{with_ssl}
495
# Build debug mysqld and libmysqld.a
499
# Attempt to remove any optimisation flags from the debug build
500
CFLAGS=`echo " ${CFLAGS} " | \
501
sed -e 's/ -O[0-9]* / /' \
502
-e 's/-Wp,-D_FORTIFY_SOURCE=2/ /' \
503
-e 's/ -unroll2 / /' \
507
CXXFLAGS=`echo " ${CXXFLAGS} " | \
508
sed -e 's/ -O[0-9]* / /' \
509
-e 's/-Wp,-D_FORTIFY_SOURCE=2/ /' \
510
-e 's/ -unroll2 / /' \
514
# XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
515
# XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
516
${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
517
-DCMAKE_BUILD_TYPE=Debug \
518
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
519
-DFEATURE_SET="%{feature_set}" \
521
-DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
522
-DMYSQL_SERVER_SUFFIX="%{server_suffix}"
523
echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
524
make ${MAKE_JFLAG} VERBOSE=1
530
# XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
531
# XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
532
${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
533
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
534
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
535
-DFEATURE_SET="%{feature_set}" \
537
-DCOMPILATION_COMMENT="%{compilation_comment_release}" \
538
-DMYSQL_SERVER_SUFFIX="%{server_suffix}"
539
echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
540
make ${MAKE_JFLAG} VERBOSE=1
544
MTR_BUILD_THREAD=auto
545
export MTR_BUILD_THREAD
547
(cd release && make test-bt-fast || true)
550
##############################################################################
554
MBD=$RPM_BUILD_DIR/%{src_dir}
556
# Ensure that needed directories exists
557
install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
558
install -d $RBR%{mysqldatadir}/mysql
559
install -d $RBR%{_datadir}/mysql-test
560
install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
561
install -d $RBR%{_includedir}
562
install -d $RBR%{_libdir}
563
install -d $RBR%{_mandir}
564
install -d $RBR%{_sbindir}
566
mkdir -p $RBR%{_sysconfdir}/my.cnf.d
568
# Install all binaries
571
make DESTDIR=$RBR install
574
# FIXME: at some point we should stop doing this and just install everything
575
# FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming
576
# FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
577
mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
579
# Install logrotate and autostart
580
install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
581
install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
583
# Create a symlink "rcmysql", pointing to the init.script. SuSE users
584
# will appreciate that, as all services usually offer this.
585
ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
587
# Touch the place where the my.cnf config file might be located
588
# Just to make sure it's in the file list and marked as a config file
589
touch $RBR%{_sysconfdir}/my.cnf
591
# Install SELinux files in datadir
592
install -m 600 $MBD/%{src_dir}/support-files/RHEL4-SElinux/mysql.{fc,te} \
593
$RBR%{_datadir}/mysql/SELinux/RHEL4
596
# Even though this is a shared library, put it under /usr/lib*/mysql, so it
597
# doesn't conflict with possible shared lib by the same name in /usr/lib*. See
598
# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
599
install -m 644 "%{malloc_lib_source}" \
600
"$RBR%{_libdir}/mysql/%{malloc_lib_target}"
603
# Remove man pages we explicitly do not want to package, avoids 'unpackaged
605
# This has become obsolete: rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
607
##############################################################################
608
# Post processing actions, i.e. when installed
609
##############################################################################
611
%pre -n MySQL-server%{product_suffix}
612
# This is the code running at the beginning of a RPM upgrade action,
613
# before replacing the old files with the new ones.
615
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
617
# There are users who deviate from the default file system layout.
618
# Check local settings to support them.
619
if [ -x %{_bindir}/my_print_defaults ]
621
mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
622
PID_FILE_PATT=`%{_bindir}/my_print_defaults server mysqld | grep '^--pid-file=' | sed -n 's/--pid-file=//p'`
624
if [ -z "$mysql_datadir" ]
626
mysql_datadir=%{mysqldatadir}
628
if [ -z "$PID_FILE_PATT" ]
630
PID_FILE_PATT="$mysql_datadir/*.pid"
633
# Check if we can safely upgrade. An upgrade is only safe if it's from one
634
# of our RPMs in the same version family.
636
# Handle both ways of spelling the capability.
637
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
638
if [ $? -ne 0 -o -z "$installed" ]; then
639
installed=`rpm -q --whatprovides MySQL-server 2> /dev/null`
641
if [ $? -eq 0 -a -n "$installed" ]; then
642
installed=`echo $installed | sed 's/\([^ ]*\) .*/\1/'` # Tests have shown duplicated package names
643
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
644
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
645
myoldvendor='%{mysql_old_vendor}'
646
myvendor_2='%{mysql_vendor_2}'
647
myvendor='%{mysql_vendor}'
648
myversion='%{mysql_version}'
650
old_family=`echo $version \
651
| sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
652
new_family=`echo $myversion \
653
| sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
655
[ -z "$vendor" ] && vendor='<unknown>'
656
[ -z "$old_family" ] && old_family="<unrecognized version $version>"
657
[ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
660
if [ "$vendor" != "$myoldvendor" \
661
-a "$vendor" != "$myvendor_2" \
662
-a "$vendor" != "$myvendor" ]; then
663
error_text="$error_text
664
The current MySQL server package is provided by a different
665
vendor ($vendor) than $myoldvendor, $myvendor_2, or $myvendor.
666
Some files may be installed to different locations, including log
667
files and the service startup script in %{_sysconfdir}/init.d/.
671
if [ "$old_family" != "$new_family" ]; then
672
error_text="$error_text
673
Upgrading directly from MySQL $old_family to MySQL $new_family may not
674
be safe in all cases. A manual dump and restore using mysqldump is
675
recommended. It is important to review the MySQL manual's Upgrading
676
section for version-specific incompatibilities.
680
if [ -n "$error_text" ]; then
683
******************************************************************
684
A MySQL server package ($installed) is installed.
686
A manual upgrade is required.
688
- Ensure that you have a complete, working backup of your data and my.cnf
690
- Shut down the MySQL server cleanly
691
- Remove the existing MySQL packages. Usually this command will
692
list the packages you should remove:
693
rpm -qa | grep -i '^mysql-'
695
You may choose to use 'rpm --nodeps -ev <package-name>' to remove
696
the package which contains the mysqlclient shared library. The
697
library will be reinstalled by the MySQL-shared-compat package.
698
- Install the new MySQL packages supplied by $myvendor
699
- Ensure that the MySQL server is started
700
- Run the 'mysql_upgrade' program
702
This is a brief description of the upgrade process. Important details
703
can be found in the MySQL manual, in the Upgrading section.
704
******************************************************************
710
# We assume that if there is exactly one ".pid" file,
711
# it contains the valid PID of a running MySQL server.
712
NR_PID_FILES=`ls -1 $PID_FILE_PATT 2>/dev/null | wc -l`
713
case $NR_PID_FILES in
714
0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server
715
1 ) SERVER_TO_START='true' ;;
716
* ) SERVER_TO_START='' # Situation not clear
717
SEVERAL_PID_FILES=true ;;
719
# That logic may be debated: We might check whether it is non-empty,
720
# contains exactly one number (possibly a PID), and whether "ps" finds it.
721
# OTOH, if there is no such process, it means a crash without a cleanup -
722
# is that a reason not to start a new server after upgrade?
724
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
726
if [ -f $STATUS_FILE ]; then
727
echo "Some previous upgrade was not finished:"
729
echo "Please check its status, then do"
730
echo " rm $STATUS_FILE"
731
echo "before repeating the MySQL upgrade."
733
elif [ -n "$SEVERAL_PID_FILES" ] ; then
734
echo "You have more than one PID file:"
735
ls -ld $PID_FILE_PATT
736
echo "Please check which one (if any) corresponds to a running server"
737
echo "and delete all others before repeating the MySQL upgrade."
741
NEW_VERSION=%{mysql_version}-%{release}
743
# The "pre" section code is also run on a first installation,
744
# when there is no data directory yet. Protect against error messages.
745
# Check for the existence of subdirectory "mysql/", the database of system
746
# tables like "mysql.user".
747
if [ -d $mysql_datadir/mysql ] ; then
748
echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE
749
echo "'pre' step running at `date`" >> $STATUS_FILE
751
fcount=`ls -ltr $mysql_datadir/*.err 2>/dev/null | wc -l`
752
if [ $fcount -gt 0 ] ; then
753
echo "ERR file(s):" >> $STATUS_FILE
754
ls -ltr $mysql_datadir/*.err >> $STATUS_FILE
756
echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
757
grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
758
tail -1 >> $STATUS_FILE
762
if [ -n "$SERVER_TO_START" ] ; then
763
# There is only one PID file, race possibility ignored
764
echo "PID file:" >> $STATUS_FILE
765
ls -l $PID_FILE_PATT >> $STATUS_FILE
766
cat $PID_FILE_PATT >> $STATUS_FILE
768
echo "Server process:" >> $STATUS_FILE
769
ps -fp `cat $PID_FILE_PATT` >> $STATUS_FILE
771
echo "SERVER_TO_START=$SERVER_TO_START" >> $STATUS_FILE
773
# Take a note we checked it ...
774
echo "PID file:" >> $STATUS_FILE
775
ls -l $PID_FILE_PATT >> $STATUS_FILE 2>&1
779
# Shut down a previously installed server first
780
# Note we *could* make that depend on $SERVER_TO_START, but we rather don't,
781
# so a "stop" is attempted even if there is no PID file.
782
# (Maybe the "stop" doesn't work then, but we might fix that in itself.)
783
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
784
%{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
785
echo "Giving mysqld 5 seconds to exit nicely"
789
%post -n MySQL-server%{product_suffix}
790
# This is the code running at the end of a RPM install or upgrade action,
791
# after the (new) files have been written.
793
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
795
# There are users who deviate from the default file system layout.
796
# Check local settings to support them.
797
if [ -x %{_bindir}/my_print_defaults ]
799
mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
801
if [ -z "$mysql_datadir" ]
803
mysql_datadir=%{mysqldatadir}
806
NEW_VERSION=%{mysql_version}-%{release}
807
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
809
# ----------------------------------------------------------------------
810
# Create data directory if needed, check whether upgrade or install
811
# ----------------------------------------------------------------------
812
if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi
813
if [ -f $STATUS_FILE ] ; then
814
SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
818
# echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
819
if [ ! -d $mysql_datadir/mysql ] ; then
820
mkdir $mysql_datadir/mysql $mysql_datadir/test
821
echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE
823
# If the directory exists, we may assume it is an upgrade.
824
echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE
827
# ----------------------------------------------------------------------
828
# Make MySQL start/shutdown automatically when the machine does it.
829
# ----------------------------------------------------------------------
830
# NOTE: This still needs to be debated. Should we check whether these links
831
# for the other run levels exist(ed) before the upgrade?
832
# use chkconfig on Enterprise Linux and newer SuSE releases
833
if [ -x /sbin/chkconfig ] ; then
834
/sbin/chkconfig --add mysql
835
# use insserv for older SuSE Linux versions
836
elif [ -x /sbin/insserv ] ; then
837
/sbin/insserv %{_sysconfdir}/init.d/mysql
840
# ----------------------------------------------------------------------
841
# Create a MySQL user and group. Do not report any problems if it already
843
# ----------------------------------------------------------------------
844
groupadd -r %{mysqld_group} 2> /dev/null || true
845
useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \
846
-g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
847
# The user may already exist, make sure it has the proper group nevertheless
849
usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
851
# ----------------------------------------------------------------------
852
# Change permissions so that the user that will run the MySQL daemon
853
# owns all database files.
854
# ----------------------------------------------------------------------
855
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
857
# ----------------------------------------------------------------------
858
# Initiate databases if needed
859
# ----------------------------------------------------------------------
860
if ! grep '^MySQL RPM upgrade' $STATUS_FILE >/dev/null 2>&1 ; then
861
# Fix bug#45415: no "mysql_install_db" on an upgrade
862
# Do this as a negative to err towards more "install" runs
863
# rather than to miss one.
864
%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} --random-passwords
866
# Attention: Now 'root' is the only database user,
867
# its password is a random value found in ~/.mysql_secret,
868
# and the "password expired" flag is set:
869
# Any client needs that password, and the first command
870
# executed must be a new "set password"!
873
# ----------------------------------------------------------------------
874
# Upgrade databases if needed would go here - but it cannot be automated yet
875
# ----------------------------------------------------------------------
877
# ----------------------------------------------------------------------
878
# Change permissions again to fix any new files.
879
# ----------------------------------------------------------------------
880
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
882
# ----------------------------------------------------------------------
883
# Fix permissions for the permission database so that only the user
885
# ----------------------------------------------------------------------
886
chmod -R og-rw $mysql_datadir/mysql
888
# ----------------------------------------------------------------------
889
# install SELinux files - but don't override existing ones
890
# ----------------------------------------------------------------------
891
SETARGETDIR=/etc/selinux/targeted/src/policy
892
SEDOMPROG=$SETARGETDIR/domains/program
893
SECONPROG=$SETARGETDIR/file_contexts/program
894
if [ -f /etc/redhat-release ] \
895
&& (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
896
|| grep -q "CentOS release 4" /etc/redhat-release) ; then
899
echo 'Notes regarding SELinux on this platform:'
900
echo '========================================='
902
echo 'The default policy might cause server startup to fail because it is'
903
echo 'not allowed to access critical files. In this case, please update'
904
echo 'your installation.'
906
echo 'The default policy might also cause inavailability of SSL related'
907
echo 'features because the server is not allowed to access /dev/random'
908
echo 'and /dev/urandom. If this is a problem, please do the following:'
910
echo ' 1) install selinux-policy-targeted-sources from your OS vendor'
911
echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':'
912
echo ' allow mysqld_t random_device_t:chr_file read;'
913
echo ' allow mysqld_t urandom_device_t:chr_file read;'
914
echo ' 3) cd to '$SETARGETDIR' and issue the following command:'
920
if [ -x sbin/restorecon ] ; then
921
sbin/restorecon -R var/lib/mysql
924
# Was the server running before the upgrade? If so, restart the new one.
925
if [ "$SERVER_TO_START" = "true" ] ; then
926
# Restart in the same way that mysqld will be started normally.
927
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
928
%{_sysconfdir}/init.d/mysql start
929
echo "Giving mysqld 5 seconds to start"
934
# Collect an upgrade history ...
935
echo "Upgrade/install finished at `date`" >> $STATUS_FILE
937
echo "=====" >> $STATUS_FILE
938
STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
939
cat $STATUS_FILE >> $STATUS_HISTORY
940
mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun"
943
#echo "Thank you for installing the MySQL Community Server! For Production
944
#systems, we recommend MySQL Enterprise, which contains enterprise-ready
945
#software, intelligent advisory services, and full production support with
946
#scheduled service packs and more. Visit www.mysql.com/enterprise for more
949
%preun -n MySQL-server%{product_suffix}
951
# Which '$1' does this refer to? Fedora docs have info:
952
# " ... a count of the number of versions of the package that are installed.
954
# Install the first time 1
955
# Upgrade 2 or higher (depending on the number of versions installed)
956
# Remove last version of package 0 "
958
# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
961
# Stop MySQL before uninstalling it
962
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
963
%{_sysconfdir}/init.d/mysql stop > /dev/null
964
# Remove autostart of MySQL
965
# use chkconfig on Enterprise Linux and newer SuSE releases
966
if [ -x /sbin/chkconfig ] ; then
967
/sbin/chkconfig --del mysql
968
# For older SuSE Linux versions
969
elif [ -x /sbin/insserv ] ; then
970
/sbin/insserv -r %{_sysconfdir}/init.d/mysql
975
# We do not remove the mysql user since it may still own a lot of
978
%triggerpostun -n MySQL-server%{product_suffix} --MySQL-server-community
980
# Setup: We renamed this package, so any existing "server-community"
981
# package will be removed when this "server" is installed.
982
# Problem: RPM will first run the "pre" and "post" sections of this script,
983
# and only then the "preun" of that old community server.
984
# But this "preun" includes stopping the server and uninstalling the service,
985
# "chkconfig --del mysql" which removes the symlinks to the start script.
986
# Solution: *After* the community server got removed, restart this server
987
# and re-install the service.
989
# For information about triggers in spec files, see the Fedora docs:
990
# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html
991
# For all details of this code, see the "pre" and "post" sections.
993
# There are users who deviate from the default file system layout.
994
# Check local settings to support them.
995
if [ -x %{_bindir}/my_print_defaults ]
997
mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
999
if [ -z "$mysql_datadir" ]
1001
mysql_datadir=%{mysqldatadir}
1004
NEW_VERSION=%{mysql_version}-%{release}
1005
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST # Note the difference!
1006
STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
1008
if [ -f $STATUS_FILE ] ; then
1009
SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
1011
# This should never happen, but let's be prepared
1014
echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
1016
if [ -x /sbin/chkconfig ] ; then
1017
/sbin/chkconfig --add mysql
1018
# use insserv for older SuSE Linux versions
1019
elif [ -x /sbin/insserv ] ; then
1020
/sbin/insserv %{_sysconfdir}/init.d/mysql
1023
# Was the server running before the upgrade? If so, restart the new one.
1024
if [ "$SERVER_TO_START" = "true" ] ; then
1025
# Restart in the same way that mysqld will be started normally.
1026
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
1027
%{_sysconfdir}/init.d/mysql start
1028
echo "Giving mysqld 5 seconds to start"
1033
echo "Trigger 'postun --community' finished at `date`" >> $STATUS_HISTORY
1034
echo >> $STATUS_HISTORY
1035
echo "=====" >> $STATUS_HISTORY
1038
# ----------------------------------------------------------------------
1039
# Clean up the BuildRoot after build is done
1040
# ----------------------------------------------------------------------
1042
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
1043
&& rm -rf $RPM_BUILD_ROOT;
1045
##############################################################################
1047
##############################################################################
1049
%files -n MySQL-server%{product_suffix} -f release/support-files/plugins.files
1050
%defattr(-,root,root,0755)
1051
%if %{defined license_files_server}
1052
%doc %{license_files_server}
1054
%doc %{src_dir}/Docs/ChangeLog
1055
%doc %{src_dir}/Docs/INFO_SRC*
1056
%doc release/Docs/INFO_BIN*
1057
%doc release/support-files/my-default.cnf
1060
%doc %attr(644, root, root) %{_infodir}/mysql.info*
1063
%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
1064
%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
1065
%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
1066
%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
1067
%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
1068
%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
1069
%doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
1070
%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
1071
%doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
1072
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
1073
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
1074
%doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
1075
%doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
1076
%doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1*
1077
%doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
1078
%doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
1079
%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
1080
%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
1081
%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
1082
%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
1083
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
1084
%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1085
%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
1086
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
1087
%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
1088
%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
1089
%doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
1090
%doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
1092
%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
1093
%dir %{_sysconfdir}/my.cnf.d
1095
%attr(755, root, root) %{_bindir}/innochecksum
1096
%attr(755, root, root) %{_bindir}/my_print_defaults
1097
%attr(755, root, root) %{_bindir}/myisam_ftdump
1098
%attr(755, root, root) %{_bindir}/myisamchk
1099
%attr(755, root, root) %{_bindir}/myisamlog
1100
%attr(755, root, root) %{_bindir}/myisampack
1101
%attr(755, root, root) %{_bindir}/mysql_convert_table_format
1102
%attr(755, root, root) %{_bindir}/mysql_fix_extensions
1103
%attr(755, root, root) %{_bindir}/mysql_install_db
1104
%attr(755, root, root) %{_bindir}/mysql_plugin
1105
%attr(755, root, root) %{_bindir}/mysql_secure_installation
1106
%attr(755, root, root) %{_bindir}/mysql_setpermission
1107
%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
1108
%attr(755, root, root) %{_bindir}/mysql_upgrade
1109
%attr(755, root, root) %{_bindir}/mysql_zap
1110
%attr(755, root, root) %{_bindir}/mysqlbug
1111
%attr(755, root, root) %{_bindir}/mysqld_multi
1112
%attr(755, root, root) %{_bindir}/mysqld_safe
1113
%attr(755, root, root) %{_bindir}/mysqldumpslow
1114
%attr(755, root, root) %{_bindir}/mysqlhotcopy
1115
%attr(755, root, root) %{_bindir}/mysqltest
1116
%attr(755, root, root) %{_bindir}/perror
1117
%attr(755, root, root) %{_bindir}/replace
1118
%attr(755, root, root) %{_bindir}/resolve_stack_dump
1119
%attr(755, root, root) %{_bindir}/resolveip
1121
%attr(755, root, root) %{_sbindir}/mysqld
1122
%attr(755, root, root) %{_sbindir}/mysqld-debug
1123
%attr(755, root, root) %{_sbindir}/rcmysql
1124
%attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
1126
%if %{WITH_TCMALLOC}
1127
%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
1130
%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
1131
%attr(755, root, root) %{_sysconfdir}/init.d/mysql
1132
%attr(755, root, root) %{_datadir}/mysql/
1133
%dir %attr(755, mysql, mysql) /var/lib/mysql
1135
# ----------------------------------------------------------------------------
1136
%files -n MySQL-client%{product_suffix}
1137
%defattr(-, root, root, 0755)
1138
%if %{defined license_files_server}
1139
%doc %{license_files_server}
1141
%attr(755, root, root) %{_bindir}/msql2mysql
1142
%attr(755, root, root) %{_bindir}/mysql
1143
%attr(755, root, root) %{_bindir}/mysql_find_rows
1144
%attr(755, root, root) %{_bindir}/mysql_waitpid
1145
%attr(755, root, root) %{_bindir}/mysqlaccess
1146
# XXX: This should be moved to %{_sysconfdir}
1147
%attr(644, root, root) %{_bindir}/mysqlaccess.conf
1148
%attr(755, root, root) %{_bindir}/mysqladmin
1149
%attr(755, root, root) %{_bindir}/mysqlbinlog
1150
%attr(755, root, root) %{_bindir}/mysqlcheck
1151
%attr(755, root, root) %{_bindir}/mysqldump
1152
%attr(755, root, root) %{_bindir}/mysqlimport
1153
%attr(755, root, root) %{_bindir}/mysqlshow
1154
%attr(755, root, root) %{_bindir}/mysqlslap
1155
%attr(755, root, root) %{_bindir}/mysql_config_editor
1157
%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
1158
%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
1159
%doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
1160
%doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
1161
%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
1162
%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
1163
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
1164
%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
1165
%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
1166
%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
1167
%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
1168
%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
1169
%doc %attr(644, root, man) %{_mandir}/man1/mysql_config_editor.1*
1171
# ----------------------------------------------------------------------------
1172
%files -n MySQL-devel%{product_suffix} -f optional-files-devel
1173
%defattr(-, root, root, 0755)
1174
%if %{defined license_files_server}
1175
%doc %{license_files_server}
1177
%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
1178
%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
1179
%attr(755, root, root) %{_bindir}/mysql_config
1180
%dir %attr(755, root, root) %{_includedir}/mysql
1181
%dir %attr(755, root, root) %{_libdir}/mysql
1182
%{_includedir}/mysql/*
1183
%{_datadir}/aclocal/mysql.m4
1184
%{_libdir}/mysql/libmysqlclient.a
1185
%{_libdir}/mysql/libmysqlclient_r.a
1186
%{_libdir}/mysql/libmysqlservices.a
1188
# ----------------------------------------------------------------------------
1189
%files -n MySQL-shared%{product_suffix}
1190
%defattr(-, root, root, 0755)
1191
%if %{defined license_files_server}
1192
%doc %{license_files_server}
1194
# Shared libraries (omit for architectures that don't support them)
1195
%{_libdir}/libmysql*.so*
1197
%post -n MySQL-shared%{product_suffix}
1200
%postun -n MySQL-shared%{product_suffix}
1203
# ----------------------------------------------------------------------------
1204
%files -n MySQL-test%{product_suffix}
1205
%defattr(-, root, root, 0755)
1206
%if %{defined license_files_server}
1207
%doc %{license_files_server}
1209
%attr(-, root, root) %{_datadir}/mysql-test
1210
%attr(755, root, root) %{_bindir}/mysql_client_test
1211
%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
1212
%attr(755, root, root) %{_bindir}/mysqltest_embedded
1213
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
1214
%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
1215
%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
1216
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
1217
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
1219
# ----------------------------------------------------------------------------
1220
%files -n MySQL-embedded%{product_suffix}
1221
%defattr(-, root, root, 0755)
1222
%if %{defined license_files_server}
1223
%doc %{license_files_server}
1225
%attr(755, root, root) %{_bindir}/mysql_embedded
1226
%attr(644, root, root) %{_libdir}/mysql/libmysqld.a
1227
%attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a
1229
##############################################################################
1230
# The spec file changelog only includes changes made to the spec file
1231
# itself - note that they must be ordered by date (important when
1233
##############################################################################
1235
* Mon Oct 06 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1236
- Add license info in each subpackage
1238
* Wed May 28 2014 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1239
- Updated usergroup to mysql on datadir
1241
* Wed Oct 30 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1242
- Removed non gpl file docs/mysql.info from community packages
1244
* Mon Sep 09 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1245
- Updated logic to get the correct count of PID files
1247
* Fri Aug 16 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1248
- Added provides lowercase mysql tags
1250
* Wed Jun 26 2013 Balasubramanian Kandasamy <balasubramanian.kandasamy@oracle.com>
1251
- Cleaned up spec file to resolve rpm dependencies.
1253
* Mon Nov 05 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1255
- Allow to override the default to use the bundled yaSSL by an option like
1256
--define="with_ssl /path/to/ssl"
1258
* Wed Oct 10 2012 Bjorn Munch <bjorn.munch@oracle.com>
1260
- Replace old my-*.cnf config file examples with template my-default.cnf
1262
* Fri Oct 05 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1264
- Let the installation use the new option "--random-passwords" of "mysql_install_db".
1265
(Bug# 12794345 Ensure root password)
1266
- Fix an inconsistency: "new install" vs "upgrade" are told from the (non)existence
1267
of "$mysql_datadir/mysql" (holding table "mysql.user" and other system stuff).
1269
* Tue Jul 24 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1271
- Add a macro "runselftest":
1272
if set to 1 (default), the test suite will be run during the RPM build;
1273
this can be oveeridden via the command line by adding
1274
--define "runselftest 0"
1275
Failures of the test suite will NOT make the RPM build fail!
1277
* Mon Jul 16 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1279
- Add the man page for the "mysql_config_editor".
1281
* Mon Jun 11 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1283
- Make sure newly added "SPECIFIC-ULN/" directory does not disturb packaging.
1285
* Wed Feb 29 2012 Brajmohan Saxena <brajmohan.saxena@oracle.com>
1287
- Removal all traces of the readline library from mysql (BUG 13738013)
1289
* Wed Sep 28 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1291
- Fix duplicate mentioning of "mysql_plugin" and its manual page,
1292
it is better to keep alphabetic order in the files list (merging!).
1294
* Wed Sep 14 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1296
- Let the RPM capabilities ("obsoletes" etc) ensure that an upgrade may replace
1297
the RPMs of any configuration (of the current or the preceding release series)
1298
by the new ones. This is done by not using the implicitly generated capabilities
1299
(which include the configuration name) and relying on more generic ones which
1300
just list the function ("server", "client", ...).
1301
The implicit generation cannot be prevented, so all these capabilities must be
1302
explicitly listed in "Obsoletes:"
1304
* Tue Sep 13 2011 Jonathan Perkin <jonathan.perkin@oracle.com>
1306
- Add support for Oracle Linux 6 and Red Hat Enterprise Linux 6. Due to
1307
changes in RPM behaviour ($RPM_BUILD_ROOT is removed prior to install)
1308
this necessitated a move of the libmygcc.a installation to the install
1309
phase, which is probably where it belonged in the first place.
1311
* Tue Sep 13 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1313
- "make_win_bin_dist" and its manual are dropped, cmake does it different.
1315
* Thu Sep 08 2011 Daniel Fischer <daniel.fischer@oracle.com>
1317
- Add mysql_plugin man page.
1319
* Tue Aug 30 2011 Tor Didriksen <tor.didriksen@oracle.com>
1321
- Set CXX=g++ by default to add a dependency on libgcc/libstdc++.
1322
Also, remove the use of the -fno-exceptions and -fno-rtti flags.
1323
TODO: update distro_buildreq/distro_requires
1325
* Tue Aug 30 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1327
- Add the manual page for "mysql_plugin" to the server package.
1329
* Fri Aug 19 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1331
- Null-upmerge the fix of bug#37165: This spec file is not affected.
1332
- Replace "/var/lib/mysql" by the spec file variable "%%{mysqldatadir}".
1334
* Fri Aug 12 2011 Daniel Fischer <daniel.fischer@oracle.com>
1336
- Source plugin library files list from cmake-generated file.
1338
* Mon Jul 25 2011 Chuck Bell <chuck.bell@oracle.com>
1340
- Added the mysql_plugin client - enables or disables plugins.
1342
* Thu Jul 21 2011 Sunanda Menon <sunanda.menon@oracle.com>
1344
- Fix bug#12561297: Added the MySQL embedded binary
1346
* Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1348
- Fix bug#45415: "rpm upgrade recreates test database"
1349
Let the creation of the "test" database happen only during a new installation,
1350
not in an RPM upgrade.
1351
This affects both the "mkdir" and the call of "mysql_install_db".
1353
* Wed Feb 09 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1355
- Fix bug#56581: If an installation deviates from the default file locations
1356
("datadir" and "pid-file"), the mechanism to detect a running server (on upgrade)
1357
should still work, and use these locations.
1358
The problem was that the fix for bug#27072 did not check for local settings.
1360
* Mon Jan 31 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1362
- Install the new "manifest" files: "INFO_SRC" and "INFO_BIN".
1364
* Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1366
- EXCEPTIONS-CLIENT has been deleted, remove it from here too
1367
- Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
1368
a '-j' argument to make.
1370
* Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1372
- Added test authentication (WL#1054) plugin binaries
1374
* Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1376
- Added example external authentication (WL#1054) plugin binaries
1378
* Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
1380
- With a recent spec file cleanup, names have changed: A "-community" part was dropped.
1381
Reflect that in the "Obsoletes" specifications.
1382
- Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
1383
- This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
1385
* Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1387
- Change the behaviour on installation and upgrade:
1388
On installation, do not autostart the server.
1389
*Iff* the server was stopped before the upgrade is started, this is taken as a
1390
sign the administrator is handling that manually, and so the new server will
1391
not be started automatically at the end of the upgrade.
1392
The start/stop scripts will still be installed, so the server will be started
1393
on the next machine boot.
1394
This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).
1396
* Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1398
- Implement SELinux checks from distribution-specific spec file.
1400
* Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1402
- Large number of changes to build using CMake
1403
- Introduce distribution-specific RPMs
1404
- Drop debuginfo, build all binaries with debug/symbols
1405
- Remove __os_install_post, use native macro
1406
- Remove _unpackaged_files_terminate_build, make it an error to have
1408
- Remove cluster RPMs
1410
* Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1412
- Add "--with-perfschema" to the configure options.
1414
* Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1416
- User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
1417
mask "rmdir" return code 1.
1418
- Remove "ha_example.*" files from the list, they aren't built.
1420
* Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1422
- Fix a wrong path name in handling the debug plugins.
1424
* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1426
- Take the result of the debug plugin build and put it into the optimized tree,
1427
so that it becomes part of the final installation;
1428
include the files in the packlist. Part of the fixes for bug#49022.
1430
* Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1432
- Set "Oracle and/or its affiliates" as the vendor and copyright owner,
1433
accept upgrading from packages showing MySQL or Sun as vendor.
1435
* Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1437
- Formatting changes:
1438
Have a consistent structure of separator lines and of indentation
1439
(8 leading blanks => tab).
1440
- Introduce the variable "src_dir".
1441
- Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
1443
- Drop the old "with_static" argument analysis, this is not supported
1445
- Introduce variables to control the handlers individually, as well
1447
- Use the new "--with-plugin" notation for the table handlers.
1448
- Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
1449
was done back in 2002 already.
1450
- Make "--with-zlib-dir=bundled" the default, add an option to disable it.
1451
- Add missing manual pages to the file list.
1452
- Improve the runtime check for "libgcc.a", protect it against being tried
1453
with the Intel compiler "icc".
1455
* Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1457
- Change RPM file naming:
1458
- Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
1459
- Release counts from 1, not 0.
1461
* Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1463
- The "semisync" plugin file name has lost its introductory "lib",
1464
adapt the file lists for the subpackages.
1465
This is a part missing from the fix for bug#48351.
1466
- Remove the "fix_privilege_tables" manual, it does not exist in 5.5
1467
(and likely, the whole script will go, too).
1469
* Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1471
- Fix some problems with the directives around "tcmalloc" (experimental),
1472
remove erroneous traces of the InnoDB plugin (that is 5.1 only).
1474
* Tue Oct 06 2009 Magnus Blaudd <mvensson@mysql.com>
1476
- Removed mysql_fix_privilege_tables
1478
* Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
1480
- "mysqlmanager" got removed from version 5.4, all references deleted.
1482
* Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1484
- Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
1486
* Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1488
- This version does not contain the "Instance manager", "mysqlmanager":
1489
Remove it from the spec file so that packaging succeeds.
1491
* Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
1493
- Add conditionals for bundled zlib and innodb plugin
1495
* Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
1497
- Install plugin libraries in appropriate packages.
1498
- Disable libdaemon_example and ftexample plugins.
1500
* Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
1502
- Update variable used for mysql-test suite location to match source.
1504
* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
1506
- Correct yesterday's fix, so that it also works for the last flag,
1507
and fix a wrong quoting: un-quoted quote marks must not be escaped.
1509
* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
1511
- Removed "mysql_upgrade_shell"
1512
- Removed some copy/paste between debug and normal build
1514
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
1516
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
1517
This should cover both gcc and icc flags. Fixes bug#40546.
1519
* Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
1521
- Removed the "Federated" storage engine option, and enabled in all
1523
* Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
1525
- Get rid of the "warning: Installed (but unpackaged) file(s) found:"
1526
Some generated files aren't needed in RPMs:
1527
- the "sql-bench/" subdirectory
1528
Some files were missing:
1529
- /usr/share/aclocal/mysql.m4 ("devel" subpackage)
1530
- Manual "mysqlbug" ("server" subpackage)
1531
- Program "innochecksum" and its manual ("server" subpackage)
1532
- Manual "mysql_find_rows" ("client" subpackage)
1533
- Script "mysql_upgrade_shell" ("client" subpackage)
1534
- Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
1535
- Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
1537
* Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
1539
- Made the "Federated" storage engine an option
1540
- Made the "Cluster" storage engine and sub packages an option
1542
* Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
1544
- Add the man pages for "ndbd" and "ndb_mgmd".
1546
* Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
1548
- Require a manual upgrade if the alread-installed mysql-server is
1549
from another vendor, or is of a different major version.
1551
* Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
1553
- "ndb_size.tmpl" is not needed any more,
1554
"man1/mysql_install_db.1" lacked the trailing '*'.
1556
* Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
1558
- Removed man page for "mysql_create_system_tables"
1560
* Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
1564
* Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
1566
- Remove Max RPMs; the server RPMs contain a mysqld compiled with all
1567
features that previously only were built into Max.
1569
* Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
1571
- Add several man pages for NDB which are now created.
1573
* Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
1575
- Put back "libmygcc.a", found no real reason it was removed.
1577
- Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
1578
correct "libgcc.a" path is returned for the 32/64 bit architecture.
1580
* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
1582
- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
1584
* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
1586
- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
1588
- The "mysqlmanager" man page got moved from section 1 to 8.
1590
* Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
1592
- Call "make install" using "benchdir_root=%%{_datadir}",
1593
because that is affecting the regression test suite as well.
1595
* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
1597
- Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
1598
replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
1601
* Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
1603
- Add "--with-partition" to all server builds.
1605
- Use "--report-features" in one test run per server build.
1607
* Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com>
1609
- The "max" server is removed from packages, effective from 5.1.12-beta.
1610
Delete all steps to build, package, or install it.
1612
* Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
1614
- Fix a typing error in the "make" target for the Perl script to run the tests.
1616
* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
1618
- Use the Perl script to run the tests, because it will automatically check
1619
whether the server is configured with SSL.
1621
* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
1623
- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
1625
- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
1626
there are some more aspects which need to be solved before this is possible.
1627
For now, just ensure the binary "mysql_upgrade" is delivered and installed.
1629
* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
1631
- Close a gap of the previous version by explicitly using
1632
a newly created temporary directory for the socket to be used
1633
in the "mysql_upgrade" operation, overriding any local setting.
1635
* Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
1637
- To run "mysql_upgrade", we need a running server;
1638
start it in isolation and skip password checks.
1640
* Sat May 20 2006 Kent Boortz <kent@mysql.com>
1642
- Always compile for PIC, position independent code.
1644
* Wed May 10 2006 Kent Boortz <kent@mysql.com>
1646
- Use character set "all" when compiling with Cluster, to make Cluster
1647
nodes independent on the character set directory, and the problem
1648
that two RPM sub packages both wants to install this directory.
1650
* Mon May 01 2006 Kent Boortz <kent@mysql.com>
1652
- Use "./libtool --mode=execute" instead of searching for the
1653
executable in current directory and ".libs".
1655
* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
1657
- Install and run "mysql_upgrade"
1659
* Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
1661
- Remove sql-bench, and MySQL-bench RPM (will be built as an independent
1662
project from the mysql-bench repository)
1664
* Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
1666
- Remove old mysqltestmanager and related programs
1667
* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
1669
- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
1671
* Tue Mar 07 2006 Kent Boortz <kent@mysql.com>
1673
- Changed product name from "Community Edition" to "Community Server"
1675
* Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
1677
- Fast mutexes is now disabled by default, but should be
1678
used in Linux builds.
1680
* Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
1682
- Reintroduced a max build
1683
- Limited testing of 'debug' and 'max' servers
1684
- Berkeley DB only in 'max'
1686
* Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
1688
- Use "-i" on "make test-force";
1689
this is essential for later evaluation of this log file.
1691
* Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
1693
- Pass '-static' to libtool, link static with our own libraries, dynamic
1694
with system libraries. Link with the bundled zlib.
1696
* Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
1698
- Modified RPM spec to match new 5.1 debug+max combined community packaging.
1700
* Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
1702
- Added "client/mysqlslap"
1704
* Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
1706
- Added zlib to the list of (static) libraries installed
1707
- Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
1708
- Compile MySQL with bundled zlib
1709
- Fixed %%packager name to "MySQL Production Engineering Team"
1711
* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
1713
- Avoid using the "bundled" zlib on "shared" builds:
1714
As it is not installed (on the build system), this gives dependency
1715
problems with "libtool" causing the build to fail.
1716
(Change was done on Nov 11, but left uncommented.)
1718
* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
1720
- Extend the file existence check for "init.d/mysql" on un-install
1721
to also guard the call to "insserv"/"chkconfig".
1723
* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
1725
- added more man pages
1727
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1729
- Made yaSSL support an option (off by default)
1731
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1733
- Enabled yaSSL support
1735
* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
1737
- Give mode arguments the same way in all places
1738
- Moved copy of mysqld.a to "standard" build, but
1739
disabled it as we don't do embedded yet in 5.0
1741
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1743
- For 5.x, always compile with --with-big-tables
1744
- Copy the config.log file to location outside
1747
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1749
- Removed unneeded/obsolete configure options
1750
- Added archive engine to standard server
1751
- Removed the embedded server from experimental server
1752
- Changed suffix "-Max" => "-max"
1753
- Changed comment string "Max" => "Experimental"
1755
* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
1757
- added a usermod call to assign a potential existing mysql user to the
1758
correct user group (BUG#12823)
1759
- Save the perror binary built during Max build so it supports the NDB
1760
error codes (BUG#13740)
1761
- added a separate macro "mysqld_group" to be able to define the
1762
user group of the mysql user seperately, if desired.
1764
* Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
1766
- fixed the removing of the RPM_BUILD_ROOT in the %clean section (the
1767
$RBR variable did not get expanded, thus leaving old build roots behind)
1769
* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
1771
- Fixed the creation of the mysql user group account in the postinstall
1773
- Fixed enabling the Archive storage engine in the Max binary
1775
* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
1777
- Fixed the Requires: tag for the server RPM (BUG 12233)
1779
* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
1781
- create a "mysql" user group and assign the mysql user account to that group
1782
in the server postinstall section. (BUG 10984)
1784
* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
1786
- Do not build statically on i386 by default, only when adding either "--with
1787
static" or "--define '_with_static 1'" to the RPM build options. Static
1788
linking really only makes sense when linking against the specially patched
1791
* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
1793
- added mysql_client_test to the "bench" subpackage (BUG 10676)
1794
- added the libndbclient static and shared libraries (BUG 10676)
1796
* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
1798
- use "mysqldatadir" variable instead of hard-coding the path multiple times
1799
- use the "mysqld_user" variable on all occasions a user name is referenced
1800
- removed (incomplete) Brazilian translations
1801
- removed redundant release tags from the subpackage descriptions
1803
* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
1805
- Added a "make clean" between separate calls to "BuildMySQL".
1807
* Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
1809
- Removed the mysql_tableinfo script made obsolete by the information schema
1811
* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
1813
- Enabled the "blackhole" storage engine for the Max RPM
1815
* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
1817
- removed the MySQL manual files (html/ps/texi) - they have been removed
1818
from the MySQL sources and are now available seperately.
1820
* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
1822
- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
1823
mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
1825
* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
1827
- Disabled RAID in the Max binaries once and for all (it has finally been
1828
removed from the source tree)
1830
* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
1832
- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
1835
* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
1837
- Fixed the compilation comments and moved them into the separate build sections
1838
for Max and Standard
1840
* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
1842
- enabled the "Ndbcluster" storage engine for the max binary
1843
- added extra make install in ndb subdir after Max build to get ndb binaries
1844
- added packages for ndbcluster storage engine
1846
* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
1848
- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
1850
* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
1852
- enabled the "Federated" storage engine for the max binary
1854
* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
1856
- ISAM and merge storage engines were purged. As well as appropriate
1857
tools and manpages (isamchk and isamlog)
1859
* Fri Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
1861
- enabled the "Archive" storage engine for the max binary
1862
- enabled the "CSV" storage engine for the max binary
1863
- enabled the "Example" storage engine for the max binary
1865
* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1867
- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1869
* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1871
- do not link statically on IA64/AMD64 as these systems do not have
1872
a patched glibc installed
1874
* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1876
- Added libmygcc.a to the devel subpackage (required to link applications
1877
against the the embedded server libmysqld.a) (BUG 4921)
1879
* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1881
- Added EXCEPTIONS-CLIENT to the "devel" package
1883
* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1885
- disabled OpenSSL in the Max binaries again (the RPM packages were the
1886
only exception to this anyway) (BUG 1043)
1888
* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1890
- fixed server postinstall (mysql_install_db was called with the wrong
1893
* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1895
- added mysql_tzinfo_to_sql to the server subpackage
1896
- run "make clean" instead of "make distclean"
1898
* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1900
- added ncurses-devel to the build prerequisites (BUG 3377)
1902
* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1904
- when using gcc, _always_ use CXX=gcc
1905
- replaced Copyright with License field (Copyright is obsolete)
1907
* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1909
- added myisam_ftdump to the Server package
1911
* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1913
- link the mysql client against libreadline instead of libedit (BUG 2289)
1915
* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1917
- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1919
* Sat Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
1921
- fixed file permissions (BUG 1672)
1923
* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1925
- made testing for gcc3 a bit more robust
1927
* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1929
- added missing file mysql_create_system_tables to the server subpackage
1931
* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1933
- removed dependency on MySQL-client from the MySQL-devel subpackage
1934
as it is not really required. (BUG 1610)
1936
* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1938
- Fixed BUG 1162 (removed macro names from the changelog)
1939
- Really fixed BUG 998 (disable the checking for installed but
1942
* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
1944
- Fixed BUG 959 (libmysqld not being compiled properly)
1945
- Fixed BUG 998 (RPM build errors): added missing files to the
1946
distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
1947
mysql_fix_privilege_tables.1), removed "-n" from install section.
1949
* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
1951
- removed the GIF Icon (file was not included in the sources anyway)
1952
- removed unused variable shared_lib_version
1953
- do not run automake before building the standard binary
1954
(should not be necessary)
1955
- add server suffix '-standard' to standard binary (to be in line
1956
with the binary tarball distributions)
1957
- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
1958
_datadir, _includedir) throughout the spec file.
1959
- allow overriding CC and CXX (required when building with other compilers)
1961
* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1963
- re-enabled RAID again
1965
* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1967
- disabled MyISAM RAID (--with-raid) - it throws an assertion which
1968
needs to be investigated first.
1970
* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1972
- added missing file mysql_secure_installation to server subpackage
1975
* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
1977
- re-added missing pre- and post(un)install scripts to server subpackage
1978
- added config file /etc/my.cnf to the file list (just for completeness)
1979
- make sure to create the datadir with 755 permissions
1981
* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
1983
- removed unused CC and CXX variables
1984
- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
1986
* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
1988
- renamed package "MySQL" to "MySQL-server"
1989
- fixed Copyright tag
1990
- added mysql_waitpid to client subpackage (required for mysql-test-run)
1992
* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
1994
- moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
1995
Linux distributions now support this scheme as proposed by the LSB either
1996
directly or via a compatibility symlink)
1997
- Use new "restart" init script action instead of starting and stopping
1999
- Be more flexible in activating the automatic bootup - use insserv (on
2000
older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
2001
others) to create the respective symlinks
2003
* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
2005
- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
2006
(mixing 3.23 and 4.0 packages)
2008
* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
2010
- Turn off OpenSSL in MySQL-Max for now until it works properly again
2011
- enable RAID for the Max binary instead
2012
- added compatibility link: safe_mysqld -> mysqld_safe to ease the
2013
transition from 3.23
2015
* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
2017
- Reworked the build steps a little bit: the Max binary is supposed
2018
to include OpenSSL, which cannot be linked statically, thus trying
2019
to statically link against a special glibc is futile anyway
2020
- because of this, it is not required to make yet another build run
2021
just to compile the shared libs (saves a lot of time)
2022
- updated package description of the Max subpackage
2023
- clean up the BuildRoot directory afterwards
2025
* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
2027
- Updated Packager information
2028
- Fixed the build options: the regular package is supposed to
2029
include InnoDB and linked statically, while the Max package
2030
should include BDB and SSL support
2032
* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
2034
- Use more RPM macros (e.g. infodir, mandir) to make the spec
2036
- reorganized the installation of documentation files: let RPM
2038
- reorganized the file list: actually install man pages along
2039
with the binaries of the respective subpackage
2040
- do not include libmysqld.a in the devel subpackage as well, if we
2041
have a special "embedded" subpackage
2042
- reworked the package descriptions
2044
* Mon Oct 8 2001 Monty
2046
- Added embedded server as a separate RPM
2048
* Fri Apr 13 2001 Monty
2050
- Added mysqld-max to the distribution
2052
* Tue Jan 2 2001 Monty
2054
- Added mysql-test to the bench package
2056
* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
2058
- Added separate libmysql_r directory; now both a threaded
2059
and non-threaded library is shipped.
2061
* Tue Sep 28 1999 David Axmark <davida@mysql.com>
2063
- Added the support-files/my-example.cnf to the docs directory.
2065
- Removed devel dependency on base since it is about client
2068
* Wed Sep 8 1999 David Axmark <davida@mysql.com>
2070
- Cleaned up some for 3.23.
2072
* Thu Jul 1 1999 David Axmark <davida@mysql.com>
2074
- Added support for shared libraries in a separate sub
2075
package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
2077
- The --enable-assembler switch is now automatically disables on
2078
platforms there assembler code is unavailable. This should allow
2079
building this RPM on non i386 systems.
2081
* Mon Feb 22 1999 David Axmark <david@detron.se>
2083
- Removed unportable cc switches from the spec file. The defaults can
2084
now be overridden with environment variables. This feature is used
2085
to compile the official RPM with optimal (but compiler version
2088
- Removed the repetitive description parts for the sub rpms. Maybe add
2089
again if RPM gets a multiline macro capability.
2091
- Added support for a pt_BR translation. Translation contributed by
2092
Jorge Godoy <jorge@bestway.com.br>.
2094
* Wed Nov 4 1998 David Axmark <david@detron.se>
2096
- A lot of changes in all the rpm and install scripts. This may even
2097
be a working RPM :-)
2099
* Sun Aug 16 1998 David Axmark <david@detron.se>
2101
- A developers changelog for MySQL is available in the source RPM. And
2102
there is a history of major user visible changed in the Reference
2103
Manual. Only RPM specific changes will be documented here.