~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to support-files/mysql.5.5.17.spec

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
2
 
#
3
 
# This program is free software; you can redistribute it and/or modify
4
 
# it under the terms of the GNU General Public License as published by
5
 
# the Free Software Foundation; version 2 of the License.
6
 
#
7
 
# This program is distributed in the hope that it will be useful,
8
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
# GNU General Public License for more details.
11
 
#
12
 
# You should have received a copy of the GNU General Public License
13
 
# along with this program; see the file COPYING. If not, write to the
14
 
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
15
 
# MA  02110-1301  USA.
16
 
 
17
 
##############################################################################
18
 
# Some common macro definitions
19
 
##############################################################################
20
 
 
21
 
# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
22
 
# change these, has to be exactly as is.
23
 
%define mysql_old_vendor        MySQL AB
24
 
%define mysql_vendor_2          Sun Microsystems, Inc.
25
 
%define mysql_vendor            Oracle and/or its affiliates
26
 
 
27
 
%define mysql_version   5.5.17
28
 
 
29
 
%define mysqld_user     mysql
30
 
%define mysqld_group    mysql
31
 
%define mysqldatadir    /var/lib/mysql
32
 
 
33
 
%define release         1
34
 
 
35
 
#
36
 
# Macros we use which are not available in all supported versions of RPM
37
 
#
38
 
# - defined/undefined are missing on RHEL4
39
 
#
40
 
%if %{expand:%{?defined:0}%{!?defined:1}}
41
 
%define defined()       %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
42
 
%endif
43
 
%if %{expand:%{?undefined:0}%{!?undefined:1}}
44
 
%define undefined()     %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
45
 
%endif
46
 
 
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.
54
 
# See:
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
60
 
 
61
 
##############################################################################
62
 
# Command line handling
63
 
##############################################################################
64
 
#
65
 
# To set options:
66
 
#
67
 
#   $ rpmbuild --define="option <x>" ...
68
 
#
69
 
 
70
 
# ----------------------------------------------------------------------------
71
 
# Commercial builds
72
 
# ----------------------------------------------------------------------------
73
 
%if %{undefined commercial}
74
 
%define commercial 0
75
 
%endif
76
 
 
77
 
# ----------------------------------------------------------------------------
78
 
# Source name
79
 
# ----------------------------------------------------------------------------
80
 
%if %{undefined src_base}
81
 
%define src_base mysql
82
 
%endif
83
 
%define src_dir %{src_base}-%{mysql_version}
84
 
 
85
 
# ----------------------------------------------------------------------------
86
 
# Feature set (storage engines, options).  Default to community (everything)
87
 
# ----------------------------------------------------------------------------
88
 
%if %{undefined feature_set}
89
 
%define feature_set community
90
 
%endif
91
 
 
92
 
# ----------------------------------------------------------------------------
93
 
# Server comment strings
94
 
# ----------------------------------------------------------------------------
95
 
%if %{undefined compilation_comment_debug}
96
 
%define compilation_comment_debug       MySQL Community Server - Debug (GPL)
97
 
%endif
98
 
%if %{undefined compilation_comment_release}
99
 
%define compilation_comment_release     MySQL Community Server (GPL)
100
 
%endif
101
 
 
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}
108
 
  %else
109
 
    %define product_suffix      %{nil}
110
 
  %endif
111
 
%endif
112
 
 
113
 
%if %{undefined server_suffix}
114
 
%define server_suffix   %{nil}
115
 
%endif
116
 
 
117
 
# ----------------------------------------------------------------------------
118
 
# Distribution support
119
 
# ----------------------------------------------------------------------------
120
 
%if %{undefined distro_specific}
121
 
%define distro_specific 0
122
 
%endif
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')
126
 
    %if "%oelver" == "4"
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
131
 
    %else
132
 
      %if "%oelver" == "5"
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
137
 
      %else
138
 
        %{error:Oracle Enterprise Linux %{oelver} is unsupported}
139
 
      %endif
140
 
    %endif
141
 
  %else
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')
144
 
      %if "%elver" == "6"
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
149
 
      %else
150
 
        %{error:Oracle Linux %{elver} is unsupported}
151
 
      %endif
152
 
    %else
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
160
 
        %else
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
166
 
          %else
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
172
 
            %else
173
 
              %{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
174
 
            %endif
175
 
          %endif
176
 
        %endif
177
 
      %else
178
 
        %if %(test -f /etc/SuSE-release && echo 1 || echo 0)
179
 
          %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release)
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
185
 
          %else
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
191
 
            %else
192
 
              %{error:SuSE %{susever} is unsupported}
193
 
            %endif
194
 
          %endif
195
 
        %else
196
 
          %{error:Unsupported distribution}
197
 
        %endif
198
 
      %endif
199
 
    %endif
200
 
  %endif
201
 
%else
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
207
 
%endif
208
 
 
209
 
# Avoid debuginfo RPMs, leaves binaries unstripped
210
 
%define debug_package   %{nil}
211
 
 
212
 
# Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
213
 
# test for __debug_package
214
 
%define __strip         /bin/true
215
 
 
216
 
# ----------------------------------------------------------------------------
217
 
# Support optional "tcmalloc" library (experimental)
218
 
# ----------------------------------------------------------------------------
219
 
%if %{defined malloc_lib_target}
220
 
%define WITH_TCMALLOC 1
221
 
%else
222
 
%define WITH_TCMALLOC 0
223
 
%endif
224
 
 
225
 
##############################################################################
226
 
# Configuration based upon above user input, not to be set directly
227
 
##############################################################################
228
 
 
229
 
%if %{commercial}
230
 
%define license_files_server    %{src_dir}/LICENSE.mysql
231
 
%define license_type            Commercial
232
 
%else
233
 
%define license_files_server    %{src_dir}/COPYING %{src_dir}/README
234
 
%define license_type            GPL
235
 
%endif
236
 
 
237
 
##############################################################################
238
 
# Main spec file section
239
 
##############################################################################
240
 
 
241
 
Name:           MySQL%{product_suffix}
242
 
Summary:        MySQL: a very fast and reliable SQL database server
243
 
Group:          Applications/Databases
244
 
Version:        5.5.17
245
 
Release:        %{release}%{?distro_releasetag:.%{distro_releasetag}}
246
 
Distribution:   %{distro_description}
247
 
License:        Copyright (c) 2000, 2011, %{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}
254
 
 
255
 
# Think about what you use here since the first step is to
256
 
# run a rm -rf
257
 
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
258
 
 
259
 
# From the manual
260
 
%description
261
 
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
262
 
and robust SQL (Structured Query Language) database server. MySQL Server
263
 
is intended for mission-critical, heavy-load production systems as well
264
 
as for embedding into mass-deployed software. MySQL is a trademark of
265
 
%{mysql_vendor}
266
 
 
267
 
The MySQL software has Dual Licensing, which means you can use the MySQL
268
 
software free of charge under the GNU General Public License
269
 
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
270
 
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
271
 
the GPL. See the chapter "Licensing and Support" in the manual for
272
 
further info.
273
 
 
274
 
