Merge lp:~percona-dev/percona-server/release-5.1.46-11-spec into lp:percona-server/release-5.1.47-11

Proposed by Aleksandr Kuzminsky
Status: Merged
Approved by: Vadim Tkachenko
Approved revision: no longer in the source branch.
Merged at revision: 16
Proposed branch: lp:~percona-dev/percona-server/release-5.1.46-11-spec
Merge into: lp:percona-server/release-5.1.47-11
Diff against target: 1463 lines (+1446/-1)
2 files modified
build/percona-server.spec (+1445/-0)
innodb_fix_misc.patch (+1/-1)
To merge this branch: bzr merge lp:~percona-dev/percona-server/release-5.1.46-11-spec
Reviewer Review Type Date Requested Status
Vadim Tkachenko Approve
Review via email: mp+26181@code.launchpad.net

Description of the change

Added RPM .spec file
Changed Percona Server version to 11.0

To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) :
review: Approve
Revision history for this message
Vadim Tkachenko (vadim-tk) :
review: Needs Fixing
Revision history for this message
Vadim Tkachenko (vadim-tk) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'build'
=== added file 'build/percona-server.spec'
--- build/percona-server.spec 1970-01-01 00:00:00 +0000
+++ build/percona-server.spec 2010-05-27 20:37:26 +0000
@@ -0,0 +1,1445 @@
1#############################################################################
2#
3# This is the spec file for the distribution specific RPM files
4#
5##############################################################################
6
7##############################################################################
8# Some common macro definitions
9##############################################################################
10
11# Required arguments
12# gotrevision - Revision in BZR branch
13
14%define mysql_vendor Percona, Inc
15%define redhatversion %(lsb_release -rs | awk -F. '{ print $1}')
16%define community 1
17%define mysqlversion 5.1.46
18%define majorversion 11
19%define minorversion 0
20%define distribution rhel%{redhatversion}
21%define release rel%{majorversion}.%{minorversion}.%{gotrevision}.%{distribution}
22
23%define mysqld_user mysql
24%define mysqld_group mysql
25%define mysqldatadir /var/lib/mysql
26%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
27
28# ------------------------------------------------------------------------------
29# Meta information, don't remove!
30# ------------------------------------------------------------------------------
31# norootforbuild
32
33# ------------------------------------------------------------------------------
34# On SuSE 9 no separate "debuginfo" package is built. To enable basic
35# debugging on that platform, we don't strip binaries on SuSE 9. We
36# disable the strip of binaries by redefining the RPM macro
37# "__os_install_post" leaving out the script calls that normally does
38# this. We do this in all cases, as on platforms where "debuginfo" is
39# created, a script "find-debuginfo.sh" will be called that will do
40# the strip anyway, part of separating the executable and debug
41# information into separate files put into separate packages.
42#
43# Some references (shows more advanced conditional usage):
44# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html
45# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html
46# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html
47# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html
48# ------------------------------------------------------------------------------
49%define __os_install_post /usr/lib/rpm/brp-compress
50
51# ------------------------------------------------------------------------------
52# We don't package all files installed into the build root by intention -
53# See BUG#998 for details.
54# ------------------------------------------------------------------------------
55%define _unpackaged_files_terminate_build 0
56
57# ------------------------------------------------------------------------------
58# RPM build tools now automatically detects Perl module dependencies. This
59# detection gives problems as it is broken in some versions, and it also
60# give unwanted dependencies from mandatory scripts in our package.
61# Might not be possible to disable in all RPM tool versions, but here we
62# try. We keep the "AutoReqProv: no" for the "test" sub package, as disabling
63# here might fail, and that package has the most problems.
64# See http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides
65# http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html
66# ------------------------------------------------------------------------------
67%undefine __perl_provides
68%undefine __perl_requires
69
70##############################################################################
71# Command line handling
72##############################################################################
73
74# ----------------------------------------------------------------------
75# use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x)
76# to build with yaSSL support (off by default)
77# ----------------------------------------------------------------------
78%{?_with_yassl:%define YASSL_BUILD 1}
79%{!?_with_yassl:%define YASSL_BUILD 0}
80
81# ----------------------------------------------------------------------
82# use "rpmbuild --without libgcc" or "rpm --define '_without_libgcc 1'" (for RPM 3.x)
83# to include libgcc (as libmygcc) (on by default)
84# ----------------------------------------------------------------------
85%{!?_with_libgcc: %{!?_without_libgcc: %define WITH_LIBGCC 1}}
86%{?_with_libgcc:%define WITH_LIBGCC 1}
87%{?_without_libgcc:%define WITH_LIBGCC 0}
88
89
90# On SuSE 9 no separate "debuginfo" package is built. To enable basic
91# debugging on that platform, we don't strip binaries on SuSE 9. We
92# disable the strip of binaries by redefining the RPM macro
93# "__os_install_post" leaving out the script calls that normally does
94# this. We do this in all cases, as on platforms where "debuginfo" is
95# created, a script "find-debuginfo.sh" will be called that will do
96# the strip anyway, part of separating the executable and debug
97# information into separate files put into separate packages.
98#
99# Some references (shows more advanced conditional usage):
100# http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html
101# http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html
102# http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html
103# http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html
104
105%define __os_install_post /usr/lib/rpm/brp-compress
106
107%define server_suffix -rel%{majorversion}.%{minorversion}
108%define package_suffix -51
109%define ndbug_comment Percona Server (GPL), %{majorversion}.%{minorversion}, Revision %{gotrevision}
110%define debug_comment Percona Server - Debug (GPL), %{majorversion}.%{minorversion}, Revision %{gotrevision}
111%define NORMAL_TEST_MODE test-bt
112%define DEBUG_TEST_MODE test-bt-debug
113
114%define BUILD_DEBUG 0
115
116%define lic_type GNU GPL v2
117%define lic_files COPYING README
118%define src_dir Percona-Server
119
120Source1: Percona-Server.tar.gz
121
122##############################################################################
123# Main spec file section
124##############################################################################
125
126Name: Percona-Server%{package_suffix}
127Summary: Percona-Server: a very fast and reliable SQL database server
128Group: Applications/Databases
129Version: %{mysqlversion}
130Release: %{release}
131Distribution: Red Hat Enterprise Linux %{redhatversion}
132License: GPL version 2 http://www.gnu.org/licenses/gpl-2.0.html
133Source: Percona-Server.tar.gz
134URL: http://www.percona.com/
135Packager: %{mysql_vendor} Development Team <mysql-dev@percona.com>
136Vendor: %{mysql_vendor}
137Provides: msqlormysql MySQL-server Percona-XtraDB-server
138BuildRequires: gperf perl readline-devel gcc-c++ ncurses-devel zlib-devel libtool automake autoconf time ccache bison
139
140# Think about what you use here since the first step is to
141# run a rm -rf
142BuildRoot: %{_tmppath}/%{name}-%{version}-build
143
144# From the manual
145%description
146The Percona Server software delivers a very fast, multi-threaded, multi-user,
147and robust SQL (Structured Query Language) database server. Percona Server
148is intended for mission-critical, heavy-load production systems as well
149as for embedding into mass-deployed software.
150
151Percona Inc. provides commercial support of Percona Server.
152For more information visist our web site http://www.percona.com/
153
154##############################################################################
155# Sub package definition
156##############################################################################
157
158%package -n Percona-Server-server%{package_suffix}
159Summary: %{ndbug_comment} for Red Hat Enterprise Linux %{redhatversion}
160Group: Applications/Databases
161Requires: chkconfig coreutils shadow-utils grep procps
162Provides: msqlormysql mysql-server MySQL-server Percona-XtraDB-server
163
164%description -n Percona-Server-server%{package_suffix}
165The Percona Server software delivers a very fast, multi-threaded, multi-user,
166and robust SQL (Structured Query Language) database server. Percona Server
167is intended for mission-critical, heavy-load production systems as well
168as for embedding into mass-deployed software.
169
170Percona Inc. provides commercial support of Percona Server.
171For more information visist our web site http://www.percona.com/
172
173This package includes the Percona-XtraDB server binary
174(configured including XtraDB)
175as well as related utilities to run and administer a Percona Server.
176
177If you want to access and work with the database, you have to install
178package "Percona-Server-client%{package_suffix}" as well!
179
180# ------------------------------------------------------------------------------
181
182%package -n Percona-Server-client%{package_suffix}
183Summary: Percona-Server - Client
184Group: Applications/Databases
185Provides: mysql-client MySQL-client Percona-XtraDB-client mysql MySQL
186
187%description -n Percona-Server-client%{package_suffix}
188This package contains the standard Percona Serverclients and administration tools.
189
190%{see_base}
191
192
193# ------------------------------------------------------------------------------
194
195%package -n Percona-Server-test%{package_suffix}
196Requires: mysql-client perl
197Summary: Percona-Server - Test suite
198Group: Applications/Databases
199Provides: mysql-test MySQL-test Percona-XtraDB-test
200AutoReqProv: no
201
202%description -n Percona-Server-test%{package_suffix}
203This package contains the Percona-Server regression test suite.
204
205%{see_base}
206
207# ------------------------------------------------------------------------------
208
209%package -n Percona-Server-devel%{package_suffix}
210Summary: Percona-Server - Development header files and libraries
211Group: Applications/Databases
212Provides: mysql-devel MySQL-devel Percona-XtraDB-devel
213
214%description -n Percona-Server-devel%{package_suffix}
215This package contains the development header files and libraries
216necessary to develop Percona Server client applications.
217
218%{see_base}
219
220# ------------------------------------------------------------------------------
221
222%package -n Percona-Server-shared%{package_suffix}
223Summary: Percona-Server - Shared libraries
224Group: Applications/Databases
225Provides: mysql-shared MySQL-shared Percona-XtraDB-shared
226
227%description -n Percona-Server-shared%{package_suffix}
228This package contains the shared libraries (*.so*) which certain
229languages and applications need to dynamically load and use MySQL.
230
231# ------------------------------------------------------------------------------
232
233
234##############################################################################
235#
236##############################################################################
237
238%prep
239
240%setup -n %{src_dir}
241
242
243##############################################################################
244# The actual build
245##############################################################################
246
247%build
248
249BuildMySQL() {
250# Get flags from environment. RPM_OPT_FLAGS seems not to be set anywhere.
251CFLAGS=${CFLAGS:-$RPM_OPT_FLAGS}
252CXXFLAGS=${CXXFLAGS:-$RPM_OPT_FLAGS}
253# Evaluate current setting of $DEBUG
254if [ $DEBUG -gt 0 ] ; then
255 OPT_COMMENT='--with-comment="%{debug_comment}"'
256 OPT_DEBUG='--with-debug'
257 CFLAGS=`echo " $CFLAGS " | \
258 sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
259 -e 's/^ //' -e 's/ $//'`
260 CXXFLAGS=`echo " $CXXFLAGS " | \
261 sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
262 -e 's/^ //' -e 's/ $//'`
263else
264 OPT_COMMENT='--with-comment="%{ndbug_comment}"'
265 OPT_DEBUG=''
266fi
267
268echo "BUILD =================="
269echo $*
270
271# The --enable-assembler simply does nothing on systems that does not
272# support assembler speedups.
273sh -c "CFLAGS=\"$CFLAGS\" \
274 CXXFLAGS=\"$CXXFLAGS\" \
275 AM_CPPFLAGS=\"$AM_CPPFLAGS\" \
276 LDFLAGS=\"$LDFLAGS\" \
277 ./configure \
278 $* \
279 --enable-assembler \
280 --enable-local-infile \
281 --with-mysqld-user=%{mysqld_user} \
282 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
283 --with-pic \
284 --prefix=/ \
285 --with-extra-charsets=complex \
286%if %{YASSL_BUILD}
287 --with-ssl \
288%else
289 --without-ssl \
290%endif
291 --exec-prefix=%{_exec_prefix} \
292 --libexecdir=%{_sbindir} \
293 --libdir=%{_libdir} \
294 --sysconfdir=%{_sysconfdir} \
295 --datadir=%{_datadir} \
296 --localstatedir=%{mysqldatadir} \
297 --infodir=%{_infodir} \
298 --includedir=%{_includedir} \
299 --mandir=%{_mandir} \
300 --enable-thread-safe-client \
301 --enable-profiling \
302%if %{?ndbug_comment:1}0
303 $OPT_COMMENT \
304%endif
305 $OPT_DEBUG \
306 --with-readline \
307 ; make "
308}
309# end of function definition "BuildMySQL"
310
311
312BuildServer() {
313BuildMySQL "--enable-shared \
314 --with-server-suffix='%{server_suffix}' \
315 --without-plugin-innobase \
316 --with-plugin-innodb_plugin \
317 --with-plugin-partition \
318 --with-plugin-csv \
319 --with-plugin-archive \
320 --with-plugin-blackhole \
321 --with-plugin-federated \
322 --without-embedded-server \
323 --without-bench \
324 --with-zlib-dir=bundled \
325 --with-big-tables"
326
327if [ -n "$MYSQL_CONFLOG_DEST" ] ; then
328 cp -fp config.log "$MYSQL_CONFLOG_DEST"
329fi
330
331#if [ -f sql/.libs/mysqld ] ; then
332# nm --numeric-sort sql/.libs/mysqld > sql/mysqld.sym
333#else
334# nm --numeric-sort sql/mysqld > sql/mysqld.sym
335#fi
336}
337# end of function definition "BuildServer"
338
339
340RBR=$RPM_BUILD_ROOT
341MBD=$RPM_BUILD_DIR/%{src_dir}
342
343# Clean up the BuildRoot first
344[ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR;
345mkdir -p $RBR%{_libdir}/mysql $RBR%{_sbindir}
346
347# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
348# including exceptions into the code
349if [ -z "$CXX" -a -z "$CC" ] ; then
350 export CC="gcc" CXX="gcc"
351fi
352
353# Create the shared libs seperately to avoid a dependency for the client utilities
354DEBUG=0
355BuildMySQL "--enable-shared"
356
357# Install shared libraries
358cp -av libmysql/.libs/*.so* $RBR/%{_libdir}
359cp -av libmysql_r/.libs/*.so* $RBR/%{_libdir}
360
361##############################################################################
362
363# Include libgcc.a in the devel subpackage (BUG 4921)
364%if %{WITH_LIBGCC}
365libgcc=`$CC $CFLAGS --print-libgcc-file`
366install -m 644 "$libgcc" $RBR%{_libdir}/mysql/libmygcc.a
367%endif
368
369##############################################################################
370
371# Now create a debug server
372%if %{BUILD_DEBUG}
373DEBUG=1
374make clean
375
376( BuildServer ) # subshell, so that CFLAGS + CXXFLAGS are modified only locally
377
378if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then
379 MTR_BUILD_THREAD=auto make %{DEBUG_TEST_MODE}
380fi
381
382# Get the debug server and its .sym file from the build tree
383#if [ -f sql/.libs/mysqld ] ; then
384# cp sql/.libs/mysqld $RBR%{_sbindir}/mysqld-debug
385#else
386# cp sql/mysqld $RBR%{_sbindir}/mysqld-debug
387#fi
388#cp libmysqld/libmysqld.a $RBR%{_libdir}/mysql/libmysqld-debug.a
389#cp sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld-debug.sym
390
391%endif
392
393# Now, the default server
394DEBUG=0
395make clean
396
397BuildServer
398
399if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then
400 MTR_BUILD_THREAD=auto make %{NORMAL_TEST_MODE}
401fi
402
403# Now, build plugin
404#BUILDSO=0
405#make clean
406
407#BuildServer
408
409#if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then
410# MTR_BUILD_THREAD=auto make %{NORMAL_TEST_MODE}
411#fi
412
413%install
414RBR=$RPM_BUILD_ROOT
415MBD=$RPM_BUILD_DIR/%{src_dir}
416
417# Ensure that needed directories exists
418install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
419install -d $RBR%{mysqldatadir}/mysql
420install -d $RBR%{_datadir}/mysql-test
421install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
422install -d $RBR%{_includedir}
423install -d $RBR%{_libdir}
424install -d $RBR%{_mandir}
425install -d $RBR%{_sbindir}
426install -d $RBR%{_libdir}/mysql/plugin
427
428make DESTDIR=$RBR benchdir_root=%{_datadir} install
429
430# install symbol files ( for stack trace resolution)
431#install -m644 $MBD/sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld.sym
432
433# Install logrotate and autostart
434install -m644 $MBD/support-files/mysql-log-rotate \
435 $RBR%{_sysconfdir}/logrotate.d/mysql
436install -m755 $MBD/support-files/mysql.server \
437 $RBR%{_sysconfdir}/init.d/mysql
438
439# in RPMs, it is unlikely that anybody should use "sql-bench"
440rm -fr $RBR%{_datadir}/sql-bench
441
442# Create a symlink "rcmysql", pointing to the init.script. SuSE users
443# will appreciate that, as all services usually offer this.
444ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
445
446# Touch the place where the my.cnf config file and mysqlmanager.passwd
447# (MySQL Instance Manager password file) might be located
448# Just to make sure it's in the file list and marked as a config file
449touch $RBR%{_sysconfdir}/my.cnf
450touch $RBR%{_sysconfdir}/mysqlmanager.passwd
451
452# Install SELinux files in datadir
453install -m600 $MBD/support-files/RHEL4-SElinux/mysql.{fc,te} \
454 $RBR%{_datadir}/mysql/SELinux/RHEL4
455
456
457##############################################################################
458# Post processing actions, i.e. when installed
459##############################################################################
460
461%pre -n Percona-Server-server%{package_suffix}
462# Check if we can safely upgrade. An upgrade is only safe if it's from one
463# of our RPMs in the same version family.
464
465installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
466if [ $? -eq 0 -a -n "$installed" ]; then
467 vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
468 version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
469 myvendor='%{mysql_vendor}'
470 myversion='%{mysqlversion}'
471
472 old_family=`echo $version | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
473 new_family=`echo $myversion | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
474
475 [ -z "$vendor" ] && vendor='<unknown>'
476 [ -z "$old_family" ] && old_family="<unrecognized version $version>"
477 [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
478
479 error_text=
480# if [ "$vendor" != "$myvendor" ]; then
481# error_text="$error_text
482#The current MySQL server package is provided by a different
483#vendor ($vendor) than $myvendor. Some files may be installed
484#to different locations, including log files and the service
485#startup script in %{_sysconfdir}/init.d/.
486#"
487# fi
488
489 if [ "$old_family" != "$new_family" ]; then
490 error_text="$error_text
491Upgrading directly from MySQL $old_family to MySQL $new_family may not
492be safe in all cases. A manual dump and restore using mysqldump is
493recommended. It is important to review the MySQL manual's Upgrading
494section for version-specific incompatibilities.
495"
496 fi
497
498 if [ -n "$error_text" ]; then
499 cat <<HERE >&2
500
501******************************************************************
502A MySQL package ($installed) is installed.
503$error_text
504A manual upgrade is required.
505
506- Ensure that you have a complete, working backup of your data and my.cnf
507 files
508- Shut down the MySQL server cleanly
509- Remove the existing MySQL packages. Usually this command will
510 list the packages you should remove:
511 rpm -qa | grep -i '^mysql-'
512
513 You may choose to use 'rpm --nodeps -ev <package-name>' to remove
514 the package which contains the mysqlclient shared library. The
515 library will be reinstalled by the Percona-shared-compat package.
516- Install the new Percona Server packages supplied by $myvendor
517- Ensure that the Percona Server is started
518- Run the 'mysql_upgrade' program
519
520This is a brief description of the upgrade process. Important details
521can be found in the MySQL manual, in the Upgrading section.
522For additional details please visit Percona Documentation page
523at http://www.percona.com/software/documentation/
524
525******************************************************************
526HERE
527 exit 1
528 fi
529fi
530
531# Shut down a previously installed server first
532if [ -x %{_sysconfdir}/init.d/mysql ] ; then
533 %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
534 echo "Giving mysqld 5 seconds to exit nicely"
535 sleep 5
536fi
537
538%post -n Percona-Server-server%{package_suffix}
539mysql_datadir=%{mysqldatadir}
540
541# ----------------------------------------------------------------------
542# Create data directory
543# ----------------------------------------------------------------------
544mkdir -p $mysql_datadir/{mysql,test}
545
546# ----------------------------------------------------------------------
547# Make MySQL start/shutdown automatically when the machine does it.
548# ----------------------------------------------------------------------
549if [ -x /sbin/chkconfig ] ; then
550 /sbin/chkconfig --add mysql
551fi
552
553# ----------------------------------------------------------------------
554# Create a MySQL user and group. Do not report any problems if it already
555# exists.
556# ----------------------------------------------------------------------
557groupadd -r %{mysqld_group} 2> /dev/null || true
558useradd -M -r -d $mysql_datadir -s /bin/bash -c "Percona Server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
559# The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
560usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
561
562# ----------------------------------------------------------------------
563# Change permissions so that the user that will run the MySQL daemon
564# owns all database files.
565# ----------------------------------------------------------------------
566chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
567
568# ----------------------------------------------------------------------
569# Initiate databases
570# ----------------------------------------------------------------------
571%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
572
573# ----------------------------------------------------------------------
574# FIXME upgrade databases if needed would go here - but it cannot be
575# automated yet
576# ----------------------------------------------------------------------
577
578# ----------------------------------------------------------------------
579# Change permissions again to fix any new files.
580# ----------------------------------------------------------------------
581chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
582
583# ----------------------------------------------------------------------
584# Fix permissions for the permission database so that only the user
585# can read them.
586# ----------------------------------------------------------------------
587chmod -R og-rw $mysql_datadir/mysql
588
589# ----------------------------------------------------------------------
590# install SELinux files - but don't override existing ones
591# ----------------------------------------------------------------------
592SETARGETDIR=/etc/selinux/targeted/src/policy
593SEDOMPROG=$SETARGETDIR/domains/program
594SECONPROG=$SETARGETDIR/file_contexts/program
595if [ -f /etc/redhat-release ] && \
596 (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
597 || grep -q "CentOS release 4" /etc/redhat-release) ; then
598 echo
599 echo
600 echo 'Notes regarding SELinux on this platform:'
601 echo '========================================='
602 echo
603 echo 'The default policy might cause server startup to fail because it is '
604 echo 'not allowed to access critical files. In this case, please update '
605 echo 'your installation. '
606 echo
607 echo 'The default policy might also cause inavailability of SSL related '
608 echo 'features because the server is not allowed to access /dev/random '
609 echo 'and /dev/urandom. If this is a problem, please do the following: '
610 echo
611 echo ' 1) install selinux-policy-targeted-sources from your OS vendor'
612 echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':'
613 echo ' allow mysqld_t random_device_t:chr_file read;'
614 echo ' allow mysqld_t urandom_device_t:chr_file read;'
615 echo ' 3) cd to '$SETARGETDIR' and issue the following command:'
616 echo ' make load'
617 echo
618 echo
619fi
620
621if [ -x sbin/restorecon ] ; then
622 sbin/restorecon -R var/lib/mysql
623fi
624
625# Restart in the same way that mysqld will be started normally.
626if [ -x %{_sysconfdir}/init.d/mysql ] ; then
627 %{_sysconfdir}/init.d/mysql start
628 echo "Giving mysqld 2 seconds to start"
629 sleep 2
630fi
631
632# Allow mysqld_safe to start mysqld and print a message before we exit
633sleep 2
634
635%preun -n Percona-Server-server%{package_suffix}
636if [ $1 = 0 ] ; then
637 # Stop MySQL before uninstalling it
638 if [ -x %{_sysconfdir}/init.d/mysql ] ; then
639 %{_sysconfdir}/init.d/mysql stop > /dev/null
640 # Don't start it automatically anymore
641 if [ -x /sbin/chkconfig ] ; then
642 /sbin/chkconfig --del mysql
643 fi
644 fi
645fi
646
647# We do not remove the mysql user since it may still own a lot of
648# database files.
649
650# ----------------------------------------------------------------------
651# Clean up the BuildRoot after build is done
652# ----------------------------------------------------------------------
653%clean
654[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
655
656##############################################################################
657# Files section
658##############################################################################
659
660%files -n Percona-Server-server%{package_suffix}
661%defattr(-,root,root,0755)
662
663%doc %{lic_files}
664%doc support-files/my-*.cnf
665
666%doc %attr(644, root, root) %{_infodir}/mysql.info*
667
668%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
669%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
670%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
671%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
672%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
673%doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
674%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
675%doc %attr(644, root, man) %{_mandir}/man8/mysqld.8*
676%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
677%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
678%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_privilege_tables.1*
679%doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
680%doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
681%doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
682%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
683%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
684%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
685%doc %attr(644, root, man) %{_mandir}/man8/mysqlmanager.8*
686%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
687%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
688%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
689%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
690%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
691%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
692%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
693%doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
694%doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
695
696%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
697%ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd
698
699%attr(755, root, root) %{_bindir}/my_print_defaults
700%attr(755, root, root) %{_bindir}/myisam_ftdump
701%attr(755, root, root) %{_bindir}/myisamchk
702%attr(755, root, root) %{_bindir}/myisamlog
703%attr(755, root, root) %{_bindir}/myisampack
704%attr(755, root, root) %{_bindir}/mysql_convert_table_format
705%attr(755, root, root) %{_bindir}/mysql_fix_extensions
706%attr(755, root, root) %{_bindir}/mysql_fix_privilege_tables
707%attr(755, root, root) %{_bindir}/mysql_install_db
708%attr(755, root, root) %{_bindir}/mysql_secure_installation
709%attr(755, root, root) %{_bindir}/mysql_setpermission
710%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
711%attr(755, root, root) %{_bindir}/mysql_upgrade
712%attr(755, root, root) %{_bindir}/mysql_zap
713%attr(755, root, root) %{_bindir}/mysqlbug
714%attr(755, root, root) %{_bindir}/mysqld_multi
715%attr(755, root, root) %{_bindir}/mysqld_safe
716%attr(755, root, root) %{_bindir}/mysqldumpslow
717%attr(755, root, root) %{_bindir}/mysqlhotcopy
718%attr(755, root, root) %{_bindir}/mysqltest
719%attr(755, root, root) %{_bindir}/perror
720%attr(755, root, root) %{_bindir}/replace
721%attr(755, root, root) %{_bindir}/resolve_stack_dump
722%attr(755, root, root) %{_bindir}/resolveip
723
724%attr(755, root, root) %{_sbindir}/mysqld
725%if %{BUILD_DEBUG}
726%attr(755, root, root) %{_sbindir}/mysqld-debug
727%endif
728%attr(755, root, root) %{_sbindir}/mysqlmanager
729%attr(755, root, root) %{_sbindir}/rcmysql
730#%attr(644, root, root) %{_libdir}/mysql/mysqld.sym
731%if %{BUILD_DEBUG}
732#%attr(644, root, root) %{_libdir}/mysql/mysqld-debug.sym
733%endif
734
735%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
736%attr(755, root, root) %{_sysconfdir}/init.d/mysql
737
738%attr(755, root, root) %{_datadir}/mysql/
739
740%files -n Percona-Server-client%{package_suffix}
741%defattr(-, root, root, 0755)
742%attr(755, root, root) %{_bindir}/msql2mysql
743%attr(755, root, root) %{_bindir}/mysql
744%attr(755, root, root) %{_bindir}/mysql_find_rows
745%attr(755, root, root) %{_bindir}/mysql_waitpid
746%attr(755, root, root) %{_bindir}/mysqlaccess
747%attr(755, root, root) %{_bindir}/mysqladmin
748%attr(755, root, root) %{_bindir}/mysqlbinlog
749%attr(755, root, root) %{_bindir}/mysqlcheck
750%attr(755, root, root) %{_bindir}/mysqldump
751%attr(755, root, root) %{_bindir}/mysqlimport
752%attr(755, root, root) %{_bindir}/mysqlshow
753%attr(755, root, root) %{_bindir}/mysqlslap
754
755%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
756%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
757%doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
758%doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
759%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
760%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
761%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
762%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
763%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
764%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
765%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
766%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
767
768%post -n Percona-Server-shared%{package_suffix}
769/sbin/ldconfig
770
771%postun -n Percona-Server-shared%{package_suffix}
772/sbin/ldconfig
773
774
775%files -n Percona-Server-devel%{package_suffix}
776%defattr(-, root, root, 0755)
777%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
778%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
779%attr(755, root, root) %{_bindir}/mysql_config
780%dir %attr(755, root, root) %{_libdir}/mysql
781%{_includedir}/mysql
782%{_datadir}/aclocal/mysql.m4
783%{_libdir}/mysql/libdbug.a
784%{_libdir}/mysql/libheap.a
785%if %{WITH_LIBGCC}
786%{_libdir}/mysql/libmygcc.a
787%endif
788%{_libdir}/mysql/libmyisam.a
789%{_libdir}/mysql/libmyisammrg.a
790%{_libdir}/mysql/libmysqlclient.a
791%{_libdir}/mysql/libmysqlclient.la
792%{_libdir}/mysql/libmysqlclient_r.a
793%{_libdir}/mysql/libmysqlclient_r.la
794%{_libdir}/mysql/libmystrings.a
795%{_libdir}/mysql/libmysys.a
796%{_libdir}/mysql/libvio.a
797%{_libdir}/mysql/libz.a
798%{_libdir}/mysql/libz.la
799%if %{CLUSTER_BUILD}
800%{_libdir}/mysql/libndbclient.a
801%{_libdir}/mysql/libndbclient.la
802%endif
803
804%files -n Percona-Server-shared%{package_suffix}
805%defattr(-, root, root, 0755)
806# Shared libraries (omit for architectures that don't support them)
807%{_libdir}/*.so*
808
809%files -n Percona-Server-test%{package_suffix}
810%defattr(-, root, root, 0755)
811%{_datadir}/mysql-test
812%attr(755, root, root) %{_bindir}/mysql_client_test
813%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
814%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
815%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
816
817##############################################################################
818# The spec file changelog only includes changes made to the spec file
819# itself - note that they must be ordered by date (important when
820# merging BK trees)
821##############################################################################
822%changelog
823* Wed May 22 2010 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com>
824
825Percona Server Release 11.0
826
827* Mon Mar 22 2010 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com>
828
829XtraDB Release 10
830
831* Thu Feb 11 2010 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com>
832
833Package name changed to Percona-XtraDB
834
835* Tue Jan 05 2010 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com>
836
837- Corrected emails
838- -m64 is removed from CFLAGS
839
840* Tue Apr 21 2009 Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com>
841
842- Adoption for XtraDB Storage Engine
843
844* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
845
846- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
847 This should cover both gcc and icc flags. Fixes bug#40546.
848
849* Mon Aug 18 2008 Joerg Bruehe <joerg@mysql.com>
850
851- Get rid of the "warning: Installed (but unpackaged) file(s) found:"
852 Some generated files aren't needed in RPMs:
853 - the "sql-bench/" subdirectory
854 Some files were missing:
855 - /usr/share/aclocal/mysql.m4 ("devel" subpackage)
856 - Manuals for embedded tests ("test" subpackage)
857 - Manual "mysqlbug" ("server" subpackage)
858 - Manual "mysql_find_rows" ("client" subpackage)
859
860* Wed Jun 11 2008 Kent Boortz <kent@mysql.com>
861
862- Removed the Example storage engine, it is not to be in products
863
864* Fri Apr 04 2008 Daniel Fischer <df@mysql.com>
865
866- Added Cluster+InnoDB product
867
868* Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
869
870- Made the "Federated" storage engine an option
871
872* Tue Mar 11 2008 Joerg Bruehe <joerg@mysql.com>
873
874- Cleanup: Remove manual file "mysql_tableinfo.1".
875
876* Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
877
878- Require a manual upgrade if the alread-installed mysql-server is
879 from another vendor, or is of a different major version.
880
881* Fri Dec 14 2007 Joerg Bruehe <joerg@mysql.com>
882
883- Add the "%doc" directive for all man pages and other documentation;
884 also, some re-ordering to reduce differences between spec files.
885
886* Fri Dec 14 2007 Joerg Bruehe <joerg@mysql.com>
887
888- Added "client/mysqlslap" (bug#32077)
889
890* Wed Oct 31 2007 Joerg Bruehe <joerg@mysql.com>
891
892- Explicitly handle InnoDB using its own variable and "--with"/"--without"
893 options, because the "configure" default is "yes".
894 Also, fix the specification of "community" to include "partitioning".
895
896* Mon Sep 03 2007 Kent Boortz <kent@mysql.com>
897
898- Let libmygcc be included unless "--without libgcc" is given.
899
900* Sun Sep 02 2007 Kent Boortz <kent@mysql.com>
901
902- Changed SSL flag given to configure to "--with-ssl"
903- Removed symbolic link "safe_mysqld"
904- Removed script and man page for "mysql_explain_log"
905- Removed scripts "mysql_tableinfo" and "mysql_upgrade_shell"
906- Removed "comp_err" from list to install
907- Removed duplicates of "libndbclient.a" and "libndbclient.la"
908
909* Tue Jul 17 2007 Joerg Bruehe <joerg@mysql.com>
910
911- Add the man page for "mysql-stress-test.pl" to the "test" RPM
912 (consistency in fixing bug#21023, the script is handled by "Makefile.am")
913
914* Wed Jul 11 2007 Daniel Fischer <df@mysql.com>
915
916- Change the way broken SELinux policies on RHEL4 and CentOS 4
917 are handled to be more likely to actually work
918
919* Thu Jun 05 2007 kent Boortz <kent@mysql.com>
920
921- Enabled the CSV engine in all builds
922
923* Thu May 3 2007 Mads Martin Joergensen <mmj@mysql.com>
924
925- Spring cleanup
926
927* Thu Apr 19 2007 Mads Martin Joergensen <mmj@mysql.com>
928
929- If sbin/restorecon exists then run it
930
931* Wed Apr 18 2007 Kent Boortz <kent@mysql.com>
932
933- Packed unpacked files
934
935 /usr/sbin/ndb_cpcd
936 /usr/bin/mysql_upgrade_shell
937 /usr/bin/innochecksum
938 /usr/share/man/man1/ndb_cpcd.1.gz
939 /usr/share/man/man1/innochecksum.1.gz
940 /usr/share/man/man1/mysql_fix_extensions.1.gz
941 /usr/share/man/man1/mysql_secure_installation.1.gz
942 /usr/share/man/man1/mysql_tableinfo.1.gz
943 /usr/share/man/man1/mysql_waitpid.1.gz
944
945- Commands currently not installed but that has man pages
946
947 /usr/share/man/man1/make_win_bin_dist.1.gz
948 /usr/share/man/man1/make_win_src_distribution.1.gz
949 /usr/share/man/man1/mysql-stress-test.pl.1.gz
950 /usr/share/man/man1/ndb_print_backup_file.1.gz
951 /usr/share/man/man1/ndb_print_schema_file.1.gz
952 /usr/share/man/man1/ndb_print_sys_file.1.gz
953
954* Thu Mar 22 2007 Joerg Bruehe <joerg@mysql.com>
955
956- Add "comment" options to the test runs, for better log analysis.
957
958* Wed Mar 21 2007 Joerg Bruehe <joerg@mysql.com>
959
960- Add even more man pages.
961
962* Fri Mar 16 2007 Joerg Bruehe <joerg@mysql.com>
963
964- Build the server twice, once as "mysqld-debug" and once as "mysqld";
965 test them both, and include them in the resulting file.
966- Consequences of the fix for bug#20166:
967 Remove "mysql_create_system_tables",
968 new "mysql_fix_privilege_tables.sql" is included implicitly.
969
970* Wed Mar 14 2007 Daniel Fischer <df@mysql.com>
971
972- Adjust compile options some more and change naming of community
973 cluster RPMs to explicitly say 'cluster'.
974
975* Mon Mar 12 2007 Daniel Fischer <df@mysql.com>
976
977- Adjust compile options and other settings for 5.0 community builds.
978
979* Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
980
981- Add several man pages which are now created.
982
983* Mon Jan 29 2007 Mads Martin Joergensen <mmj@mysql.com>
984
985- Make sure SELinux works correctly. Files from Colin Charles.
986
987* Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
988
989- Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
990 correct "libgcc.a" path is returned for the 32/64 bit architecture.
991
992* Tue Dec 19 2006 Joerg Bruehe <joerg@mysql.com>
993
994- The man page for "mysqld" is now in section 8.
995
996* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
997
998- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
999 in the server RPM.
1000- The "mysqlmanager" man page was relocated to section 8, reflect that.
1001
1002* Fri Nov 17 2006 Mads Martin Joergensen <mmj@mysql.com>
1003
1004- Really fix obsoletes/provides for community -> this
1005- Make it possible to not run test by setting
1006 MYSQL_RPMBUILD_TEST to "no"
1007
1008* Wed Nov 15 2006 Joerg Bruehe <joerg@mysql.com>
1009
1010- Switch from "make test*" to explicit calls of the test suite,
1011 so that "report features" can be used.
1012
1013* Wed Nov 15 2006 Kent Boortz <kent@mysql.com>
1014
1015- Added "--with cluster" and "--define cluster{_gpl}"
1016
1017* Tue Oct 24 2006 Mads Martin Joergensen <mmj@mysql.com>
1018
1019- Shared need to Provide/Obsolete mysql-shared
1020
1021* Mon Oct 23 2006 Mads Martin Joergensen <mmj@mysql.com>
1022
1023- Run sbin/restorecon after db init (Bug#12676)
1024
1025* Thu Jul 06 2006 Joerg Bruehe <joerg@mysql.com>
1026
1027- Correct a typing error in my previous change.
1028
1029* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
1030
1031- Use the Perl script to run the tests, because it will automatically check
1032 whether the server is configured with SSL.
1033
1034* Wed Jun 28 2006 Joerg Bruehe <joerg@mysql.com>
1035
1036- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
1037 there are some more aspects which need to be solved before this is possible.
1038 For now, just ensure the binary "mysql_upgrade" is delivered and installed.
1039
1040* Wed Jun 28 2006 Joerg Bruehe <joerg@mysql.com>
1041
1042- Move "mysqldumpslow" from the client RPM to the server RPM (bug#20216).
1043
1044* Wed Jun 21 2006 Joerg Bruehe <joerg@mysql.com>
1045
1046- To run "mysql_upgrade", we need a running server;
1047 start it in isolation and skip password checks.
1048
1049* Sat May 23 2006 Kent Boortz <kent@mysql.com>
1050
1051- Always compile for PIC, position independent code.
1052
1053* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
1054
1055- Install and run "mysql_upgrade"
1056
1057* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
1058
1059- Allow to override $LDFLAGS
1060
1061* Fri Jan 06 2006 Lenz Grimmer <lenz@mysql.com>
1062
1063- added a MySQL-test subpackage (BUG#16070)
1064
1065* Tue Dec 27 2005 Joerg Bruehe <joerg@mysql.com>
1066
1067- Some minor alignment with the 4.1 version
1068
1069* Wed Dec 14 2005 Rodrigo Novo <rodrigo@mysql.com>
1070
1071- Cosmetic changes: source code location & rpm packager
1072- Protect "nm -D" against libtool weirdness
1073- Add libz.a & libz.la to the list of files for subpackage -devel
1074- moved --with-zlib-dir=bundled out of BuildMySQL, as it doesn't makes
1075 sense for the shared package
1076
1077* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
1078
1079- Extend the file existence check for "init.d/mysql" on un-install
1080 to also guard the call to "insserv"/"chkconfig".
1081
1082* Wed Nov 16 2005 Lenz Grimmer <lenz@mysql.com>
1083
1084- added mysql_client_test to the "client" subpackage (BUG#14546)
1085
1086* Tue Nov 15 2005 Lenz Grimmer <lenz@mysql.com>
1087
1088- changed default definitions to build a standard GPL release when not
1089 defining anything else
1090- install the shared libs more elegantly by using "make install"
1091
1092* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1093
1094- Made yaSSL support an option (off by default)
1095
1096* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
1097
1098- Enabled yaSSL support
1099
1100* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
1101
1102- added a usermod call to assign a potential existing mysql user to the
1103 correct user group (BUG#12823)
1104- added a separate macro "mysqld_group" to be able to define the
1105 user group of the mysql user seperately, if desired.
1106
1107* Fri Oct 1 2005 Kent Boortz <kent@mysql.com>
1108
1109- Copy the config.log file to location outside
1110 the build tree
1111
1112* Fri Sep 30 2005 Lenz Grimmer <lenz@mysql.com>
1113
1114- don't use install-strip to install the binaries (strip segfaults on
1115 icc-compiled binaries on IA64)
1116
1117* Thu Sep 22 2005 Lenz Grimmer <lenz@mysql.com>
1118
1119- allow overriding the CFLAGS (needed for Intel icc compiles)
1120- replace the CPPFLAGS=-DBIG_TABLES with "--with-big-tables" configure option
1121
1122* Fri Aug 19 2005 Joerg Bruehe <joerg@mysql.com>
1123
1124- Protect against failing tests.
1125
1126* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
1127
1128- Fixed the creation of the mysql user group account in the postinstall
1129 section (BUG 12348)
1130
1131* Fri Jul 29 2005 Lenz Grimmer <lenz@mysql.com>
1132
1133- Fixed external RPM Requirements to better suit the target distribution
1134 (BUG 12233)
1135
1136* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
1137
1138- create a "mysql" user group and assign the mysql user account to that group
1139 in the server postinstall section. (BUG 10984)
1140
1141* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
1142
1143- use "mysqldatadir" variable instead of hard-coding the path multiple times
1144- use the "mysqld_user" variable on all occasions a user name is referenced
1145- removed (incomplete) Brazilian translations
1146- removed redundant release tags from the subpackage descriptions
1147
1148* Fri May 27 2005 Lenz Grimmer <lenz@mysql.com>
1149
1150- fixed file list (removed libnisam.a and libmerge.a from the devel subpackage)
1151- force running the test suite
1152
1153* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
1154
1155- Enabled the "blackhole" storage engine for the Max RPM
1156
1157* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
1158
1159- removed the MySQL manual files (html/ps/texi) - they have been removed
1160 from the MySQL sources and are now available seperately.
1161
1162* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
1163
1164- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
1165 mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
1166
1167* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
1168
1169- Disabled RAID in the Max binaries once and for all (it has finally been
1170 removed from the source tree)
1171
1172* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
1173
1174- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
1175 password file
1176
1177* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
1178
1179- Fixed the compilation comments and moved them into the separate build sections
1180 for Max and Standard
1181
1182* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
1183
1184- enabled the "Ndbcluster" storage engine for the max binary
1185- added extra make install in ndb subdir after Max build to get ndb binaries
1186- added packages for ndbcluster storage engine
1187
1188* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
1189
1190- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
1191
1192* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
1193
1194- enabled the "Federated" storage engine for the max binary
1195
1196* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
1197
1198- ISAM and merge storage engines were purged. As well as appropriate
1199 tools and manpages (isamchk and isamlog)
1200
1201* Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
1202
1203- enabled the "Archive" storage engine for the max binary
1204- enabled the "CSV" storage engine for the max binary
1205- enabled the "Example" storage engine for the max binary
1206
1207* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
1208
1209- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
1210
1211* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
1212
1213- do not link statically on IA64/AMD64 as these systems do not have
1214 a patched glibc installed
1215
1216* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
1217
1218- Added libmygcc.a to the devel subpackage (required to link applications
1219 against the the embedded server libmysqld.a) (BUG 4921)
1220
1221* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
1222
1223- Added EXCEPTIONS-CLIENT to the "devel" package
1224
1225* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
1226
1227- disabled OpenSSL in the Max binaries again (the RPM packages were the
1228 only exception to this anyway) (BUG 1043)
1229
1230* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
1231
1232- fixed server postinstall (mysql_install_db was called with the wrong
1233 parameter)
1234
1235* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
1236
1237- added mysql_tzinfo_to_sql to the server subpackage
1238- run "make clean" instead of "make distclean"
1239
1240* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
1241
1242- added ncurses-devel to the build prerequisites (BUG 3377)
1243
1244* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
1245
1246- when using gcc, _always_ use CXX=gcc
1247- replaced Copyright with License field (Copyright is obsolete)
1248
1249* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
1250
1251- added myisam_ftdump to the Server package
1252
1253* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
1254
1255- link the mysql client against libreadline instead of libedit (BUG 2289)
1256
1257* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
1258
1259- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
1260
1261* Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
1262
1263- fixed file permissions (BUG 1672)
1264
1265* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
1266
1267- made testing for gcc3 a bit more robust
1268
1269* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
1270
1271- added missing file mysql_create_system_tables to the server subpackage
1272
1273* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
1274
1275- removed dependency on MySQL-client from the MySQL-devel subpackage
1276 as it is not really required. (BUG 1610)
1277
1278* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
1279
1280- Fixed BUG 1162 (removed macro names from the changelog)
1281- Really fixed BUG 998 (disable the checking for installed but
1282 unpackaged files)
1283
1284* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
1285
1286- Fixed BUG 959 (libmysqld not being compiled properly)
1287- Fixed BUG 998 (RPM build errors): added missing files to the
1288 distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
1289 mysql_fix_privilege_tables.1), removed "-n" from install section.
1290
1291* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
1292
1293- removed the GIF Icon (file was not included in the sources anyway)
1294- removed unused variable shared_lib_version
1295- do not run automake before building the standard binary
1296 (should not be necessary)
1297- add server suffix '-standard' to standard binary (to be in line
1298 with the binary tarball distributions)
1299- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
1300 _datadir, _includedir) throughout the spec file.
1301- allow overriding CC and CXX (required when building with other compilers)
1302
1303* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
1304
1305- re-enabled RAID again
1306
1307* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
1308
1309- disabled MyISAM RAID (--with-raid) - it throws an assertion which
1310 needs to be investigated first.
1311
1312* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
1313
1314- added missing file mysql_secure_installation to server subpackage
1315 (BUG 141)
1316
1317* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
1318
1319- re-added missing pre- and post(un)install scripts to server subpackage
1320- added config file /etc/my.cnf to the file list (just for completeness)
1321- make sure to create the datadir with 755 permissions
1322
1323* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
1324
1325- removed unused CC and CXX variables
1326- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
1327
1328* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
1329
1330- renamed package "MySQL" to "MySQL-server"
1331- fixed Copyright tag
1332- added mysql_waitpid to client subpackage (required for mysql-test-run)
1333
1334* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
1335
1336- moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
1337 Linux distributions now support this scheme as proposed by the LSB either
1338 directly or via a compatibility symlink)
1339- Use new "restart" init script action instead of starting and stopping
1340 separately
1341- Be more flexible in activating the automatic bootup - use insserv (on
1342 older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
1343 others) to create the respective symlinks
1344
1345* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
1346
1347- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
1348 (mixing 3.23 and 4.0 packages)
1349
1350* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
1351
1352- Turn off OpenSSL in MySQL-Max for now until it works properly again
1353- enable RAID for the Max binary instead
1354- added compatibility link: safe_mysqld -> mysqld_safe to ease the
1355 transition from 3.23
1356
1357* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
1358
1359- Reworked the build steps a little bit: the Max binary is supposed
1360 to include OpenSSL, which cannot be linked statically, thus trying
1361 to statically link against a special glibc is futile anyway
1362- because of this, it is not required to make yet another build run
1363 just to compile the shared libs (saves a lot of time)
1364- updated package description of the Max subpackage
1365- clean up the BuildRoot directory afterwards
1366
1367* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
1368
1369- Updated Packager information
1370- Fixed the build options: the regular package is supposed to
1371 include InnoDB and linked statically, while the Max package
1372 should include BDB and SSL support
1373
1374* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
1375
1376- Use more RPM macros (e.g. infodir, mandir) to make the spec
1377 file more portable
1378- reorganized the installation of documentation files: let RPM
1379 take care of this
1380- reorganized the file list: actually install man pages along
1381 with the binaries of the respective subpackage
1382- do not include libmysqld.a in the devel subpackage as well, if we
1383 have a special "embedded" subpackage
1384- reworked the package descriptions
1385
1386* Mon Oct 8 2001 Monty
1387
1388- Added embedded server as a separate RPM
1389
1390* Fri Apr 13 2001 Monty
1391
1392- Added mysqld-max to the distribution
1393
1394* Tue Jan 2 2001 Monty
1395
1396- Added mysql-test to the bench package
1397
1398* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
1399
1400- Added separate libmysql_r directory; now both a threaded
1401 and non-threaded library is shipped.
1402
1403* Wed Sep 28 1999 David Axmark <davida@mysql.com>
1404
1405- Added the support-files/my-example.cnf to the docs directory.
1406
1407- Removed devel dependency on base since it is about client
1408 development.
1409
1410* Wed Sep 8 1999 David Axmark <davida@mysql.com>
1411
1412- Cleaned up some for 3.23.
1413
1414* Thu Jul 1 1999 David Axmark <davida@mysql.com>
1415
1416- Added support for shared libraries in a separate sub
1417 package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
1418
1419- The --enable-assembler switch is now automatically disables on
1420 platforms there assembler code is unavailable. This should allow
1421 building this RPM on non i386 systems.
1422
1423* Mon Feb 22 1999 David Axmark <david@detron.se>
1424
1425- Removed unportable cc switches from the spec file. The defaults can
1426 now be overridden with environment variables. This feature is used
1427 to compile the official RPM with optimal (but compiler version
1428 specific) switches.
1429
1430- Removed the repetitive description parts for the sub rpms. Maybe add
1431 again if RPM gets a multiline macro capability.
1432
1433- Added support for a pt_BR translation. Translation contributed by
1434 Jorge Godoy <jorge@bestway.com.br>.
1435
1436* Wed Nov 4 1998 David Axmark <david@detron.se>
1437
1438- A lot of changes in all the rpm and install scripts. This may even
1439 be a working RPM :-)
1440
1441* Sun Aug 16 1998 David Axmark <david@detron.se>
1442
1443- A developers changelog for MySQL is available in the source RPM. And
1444 there is a history of major user visible changed in the Reference
1445 Manual. Only RPM specific changes will be documented here.
01446
=== modified file 'innodb_fix_misc.patch'
--- innodb_fix_misc.patch 2010-05-26 10:15:29 +0000
+++ innodb_fix_misc.patch 2010-05-27 20:37:26 +0000
@@ -6,7 +6,7 @@
6 #define INNODB_VERSION_BUGFIX 86 #define INNODB_VERSION_BUGFIX 8
7 7
8+#ifndef PERCONA_INNODB_VERSION8+#ifndef PERCONA_INNODB_VERSION
9+#define PERCONA_INNODB_VERSION unknown9+#define PERCONA_INNODB_VERSION 11.0
10+#endif10+#endif
11+11+
12+12+

Subscribers

People subscribed via source and target branches

to all changes: