~james-page/ubuntu/precise/mysql-5.5/misc-fixes

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-06-11 07:34:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120611073433-l9za2ni4ipp848y3
Tags: 5.5.24-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.24 to fix security issues (LP: #1011371)
  - http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html

Show diffs side-by-side

added added

removed removed

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