The MySQL web site (http://www.mysql.com/) provides the latest
275
 
news and information about the MySQL software. Also please see the
276
 
documentation and the manual for more information.
277
 
 
278
 
##############################################################################
279
 
# Sub package definition
280
 
##############################################################################
281
 
 
282
 
%package -n MySQL-server%{product_suffix}
283
 
Summary:        MySQL: a very fast and reliable SQL database server
284
 
Group:          Applications/Databases
285
 
Requires:       %{distro_requires}
286
 
Provides:       msqlormysql mysql-server mysql MySQL MySQL-server
287
 
Obsoletes:      MySQL mysql mysql-server MySQL-server MySQL-server-community
288
 
 
289
 
%description -n MySQL-server%{product_suffix}
290
 
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
291
 
and robust SQL (Structured Query Language) database server. MySQL Server
292
 
is intended for mission-critical, heavy-load production systems as well
293
 
as for embedding into mass-deployed software. MySQL is a trademark of
294
 
%{mysql_vendor}
295
 
 
296
 
The MySQL software has Dual Licensing, which means you can use the MySQL
297
 
software free of charge under the GNU General Public License
298
 
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
299
 
licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
300
 
the GPL. See the chapter "Licensing and Support" in the manual for
301
 
further info.
302
 
 
303
 
The MySQL web site (http://www.mysql.com/) provides the latest news and 
304
 
information about the MySQL software.  Also please see the documentation
305
 
and the manual for more information.
306
 
 
307
 
This package includes the MySQL server binary as well as related utilities
308
 
to run and administer a MySQL server.
309
 
 
310
 
If you want to access and work with the database, you have to install
311
 
package "MySQL-client%{product_suffix}" as well!
312
 
 
313
 
# ----------------------------------------------------------------------------
314
 
%package -n MySQL-client%{product_suffix}
315
 
Summary:        MySQL - Client
316
 
Group:          Applications/Databases
317
 
Obsoletes:      mysql-client MySQL-client MySQL-client-community
318
 
Provides:       mysql-client MySQL-client
319
 
 
320
 
%description -n MySQL-client%{product_suffix}
321
 
This package contains the standard MySQL clients and administration tools.
322
 
 
323
 
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
324
 
 
325
 
# ----------------------------------------------------------------------------
326
 
%package -n MySQL-test%{product_suffix}
327
 
Requires:       MySQL-client%{product_suffix} perl
328
 
Summary:        MySQL - Test suite
329
 
Group:          Applications/Databases
330
 
Provides:       mysql-test
331
 
Obsoletes:      mysql-bench mysql-test MySQL-test-community
332
 
AutoReqProv:    no
333
 
 
334
 
%description -n MySQL-test%{product_suffix}
335
 
This package contains the MySQL regression test suite.
336
 
 
337
 
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
338
 
 
339
 
# ----------------------------------------------------------------------------
340
 
%package -n MySQL-devel%{product_suffix}
341
 
Summary:        MySQL - Development header files and libraries
342
 
Group:          Applications/Databases
343
 
Provides:       mysql-devel
344
 
Obsoletes:      mysql-devel MySQL-devel-community
345
 
 
346
 
%description -n MySQL-devel%{product_suffix}
347
 
This package contains the development header files and libraries necessary
348
 
to develop MySQL client applications.
349
 
 
350
 
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
351
 
 
352
 
# ----------------------------------------------------------------------------
353
 
%package -n MySQL-shared%{product_suffix}
354
 
Summary:        MySQL - Shared libraries
355
 
Group:          Applications/Databases
356
 
Provides:       mysql-shared
357
 
Obsoletes:      MySQL-shared-community
358
 
 
359
 
%description -n MySQL-shared%{product_suffix}
360
 
This package contains the shared libraries (*.so*) which certain languages
361
 
and applications need to dynamically load and use MySQL.
362
 
 
363
 
# ----------------------------------------------------------------------------
364
 
%package -n MySQL-embedded%{product_suffix}
365
 
Summary:        MySQL - embedded library
366
 
Group:          Applications/Databases
367
 
Requires:       MySQL-devel%{product_suffix}
368
 
Obsoletes:      mysql-embedded MySQL-embedded-community
369
 
 
370
 
%description -n MySQL-embedded%{product_suffix}
371
 
This package contains the MySQL server as an embedded library.
372
 
 
373
 
The embedded MySQL server library makes it possible to run a full-featured
374
 
MySQL server inside the client application. The main benefits are increased
375
 
speed and more simple management for embedded applications.
376
 
 
377
 
The API is identical for the embedded MySQL version and the
378
 
client/server version.
379
 
 
380
 
For a description of MySQL see the base MySQL RPM or http://www.mysql.com/
381
 
 
382
 
##############################################################################
383
 
%prep
384
 
%setup -T -a 0 -c -n %{src_dir}
385
 
 
386
 
##############################################################################
387
 
%build
388
 
 
389
 
# Be strict about variables, bail at earliest opportunity, etc.
390
 
set -eu
391
 
 
392
 
# Optional package files
393
 
touch optional-files-devel
394
 
 
395
 
#
396
 
# Set environment in order of preference, MYSQL_BUILD_* first, then variable
397
 
# name, finally a default.  RPM_OPT_FLAGS is assumed to be a part of the
398
 
# default RPM build environment.
399
 
#
400
 
# We set CXX=gcc by default to support so-called 'generic' binaries, where we
401
 
# do not have a dependancy on libgcc/libstdc++.  This only works while we do
402
 
# not require C++ features such as exceptions, and may need to be removed at
403
 
# a later date.
404
 
#
405
 
 
406
 
# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
407
 
# the compile in cmd-line-utils/readline - needs investigation, but for now
408
 
# we simply unset it and use those specified directly in cmake.
409
 
%if "%{_arch}" == "ia64"
410
 
RPM_OPT_FLAGS=
411
 
%endif
412
 
 
413
 
export PATH=${MYSQL_BUILD_PATH:-$PATH}
414
 
export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
415
 
export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
416
 
export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
417
 
export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
418
 
export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
419
 
export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
420
 
export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-}
421
 
 
422
 
# Build debug mysqld and libmysqld.a
423
 
mkdir debug
424
 
(
425
 
  cd debug
426
 
  # Attempt to remove any optimisation flags from the debug build
427
 
  CFLAGS=`echo " ${CFLAGS} " | \
428
 
            sed -e 's/ -O[0-9]* / /' \
429
 
                -e 's/ -unroll2 / /' \
430
 
                -e 's/ -ip / /' \
431
 
                -e 's/^ //' \
432
 
                -e 's/ $//'`
433
 
  CXXFLAGS=`echo " ${CXXFLAGS} " | \
434
 
              sed -e 's/ -O[0-9]* / /' \
435
 
                  -e 's/ -unroll2 / /' \
436
 
                  -e 's/ -ip / /' \
437
 
                  -e 's/^ //' \
438
 
                  -e 's/ $//'`
439
 
  # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
440
 
  # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
441
 
  ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
442
 
           -DCMAKE_BUILD_TYPE=Debug \
443
 
           -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
444
 
           -DFEATURE_SET="%{feature_set}" \
445
 
           -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
446
 
           -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
447
 
  echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
448
 
  make ${MAKE_JFLAG} VERBOSE=1
449
 
)
450
 
# Build full release
451
 
mkdir release
452
 
(
453
 
  cd release
454
 
  # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
455
 
  # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
456
 
  ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
457
 
           -DCMAKE_BUILD_TYPE=RelWithDebInfo \
458
 
           -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
459
 
           -DFEATURE_SET="%{feature_set}" \
460
 
           -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
461
 
           -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
462
 
  echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
463
 
  make ${MAKE_JFLAG} VERBOSE=1
464
 
)
465
 
 
466
 
##############################################################################
467
 
%install
468
 
 
469
 
RBR=$RPM_BUILD_ROOT
470
 
MBD=$RPM_BUILD_DIR/%{src_dir}
471
 
 
472
 
# Ensure that needed directories exists
473
 
install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
474
 
install -d $RBR%{mysqldatadir}/mysql
475
 
install -d $RBR%{_datadir}/mysql-test
476
 
install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
477
 
install -d $RBR%{_includedir}
478
 
install -d $RBR%{_libdir}
479
 
install -d $RBR%{_mandir}
480
 
install -d $RBR%{_sbindir}
481
 
 
482
 
# Install all binaries
483
 
(
484
 
  cd $MBD/release
485
 
  make DESTDIR=$RBR install
486
 
)
487
 
 
488
 
# For gcc builds, include libgcc.a in the devel subpackage (BUG 4921).  Do
489
 
# this in a sub-shell to ensure we don't pollute the install environment
490
 
# with compiler bits.
491
 
(
492
 
  PATH=${MYSQL_BUILD_PATH:-$PATH}
493
 
  CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
494
 
  CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
495
 
  if "${CC}" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1; then
496
 
    libgcc=`${CC} ${CFLAGS} --print-libgcc-file`
497
 
    if [ -f ${libgcc} ]; then
498
 
      mkdir -p $RBR%{_libdir}/mysql
499
 
      install -m 644 ${libgcc} $RBR%{_libdir}/mysql/libmygcc.a
500
 
      echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
501
 
    fi
502
 
  fi
503
 
)
504
 
 
505
 
# FIXME: at some point we should stop doing this and just install everything
506
 
# FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming
507
 
# FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
508
 
mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
509
 
 
510
 
# Install logrotate and autostart
511
 
install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
512
 
install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
513
 
 
514
 
# Create a symlink "rcmysql", pointing to the init.script. SuSE users
515
 
# will appreciate that, as all services usually offer this.
516
 
ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
517
 
 
518
 
# Touch the place where the my.cnf config file might be located
519
 
# Just to make sure it's in the file list and marked as a config file
520
 
touch $RBR%{_sysconfdir}/my.cnf
521
 
 
522
 
# Install SELinux files in datadir
523
 
install -m 600 $MBD/%{src_dir}/support-files/RHEL4-SElinux/mysql.{fc,te} \
524
 
  $RBR%{_datadir}/mysql/SELinux/RHEL4
525
 
 
526
 
%if %{WITH_TCMALLOC}
527
 
# Even though this is a shared library, put it under /usr/lib*/mysql, so it
528
 
# doesn't conflict with possible shared lib by the same name in /usr/lib*.  See
529
 
# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
530
 
install -m 644 "%{malloc_lib_source}" \
531
 
  "$RBR%{_libdir}/mysql/%{malloc_lib_target}"
532
 
%endif
533
 
 
534
 
# Remove man pages we explicitly do not want to package, avoids 'unpackaged
535
 
# files' warning.
536
 
# This has become obsolete:  rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
537
 
 
538
 
##############################################################################
539
 
#  Post processing actions, i.e. when installed
540
 
##############################################################################
541
 
 
542
 
%pre -n MySQL-server%{product_suffix}
543
 
# This is the code running at the beginning of a RPM upgrade action,
544
 
# before replacing the old files with the new ones.
545
 
 
546
 
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
547
 
 
548
 
# There are users who deviate from the default file system layout.
549
 
# Check local settings to support them.
550
 
if [ -x %{_bindir}/my_print_defaults ]
551
 
then
552
 
  mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
553
 
  PID_FILE_PATT=`%{_bindir}/my_print_defaults server mysqld | grep '^--pid-file=' | sed -n 's/--pid-file=//p'`
554
 
fi
555
 
if [ -z "$mysql_datadir" ]
556
 
then
557
 
  mysql_datadir=%{mysqldatadir}
558
 
fi
559
 
if [ -z "$PID_FILE_PATT" ]
560
 
then
561
 
  PID_FILE_PATT="$mysql_datadir/*.pid"
562
 
fi
563
 
 
564
 
# Check if we can safely upgrade.  An upgrade is only safe if it's from one
565
 
# of our RPMs in the same version family.
566
 
 
567
 
installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
568
 
if [ $? -eq 0 -a -n "$installed" ]; then
569
 
  vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
570
 
  version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
571
 
  myoldvendor='%{mysql_old_vendor}'
572
 
  myvendor_2='%{mysql_vendor_2}'
573
 
  myvendor='%{mysql_vendor}'
574
 
  myversion='%{mysql_version}'
575
 
 
576
 
  old_family=`echo $version \
577
 
    | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
578
 
  new_family=`echo $myversion \
579
 
    | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
580
 
 
581
 
  [ -z "$vendor" ] && vendor='<unknown>'
582
 
  [ -z "$old_family" ] && old_family="<unrecognized version $version>"
583
 
  [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
584
 
 
585
 
  error_text=
586
 
  if [ "$vendor" != "$myoldvendor" \
587
 
    -a "$vendor" != "$myvendor_2" \
588
 
    -a "$vendor" != "$myvendor" ]; then
589
 
    error_text="$error_text
590
 
The current MySQL server package is provided by a different
591
 
vendor ($vendor) than $myoldvendor, $myvendor_2, or $myvendor.
592
 
Some files may be installed to different locations, including log
593
 
files and the service startup script in %{_sysconfdir}/init.d/.
594
 
"
595
 
  fi
596
 
 
597
 
  if [ "$old_family" != "$new_family" ]; then
598
 
    error_text="$error_text
599
 
Upgrading directly from MySQL $old_family to MySQL $new_family may not
600
 
be safe in all cases.  A manual dump and restore using mysqldump is
601
 
recommended.  It is important to review the MySQL manual's Upgrading
602
 
section for version-specific incompatibilities.
603
 
"
604
 
  fi
605
 
 
606
 
  if [ -n "$error_text" ]; then
607
 
    cat <<HERE >&2
608
 
 
609
 
******************************************************************
610
 
A MySQL server package ($installed) is installed.
611
 
$error_text
612
 
A manual upgrade is required.
613
 
 
614
 
- Ensure that you have a complete, working backup of your data and my.cnf
615
 
  files
616
 
- Shut down the MySQL server cleanly
617
 
- Remove the existing MySQL packages.  Usually this command will
618
 
  list the packages you should remove:
619
 
  rpm -qa | grep -i '^mysql-'
620
 
 
621
 
  You may choose to use 'rpm --nodeps -ev <package-name>' to remove
622
 
  the package which contains the mysqlclient shared library.  The
623
 
  library will be reinstalled by the MySQL-shared-compat package.
624
 
- Install the new MySQL packages supplied by $myvendor
625
 
- Ensure that the MySQL server is started
626
 
- Run the 'mysql_upgrade' program
627
 
 
628
 
This is a brief description of the upgrade process.  Important details
629
 
can be found in the MySQL manual, in the Upgrading section.
630
 
******************************************************************
631
 
HERE
632
 
    exit 1
633
 
  fi
634
 
fi
635
 
 
636
 
# We assume that if there is exactly one ".pid" file,
637
 
# it contains the valid PID of a running MySQL server.
638
 
NR_PID_FILES=`ls $PID_FILE_PATT 2>/dev/null | wc -l`
639
 
case $NR_PID_FILES in
640
 
        0 ) SERVER_TO_START=''  ;;  # No "*.pid" file == no running server
641
 
        1 ) SERVER_TO_START='true' ;;
