~vlad-lesin/percona-server/mysql-5.0.33-original

« back to all changes in this revision

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

  • Committer: Vlad Lesin
  • Date: 2012-07-31 09:21:34 UTC
  • Revision ID: vladislav.lesin@percona.com-20120731092134-zfodx022b7992wsi
VirginĀ 5.0.33

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%define mysql_version           @VERSION@
 
2
 
 
3
# use "rpmbuild --with static" or "rpm --define '_with_static 1'" (for RPM 3.x)
 
4
# to enable static linking (off by default)
 
5
%{?_with_static:%define STATIC_BUILD 1}
 
6
%{!?_with_static:%define STATIC_BUILD 0}
 
7
 
 
8
# use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x)
 
9
# to build with yaSSL support (off by default)
 
10
%{?_with_yassl:%define YASSL_BUILD 1}
 
11
%{!?_with_yassl:%define YASSL_BUILD 0}
 
12
 
 
13
%if %{STATIC_BUILD}
 
14
%define release 0
 
15
%else
 
16
%define release 0.glibc23
 
17
%endif
 
18
%define license GPL
 
19
%define mysqld_user             mysql
 
20
%define mysqld_group    mysql
 
21
%define server_suffix -standard
 
22
%define mysqldatadir /var/lib/mysql
 
23
 
 
24
# We don't package all files installed into the build root by intention -
 
25
# See BUG#998 for details.
 
26
%define _unpackaged_files_terminate_build 0
 
27
 
 
28
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
 
29
 
 
30
# On SuSE 9 no separate "debuginfo" package is built. To enable basic
 
31
# debugging on that platform, we don't strip binaries on SuSE 9. We
 
32
# disable the strip of binaries by redefining the RPM macro
 
33
# "__os_install_post" leaving out the script calls that normally does
 
34
# this. We do this in all cases, as on platforms where "debuginfo" is
 
35
# created, a script "find-debuginfo.sh" will be called that will do
 
36
# the strip anyway, part of separating the executable and debug
 
37
# information into separate files put into separate packages.
 
38
#
 
39
# Some references (shows more advanced conditional usage):
 
40
# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html
 
41
# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html
 
42
# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html
 
43
# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html
 
44
 
 
45
%define __os_install_post /usr/lib/rpm/brp-compress
 
46
 
 
47
Name: MySQL
 
48
Summary:        MySQL: a very fast and reliable SQL database server
 
49
Group:          Applications/Databases
 
50
Version:        @MYSQL_NO_DASH_VERSION@
 
51
Release:        %{release}
 
52
License:        %{license}
 
53
Source:         http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/mysql-%{mysql_version}.tar.gz
 
54
URL:            http://www.mysql.com/
 
55
Packager:       MySQL Production Engineering Team <build@mysql.com>
 
56
Vendor:         MySQL AB
 
57
Provides:       msqlormysql MySQL-server mysql
 
58
BuildRequires: ncurses-devel
 
59
Obsoletes:      mysql
 
60
 
 
61
# Think about what you use here since the first step is to
 
62
# run a rm -rf
 
63
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
 
64
 
 
65
# From the manual
 
66
%description
 
67
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
 
68
and robust SQL (Structured Query Language) database server. MySQL Server
 
69
is intended for mission-critical, heavy-load production systems as well
 
70
as for embedding into mass-deployed software. MySQL is a trademark of
 
71
MySQL AB.
 
72
 
 
73
The MySQL software has Dual Licensing, which means you can use the MySQL
 
74
software free of charge under the GNU General Public License
 
75
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
 
76
licenses from MySQL AB if you do not wish to be bound by the terms of
 
77
the GPL. See the chapter "Licensing and Support" in the manual for
 
78
further info.
 
