1
# Copyright (c) 2000, 2011, 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
%define mysql_old_vendor MySQL AB
24
%define mysql_vendor_2 Sun Microsystems, Inc.
25
%define mysql_vendor Oracle and/or its affiliates
27
%define mysql_version 5.5.28
29
%define mysqld_user mysql
30
%define mysqld_group mysql
31
%define mysqldatadir /var/lib/mysql
36
# Macros we use which are not available in all supported versions of RPM
38
# - defined/undefined are missing on RHEL4
40
%if %{expand:%{?defined:0}%{!?defined:1}}
41
%define defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
43
%if %{expand:%{?undefined:0}%{!?undefined:1}}
44
%define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
47
# ----------------------------------------------------------------------------
48
# RPM build tools now automatically detect Perl module dependencies. This
49
# detection causes problems as it is broken in some versions, and it also
50
# provides unwanted dependencies from mandatory scripts in our package.
51
# It might not be possible to disable this in all versions of RPM, but here we
52
# try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as
53
# disabling here might fail, and that package has the most problems.
55
# http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides
56
# http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html
57
# ----------------------------------------------------------------------------
58
%undefine __perl_provides
59
%undefine __perl_requires
61
##############################################################################
62
# Command line handling
63
##############################################################################
67
# $ rpmbuild --define="option <x>" ...
70
# ----------------------------------------------------------------------------
72
# ----------------------------------------------------------------------------
73
%if %{undefined commercial}
77
# ----------------------------------------------------------------------------
79
# ----------------------------------------------------------------------------
80
%if %{undefined src_base}
81
%define src_base mysql
83
%define src_dir %{src_base}-%{mysql_version}
85
# ----------------------------------------------------------------------------
86
# Feature set (storage engines, options). Default to community (everything)
87
# ----------------------------------------------------------------------------
88
%if %{undefined feature_set}
89
%define feature_set community
92
# ----------------------------------------------------------------------------
93
# Server comment strings
94
# ----------------------------------------------------------------------------
95
%if %{undefined compilation_comment_debug}
96
%define compilation_comment_debug MySQL Community Server - Debug (GPL)
98
%if %{undefined compilation_comment_release}
99
%define compilation_comment_release MySQL Community Server (GPL)
102
# ----------------------------------------------------------------------------
103
# Product and server suffixes
104
# ----------------------------------------------------------------------------
105
%if %{undefined product_suffix}
106
%if %{defined short_product_tag}
107
%define product_suffix -%{short_product_tag}
109
%define product_suffix %{nil}
113
%if %{undefined server_suffix}
114
%define server_suffix %{nil}
117
# ----------------------------------------------------------------------------
118
# Distribution support
119
# ----------------------------------------------------------------------------
120
%if %{undefined distro_specific}
121
%define distro_specific 0
123
%if %{distro_specific}
124
%if %(test -f /etc/enterprise-release && echo 1 || echo 0)
125
%define oelver %(rpm -qf --qf '%%{version}\\n' /etc/enterprise-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
127
%define distro_description Oracle Enterprise Linux 4
128
%define distro_releasetag oel4
129
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
130
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
133
%define distro_description Oracle Enterprise Linux 5
134
%define distro_releasetag oel5
135
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
136
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
138
%{error:Oracle Enterprise Linux %{oelver} is unsupported}
142
%if %(test -f /etc/oracle-release && echo 1 || echo 0)
143
%define elver %(rpm -qf --qf '%%{version}\\n' /etc/oracle-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
145
%define distro_description Oracle Linux 6
146
%define distro_releasetag el6
147
%define distro_buildreq gcc-c++ ncurses-devel perl readline-devel time zlib-devel
148
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
150
%{error:Oracle Linux %{elver} is unsupported}
153
%if %(test -f /etc/redhat-release && echo 1 || echo 0)
154
%define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
155
%if "%rhelver" == "4"
156
%define distro_description Red Hat Enterprise Linux 4
157
%define distro_releasetag rhel4
158
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
159
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
161
%if "%rhelver" == "5"
162
%define distro_description Red Hat Enterprise Linux 5
163
%define distro_releasetag rhel5
164
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
165
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
167
%if "%rhelver" == "6"
168
%define distro_description Red Hat Enterprise Linux 6
169
%define distro_releasetag rhel6
170
%define distro_buildreq gcc-c++ ncurses-devel perl readline-devel time zlib-devel
171
%define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
173
%{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
178
%if %(test -f /etc/SuSE-release && echo 1 || echo 0)
179
%define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release | cut -d. -f1)
180
%if "%susever" == "10"
181
%define distro_description SUSE Linux Enterprise Server 10
182
%define distro_releasetag sles10
183
%define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel
184
%define distro_requires aaa_base coreutils grep procps pwdutils
186
%if "%susever" == "11"
187
%define distro_description SUSE Linux Enterprise Server 11
188
%define distro_releasetag sles11
189
%define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel
190
%define distro_requires aaa_base coreutils grep procps pwdutils
192
%{error:SuSE %{susever} is unsupported}
196
%{error:Unsupported distribution}
202
%define generic_kernel %(uname -r | cut -d. -f1-2)
203
%define distro_description Generic Linux (kernel %{generic_kernel})
204
%define distro_releasetag linux%{generic_kernel}
205
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
206
%define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
209
# Avoid debuginfo RPMs, leaves binaries unstripped
210
%define debug_package %{nil}
212
# Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
213
# test for __debug_package
214
%define __strip /bin/true
216
# ----------------------------------------------------------------------------
217
# Support optional "tcmalloc" library (experimental)
218
# ----------------------------------------------------------------------------
219
%if %{defined malloc_lib_target}
220
%define WITH_TCMALLOC 1
222
%define WITH_TCMALLOC 0
225
##############################################################################
226
# Configuration based upon above user input, not to be set directly
227
##############################################################################
230
%define license_files_server %{src_dir}/LICENSE.mysql
231
%define license_type Commercial
233
%define license_files_server %{src_dir}/COPYING %{src_dir}/README
234
%define license_type GPL
237
##############################################################################
238
# Main spec file section
239
##############################################################################
241
Name: MySQL%{product_suffix}
242
Summary: MySQL: a very fast and reliable SQL database server
243
Group: Applications/Databases
245
Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}
246
Distribution: %{distro_description}
247
License: Copyright (c) 2000, 2012, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
248
Source: http://www.mysql.com/Downloads/MySQL-5.5/%{src_dir}.tar.gz
249
URL: http://www.mysql.com/
250
Packager: MySQL Release Engineering <mysql-build@oss.oracle.com>
251
Vendor: %{mysql_vendor}
252
Provides: msqlormysql MySQL-server mysql
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}
289
Provides: msqlormysql mysql MySQL mysql-server MySQL-server
290
Obsoletes: mysql MySQL mysql-server MySQL-server
291
Obsoletes: MySQL-server-classic MySQL-server-community MySQL-server-enterprise
292
Obsoletes: MySQL-server-advanced MySQL-server-advanced-gpl MySQL-server-enterprise-gpl
294
%description -n MySQL-server%{product_suffix}
295
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
296
and robust SQL (Structured Query Language) database server. MySQL Server
297
is intended for mission-critical, heavy-load production systems as well
298
as for embedding into mass-deployed software. MySQL is a trademark of
301
The MySQL software has Dual Licensing, which means you can use the MySQL
302
software free of charge under the GNU General Public License
303
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
304
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
305
the GPL. See the chapter "Licensing and Support" in the manual for
308
The MySQL web site (http://www.mysql.com/) provides the latest news and
309
information about the MySQL software. Also please see the documentation
310
and the manual for more information.
312
This package includes the MySQL server binary as well as related utilities
313
to run and administer a MySQL server.
315
If you want to access and work with the database, you have to install
316
package "MySQL-client%{product_suffix}" as well!
318
# ----------------------------------------------------------------------------
319
%package -n MySQL-client%{product_suffix}
320
Summary: MySQL - Client
321
Group: Applications/Databases
322
Provides: mysql-client MySQL-client
323
Obsoletes: mysql-client MySQL-client
324
Obsoletes: MySQL-client-classic MySQL-client-community MySQL-client-enterprise
325
Obsoletes: MySQL-client-advanced MySQL-client-advanced-gpl MySQL-client-enterprise-gpl
327
%description -n MySQL-client%{product_suffix}
328
This package contains the standard MySQL clients and administration tools.
330
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
332
# ----------------------------------------------------------------------------
333
%package -n MySQL-test%{product_suffix}
334
Summary: MySQL - Test suite
335
Group: Applications/Databases
336
Requires: MySQL-client perl
337
Provides: mysql-test MySQL-test
338
Obsoletes: mysql-test MySQL-test
339
Obsoletes: mysql-bench MySQL-bench
340
Obsoletes: MySQL-test-classic MySQL-test-community MySQL-test-enterprise
341
Obsoletes: MySQL-test-advanced MySQL-test-advanced-gpl MySQL-test-enterprise-gpl
344
%description -n MySQL-test%{product_suffix}
345
This package contains the MySQL regression test suite.
347
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
349
# ----------------------------------------------------------------------------
350
%package -n MySQL-devel%{product_suffix}
351
Summary: MySQL - Development header files and libraries
352
Group: Applications/Databases
353
Provides: mysql-devel MySQL-devel
354
Obsoletes: mysql-devel MySQL-devel
355
Obsoletes: MySQL-devel-classic MySQL-devel-community MySQL-devel-enterprise
356
Obsoletes: MySQL-devel-advanced MySQL-devel-advanced-gpl MySQL-devel-enterprise-gpl
358
%description -n MySQL-devel%{product_suffix}
359
This package contains the development header files and libraries necessary
360
to develop MySQL client applications.
362
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
364
# ----------------------------------------------------------------------------
365
%package -n MySQL-shared%{product_suffix}
366
Summary: MySQL - Shared libraries
367
Group: Applications/Databases
368
Provides: mysql-shared MySQL-shared
369
Obsoletes: mysql-shared MySQL-shared-standard MySQL-shared-pro
370
Obsoletes: MySQL-shared-pro-cert MySQL-shared-pro-gpl
371
Obsoletes: MySQL-shared-pro-gpl-cert MySQL-shared
372
Obsoletes: MySQL-shared-classic MySQL-shared-community MySQL-shared-enterprise
373
Obsoletes: MySQL-shared-advanced MySQL-shared-advanced-gpl MySQL-shared-enterprise-gpl
375
%description -n MySQL-shared%{product_suffix}
376
This package contains the shared libraries (*.so*) which certain languages
377
and applications need to dynamically load and use MySQL.
379
# ----------------------------------------------------------------------------
380
%package -n MySQL-embedded%{product_suffix}
381
Summary: MySQL - Embedded library
382
Group: Applications/Databases
383
Requires: MySQL-devel
384
Provides: mysql-embedded MySQL-embedded
385
Obsoletes: mysql-embedded MySQL-embedded
386
Obsoletes: MySQL-embedded-pro
387
Obsoletes: MySQL-embedded-classic MySQL-embedded-community MySQL-embedded-enterprise
388
Obsoletes: MySQL-embedded-advanced MySQL-embedded-advanced-gpl MySQL-embedded-enterprise-gpl
390
%description -n MySQL-embedded%{product_suffix}
391
This package contains the MySQL server as an embedded library.
393
The embedded MySQL server library makes it possible to run a full-featured
394
MySQL server inside the client application. The main benefits are increased
395
speed and more simple management for embedded applications.
397
The API is identical for the embedded MySQL version and the
398
client/server version.
400
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
402
##############################################################################
404
%setup -T -a 0 -c -n %{src_dir}
406
##############################################################################
409
# Fail quickly and obviously if user tries to build as root
411
if [ x"`id -u`" = x0 ]; then
412
echo "The MySQL regression tests may fail if run as root."
413
echo "If you really need to build the RPM as root, use"
414
echo "--define='runselftest 0' to skip the regression tests."
419
# Be strict about variables, bail at earliest opportunity, etc.
422
# Optional package files
423
touch optional-files-devel
426
# Set environment in order of preference, MYSQL_BUILD_* first, then variable
427
# name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the
428
# default RPM build environment.
430
# We set CXX=gcc by default to support so-called 'generic' binaries, where we
431
# do not have a dependancy on libgcc/libstdc++. This only works while we do
432
# not require C++ features such as exceptions, and may need to be removed at
436
# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
437
# the compile in cmd-line-utils/readline - needs investigation, but for now
438
# we simply unset it and use those specified directly in cmake.
439
%if "%{_arch}" == "ia64"
443
export PATH=${MYSQL_BUILD_PATH:-$PATH}
444
export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
445
export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
446
export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
447
export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
448
export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
449
export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
450
export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-}
452
# Build debug mysqld and libmysqld.a
456
# Attempt to remove any optimisation flags from the debug build
457
CFLAGS=`echo " ${CFLAGS} " | \
458
sed -e 's/ -O[0-9]* / /' \
459
-e 's/ -unroll2 / /' \
463
CXXFLAGS=`echo " ${CXXFLAGS} " | \
464
sed -e 's/ -O[0-9]* / /' \
465
-e 's/ -unroll2 / /' \
469
# XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
470
# XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
471
${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
472
-DCMAKE_BUILD_TYPE=Debug \
473
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
474
-DFEATURE_SET="%{feature_set}" \
475
-DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
476
-DMYSQL_SERVER_SUFFIX="%{server_suffix}"
477
echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
478
make ${MAKE_JFLAG} VERBOSE=1
484
# XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
485
# XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
486
${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
487
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
488
-DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
489
-DFEATURE_SET="%{feature_set}" \
490
-DCOMPILATION_COMMENT="%{compilation_comment_release}" \
491
-DMYSQL_SERVER_SUFFIX="%{server_suffix}"
492
echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
493
make ${MAKE_JFLAG} VERBOSE=1
497
MTR_BUILD_THREAD=auto
498
export MTR_BUILD_THREAD
500
(cd release && make test-bt-fast || true)
503
##############################################################################
507
MBD=$RPM_BUILD_DIR/%{src_dir}
509
# Ensure that needed directories exists
510
install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
511
install -d $RBR%{mysqldatadir}/mysql
512
install -d $RBR%{_datadir}/mysql-test
513
install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
514
install -d $RBR%{_includedir}
515
install -d $RBR%{_libdir}
516
install -d $RBR%{_mandir}
517
install -d $RBR%{_sbindir}
519
# Install all binaries
522
make DESTDIR=$RBR install
525
# For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). Do
526
# this in a sub-shell to ensure we don't pollute the install environment
527
# with compiler bits.
529
PATH=${MYSQL_BUILD_PATH:-$PATH}
530
CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
531
CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
532
if "${CC}" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1; then
533
libgcc=`${CC} ${CFLAGS} --print-libgcc-file`
534
if [ -f ${libgcc} ]; then
535
mkdir -p $RBR%{_libdir}/mysql
536
install -m 644 ${libgcc} $RBR%{_libdir}/mysql/libmygcc.a
537
echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
542
# FIXME: at some point we should stop doing this and just install everything
543
# FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming
544
# FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
545
mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
547
# Install logrotate and autostart
548
install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
549
install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
551
# Create a symlink "rcmysql", pointing to the init.script. SuSE users
552
# will appreciate that, as all services usually offer this.
553
ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
555
# Touch the place where the my.cnf config file might be located
556
# Just to make sure it's in the file list and marked as a config file
557
touch $RBR%{_sysconfdir}/my.cnf
559
# Install SELinux files in datadir
560
install -m 600 $MBD/%{src_dir}/support-files/RHEL4-SElinux/mysql.{fc,te} \
561
$RBR%{_datadir}/mysql/SELinux/RHEL4
564
# Even though this is a shared library, put it under /usr/lib*/mysql, so it
565
# doesn't conflict with possible shared lib by the same name in /usr/lib*. See
566
# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
567
install -m 644 "%{malloc_lib_source}" \
568
"$RBR%{_libdir}/mysql/%{malloc_lib_target}"
571
# Remove man pages we explicitly do not want to package, avoids 'unpackaged
573
# This has become obsolete: rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
575
##############################################################################
576
# Post processing actions, i.e. when installed
577
##############################################################################
579
%pre -n MySQL-server%{product_suffix}
580
# This is the code running at the beginning of a RPM upgrade action,
581
# before replacing the old files with the new ones.
583
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
585
# There are users who deviate from the default file system layout.
586
# Check local settings to support them.
587
if [ -x %{_bindir}/my_print_defaults ]
589
mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
590
PID_FILE_PATT=`%{_bindir}/my_print_defaults server mysqld | grep '^--pid-file=' | sed -n 's/--pid-file=//p'`
592
if [ -z "$mysql_datadir" ]
594
mysql_datadir=%{mysqldatadir}
596
if [ -z "$PID_FILE_PATT" ]
598
PID_FILE_PATT="$mysql_datadir/*.pid"
601
# Check if we can safely upgrade. An upgrade is only safe if it's from one
602
# of our RPMs in the same version family.
604
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
605
if [ $? -eq 0 -a -n "$installed" ]; then
606
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
607
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
608
myoldvendor='%{mysql_old_vendor}'
609
myvendor_2='%{mysql_vendor_2}'
610
myvendor='%{mysql_vendor}'
611
myversion='%{mysql_version}'
613
old_family=`echo $version \
614
| sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
615
new_family=`echo $myversion \
616
| sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
618
[ -z "$vendor" ] && vendor='<unknown>'
619
[ -z "$old_family" ] && old_family="<unrecognized version $version>"
620
[ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
623
if [ "$vendor" != "$myoldvendor" \
624
-a "$vendor" != "$myvendor_2" \
625
-a "$vendor" != "$myvendor" ]; then
626
error_text="$error_text
627
The current MySQL server package is provided by a different
628
vendor ($vendor) than $myoldvendor, $myvendor_2, or $myvendor.
629
Some files may be installed to different locations, including log
630
files and the service startup script in %{_sysconfdir}/init.d/.
634
if [ "$old_family" != "$new_family" ]; then
635
error_text="$error_text
636
Upgrading directly from MySQL $old_family to MySQL $new_family may not
637
be safe in all cases. A manual dump and restore using mysqldump is
638
recommended. It is important to review the MySQL manual's Upgrading
639
section for version-specific incompatibilities.
643
if [ -n "$error_text" ]; then
646
******************************************************************
647
A MySQL server package ($installed) is installed.
649
A manual upgrade is required.
651
- Ensure that you have a complete, working backup of your data and my.cnf
653
- Shut down the MySQL server cleanly
654
- Remove the existing MySQL packages. Usually this command will
655
list the packages you should remove:
656
rpm -qa | grep -i '^mysql-'
658
You may choose to use 'rpm --nodeps -ev <package-name>' to remove
659
the package which contains the mysqlclient shared library. The
660
library will be reinstalled by the MySQL-shared-compat package.
661
- Install the new MySQL packages supplied by $myvendor
662
- Ensure that the MySQL server is started
663
- Run the 'mysql_upgrade' program
665
This is a brief description of the upgrade process. Important details
666
can be found in the MySQL manual, in the Upgrading section.
667
******************************************************************
673
# We assume that if there is exactly one ".pid" file,
674
# it contains the valid PID of a running MySQL server.
675
NR_PID_FILES=`ls $PID_FILE_PATT 2>/dev/null | wc -l`
676
case $NR_PID_FILES in
677
0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server
678
1 ) SERVER_TO_START='true' ;;
679
* ) SERVER_TO_START='' # Situation not clear
680
SEVERAL_PID_FILES=true ;;
682
# That logic may be debated: We might check whether it is non-empty,
683
# contains exactly one number (possibly a PID), and whether "ps" finds it.
684
# OTOH, if there is no such process, it means a crash without a cleanup -
685
# is that a reason not to start a new server after upgrade?
687
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
689
if [ -f $STATUS_FILE ]; then
690
echo "Some previous upgrade was not finished:"
692
echo "Please check its status, then do"
693
echo " rm $STATUS_FILE"
694
echo "before repeating the MySQL upgrade."
696
elif [ -n "$SEVERAL_PID_FILES" ] ; then
697
echo "You have more than one PID file:"
698
ls -ld $PID_FILE_PATT
699
echo "Please check which one (if any) corresponds to a running server"
700
echo "and delete all others before repeating the MySQL upgrade."
704
NEW_VERSION=%{mysql_version}-%{release}
706
# The "pre" section code is also run on a first installation,
707
# when there is no data directory yet. Protect against error messages.
708
if [ -d $mysql_datadir ] ; then
709
echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE
710
echo "'pre' step running at `date`" >> $STATUS_FILE
712
echo "ERR file(s):" >> $STATUS_FILE
713
ls -ltr $mysql_datadir/*.err >> $STATUS_FILE
715
echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
716
grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
717
tail -1 >> $STATUS_FILE
720
if [ -n "$SERVER_TO_START" ] ; then
721
# There is only one PID file, race possibility ignored
722
echo "PID file:" >> $STATUS_FILE
723
ls -l $PID_FILE_PATT >> $STATUS_FILE
724
cat $PID_FILE_PATT >> $STATUS_FILE
726
echo "Server process:" >> $STATUS_FILE
727
ps -fp `cat $PID_FILE_PATT` >> $STATUS_FILE
729
echo "SERVER_TO_START=$SERVER_TO_START" >> $STATUS_FILE
731
# Take a note we checked it ...
732
echo "PID file:" >> $STATUS_FILE
733
ls -l $PID_FILE_PATT >> $STATUS_FILE 2>&1
737
# Shut down a previously installed server first
738
# Note we *could* make that depend on $SERVER_TO_START, but we rather don't,
739
# so a "stop" is attempted even if there is no PID file.
740
# (Maybe the "stop" doesn't work then, but we might fix that in itself.)
741
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
742
%{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
743
echo "Giving mysqld 5 seconds to exit nicely"
747
%post -n MySQL-server%{product_suffix}
748
# This is the code running at the end of a RPM install or upgrade action,
749
# after the (new) files have been written.
751
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
753
# There are users who deviate from the default file system layout.
754
# Check local settings to support them.
755
if [ -x %{_bindir}/my_print_defaults ]
757
mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
759
if [ -z "$mysql_datadir" ]
761
mysql_datadir=%{mysqldatadir}
764
NEW_VERSION=%{mysql_version}-%{release}
765
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
767
# ----------------------------------------------------------------------
768
# Create data directory if needed, check whether upgrade or install
769
# ----------------------------------------------------------------------
770
if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi
771
if [ -f $STATUS_FILE ] ; then
772
SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
776
# echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
777
if [ ! -d $mysql_datadir/mysql ] ; then
778
mkdir $mysql_datadir/mysql $mysql_datadir/test
779
echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE
781
# If the directory exists, we may assume it is an upgrade.
782
echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE
785
# ----------------------------------------------------------------------
786
# Make MySQL start/shutdown automatically when the machine does it.
787
# ----------------------------------------------------------------------
788
# NOTE: This still needs to be debated. Should we check whether these links
789
# for the other run levels exist(ed) before the upgrade?
790
# use chkconfig on Enterprise Linux and newer SuSE releases
791
if [ -x /sbin/chkconfig ] ; then
792
/sbin/chkconfig --add mysql
793
# use insserv for older SuSE Linux versions
794
elif [ -x /sbin/insserv ] ; then
795
/sbin/insserv %{_sysconfdir}/init.d/mysql
798
# ----------------------------------------------------------------------
799
# Create a MySQL user and group. Do not report any problems if it already
801
# ----------------------------------------------------------------------
802
groupadd -r %{mysqld_group} 2> /dev/null || true
803
useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \
804
-g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
805
# The user may already exist, make sure it has the proper group nevertheless
807
usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
809
# ----------------------------------------------------------------------
810
# Change permissions so that the user that will run the MySQL daemon
811
# owns all database files.
812
# ----------------------------------------------------------------------
813
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
815
# ----------------------------------------------------------------------
816
# Initiate databases if needed
817
# ----------------------------------------------------------------------
818
if ! grep '^MySQL RPM upgrade' $STATUS_FILE >/dev/null 2>&1 ; then
819
# Fix bug#45415: no "mysql_install_db" on an upgrade
820
# Do this as a negative to err towards more "install" runs
821
# rather than to miss one.
822
%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
825
# ----------------------------------------------------------------------
826
# Upgrade databases if needed would go here - but it cannot be automated yet
827
# ----------------------------------------------------------------------
829
# ----------------------------------------------------------------------
830
# Change permissions again to fix any new files.
831
# ----------------------------------------------------------------------
832
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
834
# ----------------------------------------------------------------------
835
# Fix permissions for the permission database so that only the user
837
# ----------------------------------------------------------------------
838
chmod -R og-rw $mysql_datadir/mysql
840
# ----------------------------------------------------------------------
841
# install SELinux files - but don't override existing ones
842
# ----------------------------------------------------------------------
843
SETARGETDIR=/etc/selinux/targeted/src/policy
844
SEDOMPROG=$SETARGETDIR/domains/program
845
SECONPROG=$SETARGETDIR/file_contexts/program
846
if [ -f /etc/redhat-release ] \
847
&& (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
848
|| grep -q "CentOS release 4" /etc/redhat-release) ; then
851
echo 'Notes regarding SELinux on this platform:'
852
echo '========================================='
854
echo 'The default policy might cause server startup to fail because it is'
855
echo 'not allowed to access critical files. In this case, please update'
856
echo 'your installation.'
858
echo 'The default policy might also cause inavailability of SSL related'
859
echo 'features because the server is not allowed to access /dev/random'
860
echo 'and /dev/urandom. If this is a problem, please do the following:'
862
echo ' 1) install selinux-policy-targeted-sources from your OS vendor'
863
echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':'
864
echo ' allow mysqld_t random_device_t:chr_file read;'
865
echo ' allow mysqld_t urandom_device_t:chr_file read;'
866
echo ' 3) cd to '$SETARGETDIR' and issue the following command:'
872
if [ -x sbin/restorecon ] ; then
873
sbin/restorecon -R var/lib/mysql
876
# Was the server running before the upgrade? If so, restart the new one.
877
if [ "$SERVER_TO_START" = "true" ] ; then
878
# Restart in the same way that mysqld will be started normally.
879
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
880
%{_sysconfdir}/init.d/mysql start
881
echo "Giving mysqld 5 seconds to start"
886
# Collect an upgrade history ...
887
echo "Upgrade/install finished at `date`" >> $STATUS_FILE
889
echo "=====" >> $STATUS_FILE
890
STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
891
cat $STATUS_FILE >> $STATUS_HISTORY
892
mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun"
895
#echo "Thank you for installing the MySQL Community Server! For Production
896
#systems, we recommend MySQL Enterprise, which contains enterprise-ready
897
#software, intelligent advisory services, and full production support with
898
#scheduled service packs and more. Visit www.mysql.com/enterprise for more
901
%preun -n MySQL-server%{product_suffix}
903
# Which '$1' does this refer to? Fedora docs have info:
904
# " ... a count of the number of versions of the package that are installed.
906
# Install the first time 1
907
# Upgrade 2 or higher (depending on the number of versions installed)
908
# Remove last version of package 0 "
910
# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
913
# Stop MySQL before uninstalling it
914
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
915
%{_sysconfdir}/init.d/mysql stop > /dev/null
916
# Remove autostart of MySQL
917
# use chkconfig on Enterprise Linux and newer SuSE releases
918
if [ -x /sbin/chkconfig ] ; then
919
/sbin/chkconfig --del mysql
920
# For older SuSE Linux versions
921
elif [ -x /sbin/insserv ] ; then
922
/sbin/insserv -r %{_sysconfdir}/init.d/mysql
927
# We do not remove the mysql user since it may still own a lot of
930
%triggerpostun -n MySQL-server%{product_suffix} --MySQL-server-community
932
# Setup: We renamed this package, so any existing "server-community"
933
# package will be removed when this "server" is installed.
934
# Problem: RPM will first run the "pre" and "post" sections of this script,
935
# and only then the "preun" of that old community server.
936
# But this "preun" includes stopping the server and uninstalling the service,
937
# "chkconfig --del mysql" which removes the symlinks to the start script.
938
# Solution: *After* the community server got removed, restart this server
939
# and re-install the service.
941
# For information about triggers in spec files, see the Fedora docs:
942
# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html
943
# For all details of this code, see the "pre" and "post" sections.
945
# There are users who deviate from the default file system layout.
946
# Check local settings to support them.
947
if [ -x %{_bindir}/my_print_defaults ]
949
mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
951
if [ -z "$mysql_datadir" ]
953
mysql_datadir=%{mysqldatadir}
956
NEW_VERSION=%{mysql_version}-%{release}
957
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST # Note the difference!
958
STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
960
if [ -f $STATUS_FILE ] ; then
961
SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
963
# This should never happen, but let's be prepared
966
echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
968
if [ -x /sbin/chkconfig ] ; then
969
/sbin/chkconfig --add mysql
970
# use insserv for older SuSE Linux versions
971
elif [ -x /sbin/insserv ] ; then
972
/sbin/insserv %{_sysconfdir}/init.d/mysql
975
# Was the server running before the upgrade? If so, restart the new one.
976
if [ "$SERVER_TO_START" = "true" ] ; then
977
# Restart in the same way that mysqld will be started normally.
978
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
979
%{_sysconfdir}/init.d/mysql start
980
echo "Giving mysqld 5 seconds to start"
985
echo "Trigger 'postun --community' finished at `date`" >> $STATUS_HISTORY
986
echo >> $STATUS_HISTORY
987
echo "=====" >> $STATUS_HISTORY
990
# ----------------------------------------------------------------------
991
# Clean up the BuildRoot after build is done
992
# ----------------------------------------------------------------------
994
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
995
&& rm -rf $RPM_BUILD_ROOT;
997
##############################################################################
999
##############################################################################
1001
%files -n MySQL-server%{product_suffix} -f release/support-files/plugins.files
1002
%defattr(-,root,root,0755)
1004
%if %{defined license_files_server}
1005
%doc %{license_files_server}
1007
%doc %{src_dir}/Docs/ChangeLog
1008
%doc %{src_dir}/Docs/INFO_SRC*
1009
%doc release/Docs/INFO_BIN*
1010
%doc release/support-files/my-*.cnf
1012
%doc %attr(644, root, root) %{_infodir}/mysql.info*
1014
%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
1015
%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
1016
%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
1017
%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
1018
%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
1019
%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
1020
%doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
1021
%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
1022
%doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
1023
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
1024
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
1025
%doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
1026
%doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
1027
%doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1*
1028
%doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
1029
%doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
1030
%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
1031
%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
1032
%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
1033
%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
1034
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
1035
%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1036
%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
1037
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
1038
%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
1039
%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
1040
%doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
1041
%doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
1043
%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
1045
%attr(755, root, root) %{_bindir}/innochecksum
1046
%attr(755, root, root) %{_bindir}/my_print_defaults
1047
%attr(755, root, root) %{_bindir}/myisam_ftdump
1048
%attr(755, root, root) %{_bindir}/myisamchk
1049
%attr(755, root, root) %{_bindir}/myisamlog
1050
%attr(755, root, root) %{_bindir}/myisampack
1051
%attr(755, root, root) %{_bindir}/mysql_convert_table_format
1052
%attr(755, root, root) %{_bindir}/mysql_fix_extensions
1053
%attr(755, root, root) %{_bindir}/mysql_install_db
1054
%attr(755, root, root) %{_bindir}/mysql_plugin
1055
%attr(755, root, root) %{_bindir}/mysql_secure_installation
1056
%attr(755, root, root) %{_bindir}/mysql_setpermission
1057
%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
1058
%attr(755, root, root) %{_bindir}/mysql_upgrade
1059
%attr(755, root, root) %{_bindir}/mysql_zap
1060
%attr(755, root, root) %{_bindir}/mysqlbug
1061
%attr(755, root, root) %{_bindir}/mysqld_multi
1062
%attr(755, root, root) %{_bindir}/mysqld_safe
1063
%attr(755, root, root) %{_bindir}/mysqldumpslow
1064
%attr(755, root, root) %{_bindir}/mysqlhotcopy
1065
%attr(755, root, root) %{_bindir}/mysqltest
1066
%attr(755, root, root) %{_bindir}/perror
1067
%attr(755, root, root) %{_bindir}/replace
1068
%attr(755, root, root) %{_bindir}/resolve_stack_dump
1069
%attr(755, root, root) %{_bindir}/resolveip
1071
%attr(755, root, root) %{_sbindir}/mysqld
1072
%attr(755, root, root) %{_sbindir}/mysqld-debug
1073
%attr(755, root, root) %{_sbindir}/rcmysql
1074
%attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
1076
%if %{WITH_TCMALLOC}
1077
%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
1080
%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
1081
%attr(755, root, root) %{_sysconfdir}/init.d/mysql
1083
%attr(755, root, root) %{_datadir}/mysql/
1085
# ----------------------------------------------------------------------------
1086
%files -n MySQL-client%{product_suffix}
1088
%defattr(-, root, root, 0755)
1089
%attr(755, root, root) %{_bindir}/msql2mysql
1090
%attr(755, root, root) %{_bindir}/mysql
1091
%attr(755, root, root) %{_bindir}/mysql_find_rows
1092
%attr(755, root, root) %{_bindir}/mysql_waitpid
1093
%attr(755, root, root) %{_bindir}/mysqlaccess
1094
# XXX: This should be moved to %{_sysconfdir}
1095
%attr(644, root, root) %{_bindir}/mysqlaccess.conf
1096
%attr(755, root, root) %{_bindir}/mysqladmin
1097
%attr(755, root, root) %{_bindir}/mysqlbinlog
1098
%attr(755, root, root) %{_bindir}/mysqlcheck
1099
%attr(755, root, root) %{_bindir}/mysqldump
1100
%attr(755, root, root) %{_bindir}/mysqlimport
1101
%attr(755, root, root) %{_bindir}/mysqlshow
1102
%attr(755, root, root) %{_bindir}/mysqlslap
1104
%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
1105
%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
1106
%doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
1107
%doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
1108
%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
1109
%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
1110
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
1111
%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
1112
%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
1113
%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
1114
%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
1115
%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
1117
# ----------------------------------------------------------------------------
1118
%files -n MySQL-devel%{product_suffix} -f optional-files-devel
1119
%defattr(-, root, root, 0755)
1120
%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
1121
%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
1122
%attr(755, root, root) %{_bindir}/mysql_config
1123
%dir %attr(755, root, root) %{_includedir}/mysql
1124
%dir %attr(755, root, root) %{_libdir}/mysql
1125
%{_includedir}/mysql/*
1126
%{_datadir}/aclocal/mysql.m4
1127
%{_libdir}/mysql/libmysqlclient.a
1128
%{_libdir}/mysql/libmysqlclient_r.a
1129
%{_libdir}/mysql/libmysqlservices.a
1131
# ----------------------------------------------------------------------------
1132
%files -n MySQL-shared%{product_suffix}
1133
%defattr(-, root, root, 0755)
1134
# Shared libraries (omit for architectures that don't support them)
1135
%{_libdir}/libmysql*.so*
1137
%post -n MySQL-shared%{product_suffix}
1140
%postun -n MySQL-shared%{product_suffix}
1143
# ----------------------------------------------------------------------------
1144
%files -n MySQL-test%{product_suffix}
1145
%defattr(-, root, root, 0755)
1146
%attr(-, root, root) %{_datadir}/mysql-test
1147
%attr(755, root, root) %{_bindir}/mysql_client_test
1148
%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
1149
%attr(755, root, root) %{_bindir}/mysqltest_embedded
1150
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
1151
%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
1152
%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
1153
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
1154
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
1156
# ----------------------------------------------------------------------------
1157
%files -n MySQL-embedded%{product_suffix}
1158
%defattr(-, root, root, 0755)
1159
%attr(755, root, root) %{_bindir}/mysql_embedded
1160
%attr(644, root, root) %{_libdir}/mysql/libmysqld.a
1161
%attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a
1163
##############################################################################
1164
# The spec file changelog only includes changes made to the spec file
1165
# itself - note that they must be ordered by date (important when
1167
##############################################################################
1169
* Tue Jul 24 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
1171
- Add a macro "runselftest":
1172
if set to 1 (default), the test suite will be run during the RPM build;
1173
this can be oveeridden via the command line by adding
1174
--define "runselftest 0"
1175
Failures of the test suite will NOT make the RPM build fail!
1177
* Wed Sep 28 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1179
- Fix duplicate mentioning of "mysql_plugin" and its manual page,
1180
it is better to keep alphabetic order in the files list (merging!).
1182
* Wed Sep 14 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1184
- Let the RPM capabilities ("obsoletes" etc) ensure that an upgrade may replace
1185
the RPMs of any configuration (of the current or the preceding release series)
1186
by the new ones. This is done by not using the implicitly generated capabilities
1187
(which include the configuration name) and relying on more generic ones which
1188
just list the function ("server", "client", ...).
1189
The implicit generation cannot be prevented, so all these capabilities must be
1190
explicitly listed in "Obsoletes:"
1192
* Tue Sep 13 2011 Jonathan Perkin <jonathan.perkin@oracle.com>
1194
- Add support for Oracle Linux 6 and Red Hat Enterprise Linux 6. Due to
1195
changes in RPM behaviour ($RPM_BUILD_ROOT is removed prior to install)
1196
this necessitated a move of the libmygcc.a installation to the install
1197
phase, which is probably where it belonged in the first place.
1199
* Tue Sep 13 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1201
- "make_win_bin_dist" and its manual are dropped, cmake does it different.
1203
* Thu Sep 08 2011 Daniel Fischer <daniel.fischer@oracle.com>
1205
- Add mysql_plugin man page.
1207
* Tue Aug 30 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1209
- Add the manual page for "mysql_plugin" to the server package.
1211
* Fri Aug 19 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1213
- Null-upmerge the fix of bug#37165: This spec file is not affected.
1214
- Replace "/var/lib/mysql" by the spec file variable "%{mysqldatadir}".
1216
* Fri Aug 12 2011 Daniel Fischer <daniel.fischer@oracle.com>
1218
- Source plugin library files list from cmake-generated file.
1220
* Mon Jul 25 2011 Chuck Bell <chuck.bell@oracle.com>
1222
- Added the mysql_plugin client - enables or disables plugins.
1224
* Thu Jul 21 2011 Sunanda Menon <sunanda.menon@oracle.com>
1226
- Fix bug#12561297: Added the MySQL embedded binary
1228
* Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1230
- Fix bug#45415: "rpm upgrade recreates test database"
1231
Let the creation of the "test" database happen only during a new installation,
1232
not in an RPM upgrade.
1233
This affects both the "mkdir" and the call of "mysql_install_db".
1235
* Thu Feb 09 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1237
- Fix bug#56581: If an installation deviates from the default file locations
1238
("datadir" and "pid-file"), the mechanism to detect a running server (on upgrade)
1239
should still work, and use these locations.
1240
The problem was that the fix for bug#27072 did not check for local settings.
1242
* Mon Jan 31 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1244
- Install the new "manifest" files: "INFO_SRC" and "INFO_BIN".
1246
* Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1248
- EXCEPTIONS-CLIENT has been deleted, remove it from here too
1249
- Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
1250
a '-j' argument to make.
1252
* Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1254
- Added test authentication (WL#1054) plugin binaries
1256
* Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1258
- Added example external authentication (WL#1054) plugin binaries
1260
* Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
1262
- With a recent spec file cleanup, names have changed: A "-community" part was dropped.
1263
Reflect that in the "Obsoletes" specifications.
1264
- Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
1265
- This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
1267
* Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1269
- Change the behaviour on installation and upgrade:
1270
On installation, do not autostart the server.
1271
*Iff* the server was stopped before the upgrade is started, this is taken as a
1272
sign the administrator is handling that manually, and so the new server will
1273
not be started automatically at the end of the upgrade.
1274
The start/stop scripts will still be installed, so the server will be started
1275
on the next machine boot.
1276
This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).
1278
* Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1280
- Implement SELinux checks from distribution-specific spec file.
1282
* Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1284
- Large number of changes to build using CMake
1285
- Introduce distribution-specific RPMs
1286
- Drop debuginfo, build all binaries with debug/symbols
1287
- Remove __os_install_post, use native macro
1288
- Remove _unpackaged_files_terminate_build, make it an error to have
1290
- Remove cluster RPMs
1292
* Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1294
- Add "--with-perfschema" to the configure options.
1296
* Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1298
- User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
1299
mask "rmdir" return code 1.
1300
- Remove "ha_example.*" files from the list, they aren't built.
1302
* Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1304
- Fix a wrong path name in handling the debug plugins.
1306
* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1308
- Take the result of the debug plugin build and put it into the optimized tree,
1309
so that it becomes part of the final installation;
1310
include the files in the packlist. Part of the fixes for bug#49022.
1312
* Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1314
- Set "Oracle and/or its affiliates" as the vendor and copyright owner,
1315
accept upgrading from packages showing MySQL or Sun as vendor.
1317
* Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1319
- Formatting changes:
1320
Have a consistent structure of separator lines and of indentation
1321
(8 leading blanks => tab).
1322
- Introduce the variable "src_dir".
1323
- Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
1325
- Drop the old "with_static" argument analysis, this is not supported
1327
- Introduce variables to control the handlers individually, as well
1329
- Use the new "--with-plugin" notation for the table handlers.
1330
- Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
1331
was done back in 2002 already.
1332
- Make "--with-zlib-dir=bundled" the default, add an option to disable it.
1333
- Add missing manual pages to the file list.
1334
- Improve the runtime check for "libgcc.a", protect it against being tried
1335
with the Intel compiler "icc".
1337
* Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1339
- Change RPM file naming:
1340
- Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
1341
- Release counts from 1, not 0.
1343
* Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1345
- The "semisync" plugin file name has lost its introductory "lib",
1346
adapt the file lists for the subpackages.
1347
This is a part missing from the fix for bug#48351.
1348
- Remove the "fix_privilege_tables" manual, it does not exist in 5.5
1349
(and likely, the whole script will go, too).
1351
* Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1353
- Fix some problems with the directives around "tcmalloc" (experimental),
1354
remove erroneous traces of the InnoDB plugin (that is 5.1 only).
1356
* Fri Oct 06 2009 Magnus Blaudd <mvensson@mysql.com>
1358
- Removed mysql_fix_privilege_tables
1360
* Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
1362
- "mysqlmanager" got removed from version 5.4, all references deleted.
1364
* Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1366
- Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
1368
* Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1370
- This version does not contain the "Instance manager", "mysqlmanager":
1371
Remove it from the spec file so that packaging succeeds.
1373
* Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
1375
- Add conditionals for bundled zlib and innodb plugin
1377
* Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
1379
- Install plugin libraries in appropriate packages.
1380
- Disable libdaemon_example and ftexample plugins.
1382
* Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
1384
- Update variable used for mysql-test suite location to match source.
1386
* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
1388
- Correct yesterday's fix, so that it also works for the last flag,
1389
and fix a wrong quoting: un-quoted quote marks must not be escaped.
1391
* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
1393
- Removed "mysql_upgrade_shell"
1394
- Removed some copy/paste between debug and normal build
1396
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
1398
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
1399
This should cover both gcc and icc flags. Fixes bug#40546.
1401
* Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
1403
- Removed the "Federated" storage engine option, and enabled in all
1405
* Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
1407
- Get rid of the "warning: Installed (but unpackaged) file(s) found:"
1408
Some generated files aren't needed in RPMs:
1409
- the "sql-bench/" subdirectory
1410
Some files were missing:
1411
- /usr/share/aclocal/mysql.m4 ("devel" subpackage)
1412
- Manual "mysqlbug" ("server" subpackage)
1413
- Program "innochecksum" and its manual ("server" subpackage)
1414
- Manual "mysql_find_rows" ("client" subpackage)
1415
- Script "mysql_upgrade_shell" ("client" subpackage)
1416
- Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
1417
- Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
1419
* Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
1421
- Made the "Federated" storage engine an option
1422
- Made the "Cluster" storage engine and sub packages an option
1424
* Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
1426
- Add the man pages for "ndbd" and "ndb_mgmd".
1428
* Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
1430
- Require a manual upgrade if the alread-installed mysql-server is
1431
from another vendor, or is of a different major version.
1433
* Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
1435
- "ndb_size.tmpl" is not needed any more,
1436
"man1/mysql_install_db.1" lacked the trailing '*'.
1438
* Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
1440
- Removed man page for "mysql_create_system_tables"
1442
* Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
1446
* Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
1448
- Remove Max RPMs; the server RPMs contain a mysqld compiled with all
1449
features that previously only were built into Max.
1451
* Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
1453
- Add several man pages for NDB which are now created.
1455
* Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
1457
- Put back "libmygcc.a", found no real reason it was removed.
1459
- Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
1460
correct "libgcc.a" path is returned for the 32/64 bit architecture.
1462
* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
1464
- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
1466
* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
1468
- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
1470
- The "mysqlmanager" man page got moved from section 1 to 8.
1472
* Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
1474
- Call "make install" using "benchdir_root=%{_datadir}",
1475
because that is affecting the regression test suite as well.
1477
* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
1479
- Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
1480
replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
1483
* Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
1485
- Add "--with-partition" to all server builds.
1487
- Use "--report-features" in one test run per server build.
1489
* Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com>
1491
- The "max" server is removed from packages, effective from 5.1.12-beta.
1492
Delete all steps to build, package, or install it.
1494
* Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
1496
- Fix a typing error in the "make" target for the Perl script to run the tests.
1498
* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
1500
- Use the Perl script to run the tests, because it will automatically check
1501
whether the server is configured with SSL.
1503
* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
1505
- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
1507
- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
1508
there are some more aspects which need to be solved before this is possible.
1509
For now, just ensure the binary "mysql_upgrade" is delivered and installed.
1511
* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
1513
- Close a gap of the previous version by explicitly using
1514
a newly created temporary directory for the socket to be used
1515
in the "mysql_upgrade" operation, overriding any local setting.
1517
* Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
1519
- To run "mysql_upgrade", we need a running server;
1520
start it in isolation and skip password checks.
1522
* Sat May 20 2006 Kent Boortz <kent@mysql.com>
1524
- Always compile for PIC, position independent code.
1526
* Wed May 10 2006 Kent Boortz <kent@mysql.com>
1528
- Use character set "all" when compiling with Cluster, to make Cluster
1529
nodes independent on the character set directory, and the problem
1530
that two RPM sub packages both wants to install this directory.
1532
* Mon May 01 2006 Kent Boortz <kent@mysql.com>
1534
- Use "./libtool --mode=execute" instead of searching for the
1535
executable in current directory and ".libs".
1537
* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
1539
- Install and run "mysql_upgrade"
1541
* Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
1543
- Remove sql-bench, and MySQL-bench RPM (will be built as an independent
1544
project from the mysql-bench repository)
1546
* Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
1548
- Remove old mysqltestmanager and related programs
1549
* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
1551
- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
1553
* Wed Mar 07 2006 Kent Boortz <kent@mysql.com>
1555
- Changed product name from "Community Edition" to "Community Server"
1557
* Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
1559
- Fast mutexes is now disabled by default, but should be
1560
used in Linux builds.
1562
* Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
1564
- Reintroduced a max build
1565
- Limited testing of 'debug' and 'max' servers
1566
- Berkeley DB only in 'max'
1568
* Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
1570
- Use "-i" on "make test-force";
1571
this is essential for later evaluation of this log file.
1573
* Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
1575
- Pass '-static' to libtool, link static with our own libraries, dynamic
1576
with system libraries. Link with the bundled zlib.
1578
* Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
1580
- Modified RPM spec to match new 5.1 debug+max combined community packaging.
1582
* Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
1584
- Added "client/mysqlslap"
1586
* Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
1588
- Added zlib to the list of (static) libraries installed
1589
- Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
1590
- Compile MySQL with bundled zlib
1591
- Fixed %packager name to "MySQL Production Engineering Team"
1593
* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
1595
- Avoid using the "bundled" zlib on "shared" builds:
1596
As it is not installed (on the build system), this gives dependency
1597
problems with "libtool" causing the build to fail.
1598
(Change was done on Nov 11, but left uncommented.)
1600
* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
1602
- Extend the file existence check for "init.d/mysql" on un-install
1603
to also guard the call to "insserv"/"chkconfig".
1605
* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
1607
- added more man pages
1609
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1611
- Made yaSSL support an option (off by default)
1613
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1615
- Enabled yaSSL support
1617
* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
1619
- Give mode arguments the same way in all places
1620
- Moved copy of mysqld.a to "standard" build, but
1621
disabled it as we don't do embedded yet in 5.0
1623
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1625
- For 5.x, always compile with --with-big-tables
1626
- Copy the config.log file to location outside
1629
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1631
- Removed unneeded/obsolete configure options
1632
- Added archive engine to standard server
1633
- Removed the embedded server from experimental server
1634
- Changed suffix "-Max" => "-max"
1635
- Changed comment string "Max" => "Experimental"
1637
* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
1639
- added a usermod call to assign a potential existing mysql user to the
1640
correct user group (BUG#12823)
1641
- Save the perror binary built during Max build so it supports the NDB
1642
error codes (BUG#13740)
1643
- added a separate macro "mysqld_group" to be able to define the
1644
user group of the mysql user seperately, if desired.
1646
* Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
1648
- fixed the removing of the RPM_BUILD_ROOT in the %clean section (the
1649
$RBR variable did not get expanded, thus leaving old build roots behind)
1651
* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
1653
- Fixed the creation of the mysql user group account in the postinstall
1655
- Fixed enabling the Archive storage engine in the Max binary
1657
* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
1659
- Fixed the Requires: tag for the server RPM (BUG 12233)
1661
* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
1663
- create a "mysql" user group and assign the mysql user account to that group
1664
in the server postinstall section. (BUG 10984)
1666
* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
1668
- Do not build statically on i386 by default, only when adding either "--with
1669
static" or "--define '_with_static 1'" to the RPM build options. Static
1670
linking really only makes sense when linking against the specially patched
1673
* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
1675
- added mysql_client_test to the "bench" subpackage (BUG 10676)
1676
- added the libndbclient static and shared libraries (BUG 10676)
1678
* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
1680
- use "mysqldatadir" variable instead of hard-coding the path multiple times
1681
- use the "mysqld_user" variable on all occasions a user name is referenced
1682
- removed (incomplete) Brazilian translations
1683
- removed redundant release tags from the subpackage descriptions
1685
* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
1687
- Added a "make clean" between separate calls to "BuildMySQL".
1689
* Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
1691
- Removed the mysql_tableinfo script made obsolete by the information schema
1693
* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
1695
- Enabled the "blackhole" storage engine for the Max RPM
1697
* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
1699
- removed the MySQL manual files (html/ps/texi) - they have been removed
1700
from the MySQL sources and are now available seperately.
1702
* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
1704
- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
1705
mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
1707
* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
1709
- Disabled RAID in the Max binaries once and for all (it has finally been
1710
removed from the source tree)
1712
* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
1714
- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
1717
* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
1719
- Fixed the compilation comments and moved them into the separate build sections
1720
for Max and Standard
1722
* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
1724
- enabled the "Ndbcluster" storage engine for the max binary
1725
- added extra make install in ndb subdir after Max build to get ndb binaries
1726
- added packages for ndbcluster storage engine
1728
* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
1730
- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
1732
* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
1734
- enabled the "Federated" storage engine for the max binary
1736
* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
1738
- ISAM and merge storage engines were purged. As well as appropriate
1739
tools and manpages (isamchk and isamlog)
1741
* Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
1743
- enabled the "Archive" storage engine for the max binary
1744
- enabled the "CSV" storage engine for the max binary
1745
- enabled the "Example" storage engine for the max binary
1747
* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1749
- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1751
* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1753
- do not link statically on IA64/AMD64 as these systems do not have
1754
a patched glibc installed
1756
* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1758
- Added libmygcc.a to the devel subpackage (required to link applications
1759
against the the embedded server libmysqld.a) (BUG 4921)
1761
* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1763
- Added EXCEPTIONS-CLIENT to the "devel" package
1765
* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1767
- disabled OpenSSL in the Max binaries again (the RPM packages were the
1768
only exception to this anyway) (BUG 1043)
1770
* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1772
- fixed server postinstall (mysql_install_db was called with the wrong
1775
* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1777
- added mysql_tzinfo_to_sql to the server subpackage
1778
- run "make clean" instead of "make distclean"
1780
* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1782
- added ncurses-devel to the build prerequisites (BUG 3377)
1784
* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1786
- when using gcc, _always_ use CXX=gcc
1787
- replaced Copyright with License field (Copyright is obsolete)
1789
* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1791
- added myisam_ftdump to the Server package
1793
* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1795
- link the mysql client against libreadline instead of libedit (BUG 2289)
1797
* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1799
- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1801
* Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
1803
- fixed file permissions (BUG 1672)
1805
* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1807
- made testing for gcc3 a bit more robust
1809
* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1811
- added missing file mysql_create_system_tables to the server subpackage
1813
* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1815
- removed dependency on MySQL-client from the MySQL-devel subpackage
1816
as it is not really required. (BUG 1610)
1818
* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1820
- Fixed BUG 1162 (removed macro names from the changelog)
1821
- Really fixed BUG 998 (disable the checking for installed but
1824
* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
1826
- Fixed BUG 959 (libmysqld not being compiled properly)
1827
- Fixed BUG 998 (RPM build errors): added missing files to the
1828
distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
1829
mysql_fix_privilege_tables.1), removed "-n" from install section.
1831
* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
1833
- removed the GIF Icon (file was not included in the sources anyway)
1834
- removed unused variable shared_lib_version
1835
- do not run automake before building the standard binary
1836
(should not be necessary)
1837
- add server suffix '-standard' to standard binary (to be in line
1838
with the binary tarball distributions)
1839
- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
1840
_datadir, _includedir) throughout the spec file.
1841
- allow overriding CC and CXX (required when building with other compilers)
1843
* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1845
- re-enabled RAID again
1847
* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1849
- disabled MyISAM RAID (--with-raid) - it throws an assertion which
1850
needs to be investigated first.
1852
* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1854
- added missing file mysql_secure_installation to server subpackage
1857
* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
1859
- re-added missing pre- and post(un)install scripts to server subpackage
1860
- added config file /etc/my.cnf to the file list (just for completeness)
1861
- make sure to create the datadir with 755 permissions
1863
* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
1865
- removed unused CC and CXX variables
1866
- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
1868
* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
1870
- renamed package "MySQL" to "MySQL-server"
1871
- fixed Copyright tag
1872
- added mysql_waitpid to client subpackage (required for mysql-test-run)
1874
* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
1876
- moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
1877
Linux distributions now support this scheme as proposed by the LSB either
1878
directly or via a compatibility symlink)
1879
- Use new "restart" init script action instead of starting and stopping
1881
- Be more flexible in activating the automatic bootup - use insserv (on
1882
older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
1883
others) to create the respective symlinks
1885
* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
1887
- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
1888
(mixing 3.23 and 4.0 packages)
1890
* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
1892
- Turn off OpenSSL in MySQL-Max for now until it works properly again
1893
- enable RAID for the Max binary instead
1894
- added compatibility link: safe_mysqld -> mysqld_safe to ease the
1895
transition from 3.23
1897
* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
1899
- Reworked the build steps a little bit: the Max binary is supposed
1900
to include OpenSSL, which cannot be linked statically, thus trying
1901
to statically link against a special glibc is futile anyway
1902
- because of this, it is not required to make yet another build run
1903
just to compile the shared libs (saves a lot of time)
1904
- updated package description of the Max subpackage
1905
- clean up the BuildRoot directory afterwards
1907
* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
1909
- Updated Packager information
1910
- Fixed the build options: the regular package is supposed to
1911
include InnoDB and linked statically, while the Max package
1912
should include BDB and SSL support
1914
* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
1916
- Use more RPM macros (e.g. infodir, mandir) to make the spec
1918
- reorganized the installation of documentation files: let RPM
1920
- reorganized the file list: actually install man pages along
1921
with the binaries of the respective subpackage
1922
- do not include libmysqld.a in the devel subpackage as well, if we
1923
have a special "embedded" subpackage
1924
- reworked the package descriptions
1926
* Mon Oct 8 2001 Monty
1928
- Added embedded server as a separate RPM
1930
* Fri Apr 13 2001 Monty
1932
- Added mysqld-max to the distribution
1934
* Tue Jan 2 2001 Monty
1936
- Added mysql-test to the bench package
1938
* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
1940
- Added separate libmysql_r directory; now both a threaded
1941
and non-threaded library is shipped.
1943
* Wed Sep 28 1999 David Axmark <davida@mysql.com>
1945
- Added the support-files/my-example.cnf to the docs directory.
1947
- Removed devel dependency on base since it is about client
1950
* Wed Sep 8 1999 David Axmark <davida@mysql.com>
1952
- Cleaned up some for 3.23.
1954
* Thu Jul 1 1999 David Axmark <davida@mysql.com>
1956
- Added support for shared libraries in a separate sub
1957
package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
1959
- The --enable-assembler switch is now automatically disables on
1960
platforms there assembler code is unavailable. This should allow
1961
building this RPM on non i386 systems.
1963
* Mon Feb 22 1999 David Axmark <david@detron.se>
1965
- Removed unportable cc switches from the spec file. The defaults can
1966
now be overridden with environment variables. This feature is used
1967
to compile the official RPM with optimal (but compiler version
1970
- Removed the repetitive description parts for the sub rpms. Maybe add
1971
again if RPM gets a multiline macro capability.
1973
- Added support for a pt_BR translation. Translation contributed by
1974
Jorge Godoy <jorge@bestway.com.br>.
1976
* Wed Nov 4 1998 David Axmark <david@detron.se>
1978
- A lot of changes in all the rpm and install scripts. This may even
1979
be a working RPM :-)
1981
* Sun Aug 16 1998 David Axmark <david@detron.se>
1983
- A developers changelog for MySQL is available in the source RPM. And
1984
there is a history of major user visible changed in the Reference
1985
Manual. Only RPM specific changes will be documented here.