642
 
        * ) SERVER_TO_START=''      # Situation not clear
643
 
            SEVERAL_PID_FILES=true ;;
644
 
esac
645
 
# That logic may be debated: We might check whether it is non-empty,
646
 
# contains exactly one number (possibly a PID), and whether "ps" finds it.
647
 
# OTOH, if there is no such process, it means a crash without a cleanup -
648
 
# is that a reason not to start a new server after upgrade?
649
 
 
650
 
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
651
 
 
652
 
if [ -f $STATUS_FILE ]; then
653
 
        echo "Some previous upgrade was not finished:"
654
 
        ls -ld $STATUS_FILE
655
 
        echo "Please check its status, then do"
656
 
        echo "    rm $STATUS_FILE"
657
 
        echo "before repeating the MySQL upgrade."
658
 
        exit 1
659
 
elif [ -n "$SEVERAL_PID_FILES" ] ; then
660
 
        echo "You have more than one PID file:"
661
 
        ls -ld $PID_FILE_PATT
662
 
        echo "Please check which one (if any) corresponds to a running server"
663
 
        echo "and delete all others before repeating the MySQL upgrade."
664
 
        exit 1
665
 
fi
666
 
 
667
 
NEW_VERSION=%{mysql_version}-%{release}
668
 
 
669
 
# The "pre" section code is also run on a first installation,
670
 
# when there  is no data directory yet. Protect against error messages.
671
 
if [ -d $mysql_datadir ] ; then
672
 
        echo "MySQL RPM upgrade to version $NEW_VERSION"  > $STATUS_FILE
673
 
        echo "'pre' step running at `date`"          >> $STATUS_FILE
674
 
        echo                                         >> $STATUS_FILE
675
 
        echo "ERR file(s):"                          >> $STATUS_FILE