79
 
 
80
The MySQL web site (http://www.mysql.com/) provides the latest
 
81
news and information about the MySQL software. Also please see the
 
82
documentation and the manual for more information.
 
83
 
 
84
%package server
 
85
Summary:        MySQL: a very fast and reliable SQL database server
 
86
Group:          Applications/Databases
 
87
Requires: coreutils grep procps /usr/sbin/useradd /usr/sbin/groupadd /sbin/chkconfig
 
88
Provides:       msqlormysql mysql-server mysql MySQL
 
89
Obsoletes:      MySQL mysql mysql-server
 
90
 
 
91
%description server
 
92
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
 
93
and robust SQL (Structured Query Language) database server. MySQL Server
 
94
is intended for mission-critical, heavy-load production systems as well
 
95
as for embedding into mass-deployed software. MySQL is a trademark of
 
96
MySQL AB.
 
97
 
 
98
The MySQL software has Dual Licensing, which means you can use the MySQL
 
99
software free of charge under the GNU General Public License
 
100
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
 
101
licenses from MySQL AB if you do not wish to be bound by the terms of
 
102
the GPL. See the chapter "Licensing and Support" in the manual for
 
103
further info.
 
104
 
 
105
The MySQL web site (http://www.mysql.com/) provides the latest
 
106
news and information about the MySQL software. Also please see the
 
107
documentation and the manual for more information.
 
108
 
 
109
This package includes the MySQL server binary (incl. InnoDB) as well
 
110
as related utilities to run and administrate a MySQL server.
 
111
 
 
112
If you want to access and work with the database, you have to install
 
113
package "MySQL-client" as well!
 
114
 
 
115
%package client
 
116
Summary: MySQL - Client
 
117
Group: Applications/Databases
 
118
Obsoletes: mysql-client
 
119
Provides: mysql-client
 
120
 
 
121
%description client
 
122
This package contains the standard MySQL clients and administration tools. 
 
123
 
 
124
%{see_base}
 
125
 
 
126
%package ndb-storage
 
127
Summary:        MySQL - ndbcluster storage engine
 
128
Group:          Applications/Databases
 
129
 
 
130
%description ndb-storage
 
131
This package contains the ndbcluster storage engine. 
 
132
It is necessary to have this package installed on all 
 
133
computers that should store ndbcluster table data.
 
134
Note that this storage engine can only be used in conjunction
 
135
with the MySQL Max server.
 
136
 
 
137
%{see_base}
 
138
 
 
139
%package ndb-management
 
140
Summary:        MySQL - ndbcluster storage engine management
 
141
Group:          Applications/Databases
 
142
 
 
143
%description ndb-management
 
144
This package contains ndbcluster storage engine management.
 
145
It is necessary to have this package installed on at least 
 
146
one computer in the cluster.
 
147
 
 
148
%{see_base}
 
149
 
 
150
%package ndb-tools
 
151
Summary:        MySQL - ndbcluster storage engine basic tools
 
152
Group:          Applications/Databases
 
153
 
 
154
%description ndb-tools
 
155
This package contains ndbcluster storage engine basic tools.
 
156
 
 
157
%{see_base}
 
158
 
 
159
%package ndb-extra
 
160
Summary:        MySQL - ndbcluster storage engine extra tools
 
161
Group:          Applications/Databases
 
162
 
 
163
%description ndb-extra
 
164
This package contains some extra ndbcluster storage engine tools for the advanced user.
 
165
They should be used with caution.
 
166
 
 
167
%{see_base}
 
168
 
 
169
%package bench
 
170
Requires: %{name}-client perl-DBI perl
 
171
Summary: MySQL - Benchmarks and test system
 
172
Group: Applications/Databases
 
173
Provides: mysql-bench
 
174
Obsoletes: mysql-bench
 
175
AutoReqProv: no
 
176
 
 
177
%description bench
 
178
This package contains MySQL benchmark scripts and data.
 
179
 
 
180
%{see_base}
 
181
 
 
182
%package devel
 
183
Summary: MySQL - Development header files and libraries
 
184
Group: Applications/Databases
 
185
Provides: mysql-devel
 
186
Obsoletes: mysql-devel
 
187
 
 
188
%description devel
 
189
This package contains the development header files and libraries
 
190
necessary to develop MySQL client applications.
 
191
 
 
192
%{see_base}
 
193
 
 
194
%package shared
 
195
Summary: MySQL - Shared libraries
 
196
Group: Applications/Databases
 
197
Provides: mysql-shared
 
198
Obsoletes: mysql-shared
 
199
 
 
200
%description shared
 
201
This package contains the shared libraries (*.so*) which certain
 
202
languages and applications need to dynamically load and use MySQL.
 
203
 
 
204
%package Max
 
205
Summary: MySQL - server with extended functionality
 
206
Group: Applications/Databases
 
207
Provides: mysql-Max
 
208
Obsoletes: mysql-Max
 
209
Requires: MySQL-server >= @MYSQL_BASE_VERSION@
 
210
 
 
211
%description Max 
 
212
Optional MySQL server binary that supports additional features like:
 
213
 
 
214
 - Berkeley DB Storage Engine
 
215
 - Ndbcluster Storage Engine interface
 
216
 - Archive Storage Engine
 
217
 - CSV Storage Engine
 
218
 - Example Storage Engine
 
219
 - Federated Storage Engine
 
220
 - User Defined Functions (UDFs).
 
221
 
 
222
To activate this binary, just install this package in addition to
 
223
the standard MySQL package.
 
224
 
 
225
Please note that this is a dynamically linked binary!
 
226
 
 
227
#%package embedded
 
228
#Requires: %{name}-devel
 
229
#Summary: MySQL - embedded library
 
230
#Group: Applications/Databases
 
231
#Obsoletes: mysql-embedded
 
232
#
 
233
#%description embedded
 
234
#This package contains the MySQL server as an embedded library.
 
235
#
 
236
#The embedded MySQL server library makes it possible to run a
 
237
#full-featured MySQL server inside the client application.
 
238
#The main benefits are increased speed and more simple management
 
239
#for embedded applications.
 
240
#
 
241
#The API is identical for the embedded MySQL version and the
 
242
#client/server version.
 
243
#
 
244
#%{see_base}
 
245
 
 
246
%prep
 
247
%setup -n mysql-%{mysql_version}
 
248
 
 
249
%build
 
250
 
 
251
BuildMySQL() {
 
252
# The --enable-assembler simply does nothing on systems that does not
 
253
# support assembler speedups.
 
254
sh -c  "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
 
255
        CC=\"${CC:-$MYSQL_BUILD_CC}\" \
 
256
        CXX=\"${CXX:-$MYSQL_BUILD_CXX}\" \
 
257
        CFLAGS=\"${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS}\" \
 
258
        CXXFLAGS=\"${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS \
 
259
                  -felide-constructors -fno-exceptions -fno-rtti \
 
260
                  }\" \
 
261
        LDFLAGS=\"$MYSQL_BUILD_LDFLAGS\" \
 
262
        ./configure \
 
263
            $* \
 
264
            --enable-assembler \
 
265
            --enable-local-infile \
 
266
            --with-mysqld-user=%{mysqld_user} \
 
267
            --with-unix-socket-path=/var/lib/mysql/mysql.sock \
 
268
            --with-pic \
 
269
            --prefix=/ \
 
270
%if %{YASSL_BUILD}
 
271
            --with-yassl \
 
272
%endif
 
273
            --exec-prefix=%{_exec_prefix} \
 
274
            --libexecdir=%{_sbindir} \
 
275
            --libdir=%{_libdir} \
 
276
            --sysconfdir=%{_sysconfdir} \
 
277
            --datadir=%{_datadir} \
 
278
            --localstatedir=%{mysqldatadir} \
 
279
            --infodir=%{_infodir} \
 
280
            --includedir=%{_includedir} \
 
281
            --mandir=%{_mandir} \
 
282
            --enable-thread-safe-client \
 
283
            --with-readline ; \
 
284
            # Add this for more debugging support
 
285
            # --with-debug
 
286
            "
 
287
 
 
288
 # benchdir does not fit in above model. Maybe a separate bench distribution
 
289
 make benchdir_root=$RPM_BUILD_ROOT/usr/share/
 
290
}
 
291
 
 
292
# Use our own copy of glibc
 
293
 
 
294
OTHER_LIBC_DIR=/usr/local/mysql-glibc
 
295
USE_OTHER_LIBC_DIR=""
 
296
if test -d "$OTHER_LIBC_DIR"
 
297
then
 
298
  USE_OTHER_LIBC_DIR="--with-other-libc=$OTHER_LIBC_DIR"
 
299
fi
 
300
 
 
301
# Use the build root for temporary storage of the shared libraries.
 
302
 
 
303
RBR=$RPM_BUILD_ROOT
 
304
MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}
 
305
 
 
306
# Clean up the BuildRoot first
 
