~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-21 07:09:29 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20150721070929-mg4dpqkgg3it1ajf
Tags: upstream-5.6.25
ImportĀ upstreamĀ versionĀ 5.6.25

Show diffs side-by-side

added added

removed removed

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