676
 
        ls -ltr $mysql_datadir/*.err                 >> $STATUS_FILE
677
 
        echo                                         >> $STATUS_FILE
678
 
        echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
679
 
        grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
680
 
                tail -1                              >> $STATUS_FILE
681
 
        echo                                         >> $STATUS_FILE
682
 
 
683
 
        if [ -n "$SERVER_TO_START" ] ; then
684
 
                # There is only one PID file, race possibility ignored
685
 
                echo "PID file:"                           >> $STATUS_FILE
686
 
                ls -l   $PID_FILE_PATT                     >> $STATUS_FILE
687
 
                cat     $PID_FILE_PATT                     >> $STATUS_FILE
688
 
                echo                                       >> $STATUS_FILE
689
 
                echo "Server process:"                     >> $STATUS_FILE
690
 
                ps -fp `cat $PID_FILE_PATT`                >> $STATUS_FILE
691
 
                echo                                       >> $STATUS_FILE
692
 
                echo "SERVER_TO_START=$SERVER_TO_START"    >> $STATUS_FILE
693
 
        else
694
 
                # Take a note we checked it ...
695
 
                echo "PID file:"                           >> $STATUS_FILE
696
 
                ls -l   $PID_FILE_PATT                     >> $STATUS_FILE 2>&1
697
 
        fi
698
 
fi
699
 
 
700
 
# Shut down a previously installed server first
701
 
# Note we *could* make that depend on $SERVER_TO_START, but we rather don't,
702
 
# so a "stop" is attempted even if there is no PID file.
703
 
# (Maybe the "stop" doesn't work then, but we might fix that in itself.)
704
 
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
705
 
        %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
706
 
        echo "Giving mysqld 5 seconds to exit nicely"
707
 
        sleep 5
708
 
fi
709
 
 
710
 
%post -n MySQL-server%{product_suffix}
711
 
# This is the code running at the end of a RPM install or upgrade action,
712
 
# after the (new) files have been written.
713
 
 
714
 
# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
715
 
 
716
 
# There are users who deviate from the default file system layout.
717
 
# Check local settings to support them.
718
 
if [ -x %{_bindir}/my_print_defaults ]
719
 
then
720
 
  mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
721
 
fi
722
 
if [ -z "$mysql_datadir" ]
723
 
then
724
 
  mysql_datadir=%{mysqldatadir}
725
 
fi
726
 
 
727
 
NEW_VERSION=%{mysql_version}-%{release}
728
 
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
729
 
 
730
 
# ----------------------------------------------------------------------
731
 
# Create data directory if needed, check whether upgrade or install
732
 
# ----------------------------------------------------------------------
733
 
if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi
734
 
if [ -f $STATUS_FILE ] ; then
735
 
        SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
736
 
else
737
 
        SERVER_TO_START=''
738
 
fi
739
 
# echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
740
 
if [ ! -d $mysql_datadir/mysql ] ; then
741
 
        mkdir $mysql_datadir/mysql $mysql_datadir/test
742
 
        echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE
743
 
else
744
 
        # If the directory exists, we may assume it is an upgrade.
745
 
        echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE
746
 
fi
747
 
 
748
 
# ----------------------------------------------------------------------
749
 
# Make MySQL start/shutdown automatically when the machine does it.
750
 
# ----------------------------------------------------------------------
751
 
# NOTE: This still needs to be debated. Should we check whether these links
752
 
# for the other run levels exist(ed) before the upgrade?
753
 
# use chkconfig on Enterprise Linux and newer SuSE releases
754
 
if [ -x /sbin/chkconfig ] ; then
755
 
        /sbin/chkconfig --add mysql
756
 
# use insserv for older SuSE Linux versions
757
 
elif [ -x /sbin/insserv ] ; then
758
 
        /sbin/insserv %{_sysconfdir}/init.d/mysql
759
 
fi
760
 
 
761
 
# ----------------------------------------------------------------------
762
 
# Create a MySQL user and group. Do not report any problems if it already
763
 
# exists.
764
 
# ----------------------------------------------------------------------
765
 
groupadd -r %{mysqld_group} 2> /dev/null || true
766
 
useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \
767
 
  -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
768
 
# The user may already exist, make sure it has the proper group nevertheless
769
 
# (BUG#12823)
770
 
usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
771
 
 
772
 
# ----------------------------------------------------------------------
773
 
# Change permissions so that the user that will run the MySQL daemon
774
 
# owns all database files.
775
 
# ----------------------------------------------------------------------
776
 
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
777
 
 
778
 
# ----------------------------------------------------------------------
779
 
# Initiate databases if needed
780
 
# ----------------------------------------------------------------------
781
 
if ! grep '^MySQL RPM upgrade' $STATUS_FILE >/dev/null 2>&1 ; then
782
 
        # Fix bug#45415: no "mysql_install_db" on an upgrade
783
 
        # Do this as a negative to err towards more "install" runs
784
 
        # rather than to miss one.
785
 
        %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
786
 
fi
787
 
 
788
 
# ----------------------------------------------------------------------
789
 
# Upgrade databases if needed would go here - but it cannot be automated yet
790
 
# ----------------------------------------------------------------------
791
 
 
792
 
# ----------------------------------------------------------------------
793
 
# Change permissions again to fix any new files.
794
 
# ----------------------------------------------------------------------
795
 
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
796
 
 
797
 
# ----------------------------------------------------------------------
798
 
# Fix permissions for the permission database so that only the user
799
 
# can read them.
800
 
# ----------------------------------------------------------------------
801
 
chmod -R og-rw $mysql_datadir/mysql
802
 
 
803
 
# ----------------------------------------------------------------------
804
 
# install SELinux files - but don't override existing ones
805
 
# ----------------------------------------------------------------------
806
 
SETARGETDIR=/etc/selinux/targeted/src/policy
807
 
SEDOMPROG=$SETARGETDIR/domains/program
808
 
SECONPROG=$SETARGETDIR/file_contexts/program
809
 
if [ -f /etc/redhat-release ] \
810
 
 && (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
811
 
 || grep -q "CentOS release 4" /etc/redhat-release) ; then
812
 
  echo
813
 
  echo
814
 
  echo 'Notes regarding SELinux on this platform:'
815
 
  echo '========================================='
816
 
  echo
817
 
  echo 'The default policy might cause server startup to fail because it is'
818
 
  echo 'not allowed to access critical files.  In this case, please update'
819
 
  echo 'your installation.'
820
 
  echo
821
 
  echo 'The default policy might also cause inavailability of SSL related'
822
 
  echo 'features because the server is not allowed to access /dev/random'
823
 
  echo 'and /dev/urandom. If this is a problem, please do the following:'
824
 
  echo
825
 
  echo '  1) install selinux-policy-targeted-sources from your OS vendor'
826
 
  echo '  2) add the following two lines to '$SEDOMPROG/mysqld.te':'
827
 
  echo '       allow mysqld_t random_device_t:chr_file read;'
828
 
  echo '       allow mysqld_t urandom_device_t:chr_file read;'
829
 
  echo '  3) cd to '$SETARGETDIR' and issue the following command:'
830
 
  echo '       make load'
831
 
  echo
832
 
  echo
833
 
fi
834
 
 
835
 
if [ -x sbin/restorecon ] ; then
836
 
  sbin/restorecon -R var/lib/mysql
837
 
fi
838
 
 
839
 
# Was the server running before the upgrade? If so, restart the new one.
840
 
if [ "$SERVER_TO_START" = "true" ] ; then
841
 
        # Restart in the same way that mysqld will be started normally.
842
 
        if [ -x %{_sysconfdir}/init.d/mysql ] ; then
843
 
                %{_sysconfdir}/init.d/mysql start
844
 
                echo "Giving mysqld 5 seconds to start"
845
 
                sleep 5
846
 
        fi
847
 
fi
848
 
 
849
 
# Collect an upgrade history ...
850
 
echo "Upgrade/install finished at `date`"        >> $STATUS_FILE
851
 
echo                                             >> $STATUS_FILE
852
 
echo "====="                                     >> $STATUS_FILE
853
 
STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
854
 
cat $STATUS_FILE >> $STATUS_HISTORY
855
 
mv -f  $STATUS_FILE ${STATUS_FILE}-LAST  # for "triggerpostun"
856
 
 
857
 
 
858
 
#echo "Thank you for installing the MySQL Community Server! For Production
859
 
#systems, we recommend MySQL Enterprise, which contains enterprise-ready
860
 
#software, intelligent advisory services, and full production support with
861
 
#scheduled service packs and more.  Visit www.mysql.com/enterprise for more
862
 
#information."
863
 
 
864
 
%preun -n MySQL-server%{product_suffix}
865
 
 
866
 
# Which '$1' does this refer to?  Fedora docs have info:
867
 
# " ... a count of the number of versions of the package that are installed.
868
 
#   Action                           Count
869
 
#   Install the first time           1
870
 
#   Upgrade                          2 or higher (depending on the number of versions installed)
871
 
#   Remove last version of package   0 "
872
 
#
873
 
#  http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
874
 
 
875
 
if [ $1 = 0 ] ; then
876
 
        # Stop MySQL before uninstalling it
877
 
        if [ -x %{_sysconfdir}/init.d/mysql ] ; then
878
 
                %{_sysconfdir}/init.d/mysql stop > /dev/null
879
 
                # Remove autostart of MySQL
880
 
                # use chkconfig on Enterprise Linux and newer SuSE releases
881
 
                if [ -x /sbin/chkconfig ] ; then
882
 
                        /sbin/chkconfig --del mysql
883
 
                # For older SuSE Linux versions
884
 
                elif [ -x /sbin/insserv ] ; then
885
 
                        /sbin/insserv -r %{_sysconfdir}/init.d/mysql
886
 
                fi
887
 
        fi
888
 
fi
889
 
 
890
 
# We do not remove the mysql user since it may still own a lot of
891
 
# database files.
892
 
 
893
 
%triggerpostun -n MySQL-server%{product_suffix} --MySQL-server-community
894
 
 
895
 
# Setup: We renamed this package, so any existing "server-community"
896
 
#   package will be removed when this "server" is installed.
897
 
# Problem: RPM will first run the "pre" and "post" sections of this script,
898
 
#   and only then the "preun" of that old community server.
899
 
#   But this "preun" includes stopping the server and uninstalling the service,
900
 
#   "chkconfig --del mysql" which removes the symlinks to the start script.
901
 
# Solution: *After* the community server got removed, restart this server
902
 
#   and re-install the service.
903
 
#
904
 
# For information about triggers in spec files, see the Fedora docs:
905
 
#   http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html
906
 
# For all details of this code, see the "pre" and "post" sections.
907
 
 
908
 
# There are users who deviate from the default file system layout.
909
 
# Check local settings to support them.
910
 
if [ -x %{_bindir}/my_print_defaults ]
911
 
then
912
 
  mysql_datadir=`%{_bindir}/my_print_defaults server mysqld | grep '^--datadir=' | sed -n 's/--datadir=//p'`
913
 
fi
914
 
if [ -z "$mysql_datadir" ]
915
 
then
916
 
  mysql_datadir=%{mysqldatadir}
917
 
fi
918
 
 
919
 
NEW_VERSION=%{mysql_version}-%{release}
920
 
STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST  # Note the difference!
921
 
STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
922
 
 
923
 
if [ -f $STATUS_FILE ] ; then
924
 
        SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
925
 
else
926
 
        # This should never happen, but let's be prepared
927
 
        SERVER_TO_START=''
928
 
fi
929
 
echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
930
 
 
931
 
if [ -x /sbin/chkconfig ] ; then
932
 
        /sbin/chkconfig --add mysql
933
 
# use insserv for older SuSE Linux versions
934
 
elif [ -x /sbin/insserv ] ; then
935
 
        /sbin/insserv %{_sysconfdir}/init.d/mysql
936
 
fi
937
 
 
938
 
# Was the server running before the upgrade? If so, restart the new one.
939
 
if [ "$SERVER_TO_START" = "true" ] ; then
940
 
        # Restart in the same way that mysqld will be started normally.
941
 
        if [ -x %{_sysconfdir}/init.d/mysql ] ; then
942
 
                %{_sysconfdir}/init.d/mysql start
943
 
                echo "Giving mysqld 5 seconds to start"
944
 
                sleep 5
945
 
        fi
946
 
fi
947
 
 
948
 
echo "Trigger 'postun --community' finished at `date`"        >> $STATUS_HISTORY
949
 
echo                                             >> $STATUS_HISTORY
950
 
echo "====="                                     >> $STATUS_HISTORY
951
 
 
952
 
 
953
 
# ----------------------------------------------------------------------
954
 
# Clean up the BuildRoot after build is done
955
 
# ----------------------------------------------------------------------
956
 
%clean
957
 
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
958
 
  && rm -rf $RPM_BUILD_ROOT;
959
 
 
960
 
##############################################################################
961
 
#  Files section
962
 
##############################################################################
963
 
 
964
 
%files -n MySQL-server%{product_suffix} -f release/support-files/plugins.files
965
 
%defattr(-,root,root,0755)
966
 
 
967
 
%if %{defined license_files_server}
968
 
%doc %{license_files_server}
969
 
%endif
970
 
%doc %{src_dir}/Docs/ChangeLog
971
 
%doc %{src_dir}/Docs/INFO_SRC*
972
 
%doc release/Docs/INFO_BIN*
973
 
%doc release/support-files/my-*.cnf
974
 
 
975
 
%doc %attr(644, root, root) %{_infodir}/mysql.info*
976
 
 
977
 
%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
978
 
%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
979
 
%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
980
 
%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
981
 
%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
982
 
%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
983
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
984
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
985
 
%doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
986
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
987
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
988
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
989
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
990
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1*
991
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
992
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
993
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
994
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
995
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
996
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
997
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
998
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
999
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
1000
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
1001
 
%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
1002
 
%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
1003
 
%doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
1004
 
%doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
1005
 
 
1006
 
%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
1007
 
 
1008
 
%attr(755, root, root) %{_bindir}/innochecksum
1009
 
%attr(755, root, root) %{_bindir}/my_print_defaults
1010
 
%attr(755, root, root) %{_bindir}/myisam_ftdump
1011
 
%attr(755, root, root) %{_bindir}/myisamchk
1012
 
%attr(755, root, root) %{_bindir}/myisamlog
1013
 
%attr(755, root, root) %{_bindir}/myisampack
1014
 
%attr(755, root, root) %{_bindir}/mysql_convert_table_format
1015
 
%attr(755, root, root) %{_bindir}/mysql_fix_extensions
1016
 
%attr(755, root, root) %{_bindir}/mysql_install_db
1017
 
%attr(755, root, root) %{_bindir}/mysql_plugin
1018
 
%attr(755, root, root) %{_bindir}/mysql_secure_installation
1019
 
%attr(755, root, root) %{_bindir}/mysql_setpermission
1020
 
%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
1021
 
%attr(755, root, root) %{_bindir}/mysql_upgrade
1022
 
%attr(755, root, root) %{_bindir}/mysql_zap
1023
 
%attr(755, root, root) %{_bindir}/mysqlbug
1024
 
%attr(755, root, root) %{_bindir}/mysqld_multi
1025
 
%attr(755, root, root) %{_bindir}/mysqld_safe
1026
 
%attr(755, root, root) %{_bindir}/mysqldumpslow
1027
 
%attr(755, root, root) %{_bindir}/mysqlhotcopy
1028
 
%attr(755, root, root) %{_bindir}/mysqltest
1029
 
%attr(755, root, root) %{_bindir}/perror
1030
 
%attr(755, root, root) %{_bindir}/replace
1031
 
%attr(755, root, root) %{_bindir}/resolve_stack_dump
1032
 
%attr(755, root, root) %{_bindir}/resolveip
1033
 
 
1034
 
%attr(755, root, root) %{_sbindir}/mysqld
1035
 
%attr(755, root, root) %{_sbindir}/mysqld-debug
1036
 
%attr(755, root, root) %{_sbindir}/rcmysql
1037
 
%attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
1038
 
 
1039
 
%if %{WITH_TCMALLOC}
1040
 
%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
1041
 
%endif
1042
 
 
1043
 
%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
1044
 
%attr(755, root, root) %{_sysconfdir}/init.d/mysql
1045
 
 
1046
 
%attr(755, root, root) %{_datadir}/mysql/
1047
 
 
1048
 
# ----------------------------------------------------------------------------
1049
 
%files -n MySQL-client%{product_suffix}
1050
 
 
1051
 
%defattr(-, root, root, 0755)
1052
 
%attr(755, root, root) %{_bindir}/msql2mysql
1053
 
%attr(755, root, root) %{_bindir}/mysql
1054
 
%attr(755, root, root) %{_bindir}/mysql_find_rows
1055
 
%attr(755, root, root) %{_bindir}/mysql_waitpid
1056
 
%attr(755, root, root) %{_bindir}/mysqlaccess
1057
 
# XXX: This should be moved to %{_sysconfdir}
1058
 
%attr(644, root, root) %{_bindir}/mysqlaccess.conf
1059
 
%attr(755, root, root) %{_bindir}/mysqladmin
1060
 
%attr(755, root, root) %{_bindir}/mysqlbinlog
1061
 
%attr(755, root, root) %{_bindir}/mysqlcheck
1062
 
%attr(755, root, root) %{_bindir}/mysqldump
1063
 
%attr(755, root, root) %{_bindir}/mysqlimport
1064
 
%attr(755, root, root) %{_bindir}/mysqlshow
1065
 
%attr(755, root, root) %{_bindir}/mysqlslap
1066
 
 
1067
 
%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
1068
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
1069
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
1070
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
1071
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
1072
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
1073
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
1074
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
1075
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
1076
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
1077
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
1078
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
1079
 
 
1080
 
# ----------------------------------------------------------------------------
1081
 
%files -n MySQL-devel%{product_suffix} -f optional-files-devel
1082
 
%defattr(-, root, root, 0755)
1083
 
%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
1084
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
1085
 
%attr(755, root, root) %{_bindir}/mysql_config
1086
 
%dir %attr(755, root, root) %{_includedir}/mysql
1087
 
%dir %attr(755, root, root) %{_libdir}/mysql
1088
 
%{_includedir}/mysql/*
1089
 
%{_datadir}/aclocal/mysql.m4
1090
 
%{_libdir}/mysql/libmysqlclient.a
1091
 
%{_libdir}/mysql/libmysqlclient_r.a
1092
 
%{_libdir}/mysql/libmysqlservices.a
1093
 
 
1094
 
# ----------------------------------------------------------------------------
1095
 
%files -n MySQL-shared%{product_suffix}
1096
 
%defattr(-, root, root, 0755)
1097
 
# Shared libraries (omit for architectures that don't support them)
1098
 
%{_libdir}/libmysql*.so*
1099
 
 
1100
 
%post -n MySQL-shared%{product_suffix}
1101
 
/sbin/ldconfig
1102
 
 
1103
 
%postun -n MySQL-shared%{product_suffix}
1104
 
/sbin/ldconfig
1105
 
 
1106
 
# ----------------------------------------------------------------------------
1107
 
%files -n MySQL-test%{product_suffix}
1108
 
%defattr(-, root, root, 0755)
1109
 
%attr(-, root, root) %{_datadir}/mysql-test
1110
 
%attr(755, root, root) %{_bindir}/mysql_client_test
1111
 
%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
1112
 
%attr(755, root, root) %{_bindir}/mysqltest_embedded
1113
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
1114
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
1115
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
1116
 
%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
1117
 
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
1118
 
 
1119
 
# ----------------------------------------------------------------------------
1120
 
%files -n MySQL-embedded%{product_suffix}
1121
 
%defattr(-, root, root, 0755)
1122
 
%attr(755, root, root) %{_bindir}/mysql_embedded
1123
 
%attr(644, root, root) %{_libdir}/mysql/libmysqld.a
1124
 
%attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a
1125
 
 
1126
 
##############################################################################
1127
 
# The spec file changelog only includes changes made to the spec file
1128
 
# itself - note that they must be ordered by date (important when
1129
 
# merging BK trees)
1130
 
##############################################################################
1131
 
%changelog
1132
 
* Wed Sep 28 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1133
 
 
1134
 
- Fix duplicate mentioning of "mysql_plugin" and its manual page,
1135
 
  it is better to keep alphabetic order in the files list (merging!).
1136
 
 
1137
 
* Tue Sep 13 2011 Jonathan Perkin <jonathan.perkin@oracle.com>
1138
 
 
1139
 
- Add support for Oracle Linux 6 and Red Hat Enterprise Linux 6.  Due to
1140
 
  changes in RPM behaviour ($RPM_BUILD_ROOT is removed prior to install)
1141
 
  this necessitated a move of the libmygcc.a installation to the install
1142
 
  phase, which is probably where it belonged in the first place.
1143
 
 
1144
 
* Tue Sep 13 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1145
 
 
1146
 
- "make_win_bin_dist" and its manual are dropped, cmake does it different.
1147
 
 
1148
 
* Thu Sep 08 2011 Daniel Fischer <daniel.fischer@oracle.com>
1149
 
 
1150
 
- Add mysql_plugin man page.
1151
 
 
1152
 
* Tue Aug 30 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1153
 
 
1154
 
- Add the manual page for "mysql_plugin" to the server package.
1155
 
 
1156
 
* Fri Aug 19 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1157
 
 
1158
 
- Null-upmerge the fix of bug#37165: This spec file is not affected.
1159
 
- Replace "/var/lib/mysql" by the spec file variable "%{mysqldatadir}".
1160
 
 
1161
 
* Fri Aug 12 2011 Daniel Fischer <daniel.fischer@oracle.com>
1162
 
 
1163
 
- Source plugin library files list from cmake-generated file.
1164
 
 
1165
 
* Mon Jul 25 2011 Chuck Bell <chuck.bell@oracle.com>
1166
 
 
1167
 
- Added the mysql_plugin client - enables or disables plugins.
1168
 
 
1169
 
* Thu Jul 21 2011 Sunanda Menon <sunanda.menon@oracle.com>
1170
 
 
1171
 
- Fix bug#12561297: Added the MySQL embedded binary
1172
 
 
1173
 
* Thu Jul 07 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1174
 
 
1175
 
- Fix bug#45415: "rpm upgrade recreates test database"
1176
 
  Let the creation of the "test" database happen only during a new installation,
1177
 
  not in an RPM upgrade.
1178
 
  This affects both the "mkdir" and the call of "mysql_install_db".
1179
 
 
1180
 
* Thu Feb 09 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1181
 
 
1182
 
- Fix bug#56581: If an installation deviates from the default file locations
1183
 
  ("datadir" and "pid-file"), the mechanism to detect a running server (on upgrade)
1184
 
  should still work, and use these locations.
1185
 
  The problem was that the fix for bug#27072 did not check for local settings.
1186
 
  
1187
 
* Mon Jan 31 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
1188
 
 
1189
 
- Install the new "manifest" files: "INFO_SRC" and "INFO_BIN".
1190
 
 
1191
 
* Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1192
 
 
1193
 
- EXCEPTIONS-CLIENT has been deleted, remove it from here too
1194
 
- Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
1195
 
  a '-j' argument to make.
1196
 
 
1197
 
* Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1198
 
 
1199
 
- Added test authentication (WL#1054) plugin binaries
1200
 
 
1201
 
* Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1202
 
 
1203
 
- Added example external authentication (WL#1054) plugin binaries
1204
 
 
1205
 
* Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
1206
 
 
1207
 
- With a recent spec file cleanup, names have changed: A "-community" part was dropped.
1208
 
  Reflect that in the "Obsoletes" specifications.
1209
 
- Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
1210
 
- This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
1211
 
 
1212
 
* Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1213
 
 
1214
 
- Change the behaviour on installation and upgrade:
1215
 
  On installation, do not autostart the server.
1216
 
  *Iff* the server was stopped before the upgrade is started, this is taken as a
1217
 
  sign the administrator is handling that manually, and so the new server will
1218
 
  not be started automatically at the end of the upgrade.
1219
 
  The start/stop scripts will still be installed, so the server will be started
1220
 
  on the next machine boot.
1221
 
  This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).
1222
 
 
1223
 
* Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1224
 
 
1225
 
- Implement SELinux checks from distribution-specific spec file.
1226
 
 
1227
 
* Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1228
 
 
1229
 
- Large number of changes to build using CMake
1230
 
- Introduce distribution-specific RPMs
1231
 
- Drop debuginfo, build all binaries with debug/symbols
1232
 
- Remove __os_install_post, use native macro
1233
 
- Remove _unpackaged_files_terminate_build, make it an error to have
1234
 
  unpackaged files
1235
 
- Remove cluster RPMs
1236
 
 
1237
 
* Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1238
 
 
1239
 
- Add "--with-perfschema" to the configure options.
1240
 
 
1241
 
* Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1242
 
 
1243
 
- User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
1244
 
  mask "rmdir" return code 1.
1245
 
- Remove "ha_example.*" files from the list, they aren't built.
1246
 
 
1247
 
* Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1248
 
 
1249
 
- Fix a wrong path name in handling the debug plugins.
1250
 
 
1251
 
* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1252
 
 
1253
 
- Take the result of the debug plugin build and put it into the optimized tree,
1254
 
  so that it becomes part of the final installation;
1255
 
  include the files in the packlist. Part of the fixes for bug#49022.
1256
 
 
1257
 
* Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1258
 
 
1259
 
- Set "Oracle and/or its affiliates" as the vendor and copyright owner,
1260
 
  accept upgrading from packages showing MySQL or Sun as vendor.
1261
 
 
1262
 
* Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1263
 
 
1264
 
- Formatting changes:
1265
 
  Have a consistent structure of separator lines and of indentation
1266
 
  (8 leading blanks => tab).
1267
 
- Introduce the variable "src_dir".
1268
 
- Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
1269
 
  over "CC" ("CXX").
1270
 
- Drop the old "with_static" argument analysis, this is not supported
1271
 
  in 5.1 since ages.
1272
 
- Introduce variables to control the handlers individually, as well
1273
 
  as other options.
1274
 
- Use the new "--with-plugin" notation for the table handlers.
1275
 
- Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
1276
 
  was done back in 2002 already.
1277
 
- Make "--with-zlib-dir=bundled" the default, add an option to disable it.
1278
 
- Add missing manual pages to the file list.
1279
 
- Improve the runtime check for "libgcc.a", protect it against being tried
1280
 
  with the Intel compiler "icc".
1281
 
 
1282
 
* Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1283
 
 
1284
 
- Change RPM file naming:
1285
 
  - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
1286
 
  - Release counts from 1, not 0.
1287
 
 
1288
 
* Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1289
 
 
1290
 
- The "semisync" plugin file name has lost its introductory "lib",
1291
 
  adapt the file lists for the subpackages.
1292
 
  This is a part missing from the fix for bug#48351.
1293
 
- Remove the "fix_privilege_tables" manual, it does not exist in 5.5
1294
 
  (and likely, the whole script will go, too).
1295
 
 
1296
 
* Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1297
 
 
1298
 
- Fix some problems with the directives around "tcmalloc" (experimental),
1299
 
  remove erroneous traces of the InnoDB plugin (that is 5.1 only).
1300
 
 
1301
 
* Fri Oct 06 2009 Magnus Blaudd <mvensson@mysql.com>
1302
 
 
1303
 
- Removed mysql_fix_privilege_tables
1304
 
 
1305
 
* Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
1306
 
 
1307
 
- "mysqlmanager" got removed from version 5.4, all references deleted.
1308
 
 
1309
 
* Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1310
 
 
1311
 
- Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
1312
 
 
1313
 
* Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1314
 
 
1315
 
- This version does not contain the "Instance manager", "mysqlmanager":
1316
 
  Remove it from the spec file so that packaging succeeds.
1317
 
 
1318
 
* Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
1319
 
 
1320
 
- Add conditionals for bundled zlib and innodb plugin
1321
 
 
1322
 
* Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
1323
 
 
1324
 
- Install plugin libraries in appropriate packages.
1325
 
- Disable libdaemon_example and ftexample plugins.
1326
 
 
1327
 
* Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
1328
 
 
1329
 
- Update variable used for mysql-test suite location to match source.
1330
 
 
1331
 
* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
1332
 
 
1333
 
- Correct yesterday's fix, so that it also works for the last flag,
1334
 
  and fix a wrong quoting: un-quoted quote marks must not be escaped.
1335
 
 
1336
 
* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
1337
 
 
1338
 
- Removed "mysql_upgrade_shell"
1339
 
- Removed some copy/paste between debug and normal build
1340
 
 
1341
 
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
1342
 
 
1343
 
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
1344
 
  This should cover both gcc and icc flags.  Fixes bug#40546.
1345
 
 
1346
 
* Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
1347
 
 
1348
 
- Removed the "Federated" storage engine option, and enabled in all
1349
 
 
1350
 
* Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
1351
 
 
1352
 
- Get rid of the "warning: Installed (but unpackaged) file(s) found:"
1353
 
  Some generated files aren't needed in RPMs:
1354
 
  - the "sql-bench/" subdirectory
1355
 
  Some files were missing:
1356
 
  - /usr/share/aclocal/mysql.m4  ("devel" subpackage)
1357
 
  - Manual "mysqlbug" ("server" subpackage)
1358
 
  - Program "innochecksum" and its manual ("server" subpackage)
1359
 
  - Manual "mysql_find_rows" ("client" subpackage)
1360
 
  - Script "mysql_upgrade_shell" ("client" subpackage)
1361
 
  - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
1362
 
  - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
1363
 
 
1364
 
* Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
1365
 
 
1366
 
- Made the "Federated" storage engine an option
1367
 
- Made the "Cluster" storage engine and sub packages an option
1368
 
 
1369
 
* Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
1370
 
 
1371
 
- Add the man pages for "ndbd" and "ndb_mgmd".
1372
 
 
1373
 
* Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
1374
 
 
1375
 
- Require a manual upgrade if the alread-installed mysql-server is
1376
 
  from another vendor, or is of a different major version.
1377
 
 
1378
 
* Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
1379
 
 
1380
 
- "ndb_size.tmpl" is not needed any more,
1381
 
  "man1/mysql_install_db.1" lacked the trailing '*'.
1382
 
 
1383
 
* Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
1384
 
 
1385
 
- Removed man page for "mysql_create_system_tables"
1386
 
 
1387
 
* Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
1388
 
 
1389
 
- Add debug server.
1390
 
 
1391
 
* Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
1392
 
 
1393
 
- Remove Max RPMs; the server RPMs contain a mysqld compiled with all
1394
 
  features that previously only were built into Max.
1395
 
 
1396
 
* Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
1397
 
 
1398
 
- Add several man pages for NDB which are now created.
1399
 
 
1400
 
* Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
1401
 
 
1402
 
- Put back "libmygcc.a", found no real reason it was removed.
1403
 
 
1404
 
- Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
1405
 
  correct "libgcc.a" path is returned for the 32/64 bit architecture.
1406
 
 
1407
 
* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
1408
 
 
1409
 
- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
1410
 
 
1411
 
* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
1412
 
 
1413
 
- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
1414
 
  in the server RPM.
1415
 
- The "mysqlmanager" man page got moved from section 1 to 8.
1416
 
 
1417
 
* Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
1418
 
 
1419
 
- Call "make install" using "benchdir_root=%{_datadir}",
1420
 
  because that is affecting the regression test suite as well.
1421
 
 
1422
 
* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
1423
 
 
1424
 
- Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
1425
 
  replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
1426
 
  (bug#22081).
1427
 
 
1428
 
* Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
1429
 
 
1430
 
- Add "--with-partition" to all server builds.
1431
 
 
1432
 
- Use "--report-features" in one test run per server build.
1433
 
 
1434
 
* Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com>
1435
 
 
1436
 
- The "max" server is removed from packages, effective from 5.1.12-beta.
1437
 
  Delete all steps to build, package, or install it.
1438
 
 
1439
 
* Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
1440
 
 
1441
 
- Fix a typing error in the "make" target for the Perl script to run the tests.
1442
 
 
1443
 
* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
1444
 
 
1445
 
- Use the Perl script to run the tests, because it will automatically check
1446
 
  whether the server is configured with SSL.
1447
 
 
1448
 
* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
1449
 
 
1450
 
- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
1451
 
 
1452
 
- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
1453
 
  there are some more aspects which need to be solved before this is possible.
1454
 
  For now, just ensure the binary "mysql_upgrade" is delivered and installed.
1455
 
 
1456
 
* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
1457
 
 
1458
 
- Close a gap of the previous version by explicitly using
1459
 
  a newly created temporary directory for the socket to be used
1460
 
  in the "mysql_upgrade" operation, overriding any local setting.
1461
 
 
1462
 
* Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
1463
 
 
1464
 
- To run "mysql_upgrade", we need a running server;
1465
 
  start it in isolation and skip password checks.
1466
 
 
1467
 
* Sat May 20 2006 Kent Boortz <kent@mysql.com>
1468
 
 
1469
 
- Always compile for PIC, position independent code.
1470
 
 
1471
 
* Wed May 10 2006 Kent Boortz <kent@mysql.com>
1472
 
 
1473
 
- Use character set "all" when compiling with Cluster, to make Cluster
1474
 
  nodes independent on the character set directory, and the problem
1475
 
  that two RPM sub packages both wants to install this directory.
1476
 
 
1477
 
* Mon May 01 2006 Kent Boortz <kent@mysql.com>
1478
 
 
1479
 
- Use "./libtool --mode=execute" instead of searching for the
1480
 
  executable in current directory and ".libs".
1481
 
 
1482
 
* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
1483
 
 
1484
 
- Install and run "mysql_upgrade"
1485
 
 
1486
 
* Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
1487
 
 
1488
 
- Remove sql-bench, and MySQL-bench RPM (will be built as an independent
1489
 
  project from the mysql-bench repository)
1490
 
 
1491
 
* Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
1492
 
 
1493
 
- Remove old mysqltestmanager and related programs
1494
 
* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
1495
 
 
1496
 
- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
1497
 
 
1498
 
* Wed Mar 07 2006 Kent Boortz <kent@mysql.com>
1499
 
 
1500
 
- Changed product name from "Community Edition" to "Community Server"
1501
 
 
1502
 
* Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
1503
 
 
1504
 
- Fast mutexes is now disabled by default, but should be
1505
 
  used in Linux builds.
1506
 
 
1507
 
* Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
1508
 
 
1509
 
- Reintroduced a max build
1510
 
- Limited testing of 'debug' and 'max' servers
1511
 
- Berkeley DB only in 'max'
1512
 
 
1513
 
* Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
1514
 
 
1515
 
- Use "-i" on "make test-force";
1516
 
  this is essential for later evaluation of this log file.
1517
 
 
1518
 
* Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
1519
 
 
1520
 
- Pass '-static' to libtool, link static with our own libraries, dynamic
1521
 
  with system libraries.  Link with the bundled zlib.
1522
 
 
1523
 
* Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
1524
 
 
1525
 
- Modified RPM spec to match new 5.1 debug+max combined community packaging.
1526
 
 
1527
 
* Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
1528
 
 
1529
 
- Added "client/mysqlslap"
1530
 
 
1531
 
* Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
1532
 
 
1533
 
- Added zlib to the list of (static) libraries installed
1534
 
- Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
1535
 
- Compile MySQL with bundled zlib
1536
 
- Fixed %packager name to "MySQL Production Engineering Team"
1537
 
 
1538
 
* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
1539
 
 
1540
 
- Avoid using the "bundled" zlib on "shared" builds:
1541
 
  As it is not installed (on the build system), this gives dependency
1542
 
  problems with "libtool" causing the build to fail.
1543
 
  (Change was done on Nov 11, but left uncommented.)
1544
 
 
1545
 
* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
1546
 
 
1547
 
- Extend the file existence check for "init.d/mysql" on un-install
1548
 
  to also guard the call to "insserv"/"chkconfig".
1549
 
 
1550
 
* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
1551
 
 
1552
 
- added more man pages
1553
 
 
1554
 
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1555
 
 
1556
 
- Made yaSSL support an option (off by default)
1557
 
 
1558
 
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1559
 
 
1560
 
- Enabled yaSSL support
1561
 
 
1562
 
* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
1563
 
 
1564
 
- Give mode arguments the same way in all places
1565
 
- Moved copy of mysqld.a to "standard" build, but
1566
 
  disabled it as we don't do embedded yet in 5.0
1567
 
 
1568
 
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1569
 
 
1570
 
- For 5.x, always compile with --with-big-tables
1571
 
- Copy the config.log file to location outside
1572
 
  the build tree
1573
 
 
1574
 
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
1575
 
 
1576
 
- Removed unneeded/obsolete configure options
1577
 
- Added archive engine to standard server
1578
 
- Removed the embedded server from experimental server
1579
 
- Changed suffix "-Max" => "-max"
1580
 
- Changed comment string "Max" => "Experimental"
1581
 
 
1582
 
* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
1583
 
 
1584
 
- added a usermod call to assign a potential existing mysql user to the
1585
 
  correct user group (BUG#12823)
1586
 
- Save the perror binary built during Max build so it supports the NDB
1587
 
  error codes (BUG#13740)
1588
 
- added a separate macro "mysqld_group" to be able to define the
1589
 
  user group of the mysql user seperately, if desired.
1590
 
 
1591
 
* Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
1592
 
 
1593
 
- fixed the removing of the RPM_BUILD_ROOT in the %clean section (the
1594
 
  $RBR variable did not get expanded, thus leaving old build roots behind)
1595
 
 
1596
 
* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
1597
 
 
1598
 
- Fixed the creation of the mysql user group account in the postinstall
1599
 
  section (BUG 12348)
1600
 
- Fixed enabling the Archive storage engine in the Max binary
1601
 
 
1602
 
* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
1603
 
 
1604
 
- Fixed the Requires: tag for the server RPM (BUG 12233)
1605
 
 
1606
 
* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
1607
 
 
1608
 
- create a "mysql" user group and assign the mysql user account to that group
1609
 
  in the server postinstall section. (BUG 10984)
1610
 
 
1611
 
* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
1612
 
 
1613
 
- Do not build statically on i386 by default, only when adding either "--with
1614
 
  static" or "--define '_with_static 1'" to the RPM build options. Static
1615
 
  linking really only makes sense when linking against the specially patched
1616
 
  glibc 2.2.5.
1617
 
 
1618
 
* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
1619
 
 
1620
 
- added mysql_client_test to the "bench" subpackage (BUG 10676)
1621
 
- added the libndbclient static and shared libraries (BUG 10676)
1622
 
 
1623
 
* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
1624
 
 
1625
 
- use "mysqldatadir" variable instead of hard-coding the path multiple times
1626
 
- use the "mysqld_user" variable on all occasions a user name is referenced
1627
 
- removed (incomplete) Brazilian translations
1628
 
- removed redundant release tags from the subpackage descriptions
1629
 
 
1630
 
* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
1631
 
 
1632
 
- Added a "make clean" between separate calls to "BuildMySQL".
1633
 
 
1634
 
* Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
1635
 
 
1636
 
- Removed the mysql_tableinfo script made obsolete by the information schema
1637
 
 
1638
 
* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
1639
 
 
1640
 
- Enabled the "blackhole" storage engine for the Max RPM
1641
 
 
1642
 
* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
1643
 
 
1644
 
- removed the MySQL manual files (html/ps/texi) - they have been removed
1645
 
  from the MySQL sources and are now available seperately.
1646
 
 
1647
 
* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
1648
 
 
1649
 
- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
1650
 
  mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
1651
 
 
1652
 
* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
1653
 
 
1654
 
- Disabled RAID in the Max binaries once and for all (it has finally been
1655
 
  removed from the source tree)
1656
 
 
1657
 
* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
1658
 
 
1659
 
- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
1660
 
  password file
1661
 
 
1662
 
* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
1663
 
 
1664
 
- Fixed the compilation comments and moved them into the separate build sections
1665
 
  for Max and Standard
1666
 
 
1667
 
* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
1668
 
 
1669
 
- enabled the "Ndbcluster" storage engine for the max binary
1670
 
- added extra make install in ndb subdir after Max build to get ndb binaries
1671
 
- added packages for ndbcluster storage engine
1672
 
 
1673
 
* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
1674
 
 
1675
 
- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
1676
 
 
1677
 
* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
1678
 
 
1679
 
- enabled the "Federated" storage engine for the max binary
1680
 
 
1681
 
* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
1682
 
 
1683
 
- ISAM and merge storage engines were purged. As well as appropriate
1684
 
  tools and manpages (isamchk and isamlog)
1685
 
 
1686
 
* Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
1687
 
 
1688
 
- enabled the "Archive" storage engine for the max binary
1689
 
- enabled the "CSV" storage engine for the max binary
1690
 
- enabled the "Example" storage engine for the max binary
1691
 
 
1692
 
* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1693
 
 
1694
 
- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1695
 
 
1696
 
* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1697
 
 
1698
 
- do not link statically on IA64/AMD64 as these systems do not have
1699
 
  a patched glibc installed
1700
 
 
1701
 
* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1702
 
 
1703
 
- Added libmygcc.a to the devel subpackage (required to link applications
1704
 
  against the the embedded server libmysqld.a) (BUG 4921)
1705
 
 
1706
 
* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1707
 
 
1708
 
- Added EXCEPTIONS-CLIENT to the "devel" package
1709
 
 
1710
 
* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1711
 
 
1712
 
- disabled OpenSSL in the Max binaries again (the RPM packages were the
1713
 
  only exception to this anyway) (BUG 1043)
1714
 
 
1715
 
* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1716
 
 
1717
 
- fixed server postinstall (mysql_install_db was called with the wrong
1718
 
  parameter)
1719
 
 
1720
 
* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1721
 
 
1722
 
- added mysql_tzinfo_to_sql to the server subpackage
1723
 
- run "make clean" instead of "make distclean"
1724
 
 
1725
 
* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1726
 
 
1727
 
- added ncurses-devel to the build prerequisites (BUG 3377)
1728
 
 
1729
 
* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1730
 
 
1731
 
- when using gcc, _always_ use CXX=gcc
1732
 
- replaced Copyright with License field (Copyright is obsolete)
1733
 
 
1734
 
* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1735
 
 
1736
 
- added myisam_ftdump to the Server package
1737
 
 
1738
 
* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1739
 
 
1740
 
- link the mysql client against libreadline instead of libedit (BUG 2289)
1741
 
 
1742
 
* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1743
 
 
1744
 
- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1745
 
 
1746
 
* Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
1747
 
 
1748
 
- fixed file permissions (BUG 1672)
1749
 
 
1750
 
* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1751
 
 
1752
 
- made testing for gcc3 a bit more robust
1753
 
 
1754
 
* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1755
 
 
1756
 
- added missing file mysql_create_system_tables to the server subpackage
1757
 
 
1758
 
* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1759
 
 
1760
 
- removed dependency on MySQL-client from the MySQL-devel subpackage
1761
 
  as it is not really required. (BUG 1610)
1762
 
 
1763
 
* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1764
 
 
1765
 
- Fixed BUG 1162 (removed macro names from the changelog)
1766
 
- Really fixed BUG 998 (disable the checking for installed but
1767
 
  unpackaged files)
1768
 
 
1769
 
* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
1770
 
 
1771
 
- Fixed BUG 959 (libmysqld not being compiled properly)
1772
 
- Fixed BUG 998 (RPM build errors): added missing files to the
1773
 
  distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
1774
 
  mysql_fix_privilege_tables.1), removed "-n" from install section.
1775
 
 
1776
 
* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
1777
 
 
1778
 
- removed the GIF Icon (file was not included in the sources anyway)
1779
 
- removed unused variable shared_lib_version
1780
 
- do not run automake before building the standard binary
1781
 
  (should not be necessary)
1782
 
- add server suffix '-standard' to standard binary (to be in line
1783
 
  with the binary tarball distributions)
1784
 
- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
1785
 
  _datadir, _includedir) throughout the spec file.
1786
 
- allow overriding CC and CXX (required when building with other compilers)
1787
 
 
1788
 
* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1789
 
 
1790
 
- re-enabled RAID again
1791
 
 
1792
 
* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1793
 
 
1794
 
- disabled MyISAM RAID (--with-raid) - it throws an assertion which
1795
 
  needs to be investigated first.
1796
 
 
1797
 
* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1798
 
 
1799
 
- added missing file mysql_secure_installation to server subpackage
1800
 
  (BUG 141)
1801
 
 
1802
 
* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
1803
 
 
1804
 
- re-added missing pre- and post(un)install scripts to server subpackage
1805
 
- added config file /etc/my.cnf to the file list (just for completeness)
1806
 
- make sure to create the datadir with 755 permissions
1807
 
 
1808
 
* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
1809
 
 
1810
 
- removed unused CC and CXX variables
1811
 
- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
1812
 
 
1813
 
* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
1814
 
 
1815
 
- renamed package "MySQL" to "MySQL-server"
1816
 
- fixed Copyright tag
1817
 
- added mysql_waitpid to client subpackage (required for mysql-test-run)
1818
 
 
1819
 
* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
1820
 
 
1821
 
- moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
1822
 
  Linux distributions now support this scheme as proposed by the LSB either
1823
 
  directly or via a compatibility symlink)
1824
 
- Use new "restart" init script action instead of starting and stopping
1825
 
  separately
1826
 
- Be more flexible in activating the automatic bootup - use insserv (on
1827
 
  older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
1828
 
  others) to create the respective symlinks
1829
 
 
1830
 
* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
1831
 
 
1832
 
- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
1833
 
  (mixing 3.23 and 4.0 packages)
1834
 
 
1835
 
* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
1836
 
 
1837
 
- Turn off OpenSSL in MySQL-Max for now until it works properly again
1838
 
- enable RAID for the Max binary instead
1839
 
- added compatibility link: safe_mysqld -> mysqld_safe to ease the
1840
 
  transition from 3.23
1841
 
 
1842
 
* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
1843
 
 
1844
 
- Reworked the build steps a little bit: the Max binary is supposed
1845
 
  to include OpenSSL, which cannot be linked statically, thus trying
1846
 
  to statically link against a special glibc is futile anyway
1847
 
- because of this, it is not required to make yet another build run
1848
 
  just to compile the shared libs (saves a lot of time)
1849
 
- updated package description of the Max subpackage
1850
 
- clean up the BuildRoot directory afterwards
1851
 
 
1852
 
* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
1853
 
 
1854
 
- Updated Packager information
1855
 
- Fixed the build options: the regular package is supposed to
1856
 
  include InnoDB and linked statically, while the Max package
1857
 
  should include BDB and SSL support
1858
 
 
1859
 
* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
1860
 
 
1861
 
- Use more RPM macros (e.g. infodir, mandir) to make the spec
1862
 
  file more portable
1863
 
- reorganized the installation of documentation files: let RPM
1864
 
  take care of this
1865
 
- reorganized the file list: actually install man pages along
1866
 
  with the binaries of the respective subpackage
1867
 
- do not include libmysqld.a in the devel subpackage as well, if we
1868
 
  have a special "embedded" subpackage
1869
 
- reworked the package descriptions
1870
 
 
1871
 
* Mon Oct  8 2001 Monty
1872
 
 
1873
 
- Added embedded server as a separate RPM
1874
 
 
1875
 
* Fri Apr 13 2001 Monty
1876
 
 
1877
 
- Added mysqld-max to the distribution
1878
 
 
1879
 
* Tue Jan 2  2001  Monty
1880
 
 
1881
 
- Added mysql-test to the bench package
1882
 
 
1883
 
* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
1884
 
 
1885
 
- Added separate libmysql_r directory; now both a threaded
1886
 
  and non-threaded library is shipped.
1887
 
 
1888
 
* Wed Sep 28 1999 David Axmark <davida@mysql.com>
1889
 
 
1890
 
- Added the support-files/my-example.cnf to the docs directory.
1891
 
 
1892
 
- Removed devel dependency on base since it is about client
1893
 
  development.
1894
 
 
1895
 
* Wed Sep 8 1999 David Axmark <davida@mysql.com>
1896
 
 
1897
 
- Cleaned up some for 3.23.
1898
 
 
1899
 
* Thu Jul 1 1999 David Axmark <davida@mysql.com>
1900
 
 
1901
 
- Added support for shared libraries in a separate sub
1902
 
  package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
1903
 
 
1904
 
- The --enable-assembler switch is now automatically disables on
1905
 
  platforms there assembler code is unavailable. This should allow
1906
 
  building this RPM on non i386 systems.
1907
 
 
1908
 
* Mon Feb 22 1999 David Axmark <david@detron.se>
1909
 
 
1910
 
- Removed unportable cc switches from the spec file. The defaults can
1911
 
  now be overridden with environment variables. This feature is used
1912
 
  to compile the official RPM with optimal (but compiler version
1913
 
  specific) switches.
1914
 
 
1915
 
- Removed the repetitive description parts for the sub rpms. Maybe add
1916
 
  again if RPM gets a multiline macro capability.
1917
 
 
1918
 
- Added support for a pt_BR translation. Translation contributed by
1919
 
  Jorge Godoy <jorge@bestway.com.br>.
1920
 
 
1921
 
* Wed Nov 4 1998 David Axmark <david@detron.se>
1922
 
 
1923
 
- A lot of changes in all the rpm and install scripts. This may even
1924
 
  be a working RPM :-)
1925
 
 
1926
 
* Sun Aug 16 1998 David Axmark <david@detron.se>
1927
 
 
1928
 
- A developers changelog for MySQL is available in the source RPM. And
1929
 
  there is a history of major user visible changed in the Reference
1930
 
  Manual.  Only RPM specific changes will be documented here.