307
[ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR;
 
308
mkdir -p $RBR%{_libdir}/mysql
 
309
 
 
310
#
 
311
# Use MYSQL_BUILD_PATH so that we can use a dedicated version of gcc
 
312
#
 
313
PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
 
314
export PATH
 
315
 
 
316
# Build the Max binary (includes BDB and UDFs and therefore
 
317
# cannot be linked statically against the patched glibc)
 
318
 
 
319
# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
 
320
# including exceptions into the code
 
321
if [ -z "$CXX" -a -z "$CC" ]
 
322
then
 
323
        export CC="gcc"
 
324
        export CXX="gcc"
 
325
fi
 
326
 
 
327
BuildMySQL "--enable-shared \
 
328
                --with-extra-charsets=all \
 
329
                --with-berkeley-db \
 
330
                --with-innodb \
 
331
                --with-ndbcluster \
 
332
                --with-archive-storage-engine \
 
333
                --with-csv-storage-engine \
 
334
                --with-example-storage-engine \
 
335
                --with-blackhole-storage-engine \
 
336
                --with-federated-storage-engine \
 
337
                --with-big-tables \
 
338
                --with-comment=\"MySQL Community Edition - Experimental (GPL)\" \
 
339
                --with-server-suffix='-max'"
 
340
 
 
341
# We might want to save the config log file
 
342
if test -n "$MYSQL_MAXCONFLOG_DEST"
 
343
then
 
344
  cp -fp config.log "$MYSQL_MAXCONFLOG_DEST"
 
345
fi
 
346
 
 
347
( cd mysql-test
 
348
  perl ./mysql-test-run.pl --force --report-features
 
349
  perl ./mysql-test-run.pl --force --ps-protocol
 
350
  true )
 
351
 
 
352
# Save mysqld-max
 
353
./libtool --mode=execute cp sql/mysqld sql/mysqld-max
 
354
./libtool --mode=execute nm --numeric-sort sql/mysqld-max > sql/mysqld-max.sym
 
355
 
 
356
# Save the perror binary so it supports the NDB error codes (BUG#13740)
 
357
./libtool --mode=execute cp extra/perror extra/perror.ndb
 
358
 
 
359
# Install the ndb binaries
 
360
(cd ndb; make install DESTDIR=$RBR)
 
361
 
 
362
# Include libgcc.a in the devel subpackage (BUG 4921)
 
363
if expr "$CC" : ".*gcc.*" > /dev/null ;
 
364
then
 
365
  libgcc=`$CC --print-libgcc-file`
 
366
  if [ -f $libgcc ]
 
367
  then
 
368
    %define have_libgcc 1
 
369
    install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
 
370
  fi
 
371
fi
 
372
 
 
373
# Save libraries
 
374
(cd libmysql/.libs; tar cf $RBR/shared-libs.tar *.so*)
 
375
(cd libmysql_r/.libs; tar rf $RBR/shared-libs.tar *.so*)
 
376
(cd ndb/src/.libs; tar rf $RBR/shared-libs.tar *.so*)
 
377
 
 
378
# Now clean up
 
379
make clean
 
380
 
 
381
#
 
382
# Only link statically on our i386 build host (which has a specially
 
383
# patched static glibc installed) - ia64 and x86_64 run glibc-2.3 (unpatched)
 
384
# so don't link statically there
 
385
#
 
386
BuildMySQL "--disable-shared \
 
387
%if %{STATIC_BUILD}
 
388
                --with-mysqld-ldflags='-all-static' \
 
389
                --with-client-ldflags='-all-static' \
 
390
                $USE_OTHER_LIBC_DIR \
 
391
%else
 
392
                --with-zlib-dir=bundled \
 
393
%endif
 
394
                --with-extra-charsets=complex \
 
395
                --with-comment=\"MySQL Community Edition - Standard (GPL)\" \
 
396
                --with-server-suffix='%{server_suffix}' \
 
397
                --with-archive-storage-engine \
 
398
                --with-innodb \
 
399
                --with-big-tables"
 
400
 
 
401
./libtool --mode=execute nm --numeric-sort sql/mysqld > sql/mysqld.sym
 
402
 
 
403
# We might want to save the config log file
 
404
if test -n "$MYSQL_CONFLOG_DEST"
 
405
then
 
406
  cp -fp config.log "$MYSQL_CONFLOG_DEST"
 
407
fi
 
408
 
 
409
( cd mysql-test
 
410
  perl ./mysql-test-run.pl --force --report-features
 
411
  perl ./mysql-test-run.pl --force --ps-protocol
 
412
  true )
 
413
 
 
414
%install
 
415
RBR=$RPM_BUILD_ROOT
 
416
MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}
 
417
 
 
418
# Ensure that needed directories exists
 
419
install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
 
420
install -d $RBR%{mysqldatadir}/mysql
 
421
install -d $RBR%{_datadir}/{sql-bench,mysql-test}
 
422
install -d $RBR%{_includedir}
 
423
install -d $RBR%{_libdir}
 
424
install -d $RBR%{_mandir}
 
425
install -d $RBR%{_sbindir}
 
426
 
 
427
 
 
428
# Install all binaries stripped 
 
429
make install-strip DESTDIR=$RBR benchdir_root=%{_datadir}
 
430
 
 
431
# Install shared libraries (Disable for architectures that don't support it)
 
432
(cd $RBR%{_libdir}; tar xf $RBR/shared-libs.tar; rm -f $RBR/shared-libs.tar)
 
433
 
 
434
# install saved mysqld-max
 
435
install -s -m 755 $MBD/sql/mysqld-max $RBR%{_sbindir}/mysqld-max
 
436
 
 
437
# install saved perror binary with NDB support (BUG#13740)
 
438
install -s -m 755 $MBD/extra/perror.ndb $RBR%{_bindir}/perror
 
439
 
 
440
# install symbol files ( for stack trace resolution)
 
441
install -m 644 $MBD/sql/mysqld-max.sym $RBR%{_libdir}/mysql/mysqld-max.sym
 
442
install -m 644 $MBD/sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld.sym
 
443
 
 
444
# Install logrotate and autostart
 
445
install -m 644 $MBD/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
 
446
install -m 755 $MBD/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
 
447
 
 
448
# Install embedded server library in the build root
 
449
# FIXME No libmysqld on 5.0 yet
 
450
#install -m 644 libmysqld/libmysqld.a $RBR%{_libdir}/mysql/
 
451
 
 
452
# Create a symlink "rcmysql", pointing to the init.script. SuSE users
 
