1
%define mysql_version @VERSION@
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}
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}
16
%define release 0.glibc23
19
%define mysqld_user mysql
20
%define mysqld_group mysql
21
%define server_suffix -standard
22
%define mysqldatadir /var/lib/mysql
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
28
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
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.
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
45
%define __os_install_post /usr/lib/rpm/brp-compress
48
Summary: MySQL: a very fast and reliable SQL database server
49
Group: Applications/Databases
50
Version: @MYSQL_NO_DASH_VERSION@
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>
57
Provides: msqlormysql MySQL-server mysql
58
BuildRequires: ncurses-devel
61
# Think about what you use here since the first step is to
63
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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
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
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.
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
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
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
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.
109
This package includes the MySQL server binary (incl. InnoDB) as well
110
as related utilities to run and administrate a MySQL server.
112
If you want to access and work with the database, you have to install
113
package "MySQL-client" as well!
116
Summary: MySQL - Client
117
Group: Applications/Databases
118
Obsoletes: mysql-client
119
Provides: mysql-client
122
This package contains the standard MySQL clients and administration tools.
127
Summary: MySQL - ndbcluster storage engine
128
Group: Applications/Databases
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.
139
%package ndb-management
140
Summary: MySQL - ndbcluster storage engine management
141
Group: Applications/Databases
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.
151
Summary: MySQL - ndbcluster storage engine basic tools
152
Group: Applications/Databases
154
%description ndb-tools
155
This package contains ndbcluster storage engine basic tools.
160
Summary: MySQL - ndbcluster storage engine extra tools
161
Group: Applications/Databases
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.
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
178
This package contains MySQL benchmark scripts and data.
183
Summary: MySQL - Development header files and libraries
184
Group: Applications/Databases
185
Provides: mysql-devel
186
Obsoletes: mysql-devel
189
This package contains the development header files and libraries
190
necessary to develop MySQL client applications.
195
Summary: MySQL - Shared libraries
196
Group: Applications/Databases
197
Provides: mysql-shared
198
Obsoletes: mysql-shared
201
This package contains the shared libraries (*.so*) which certain
202
languages and applications need to dynamically load and use MySQL.
205
Summary: MySQL - server with extended functionality
206
Group: Applications/Databases
209
Requires: MySQL-server >= @MYSQL_BASE_VERSION@
212
Optional MySQL server binary that supports additional features like:
214
- Berkeley DB Storage Engine
215
- Ndbcluster Storage Engine interface
216
- Archive Storage Engine
218
- Example Storage Engine
219
- Federated Storage Engine
220
- User Defined Functions (UDFs).
222
To activate this binary, just install this package in addition to
223
the standard MySQL package.
225
Please note that this is a dynamically linked binary!
228
#Requires: %{name}-devel
229
#Summary: MySQL - embedded library
230
#Group: Applications/Databases
231
#Obsoletes: mysql-embedded
233
#%description embedded
234
#This package contains the MySQL server as an embedded library.
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.
241
#The API is identical for the embedded MySQL version and the
242
#client/server version.
247
%setup -n mysql-%{mysql_version}
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 \
261
LDFLAGS=\"$MYSQL_BUILD_LDFLAGS\" \
265
--enable-local-infile \
266
--with-mysqld-user=%{mysqld_user} \
267
--with-unix-socket-path=/var/lib/mysql/mysql.sock \
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 \
284
# Add this for more debugging support
288
# benchdir does not fit in above model. Maybe a separate bench distribution
289
make benchdir_root=$RPM_BUILD_ROOT/usr/share/
292
# Use our own copy of glibc
294
OTHER_LIBC_DIR=/usr/local/mysql-glibc
295
USE_OTHER_LIBC_DIR=""
296
if test -d "$OTHER_LIBC_DIR"
298
USE_OTHER_LIBC_DIR="--with-other-libc=$OTHER_LIBC_DIR"
301
# Use the build root for temporary storage of the shared libraries.
304
MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}
306
# Clean up the BuildRoot first
307
[ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR;
308
mkdir -p $RBR%{_libdir}/mysql
311
# Use MYSQL_BUILD_PATH so that we can use a dedicated version of gcc
313
PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
316
# Build the Max binary (includes BDB and UDFs and therefore
317
# cannot be linked statically against the patched glibc)
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" ]
327
BuildMySQL "--enable-shared \
328
--with-extra-charsets=all \
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 \
338
--with-comment=\"MySQL Community Edition - Experimental (GPL)\" \
339
--with-server-suffix='-max'"
341
# We might want to save the config log file
342
if test -n "$MYSQL_MAXCONFLOG_DEST"
344
cp -fp config.log "$MYSQL_MAXCONFLOG_DEST"
348
perl ./mysql-test-run.pl --force --report-features
349
perl ./mysql-test-run.pl --force --ps-protocol
353
./libtool --mode=execute cp sql/mysqld sql/mysqld-max
354
./libtool --mode=execute nm --numeric-sort sql/mysqld-max > sql/mysqld-max.sym
356
# Save the perror binary so it supports the NDB error codes (BUG#13740)
357
./libtool --mode=execute cp extra/perror extra/perror.ndb
359
# Install the ndb binaries
360
(cd ndb; make install DESTDIR=$RBR)
362
# Include libgcc.a in the devel subpackage (BUG 4921)
363
if expr "$CC" : ".*gcc.*" > /dev/null ;
365
libgcc=`$CC --print-libgcc-file`
368
%define have_libgcc 1
369
install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
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*)
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
386
BuildMySQL "--disable-shared \
388
--with-mysqld-ldflags='-all-static' \
389
--with-client-ldflags='-all-static' \
390
$USE_OTHER_LIBC_DIR \
392
--with-zlib-dir=bundled \
394
--with-extra-charsets=complex \
395
--with-comment=\"MySQL Community Edition - Standard (GPL)\" \
396
--with-server-suffix='%{server_suffix}' \
397
--with-archive-storage-engine \
401
./libtool --mode=execute nm --numeric-sort sql/mysqld > sql/mysqld.sym
403
# We might want to save the config log file
404
if test -n "$MYSQL_CONFLOG_DEST"
406
cp -fp config.log "$MYSQL_CONFLOG_DEST"
410
perl ./mysql-test-run.pl --force --report-features
411
perl ./mysql-test-run.pl --force --ps-protocol
416
MBD=$RPM_BUILD_DIR/mysql-%{mysql_version}
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}
428
# Install all binaries stripped
429
make install-strip DESTDIR=$RBR benchdir_root=%{_datadir}
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)
434
# install saved mysqld-max
435
install -s -m 755 $MBD/sql/mysqld-max $RBR%{_sbindir}/mysqld-max
437
# install saved perror binary with NDB support (BUG#13740)
438
install -s -m 755 $MBD/extra/perror.ndb $RBR%{_bindir}/perror
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
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
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/
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
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
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
467
# Shut down a previously installed server first
468
if test -x %{_sysconfdir}/init.d/mysql
470
%{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
471
echo "Giving mysqld a couple of seconds to exit nicely"
473
elif test -x %{_sysconfdir}/rc.d/init.d/mysql
475
%{_sysconfdir}/rc.d/init.d/mysql stop > /dev/null 2>&1
476
echo "Giving mysqld a couple of seconds to exit nicely"
481
mysql_datadir=%{mysqldatadir}
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
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
492
/sbin/insserv %{_sysconfdir}/init.d/mysql
493
# use chkconfig on Red Hat and newer SuSE releases
494
elif test -x /sbin/chkconfig
496
/sbin/chkconfig --add mysql
499
# Create a MySQL user and group. Do not report any problems if it already
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
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
510
# Initiate databases if needed
511
%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
513
# Upgrade databases if needed would go here - but it cannot be automated yet
515
# Change permissions again to fix any new files.
516
chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
518
# Fix permissions for the permission database so that only the user
520
chmod -R og-rw $mysql_datadir/mysql
522
# Restart in the same way that mysqld will be started normally.
523
%{_sysconfdir}/init.d/mysql start
525
# Allow safe_mysqld to start mysqld and print a message before we exit
530
mysql_clusterdir=/var/lib/mysql-cluster
532
# Create cluster directory if needed
533
if test ! -d $mysql_clusterdir; then mkdir -m 755 $mysql_clusterdir; fi
537
# Restart mysqld, to use the new binary.
538
echo "Restarting mysqld."
539
%{_sysconfdir}/init.d/mysql restart > /dev/null 2>&1
544
# Stop MySQL before uninstalling it
545
if test -x %{_sysconfdir}/init.d/mysql
547
%{_sysconfdir}/init.d/mysql stop > /dev/null
549
# Remove autostart of mysql
550
# for older SuSE Linux versions
551
if test -x /sbin/insserv
553
/sbin/insserv -r %{_sysconfdir}/init.d/mysql
554
# use chkconfig on Red Hat and newer SuSE releases
555
elif test -x /sbin/chkconfig
557
/sbin/chkconfig --del mysql
562
# We do not remove the mysql user since it may still own a lot of
565
# Clean up the BuildRoot
567
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
570
%defattr(-,root,root,0755)
573
%doc support-files/my-*.cnf
574
%doc support-files/ndb-*.ini
576
%doc %attr(644, root, root) %{_infodir}/mysql.info*
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*
599
%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
600
%ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd
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
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
635
%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
636
%attr(755, root, root) %{_sysconfdir}/init.d/mysql
638
%attr(755, root, root) %{_datadir}/mysql/
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
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*
672
%defattr(-,root,root,0755)
673
%attr(755, root, root) %{_sbindir}/ndbd
675
%files ndb-management
676
%defattr(-,root,root,0755)
677
%attr(755, root, root) %{_sbindir}/ndb_mgmd
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
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
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
712
%{_libdir}/mysql/libmygcc.a
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
727
%{_libdir}/mysql/libz.a
728
%{_libdir}/mysql/libz.la
732
%defattr(-, root, root, 0755)
733
# Shared libraries (omit for architectures that don't support them)
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
746
%defattr(-, root, root, 0755)
747
%attr(755, root, root) %{_sbindir}/mysqld-max
748
%attr(644, root, root) %{_libdir}/mysql/mysqld-max.sym
751
#%defattr(-, root, root, 0755)
752
# %attr(644, root, root) %{_libdir}/mysql/libmysqld.a
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
758
* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
760
- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
762
* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
764
- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
766
- The "mysqlmanager" man page got moved from section 1 to 8.
768
* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
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
774
* Wed Nov 15 2006 Joerg Bruehe <joerg@mysql.com>
776
- Switch from "make test*" to explicit calls of the test suite,
777
so that "report features" can be used.
779
* Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
781
- Fix a typing error in the "make" target for the Perl script to run the tests.
783
* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
785
- Use the Perl script to run the tests, because it will automatically check
786
whether the server is configured with SSL.
788
* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
790
- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
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.
796
* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
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.
802
* Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
804
- To run "mysql_upgrade", we need a running server;
805
start it in isolation and skip password checks.
807
* Sat May 20 2006 Kent Boortz <kent@mysql.com>
809
- Always compile for PIC, position independent code.
811
* Wed May 10 2006 Kent Boortz <kent@mysql.com>
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.
817
* Mon May 01 2006 Kent Boortz <kent@mysql.com>
819
- Use "./libtool --mode=execute" instead of searching for the
820
executable in current directory and ".libs".
822
* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
824
- Install and run "mysql_upgrade"
826
* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
828
- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
830
* Fri Mar 03 2006 Kent Boortz <kent@mysql.com>
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.
839
* Fri Jan 10 2006 Joerg Bruehe <joerg@mysql.com>
841
- Use "-i" on "make test-force";
842
this is essential for later evaluation of this log file.
844
* Fri Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
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"
851
* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
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.)
858
* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
860
- Extend the file existence check for "init.d/mysql" on un-install
861
to also guard the call to "insserv"/"chkconfig".
863
* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
865
- added more man pages
867
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
869
- Made yaSSL support an option (off by default)
871
* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
873
- Enabled yaSSL support
875
* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
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
881
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
883
- For 5.x, always compile with --with-big-tables
884
- Copy the config.log file to location outside
887
* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
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"
895
* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
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.
904
* Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
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)
909
* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
911
- Fixed the creation of the mysql user group account in the postinstall
913
- Fixed enabling the Archive storage engine in the Max binary
915
* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
917
- Fixed the Requires: tag for the server RPM (BUG 12233)
919
* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
921
- create a "mysql" user group and assign the mysql user account to that group
922
in the server postinstall section. (BUG 10984)
924
* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
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
931
* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
933
- added mysql_client_test to the "bench" subpackage (BUG 10676)
934
- added the libndbclient static and shared libraries (BUG 10676)
936
* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
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
943
* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
945
- Added a "make clean" between separate calls to "BuildMySQL".
947
* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
949
- Enabled the "blackhole" storage engine for the Max RPM
951
* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
953
- removed the MySQL manual files (html/ps/texi) - they have been removed
954
from the MySQL sources and are now available seperately.
956
* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
958
- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
959
mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
961
* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
963
- Disabled RAID in the Max binaries once and for all (it has finally been
964
removed from the source tree)
966
* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
968
- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
971
* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
973
- Fixed the compilation comments and moved them into the separate build sections
976
* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
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
982
* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
984
- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
986
* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
988
- enabled the "Federated" storage engine for the max binary
990
* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
992
- ISAM and merge storage engines were purged. As well as appropriate
993
tools and manpages (isamchk and isamlog)
995
* Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
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
1001
* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1003
- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1005
* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1007
- do not link statically on IA64/AMD64 as these systems do not have
1008
a patched glibc installed
1010
* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1012
- Added libmygcc.a to the devel subpackage (required to link applications
1013
against the the embedded server libmysqld.a) (BUG 4921)
1015
* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1017
- Added EXCEPTIONS-CLIENT to the "devel" package
1019
* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1021
- disabled OpenSSL in the Max binaries again (the RPM packages were the
1022
only exception to this anyway) (BUG 1043)
1024
* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1026
- fixed server postinstall (mysql_install_db was called with the wrong
1029
* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1031
- added mysql_tzinfo_to_sql to the server subpackage
1032
- run "make clean" instead of "make distclean"
1034
* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1036
- added ncurses-devel to the build prerequisites (BUG 3377)
1038
* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1040
- when using gcc, _always_ use CXX=gcc
1041
- replaced Copyright with License field (Copyright is obsolete)
1043
* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1045
- added myisam_ftdump to the Server package
1047
* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1049
- link the mysql client against libreadline instead of libedit (BUG 2289)
1051
* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1053
- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1055
* Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
1057
- fixed file permissions (BUG 1672)
1059
* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1061
- made testing for gcc3 a bit more robust
1063
* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1065
- added missing file mysql_create_system_tables to the server subpackage
1067
* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1069
- removed dependency on MySQL-client from the MySQL-devel subpackage
1070
as it is not really required. (BUG 1610)
1072
* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1074
- Fixed BUG 1162 (removed macro names from the changelog)
1075
- Really fixed BUG 998 (disable the checking for installed but
1078
* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
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.
1085
* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
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)
1097
* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1099
- re-enabled RAID again
1101
* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1103
- disabled MyISAM RAID (--with-raid) - it throws an assertion which
1104
needs to be investigated first.
1106
* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1108
- added missing file mysql_secure_installation to server subpackage
1111
* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
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
1117
* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
1119
- removed unused CC and CXX variables
1120
- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
1122
* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
1124
- renamed package "MySQL" to "MySQL-server"
1125
- fixed Copyright tag
1126
- added mysql_waitpid to client subpackage (required for mysql-test-run)
1128
* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
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
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
1139
* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
1141
- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
1142
(mixing 3.23 and 4.0 packages)
1144
* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
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
1151
* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
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
1161
* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
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
1168
* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
1170
- Use more RPM macros (e.g. infodir, mandir) to make the spec
1172
- reorganized the installation of documentation files: let RPM
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
1180
* Mon Oct 8 2001 Monty
1182
- Added embedded server as a separate RPM
1184
* Fri Apr 13 2001 Monty
1186
- Added mysqld-max to the distribution
1188
* Tue Jan 2 2001 Monty
1190
- Added mysql-test to the bench package
1192
* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
1194
- Added separate libmysql_r directory; now both a threaded
1195
and non-threaded library is shipped.
1197
* Wed Sep 28 1999 David Axmark <davida@mysql.com>
1199
- Added the support-files/my-example.cnf to the docs directory.
1201
- Removed devel dependency on base since it is about client
1204
* Wed Sep 8 1999 David Axmark <davida@mysql.com>
1206
- Cleaned up some for 3.23.
1208
* Thu Jul 1 1999 David Axmark <davida@mysql.com>
1210
- Added support for shared libraries in a separate sub
1211
package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
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.
1217
* Mon Feb 22 1999 David Axmark <david@detron.se>
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
1224
- Removed the repetitive description parts for the sub rpms. Maybe add
1225
again if RPM gets a multiline macro capability.
1227
- Added support for a pt_BR translation. Translation contributed by
1228
Jorge Godoy <jorge@bestway.com.br>.
1230
* Wed Nov 4 1998 David Axmark <david@detron.se>
1232
- A lot of changes in all the rpm and install scripts. This may even
1233
be a working RPM :-)
1235
* Sun Aug 16 1998 David Axmark <david@detron.se>
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.