453
# will appreciate that, as all services usually offer this.
 
454
ln -s %{_sysconfdir}/init.d/mysql $RPM_BUILD_ROOT%{_sbindir}/rcmysql
 
455
 
 
456
# Create symbolic compatibility link safe_mysqld -> mysqld_safe
 
457
# (safe_mysqld will be gone in MySQL 4.1)
 
458
ln -sf ./mysqld_safe $RBR%{_bindir}/safe_mysqld
 
459
 
 
460
# Touch the place where the my.cnf config file and mysqlmanager.passwd
 
461
# (MySQL Instance Manager password file) might be located
 
462
# Just to make sure it's in the file list and marked as a config file
 
463
touch $RBR%{_sysconfdir}/my.cnf
 
464
touch $RBR%{_sysconfdir}/mysqlmanager.passwd
 
465
 
 
466
%pre server
 
467
# Shut down a previously installed server first
 
468
if test -x %{_sysconfdir}/init.d/mysql
 
469
then
 
470
  %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
 
471
  echo "Giving mysqld a couple of seconds to exit nicely"
 
472
  sleep 5
 
473
elif test -x %{_sysconfdir}/rc.d/init.d/mysql
 
474
then
 
475
  %{_sysconfdir}/rc.d/init.d/mysql stop > /dev/null 2>&1
 
476
  echo "Giving mysqld a couple of seconds to exit nicely"
 
477
  sleep 5
 
478
fi
 
479
 
 
480
%post server
 
481
mysql_datadir=%{mysqldatadir}
 
482
 
 
483
# Create data directory if needed
 
484
if test ! -d $mysql_datadir; then mkdir -m 755 $mysql_datadir; fi
 
485
if test ! -d $mysql_datadir/mysql; then mkdir $mysql_datadir/mysql; fi
 
486
if test ! -d $mysql_datadir/test; then mkdir $mysql_datadir/test; fi
 
487
 
 
488
# Make MySQL start/shutdown automatically when the machine does it.
 
489
# use insserv for older SuSE Linux versions
 
490
if test -x /sbin/insserv
 
491
then
 
492
        /sbin/insserv %{_sysconfdir}/init.d/mysql
 
493
# use chkconfig on Red Hat and newer SuSE releases
 
494
elif test -x /sbin/chkconfig
 
495
then
 
496
        /sbin/chkconfig --add mysql
 
497
fi
 
498
 
 
499
# Create a MySQL user and group. Do not report any problems if it already
 
500
# exists.
 
501
groupadd -r %{mysqld_group} 2> /dev/null || true
 
502
useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true 
 
503
# The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
 
504
usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
 
505
 
 
506
# Change permissions so that the user that will run the MySQL daemon
 
507
# owns all database files.
 
508
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
 
509
 
 
510
# Initiate databases if needed
 
511
%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
 
512
 
 
513
# Upgrade databases if needed would go here - but it cannot be automated yet
 
514
 
 
515
# Change permissions again to fix any new files.
 
516
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
 
517
 
 
518
# Fix permissions for the permission database so that only the user
 
519
# can read them.
 
520
chmod -R og-rw $mysql_datadir/mysql
 
521
 
 
522
# Restart in the same way that mysqld will be started normally.
 
523
%{_sysconfdir}/init.d/mysql start
 
524
 
 
525
# Allow safe_mysqld to start mysqld and print a message before we exit
 
526
sleep 2
 
527
 
 
528
 
 
529
%post ndb-storage
 
530
mysql_clusterdir=/var/lib/mysql-cluster
 
531
 
 
532
# Create cluster directory if needed
 
533
if test ! -d $mysql_clusterdir; then mkdir -m 755 $mysql_clusterdir; fi
 
534
 
 
535
 
 
536
%post Max
 
537
# Restart mysqld, to use the new binary.
 
538
echo "Restarting mysqld."
 
539
%{_sysconfdir}/init.d/mysql restart > /dev/null 2>&1
 
540
 
 
541
%preun server
 
542
if test $1 = 0
 
543
then
 
544
  # Stop MySQL before uninstalling it
 
545
  if test -x %{_sysconfdir}/init.d/mysql
 
546
  then
 
547
    %{_sysconfdir}/init.d/mysql stop > /dev/null
 
548
 
 
549
    # Remove autostart of mysql
 
550
    # for older SuSE Linux versions
 
551
    if test -x /sbin/insserv
 
552
    then
 
553
      /sbin/insserv -r %{_sysconfdir}/init.d/mysql
 
554
    # use chkconfig on Red Hat and newer SuSE releases
 
555
    elif test -x /sbin/chkconfig
 
556
    then
 
557
      /sbin/chkconfig --del mysql
 
558
    fi
 
559
  fi
 
560
fi
 
561
 
 
562
# We do not remove the mysql user since it may still own a lot of
 
563
# database files.
 
564
 
 
565
# Clean up the BuildRoot
 
566
%clean
 
567
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
 
568
 
 
569
%files server
 
570
%defattr(-,root,root,0755)
 
571
 
 
572
%doc COPYING README 
 
573
%doc support-files/my-*.cnf
 
574
%doc support-files/ndb-*.ini
 
575
 
 
576
%doc %attr(644, root, root) %{_infodir}/mysql.info*
 
577
 
 
578
%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
 
579
%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
 
580
%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
 
581
%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
 
582
%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
 
583
%doc %attr(644, root, man) %{_mandir}/man1/mysql_explain_log.1*
 
584
%doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
 
585
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
 
586
%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
 
587
%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_privilege_tables.1*
 
588
%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
 
589
%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
 
590
%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
 
591
%doc %attr(644, root, man) %{_mandir}/man8/mysqlmanager.8*
 
592
%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
 
593
%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
 
594
%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
 
595
%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
 
596
%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
 
597
%doc %attr(644, root, man) %{_mandir}/man1/safe_mysqld.1*
 
598
 
 
599
%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
 
600
%ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd
 
601
 
 
602
%attr(755, root, root) %{_bindir}/my_print_defaults
 
603
%attr(755, root, root) %{_bindir}/myisam_ftdump
 
604
%attr(755, root, root) %{_bindir}/myisamchk
 
605
%attr(755, root, root) %{_bindir}/myisamlog
 
606
%attr(755, root, root) %{_bindir}/myisampack
 
607
%attr(755, root, root) %{_bindir}/mysql_convert_table_format
 
608
%attr(755, root, root) %{_bindir}/mysql_create_system_tables
 
609
%attr(755, root, root) %{_bindir}/mysql_explain_log
 
610
%attr(755, root, root) %{_bindir}/mysql_fix_extensions
 
611
%attr(755, root, root) %{_bindir}/mysql_fix_privilege_tables
 
612
%attr(755, root, root) %{_bindir}/mysql_install_db
 
613
%attr(755, root, root) %{_bindir}/mysql_secure_installation
 
614
%attr(755, root, root) %{_bindir}/mysql_setpermission
 
615
%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
 
616
%attr(755, root, root) %{_bindir}/mysql_upgrade
 
617
%attr(755, root, root) %{_bindir}/mysql_zap
 
618
%attr(755, root, root) %{_bindir}/mysqlbug
 
619
%attr(755, root, root) %{_bindir}/mysqld_multi
 
620
%attr(755, root, root) %{_bindir}/mysqld_safe
 
621
%attr(755, root, root) %{_bindir}/mysqldumpslow
 
622
%attr(755, root, root) %{_bindir}/mysqlhotcopy
 
623
%attr(755, root, root) %{_bindir}/mysqltest
 
624
%attr(755, root, root) %{_bindir}/perror
 
625
%attr(755, root, root) %{_bindir}/replace
 
626
%attr(755, root, root) %{_bindir}/resolve_stack_dump
 
627
%attr(755, root, root) %{_bindir}/resolveip
 
628
%attr(755, root, root) %{_bindir}/safe_mysqld
 
629
 
 
630
%attr(755, root, root) %{_sbindir}/mysqld
 
631
%attr(755, root, root) %{_sbindir}/mysqlmanager
 
632
%attr(755, root, root) %{_sbindir}/rcmysql
 
633
%attr(644, root, root) %{_libdir}/mysql/mysqld.sym
 
634
 
 
635
%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
 
636
%attr(755, root, root) %{_sysconfdir}/init.d/mysql
 
637
 
 
638
%attr(755, root, root) %{_datadir}/mysql/
 
639
 
 
640
%files client
 
641
%defattr(-, root, root, 0755)
 
642
%attr(755, root, root) %{_bindir}/msql2mysql
 
643
%attr(755, root, root) %{_bindir}/mysql
 
644
%attr(755, root, root) %{_bindir}/mysql_find_rows
 
645
%attr(755, root, root) %{_bindir}/mysql_tableinfo
 
646
%attr(755, root, root) %{_bindir}/mysql_waitpid
 
647
%attr(755, root, root) %{_bindir}/mysqlaccess
 
648
%attr(755, root, root) %{_bindir}/mysqladmin
 
649
%attr(755, root, root) %{_bindir}/mysqlbinlog
 
650
%attr(755, root, root) %{_bindir}/mysqlcheck
 
651
%attr(755, root, root) %{_bindir}/mysqldump
 
652
%attr(755, root, root) %{_bindir}/mysqlimport
 
653
%attr(755, root, root) %{_bindir}/mysqlshow
 
654
 
 
655
%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
 
656
%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
 
657
%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
 
658
%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
 
659
%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
 
660
%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
 
661
%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
 
662
%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
 
663
%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
 
664
 
 
665
%post shared
 
666
/sbin/ldconfig
 
667
 
 
668
%postun shared
 
669
/sbin/ldconfig
 
670
 
 
671
%files ndb-storage
 
672
%defattr(-,root,root,0755)
 
673
%attr(755, root, root) %{_sbindir}/ndbd
 
674
 
 
675
%files ndb-management
 
676
%defattr(-,root,root,0755)
 
677
%attr(755, root, root) %{_sbindir}/ndb_mgmd
 
678
 
 
679
%files ndb-tools
 
680
%defattr(-,root,root,0755)
 
681
%attr(755, root, root) %{_bindir}/ndb_mgm
 
682
%attr(755, root, root) %{_bindir}/ndb_restore
 
683
%attr(755, root, root) %{_bindir}/ndb_waiter
 
684
%attr(755, root, root) %{_bindir}/ndb_select_all
 
685
%attr(755, root, root) %{_bindir}/ndb_select_count
 
686
%attr(755, root, root) %{_bindir}/ndb_desc
 
687
%attr(755, root, root) %{_bindir}/ndb_show_tables
 
688
%attr(755, root, root) %{_bindir}/ndb_test_platform
 
689
%attr(755, root, root) %{_bindir}/ndb_config
 
690
%attr(755, root, root) %{_bindir}/ndb_error_reporter
 
691
%attr(755, root, root) %{_bindir}/ndb_size.pl
 
692
%attr(-, root, root) %{_datadir}/mysql/ndb_size.tmpl
 
693
 
 
694
%files ndb-extra
 
695
%defattr(-,root,root,0755)
 
696
%attr(755, root, root) %{_bindir}/ndb_drop_index
 
697
%attr(755, root, root) %{_bindir}/ndb_drop_table
 
698
%attr(755, root, root) %{_bindir}/ndb_delete_all
 
699
 
 
700
%files devel
 
701
%defattr(-, root, root, 0755)
 
702
%doc EXCEPTIONS-CLIENT
 
703
%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
 
704
%attr(755, root, root) %{_bindir}/comp_err
 
705
%attr(755, root, root) %{_bindir}/mysql_config
 
706
%dir %attr(755, root, root) %{_includedir}/mysql
 
707
%dir %attr(755, root, root) %{_libdir}/mysql
 
708
%{_includedir}/mysql/*
 
709
%{_libdir}/mysql/libdbug.a
 
710
%{_libdir}/mysql/libheap.a
 
711
%if %{have_libgcc}
 
712
%{_libdir}/mysql/libmygcc.a
 
713
%endif
 
714
%{_libdir}/mysql/libmyisam.a
 
715
%{_libdir}/mysql/libmyisammrg.a
 
716
%{_libdir}/mysql/libmysqlclient.a
 
717
%{_libdir}/mysql/libmysqlclient.la
 
718
%{_libdir}/mysql/libmysqlclient_r.a
 
719
%{_libdir}/mysql/libmysqlclient_r.la
 
720
%{_libdir}/mysql/libmystrings.a
 
721
%{_libdir}/mysql/libmysys.a
 
722
%{_libdir}/mysql/libndbclient.a
 
723
%{_libdir}/mysql/libndbclient.la
 
724
%{_libdir}/mysql/libvio.a
 
725
%if %{STATIC_BUILD}
 
726
%else
 
727
%{_libdir}/mysql/libz.a
 
728
%{_libdir}/mysql/libz.la
 
729
%endif
 
730
 
 
731
%files shared
 
732
%defattr(-, root, root, 0755)
 
733
# Shared libraries (omit for architectures that don't support them)
 
734
%{_libdir}/*.so*
 
735
 
 
736
%files bench
 
737
%defattr(-, root, root, 0755)
 
738
%attr(-, root, root) %{_datadir}/sql-bench
 
739
%attr(-, root, root) %{_datadir}/mysql-test
 
740
%attr(755, root, root) %{_bindir}/mysql_client_test
 
741
%attr(755, root, root) %{_bindir}/mysqltestmanager
 
742
%attr(755, root, root) %{_bindir}/mysqltestmanager-pwgen
 
743
%attr(755, root, root) %{_bindir}/mysqltestmanagerc
 
744
 
 
745
%files Max
 
746
%defattr(-, root, root, 0755)
 
747
%attr(755, root, root) %{_sbindir}/mysqld-max
 
748
%attr(644, root, root) %{_libdir}/mysql/mysqld-max.sym
 
749
 
 
750
#%files embedded
 
751
#%defattr(-, root, root, 0755)
 
752
# %attr(644, root, root) %{_libdir}/mysql/libmysqld.a
 
753
 
 
754
# The spec file changelog only includes changes made to the spec file
 
755
# itself - note that they must be ordered by date (important when
 
756
# merging BK trees)
 
757
%changelog 
 
758
* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
 
759
 
 
760
- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
 
761
 
 
762
* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
 
763
 
 
764
- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
 
765
  in the server RPM.
 
766
- The "mysqlmanager" man page got moved from section 1 to 8.
 
767
 
 
768
* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
 
769
 
 
770
- Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB) 
 
771
  replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
 
772
  (bug#22081).
 
773
 
 
774
* Wed Nov 15 2006 Joerg Bruehe <joerg@mysql.com>
 
775
 
 
776
- Switch from "make test*" to explicit calls of the test suite,
 
777
  so that "report features" can be used.
 
778
 
 
779
* Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
 
780
 
 
781
- Fix a typing error in the "make" target for the Perl script to run the tests.
 
782
 
 
783
* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
 
784
 
 
785
- Use the Perl script to run the tests, because it will automatically check
 
786
  whether the server is configured with SSL.
 
787
 
 
788
* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
 
789
 
 
790
- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
 
791
 
 
792
- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
 
793
  there are some more aspects which need to be solved before this is possible.
 
794
  For now, just ensure the binary "mysql_upgrade" is delivered and installed.
 
795
 
 
796
* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
 
797
 
 
798
- Close a gap of the previous version by explicitly using
 
799
  a newly created temporary directory for the socket to be used
 
800
  in the "mysql_upgrade" operation, overriding any local setting.
 
801
 
 
802
* Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
 
803
 
 
804
- To run "mysql_upgrade", we need a running server;
 
805
  start it in isolation and skip password checks.
 
806
 
 
807
* Sat May 20 2006 Kent Boortz <kent@mysql.com>
 
808
 
 
809
- Always compile for PIC, position independent code.
 
810
 
 
811
* Wed May 10 2006 Kent Boortz <kent@mysql.com>
 
812
 
 
813
- Use character set "all" for the "max", to make Cluster nodes
 
814
  independent on the character set directory, and the problem that
 
815
  two RPM sub packages both wants to install this directory.
 
816
 
 
817
* Mon May 01 2006 Kent Boortz <kent@mysql.com>
 
818
 
 
819
- Use "./libtool --mode=execute" instead of searching for the
 
820
  executable in current directory and ".libs".
 
821
 
 
822
* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
 
823
 
 
824
- Install and run "mysql_upgrade"
 
825
 
 
826
* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
 
827
 
 
828
- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
 
829
 
 
830
* Fri Mar 03 2006 Kent Boortz <kent@mysql.com>
 
831
 
 
832
- Don't output an embedded package as it is empty
 
833
- Can't use bundled zlib when doing static build. Might be a
 
834
  automake/libtool problem, having two .la files, "libmysqlclient.la"
 
835
  and "libz.la", on the same command line to link "thread_test"
 
836
  expands to too many "-lc", "-lpthread" and other libs giving hard
 
837
  to nail down duplicate symbol defintion problems.
 
838
 
 
839
* Fri Jan 10 2006 Joerg Bruehe <joerg@mysql.com>
 
840
 
 
841
- Use "-i" on "make test-force";
 
842
  this is essential for later evaluation of this log file.
 
843
 
 
844
* Fri Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
 
845
 
 
846
- Added zlib to the list of (static) libraries installed
 
847
- Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
 
848
- Compile MySQL with bundled zlib
 
849
- Fixed %packager name to "MySQL Production Engineering Team"
 
850
 
 
851
* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
 
852
 
 
853
- Avoid using the "bundled" zlib on "shared" builds: 
 
854
  As it is not installed (on the build system), this gives dependency 
 
855
  problems with "libtool" causing the build to fail.
 
856
  (Change was done on Nov 11, but left uncommented.)
 
857
 
 
858
* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
 
859
 
 
860
- Extend the file existence check for "init.d/mysql" on un-install
 
861
  to also guard the call to "insserv"/"chkconfig".
 
862
 
 
863
* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
 
864
 
 
865
- added more man pages
 
866
 
 
867
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
 
868
 
 
869
- Made yaSSL support an option (off by default)
 
870
 
 
871
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
 
872
 
 
873
- Enabled yaSSL support
 
874
 
 
875
* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
 
876
 
 
877
- Give mode arguments the same way in all places
 
878
- Moved copy of mysqld.a to "standard" build, but
 
879
  disabled it as we don't do embedded yet in 5.0
 
880
 
 
881
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
 
882
 
 
883
- For 5.x, always compile with --with-big-tables
 
884
- Copy the config.log file to location outside
 
885
  the build tree
 
886
 
 
887
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
 
888
 
 
889
- Removed unneeded/obsolete configure options
 
890
- Added archive engine to standard server
 
891
- Removed the embedded server from experimental server
 
892
- Changed suffix "-Max" => "-max"
 
893
- Changed comment string "Max" => "Experimental"
 
894
 
 
895
* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
 
896
 
 
897
- added a usermod call to assign a potential existing mysql user to the
 
898
  correct user group (BUG#12823)
 
899
- Save the perror binary built during Max build so it supports the NDB
 
900
  error codes (BUG#13740)
 
901
- added a separate macro "mysqld_group" to be able to define the
 
902
  user group of the mysql user seperately, if desired.
 
903
 
 
904
* Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
 
905
 
 
906
- fixed the removing of the RPM_BUILD_ROOT in the %clean section (the
 
907
  $RBR variable did not get expanded, thus leaving old build roots behind)
 
908
 
 
909
* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
 
910
 
 
911
- Fixed the creation of the mysql user group account in the postinstall
 
912
  section (BUG 12348)
 
913
- Fixed enabling the Archive storage engine in the Max binary
 
914
 
 
915
* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
 
916
 
 
917
- Fixed the Requires: tag for the server RPM (BUG 12233)
 
918
 
 
919
* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
 
920
 
 
921
- create a "mysql" user group and assign the mysql user account to that group
 
922
  in the server postinstall section. (BUG 10984)
 
923
 
 
924
* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
 
925
 
 
926
- Do not build statically on i386 by default, only when adding either "--with
 
927
  static" or "--define '_with_static 1'" to the RPM build options. Static
 
928
  linking really only makes sense when linking against the specially patched
 
929
  glibc 2.2.5.
 
930
 
 
931
* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
 
932
 
 
933
- added mysql_client_test to the "bench" subpackage (BUG 10676)
 
934
- added the libndbclient static and shared libraries (BUG 10676)
 
935
 
 
936
* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
 
937
 
 
938
- use "mysqldatadir" variable instead of hard-coding the path multiple times
 
939
- use the "mysqld_user" variable on all occasions a user name is referenced
 
940
- removed (incomplete) Brazilian translations
 
941
- removed redundant release tags from the subpackage descriptions
 
942
 
 
943
* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
 
944
 
 
945
- Added a "make clean" between separate calls to "BuildMySQL".
 
946
 
 
947
* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
 
948
 
 
949
- Enabled the "blackhole" storage engine for the Max RPM
 
950
 
 
951
* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
 
952
 
 
953
- removed the MySQL manual files (html/ps/texi) - they have been removed
 
954
  from the MySQL sources and are now available seperately.
 
955
 
 
956
* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
 
957
 
 
958
- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
 
959
  mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
 
960
 
 
961
* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
 
962
 
 
963
- Disabled RAID in the Max binaries once and for all (it has finally been
 
964
  removed from the source tree)
 
965
 
 
966
* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
 
967
 
 
968
- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
 
969
  password file
 
970
 
 
971
* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
 
972
 
 
973
- Fixed the compilation comments and moved them into the separate build sections
 
974
  for Max and Standard
 
975
 
 
976
* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
 
977
 
 
978
- enabled the "Ndbcluster" storage engine for the max binary
 
979
- added extra make install in ndb subdir after Max build to get ndb binaries
 
980
- added packages for ndbcluster storage engine
 
981
 
 
982
* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
 
983
 
 
984
- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
 
985
 
 
986
* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
 
987
 
 
988
- enabled the "Federated" storage engine for the max binary
 
989
 
 
990
* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
 
991
 
 
992
- ISAM and merge storage engines were purged. As well as appropriate
 
993
  tools and manpages (isamchk and isamlog)
 
994
 
 
995
* Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
 
996
 
 
997
- enabled the "Archive" storage engine for the max binary
 
998
- enabled the "CSV" storage engine for the max binary
 
999
- enabled the "Example" storage engine for the max binary
 
1000
 
 
1001
* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
 
1002
 
 
1003
- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
 
1004
 
 
1005
* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
 
1006
 
 
1007
- do not link statically on IA64/AMD64 as these systems do not have
 
1008
  a patched glibc installed
 
1009
 
 
1010
* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
 
1011
 
 
1012
- Added libmygcc.a to the devel subpackage (required to link applications
 
1013
  against the the embedded server libmysqld.a) (BUG 4921)
 
1014
 
 
1015
* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
 
1016
 
 
1017
- Added EXCEPTIONS-CLIENT to the "devel" package
 
1018
 
 
1019
* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
 
1020
 
 
1021
- disabled OpenSSL in the Max binaries again (the RPM packages were the
 
1022
  only exception to this anyway) (BUG 1043)
 
1023
 
 
1024
* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
 
1025
 
 
1026
- fixed server postinstall (mysql_install_db was called with the wrong
 
1027
  parameter)
 
1028
 
 
1029
* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
 
1030
 
 
1031
- added mysql_tzinfo_to_sql to the server subpackage
 
1032
- run "make clean" instead of "make distclean"
 
1033
 
 
1034
* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
 
1035
 
 
1036
- added ncurses-devel to the build prerequisites (BUG 3377)
 
1037
 
 
1038
* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
 
1039
 
 
1040
- when using gcc, _always_ use CXX=gcc 
 
1041
- replaced Copyright with License field (Copyright is obsolete)
 
1042
 
 
1043
* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
 
1044
 
 
1045
- added myisam_ftdump to the Server package
 
1046
 
 
1047
* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
 
1048
 
 
1049
- link the mysql client against libreadline instead of libedit (BUG 2289)
 
1050
 
 
1051
* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
 
1052
 
 
1053
- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
 
1054
 
 
1055
* Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
 
1056
 
 
1057
- fixed file permissions (BUG 1672)
 
1058
 
 
1059
* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
 
1060
 
 
1061
- made testing for gcc3 a bit more robust
 
1062
 
 
1063
* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
 
1064
 
 
1065
- added missing file mysql_create_system_tables to the server subpackage
 
1066
 
 
1067
* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
 
1068
 
 
1069
- removed dependency on MySQL-client from the MySQL-devel subpackage
 
1070
  as it is not really required. (BUG 1610)
 
1071
 
 
1072
* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
 
1073
 
 
1074
- Fixed BUG 1162 (removed macro names from the changelog)
 
1075
- Really fixed BUG 998 (disable the checking for installed but
 
1076
  unpackaged files)
 
1077
 
 
1078
* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
 
1079
 
 
1080
- Fixed BUG 959 (libmysqld not being compiled properly)
 
1081
- Fixed BUG 998 (RPM build errors): added missing files to the
 
1082
  distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
 
1083
  mysql_fix_privilege_tables.1), removed "-n" from install section.
 
1084
 
 
1085
* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
 
1086
 
 
1087
- removed the GIF Icon (file was not included in the sources anyway)
 
1088
- removed unused variable shared_lib_version
 
1089
- do not run automake before building the standard binary
 
1090
  (should not be necessary)
 
1091
- add server suffix '-standard' to standard binary (to be in line
 
1092
  with the binary tarball distributions)
 
1093
- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
 
1094
  _datadir, _includedir) throughout the spec file.
 
1095
- allow overriding CC and CXX (required when building with other compilers)
 
1096
 
 
1097
* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
 
1098
 
 
1099
- re-enabled RAID again
 
1100
 
 
1101
* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
 
1102
 
 
1103
- disabled MyISAM RAID (--with-raid) - it throws an assertion which
 
1104
  needs to be investigated first.
 
1105
 
 
1106
* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
 
1107
 
 
1108
- added missing file mysql_secure_installation to server subpackage
 
1109
  (BUG 141)
 
1110
 
 
1111
* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
 
1112
 
 
1113
- re-added missing pre- and post(un)install scripts to server subpackage
 
1114
- added config file /etc/my.cnf to the file list (just for completeness)
 
1115
- make sure to create the datadir with 755 permissions
 
1116
 
 
1117
* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
 
1118
 
 
1119
- removed unused CC and CXX variables
 
1120
- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
 
1121
 
 
1122
* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
 
1123
 
 
1124
- renamed package "MySQL" to "MySQL-server"
 
1125
- fixed Copyright tag
 
1126
- added mysql_waitpid to client subpackage (required for mysql-test-run)
 
1127
 
 
1128
* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
 
1129
 
 
1130
- moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of 
 
1131
  Linux distributions now support this scheme as proposed by the LSB either
 
1132
  directly or via a compatibility symlink)
 
1133
- Use new "restart" init script action instead of starting and stopping
 
1134
  separately
 
1135
- Be more flexible in activating the automatic bootup - use insserv (on
 
1136
  older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
 
1137
  others) to create the respective symlinks
 
1138
 
 
1139
* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
 
1140
 
 
1141
- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
 
1142
  (mixing 3.23 and 4.0 packages)
 
1143
 
 
1144
* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
 
1145
 
 
1146
- Turn off OpenSSL in MySQL-Max for now until it works properly again
 
1147
- enable RAID for the Max binary instead
 
1148
- added compatibility link: safe_mysqld -> mysqld_safe to ease the
 
1149
  transition from 3.23
 
1150
 
 
1151
* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
 
1152
 
 
1153
- Reworked the build steps a little bit: the Max binary is supposed
 
1154
  to include OpenSSL, which cannot be linked statically, thus trying
 
1155
        to statically link against a special glibc is futile anyway
 
1156
- because of this, it is not required to make yet another build run
 
1157
  just to compile the shared libs (saves a lot of time)
 
1158
- updated package description of the Max subpackage
 
1159
- clean up the BuildRoot directory afterwards
 
1160
 
 
1161
* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
 
1162
 
 
1163
- Updated Packager information
 
1164
- Fixed the build options: the regular package is supposed to
 
1165
  include InnoDB and linked statically, while the Max package
 
1166
        should include BDB and SSL support
 
1167
 
 
1168
* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
 
1169
 
 
1170
- Use more RPM macros (e.g. infodir, mandir) to make the spec
 
1171
  file more portable
 
1172
- reorganized the installation of documentation files: let RPM
 
1173
  take care of this
 
1174
- reorganized the file list: actually install man pages along
 
1175
  with the binaries of the respective subpackage
 
1176
- do not include libmysqld.a in the devel subpackage as well, if we
 
1177
  have a special "embedded" subpackage
 
1178
- reworked the package descriptions
 
1179
 
 
1180
* Mon Oct  8 2001 Monty
 
1181
 
 
1182
- Added embedded server as a separate RPM
 
1183
 
 
1184
* Fri Apr 13 2001 Monty
 
1185
 
 
1186
- Added mysqld-max to the distribution
 
1187
 
 
1188
* Tue Jan 2  2001  Monty
 
1189
 
 
1190
- Added mysql-test to the bench package
 
1191
 
 
1192
* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
 
1193
 
 
1194
- Added separate libmysql_r directory; now both a threaded
 
1195
  and non-threaded library is shipped.
 
1196
 
 
1197
* Wed Sep 28 1999 David Axmark <davida@mysql.com>
 
1198
 
 
1199
- Added the support-files/my-example.cnf to the docs directory.
 
1200
 
 
1201
- Removed devel dependency on base since it is about client
 
1202
  development.
 
1203
 
 
1204
* Wed Sep 8 1999 David Axmark <davida@mysql.com>
 
1205
 
 
1206
- Cleaned up some for 3.23.
 
1207
 
 
1208
* Thu Jul 1 1999 David Axmark <davida@mysql.com>
 
1209
 
 
1210
- Added support for shared libraries in a separate sub
 
1211
  package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
 
1212
 
 
1213
- The --enable-assembler switch is now automatically disables on
 
1214
  platforms there assembler code is unavailable. This should allow
 
1215
  building this RPM on non i386 systems.
 
1216
 
 
1217
* Mon Feb 22 1999 David Axmark <david@detron.se>
 
1218
 
 
1219
- Removed unportable cc switches from the spec file. The defaults can
 
1220
  now be overridden with environment variables. This feature is used
 
1221
  to compile the official RPM with optimal (but compiler version
 
1222
  specific) switches.
 
1223
 
 
1224
- Removed the repetitive description parts for the sub rpms. Maybe add
 
1225
  again if RPM gets a multiline macro capability.
 
1226
 
 
1227
- Added support for a pt_BR translation. Translation contributed by
 
1228
  Jorge Godoy <jorge@bestway.com.br>.
 
1229
 
 
1230
* Wed Nov 4 1998 David Axmark <david@detron.se>
 
1231
 
 
1232
- A lot of changes in all the rpm and install scripts. This may even
 
1233
  be a working RPM :-)
 
1234
 
 
1235
* Sun Aug 16 1998 David Axmark <david@detron.se>
 
1236
 
 
1237
- A developers changelog for MySQL is available in the source RPM. And
 
1238
  there is a history of major user visible changed in the Reference
 
1239
  Manual.  Only RPM specific changes will be documented here.