Merge lp:~ignacio-nin/percona-server/5.6-bug1165098 into lp:percona-server/5.6

Proposed by Ignacio Nin
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: 333
Merged at revision: 337
Proposed branch: lp:~ignacio-nin/percona-server/5.6-bug1165098
Merge into: lp:percona-server/5.6
Diff against target: 4508 lines (+0/-2332)
5 files modified
build/build-shared-compat-rpm.sh (+0/-152)
build/debian/control (+0/-135)
build/debian/rules (+0/-77)
build/percona-server.spec (+0/-1877)
build/percona-shared-compat.spec (+0/-91)
To merge this branch: bzr merge lp:~ignacio-nin/percona-server/5.6-bug1165098
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+158136@code.launchpad.net

Description of the change

file-ids fix.

Most of the files under build/ (including build/ itself) were created with a different file-id than its 5.5/5.1 counterparts, leading to problems when merging changes from these branches.

This branches fixes this by re-adding the files with the proper file-ids. This is mostly a cosmetic change, except for a few exceptions no other change to the code.

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'build'
2=== removed directory 'build'
3=== renamed file 'build/build-binary.sh' => 'build/build-binary.sh'
4=== renamed file 'build/build-dpkg.sh' => 'build/build-dpkg.sh'
5=== renamed file 'build/build-rpm.sh' => 'build/build-rpm.sh'
6=== removed file 'build/build-shared-compat-rpm.sh'
7--- build/build-shared-compat-rpm.sh 2013-03-06 11:00:39 +0000
8+++ build/build-shared-compat-rpm.sh 1970-01-01 00:00:00 +0000
9@@ -1,152 +0,0 @@
10-#!/bin/sh
11-#
12-# Execute this tool to setup and build the shared-compat RPM starting
13-# from a fresh tree
14-#
15-# Usage: build-shared-compat-rpm.sh [target dir]
16-# The default target directory is the current directory. If it is not
17-# supplied and the current directory is not empty, it will issue an error in
18-# order to avoid polluting the current directory after a test run.
19-#
20-# The program will setup the rpm building environment, download the sources
21-# and ultimately call rpmbuild with the appropiate parameters.
22-#
23-
24-# Bail out on errors, be strict
25-set -ue
26-
27-# Examine parameters
28-TARGET=''
29-TARGET_ARG=''
30-TARGET_CFLAGS=''
31-SIGN='--sign'
32-
33-# Check if we have a functional getopt(1)
34-if ! getopt --test
35-then
36- go_out="$(getopt --options="iK" --longoptions=i686,nosign \
37- --name="$(basename "$0")" -- "$@")"
38- test $? -eq 0 || exit 1
39- eval set -- $go_out
40-fi
41-
42-for arg
43-do
44- case "$arg" in
45- -- ) shift; break;;
46- -i | --i686 )
47- shift
48- TARGET='i686'
49- TARGET_ARG="--target i686"
50- TARGET_CFLAGS="-m32 -march=i686"
51- ;;
52- -K | --nosign )
53- shift
54- SIGN=''
55- ;;
56- esac
57-done
58-
59-# Working directory
60-if test "$#" -eq 0
61-then
62- WORKDIR="$(pwd)"
63-
64- # Check that the current directory is not empty
65- if test "x$(echo *)" != "x*"
66- then
67- echo >&2 \
68- "Current directory is not empty. Use $0 . to force build in ."
69- exit 1
70- fi
71-
72-elif test "$#" -eq 1
73-then
74- WORKDIR="$1"
75-
76- # Check that the provided directory exists and is a directory
77- if ! test -d "$WORKDIR"
78- then
79- echo >&2 "$WORKDIR is not a directory"
80- exit 1
81- fi
82-
83-else
84- echo >&2 "Usage: $0 [target dir]"
85- exit 1
86-
87-fi
88-
89-WORKDIR_ABS="$(cd "$WORKDIR"; pwd)"
90-
91-# If we're in 32 bits, ensure that we're compiling for i686.
92-if test "x$TARGET" == "x"
93-then
94- if test "x$(uname -m)" != "xx86_64"
95- then
96- TARGET='i686'
97- TARGET_ARG="--target i686"
98- TARGET_CFLAGS='-m32 -march=i686'
99- fi
100-
101-fi
102-
103-SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)"
104-test -e "$SOURCEDIR/Makefile" || exit 2
105-
106-# Extract version from the Makefile
107-MYSQL_VERSION="$(grep ^MYSQL_VERSION= "$SOURCEDIR/Makefile" \
108- | cut -d = -f 2)"
109-PERCONA_SERVER_VERSION="$(grep ^PERCONA_SERVER_VERSION= \
110- "$SOURCEDIR/Makefile" | cut -d = -f 2)"
111-PRODUCT="Percona-Server-$MYSQL_VERSION-$PERCONA_SERVER_VERSION"
112-
113-# Build information
114-REDHAT_RELEASE="$(grep -o 'release [0-9][0-9]*' /etc/redhat-release | \
115- cut -d ' ' -f 2)"
116-REVISION="$(cd "$SOURCEDIR"; bzr log -r-1 | grep ^revno: | cut -d ' ' -f 2)"
117-
118-# Compilation flags
119-export CC=gcc
120-export CXX=gcc
121-export CFLAGS="-fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer $TARGET_CFLAGS"
122-export CXXFLAGS="-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fno-exceptions $TARGET_CFLAGS"
123-export MAKE_JFLAG=-j4
124-
125-# Create directories for rpmbuild if these don't exist
126-(cd "$WORKDIR" && mkdir -p BUILD RPMS SOURCES SPECS SRPMS)
127-
128-# Prepare sources
129-(
130- cd "$WORKDIR/SOURCES/"
131-
132- # Download the sources from the community site
133- if test "x$TARGET" = "xi686"
134- then
135- RPMVER=i386
136- elif test "x$(uname -m)" = "xx86_64"
137- then
138- RPMVER=x86_64
139- else
140- RPMVER=i386
141- fi
142-
143- wget "http://www.percona.com/downloads/community/shared-compat/MySQL-shared-compat-$MYSQL_VERSION-1.linux2.6.$RPMVER.rpm"
144-
145-)
146-
147-# Issue rpmbuild command
148-(
149- cd "$WORKDIR"
150-
151- # Issue RPM command
152- rpmbuild -ba --clean --with yassl $SIGN \
153- "$SOURCEDIR/build/percona-shared-compat.spec" \
154- --define "_topdir $WORKDIR_ABS" \
155- --define "redhat_version $REDHAT_RELEASE" \
156- --define "gotrevision $REVISION" \
157- --define "release $PERCONA_SERVER_VERSION" \
158- $TARGET_ARG
159-
160-)
161-
162
163=== added directory 'build/debian'
164=== removed directory 'build/debian'
165=== renamed file 'build/debian/README.source' => 'build/debian/README.source'
166=== renamed directory 'build/debian/additions' => 'build/debian/additions'
167=== renamed file 'build/debian/changelog' => 'build/debian/changelog'
168=== renamed file 'build/debian/compat' => 'build/debian/compat'
169=== added file 'build/debian/control'
170--- build/debian/control 1970-01-01 00:00:00 +0000
171+++ build/debian/control 2013-04-10 15:00:36 +0000
172@@ -0,0 +1,135 @@
173+Source: percona-server-5.6
174+Section: database
175+Priority: extra
176+Maintainer: Percona Server Development Team <mysql-dev@percona.com>
177+Uploaders: Ignacio Nin <ignacio.nin@percona.com>
178+Build-Depends: debhelper (>= 7.0), dpatch, cmake, libtool, automake, autoconf, libncurses5-dev, perl, bison, fakeroot, devscripts, libaio-dev
179+Standards-Version: 3.9.1
180+Homepage: http://www.percona.com/software/percona-server/
181+Vcs-Bzr: bzr+ssh://bazaar.launchpad.net/~percona-core/percona-server/5.6
182+Vcs-Browser: http://bazaar.launchpad.net/~percona-core/percona-server/5.6
183+
184+Package: libmysqlclient18
185+Section: libs
186+Architecture: any
187+Replaces: libpercona-server-client18
188+Depends: ${misc:Depends}
189+Description: Percona Server database client library
190+ Percona Server is a fast, stable and true multi-user,
191+ multi-threaded SQL database server. SQL (Structured Query Language)
192+ is the most popular database query language in the world. The main
193+ goals of Percona Server are speed, robustness and ease of use.
194+ .
195+ This package includes the client library.
196+
197+Package: libmysqlclient18-dev
198+Architecture: any
199+Section: libdevel
200+Depends: libmysqlclient-dev (= ${binary:Version}), ${misc:Depends}
201+Description: Percona Server database development files - empty transitional
202+ package. This is an empty package that depends on libmysqlclient-dev to ease
203+ the transition for packages with versioned build-deps on libmysqlclient18-dev.
204+
205+Package: libmysqlclient-dev
206+Architecture: any
207+Section: libdevel
208+Depends: libmysqlclient18 (= ${binary:Version}), zlib1g-dev, ${misc:Depends}
209+Conflicts: libmysqlclient14-dev, libmysqlclient12-dev, libmysqlclient10-dev, libmysqlclient15-dev, libmysqlclient16-dev
210+Replaces: libmysqlclient14-dev, libmysqlclient12-dev, libmysqlclient10-dev, libmysqlclient15-dev, libmysqlclient16-dev, libpercona-xtradb-client-dev
211+Description: Percona Server database development files
212+ Percona Server is a fast, stable and true multi-user, multi-threaded SQL
213+ database server. SQL (Structured Query Language) is the most popular
214+ database query language in the world. The main goals of Percona Server are
215+ speed, robustness and ease of use.
216+ .
217+ This package includes development libraries and header files.
218+
219+Package: percona-server-common-5.6
220+Section: database
221+Architecture: any
222+Depends: ${misc:Depends}
223+Conflicts: mysql-common-4.1, mysql-common-5.0, mysql-common-5.1, mysql-common, percona-server-common-5.1, percona-server-common-5.5
224+Provides: mysql-common
225+Replaces: mysql-common-4.1, mysql-common-5.0, mysql-common-5.1, mysql-common, percona-server-common-5.1, percona-server-common-5.5
226+Description: Percona Server database common files (e.g. /etc/mysql/my.cnf)
227+ Percona Server is a fast, stable and true multi-user, multi-threaded SQL
228+ database server. SQL (Structured Query Language) is the most popular database
229+ query language in the world. The main goals of Percona Server are speed,
230+ robustness and ease of use.
231+ .
232+ This package includes files needed by all versions of the client library
233+ (e.g. /etc/mysql/my.cnf).
234+
235+Package: percona-server-test-5.6
236+Architecture: any
237+Depends: percona-server-client-5.6 (>= ${source:Version}), percona-server-server-5.6 (>= ${source:Version})
238+Provides: mysql-client
239+Description: Percona Server database test suite
240+ Percona Server is a fast, stable and true multi-user, multi-threaded SQL
241+ database server. SQL (Structured Query Language) is the most popular database
242+ query language in the world. The main goals of Percona Server are speed,
243+ robustness and ease of use.
244+ .
245+ This package includes the Percona Server test framework that provides
246+ a means for verifying that Percona Server and its client programs
247+ operate according to expectations
248+
249+Package: percona-server-client-5.6
250+Architecture: any
251+Depends: debianutils (>=1.6), libdbi-perl, percona-server-common-5.6 (>= ${source:Version}), libmysqlclient18, ${shlib:Depends}, ${misc:Depends}
252+Provides: mysql-client, virtual-mysql-client
253+Conflicts: mysql-client (<< ${source:Version}), mysql-client-5.0, mysql-client-5.1, mysql-client-core-5.1, percona-xtradb-client-5.0, percona-server-client-5.1, percona-server-client-5.5
254+Replaces: mysql-client (<< ${source:Version}), mysql-client-5.0, mysql-client-5.1, mysql-client-core-5.1, percona-xtradb-client-5.0, percona-server-client-5.1, percona-server-client-5.5
255+Description: Percona Server database client binaries
256+ Percona Server is a fast, stable and true multi-user, multi-threaded SQL
257+ database server. SQL (Structured Query Language) is the most popular database
258+ query language in the world. The main goals of Percona Server are speed,
259+ robustness and ease of use.
260+ .
261+ This package includes the client binaries and the additional tools
262+ innotop and mysqlreport.
263+
264+Package: percona-server-server-5.6
265+Architecture: any
266+Suggests: tinyca
267+Depends: percona-server-client-5.6 (>= ${source:Version}), libdbi-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10), percona-server-common-5.6 (>= ${source:Version}), adduser (>= 3.40), debconf
268+Conflicts: mysql-server (<< ${source:Version}), mysql-server-4.1, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5
269+Provides: mysql-server
270+Replaces: mysql-server (<< ${source:Version}), mysql-server-5.0, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5
271+Description: Percona Server database server binaries
272+ Percona Server is a fast, stable and true multi-user, multi-threaded SQL
273+ database server. SQL (Structured Query Language) is the most popular database
274+ query language in the world. The main goals of Percona Server are speed,
275+ robustness and ease of use.
276+ .
277+ This package includes the server binaries.
278+
279+Package: percona-server-server
280+Section: database
281+Architecture: any
282+Depends: percona-server-server-5.6, ${misc:Depends}
283+Description: Percona Server database server
284+ (metapackage depending on the latest version)
285+ This is an empty package that depends on the current "best" version of
286+ percona-server-server (currently percona-server-server-5.6), as determined
287+ by the Percona Server maintainers. Install this package if in doubt
288+ about which Percona Server version you need. That will install the version
289+ recommended by the package maintainers.
290+ .
291+ Percona Server is a fast, stable and true multi-user, multi-threaded SQL
292+ database server. SQL (Structured Query Language) is the most popular database
293+ query language in the world. The main goals of Percona Server are speed,
294+ robustness and ease of use.
295+
296+Package: percona-server-client
297+Section: database
298+Architecture: any
299+Depends: percona-server-client-5.6, ${misc:Depends}
300+Description: Percona Server database client
301+ (metapackage depending on the latest version)
302+ This is an empty package that depends on the current "best" version of
303+ percona-server-client (currently percona-server-client-5.6), as determined
304+ by the Percona Server maintainers. Install this package if in doubt
305+ about which Percona Server version you want, as this is the one we consider
306+ to be in the best shape.
307+
308
309=== removed file 'build/debian/control'
310--- build/debian/control 2013-04-10 04:47:26 +0000
311+++ build/debian/control 1970-01-01 00:00:00 +0000
312@@ -1,135 +0,0 @@
313-Source: percona-server-5.6
314-Section: database
315-Priority: extra
316-Maintainer: Percona Server Development Team <mysql-dev@percona.com>
317-Uploaders: Ignacio Nin <ignacio.nin@percona.com>
318-Build-Depends: debhelper (>= 7.0), dpatch, cmake, libtool, automake, autoconf, libncurses5-dev, perl, bison, fakeroot, devscripts, libaio-dev
319-Standards-Version: 3.9.1
320-Homepage: http://www.percona.com/software/percona-server/
321-Vcs-Bzr: bzr+ssh://bazaar.launchpad.net/~percona-core/percona-server/5.6
322-Vcs-Browser: http://bazaar.launchpad.net/~percona-core/percona-server/5.6
323-
324-Package: libmysqlclient18
325-Section: libs
326-Architecture: any
327-Replaces: libpercona-server-client18
328-Depends: ${misc:Depends}
329-Description: Percona Server database client library
330- Percona Server is a fast, stable and true multi-user,
331- multi-threaded SQL database server. SQL (Structured Query Language)
332- is the most popular database query language in the world. The main
333- goals of Percona Server are speed, robustness and ease of use.
334- .
335- This package includes the client library.
336-
337-Package: libmysqlclient18-dev
338-Architecture: any
339-Section: libdevel
340-Depends: libmysqlclient-dev (= ${binary:Version}), ${misc:Depends}
341-Description: Percona Server database development files - empty transitional
342- package. This is an empty package that depends on libmysqlclient-dev to ease
343- the transition for packages with versioned build-deps on libmysqlclient18-dev.
344-
345-Package: libmysqlclient-dev
346-Architecture: any
347-Section: libdevel
348-Depends: libmysqlclient18 (= ${binary:Version}), zlib1g-dev, ${misc:Depends}
349-Conflicts: libmysqlclient14-dev, libmysqlclient12-dev, libmysqlclient10-dev, libmysqlclient15-dev, libmysqlclient16-dev
350-Replaces: libmysqlclient14-dev, libmysqlclient12-dev, libmysqlclient10-dev, libmysqlclient15-dev, libmysqlclient16-dev, libpercona-xtradb-client-dev
351-Description: Percona Server database development files
352- Percona Server is a fast, stable and true multi-user, multi-threaded SQL
353- database server. SQL (Structured Query Language) is the most popular
354- database query language in the world. The main goals of Percona Server are
355- speed, robustness and ease of use.
356- .
357- This package includes development libraries and header files.
358-
359-Package: percona-server-common-5.6
360-Section: database
361-Architecture: any
362-Depends: ${misc:Depends}
363-Conflicts: mysql-common-4.1, mysql-common-5.0, mysql-common-5.1, mysql-common, percona-server-common-5.1, percona-server-common-5.5
364-Provides: mysql-common
365-Replaces: mysql-common-4.1, mysql-common-5.0, mysql-common-5.1, mysql-common, percona-server-common-5.1, percona-server-common-5.5
366-Description: Percona Server database common files (e.g. /etc/mysql/my.cnf)
367- Percona Server is a fast, stable and true multi-user, multi-threaded SQL
368- database server. SQL (Structured Query Language) is the most popular database
369- query language in the world. The main goals of Percona Server are speed,
370- robustness and ease of use.
371- .
372- This package includes files needed by all versions of the client library
373- (e.g. /etc/mysql/my.cnf).
374-
375-Package: percona-server-test-5.6
376-Architecture: any
377-Depends: percona-server-client-5.6 (>= ${source:Version}), percona-server-server-5.6 (>= ${source:Version})
378-Provides: mysql-client
379-Description: Percona Server database test suite
380- Percona Server is a fast, stable and true multi-user, multi-threaded SQL
381- database server. SQL (Structured Query Language) is the most popular database
382- query language in the world. The main goals of Percona Server are speed,
383- robustness and ease of use.
384- .
385- This package includes the Percona Server test framework that provides
386- a means for verifying that Percona Server and its client programs
387- operate according to expectations
388-
389-Package: percona-server-client-5.6
390-Architecture: any
391-Depends: debianutils (>=1.6), libdbi-perl, percona-server-common-5.6 (>= ${source:Version}), libmysqlclient18, ${shlib:Depends}, ${misc:Depends}
392-Provides: mysql-client, virtual-mysql-client
393-Conflicts: mysql-client (<< ${source:Version}), mysql-client-5.0, mysql-client-5.1, mysql-client-core-5.1, percona-xtradb-client-5.0, percona-server-client-5.1, percona-server-client-5.5
394-Replaces: mysql-client (<< ${source:Version}), mysql-client-5.0, mysql-client-5.1, mysql-client-core-5.1, percona-xtradb-client-5.0, percona-server-client-5.1, percona-server-client-5.5
395-Description: Percona Server database client binaries
396- Percona Server is a fast, stable and true multi-user, multi-threaded SQL
397- database server. SQL (Structured Query Language) is the most popular database
398- query language in the world. The main goals of Percona Server are speed,
399- robustness and ease of use.
400- .
401- This package includes the client binaries and the additional tools
402- innotop and mysqlreport.
403-
404-Package: percona-server-server-5.6
405-Architecture: any
406-Suggests: tinyca
407-Depends: percona-server-client-5.6 (>= ${source:Version}), libdbi-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10), percona-server-common-5.6 (>= ${source:Version}), adduser (>= 3.40), debconf
408-Conflicts: mysql-server (<< ${source:Version}), mysql-server-4.1, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5
409-Provides: mysql-server
410-Replaces: mysql-server (<< ${source:Version}), mysql-server-5.0, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5
411-Description: Percona Server database server binaries
412- Percona Server is a fast, stable and true multi-user, multi-threaded SQL
413- database server. SQL (Structured Query Language) is the most popular database
414- query language in the world. The main goals of Percona Server are speed,
415- robustness and ease of use.
416- .
417- This package includes the server binaries.
418-
419-Package: percona-server-server
420-Section: database
421-Architecture: any
422-Depends: percona-server-server-5.6, ${misc:Depends}
423-Description: Percona Server database server
424- (metapackage depending on the latest version)
425- This is an empty package that depends on the current "best" version of
426- percona-server-server (currently percona-server-server-5.6), as determined
427- by the Percona Server maintainers. Install this package if in doubt
428- about which Percona Server version you need. That will install the version
429- recommended by the package maintainers.
430- .
431- Percona Server is a fast, stable and true multi-user, multi-threaded SQL
432- database server. SQL (Structured Query Language) is the most popular database
433- query language in the world. The main goals of Percona Server are speed,
434- robustness and ease of use.
435-
436-Package: percona-server-client
437-Section: database
438-Architecture: any
439-Depends: percona-server-client-5.6, ${misc:Depends}
440-Description: Percona Server database client
441- (metapackage depending on the latest version)
442- This is an empty package that depends on the current "best" version of
443- percona-server-client (currently percona-server-client-5.6), as determined
444- by the Percona Server maintainers. Install this package if in doubt
445- about which Percona Server version you want, as this is the one we consider
446- to be in the best shape.
447-
448
449=== renamed file 'build/debian/copyright' => 'build/debian/copyright'
450=== renamed file 'build/debian/libmysqlclient-dev.README.Maintainer' => 'build/debian/libmysqlclient-dev.README.Maintainer'
451=== renamed file 'build/debian/libmysqlclient-dev.install' => 'build/debian/libmysqlclient-dev.install'
452=== renamed file 'build/debian/libmysqlclient-dev.links' => 'build/debian/libmysqlclient-dev.links'
453=== renamed file 'build/debian/libmysqlclient18.docs' => 'build/debian/libmysqlclient18.docs'
454=== renamed file 'build/debian/libmysqlclient18.info' => 'build/debian/libmysqlclient18.info'
455=== renamed file 'build/debian/libmysqlclient18.install' => 'build/debian/libmysqlclient18.install'
456=== renamed file 'build/debian/libmysqlclient18.postinst' => 'build/debian/libmysqlclient18.postinst'
457=== renamed directory 'build/debian/patches' => 'build/debian/patches'
458=== renamed file 'build/debian/percona-server-client-5.6.README.Debian' => 'build/debian/percona-server-client-5.6.README.Debian'
459=== renamed file 'build/debian/percona-server-client-5.6.dirs' => 'build/debian/percona-server-client-5.6.dirs'
460=== renamed file 'build/debian/percona-server-client-5.6.docs' => 'build/debian/percona-server-client-5.6.docs'
461=== renamed file 'build/debian/percona-server-client-5.6.install' => 'build/debian/percona-server-client-5.6.install'
462=== renamed file 'build/debian/percona-server-client-5.6.links' => 'build/debian/percona-server-client-5.6.links'
463=== renamed file 'build/debian/percona-server-client-5.6.lintian-overrides' => 'build/debian/percona-server-client-5.6.lintian-overrides'
464=== renamed file 'build/debian/percona-server-client-5.6.menu' => 'build/debian/percona-server-client-5.6.menu'
465=== renamed file 'build/debian/percona-server-common-5.5.dirs' => 'build/debian/percona-server-common-5.5.dirs'
466=== renamed file 'build/debian/percona-server-server-5.6.README.Debian' => 'build/debian/percona-server-server-5.6.README.Debian'
467=== renamed file 'build/debian/percona-server-server-5.6.config' => 'build/debian/percona-server-server-5.6.config'
468=== renamed file 'build/debian/percona-server-server-5.6.dirs' => 'build/debian/percona-server-server-5.6.dirs'
469=== renamed file 'build/debian/percona-server-server-5.6.docs' => 'build/debian/percona-server-server-5.6.docs'
470=== renamed file 'build/debian/percona-server-server-5.6.install' => 'build/debian/percona-server-server-5.6.install'
471=== renamed file 'build/debian/percona-server-server-5.6.lintian-overrides' => 'build/debian/percona-server-server-5.6.lintian-overrides'
472=== renamed file 'build/debian/percona-server-server-5.6.logcheck.ignore.paranoid' => 'build/debian/percona-server-server-5.6.logcheck.ignore.paranoid'
473=== renamed file 'build/debian/percona-server-server-5.6.logcheck.ignore.server' => 'build/debian/percona-server-server-5.6.logcheck.ignore.server'
474=== renamed file 'build/debian/percona-server-server-5.6.logcheck.ignore.workstation' => 'build/debian/percona-server-server-5.6.logcheck.ignore.workstation'
475=== renamed file 'build/debian/percona-server-server-5.6.logrotate' => 'build/debian/percona-server-server-5.6.logrotate'
476=== renamed file 'build/debian/percona-server-server-5.6.mysql.init' => 'build/debian/percona-server-server-5.6.mysql.init'
477=== renamed file 'build/debian/percona-server-server-5.6.postinst' => 'build/debian/percona-server-server-5.6.postinst'
478=== renamed file 'build/debian/percona-server-server-5.6.postrm' => 'build/debian/percona-server-server-5.6.postrm'
479=== renamed file 'build/debian/percona-server-server-5.6.preinst' => 'build/debian/percona-server-server-5.6.preinst'
480=== renamed file 'build/debian/percona-server-server-5.6.prerm' => 'build/debian/percona-server-server-5.6.prerm'
481=== renamed file 'build/debian/percona-server-server-5.6.templates' => 'build/debian/percona-server-server-5.6.templates'
482=== renamed file 'build/debian/percona-server-test-5.6.install' => 'build/debian/percona-server-test-5.6.install'
483=== renamed file 'build/debian/percona-server-test-5.6.links' => 'build/debian/percona-server-test-5.6.links'
484=== renamed directory 'build/debian/po' => 'build/debian/po'
485=== added file 'build/debian/rules'
486--- build/debian/rules 1970-01-01 00:00:00 +0000
487+++ build/debian/rules 2013-04-10 15:00:36 +0000
488@@ -0,0 +1,77 @@
489+#!/usr/bin/make -f
490+
491+#export DH_VERBOSE=1
492+
493+include /usr/share/dpatch/dpatch.make
494+
495+CMAKE=cmake
496+TMP=$(CURDIR)/debian/tmp/
497+
498+feature_set="community"
499+compilation_comment_release="Percona Server (GPL), Release 60.2"
500+server_suffix="-56"
501+prefix="/usr"
502+
503+clean: clean-patched unpatch
504+
505+clean-patched:
506+ dh clean
507+ rm -rf CMakeFiles
508+
509+build: patch
510+ dh_testdir
511+ $(CMAKE) . -DBUILD_CONFIG=mysql_release \
512+ -DINSTALL_LAYOUT=DEB \
513+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
514+ -DWITH_EMBEDDED_SERVER=OFF \
515+ -DMYSQL_UNIX_ADDR="/var/run/mysqld/mysqld.sock" \
516+ -DFEATURE_SET=$(feature_set) \
517+ -DCOMPILATION_COMMENT=$(compilation_comment_release) \
518+ -DMYSQL_SERVER_SUFFIX=$(server_suffix)
519+ make $(MAKE_JFLAG)
520+
521+ # Build UDF
522+ cd UDF && \
523+ CXX=g++ CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/include" \
524+ ./configure --includedir=$(CURDIR)/include \
525+ --libdir=$(prefix)/lib/mysql/plugin && \
526+ make $(MAKE_JFLAG)
527+
528+ dh_auto_test
529+
530+binary:
531+ echo "Making binary"
532+ dh --before dh_auto_install binary
533+ dh_auto_install
534+ cd UDF && make DESTDIR=$(TMP) install
535+ dh --after dh_auto_install --before dh_installinit binary
536+ dh_installinit --name=mysql
537+ dh --after dh_installinit binary
538+
539+
540+binary-arch:
541+ echo "Making binary"
542+ dh --before dh_auto_install binary-arch
543+ dh_auto_install
544+ cd UDF && make DESTDIR=$(TMP) install
545+ dh --after dh_auto_install --before dh_installinit binary-arch
546+ dh_installinit --name=mysql
547+ dh --after dh_installinit binary-arch
548+
549+binary-indep:
550+ echo "Making binary"
551+ dh --before dh_auto_install binary-indep
552+ dh_auto_install
553+ cd UDF && make DESTDIR=$(TMP) install
554+ dh --after dh_auto_install --before dh_installinit binary-indep
555+ dh_installinit --name=mysql
556+ dh --after dh_installinit binary-indep
557+
558+install:
559+ echo "Making binary"
560+ dh --before dh_auto_install install
561+ dh_auto_install
562+ cd UDF && make DESTDIR=$(TMP) install
563+ dh --after dh_auto_install --before dh_installinit install
564+ dh_installinit --name=mysql
565+ dh --after dh_installinit install
566
567=== removed file 'build/debian/rules'
568--- build/debian/rules 2013-04-10 04:47:26 +0000
569+++ build/debian/rules 1970-01-01 00:00:00 +0000
570@@ -1,77 +0,0 @@
571-#!/usr/bin/make -f
572-
573-#export DH_VERBOSE=1
574-
575-include /usr/share/dpatch/dpatch.make
576-
577-CMAKE=cmake
578-TMP=$(CURDIR)/debian/tmp/
579-
580-feature_set="community"
581-compilation_comment_release="Percona Server (GPL), Release 60.2"
582-server_suffix="-56"
583-prefix="/usr"
584-
585-clean: clean-patched unpatch
586-
587-clean-patched:
588- dh clean
589- rm -rf CMakeFiles
590-
591-build: patch
592- dh_testdir
593- $(CMAKE) . -DBUILD_CONFIG=mysql_release \
594- -DINSTALL_LAYOUT=DEB \
595- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
596- -DWITH_EMBEDDED_SERVER=OFF \
597- -DMYSQL_UNIX_ADDR="/var/run/mysqld/mysqld.sock" \
598- -DFEATURE_SET=$(feature_set) \
599- -DCOMPILATION_COMMENT=$(compilation_comment_release) \
600- -DMYSQL_SERVER_SUFFIX=$(server_suffix)
601- make $(MAKE_JFLAG)
602-
603- # Build UDF
604- cd UDF && \
605- CXX=g++ CXXFLAGS="$(CXXFLAGS) -I$(CURDIR)/include" \
606- ./configure --includedir=$(CURDIR)/include \
607- --libdir=$(prefix)/lib/mysql/plugin && \
608- make $(MAKE_JFLAG)
609-
610- dh_auto_test
611-
612-binary:
613- echo "Making binary"
614- dh --before dh_auto_install binary
615- dh_auto_install
616- cd UDF && make DESTDIR=$(TMP) install
617- dh --after dh_auto_install --before dh_installinit binary
618- dh_installinit --name=mysql
619- dh --after dh_installinit binary
620-
621-
622-binary-arch:
623- echo "Making binary"
624- dh --before dh_auto_install binary-arch
625- dh_auto_install
626- cd UDF && make DESTDIR=$(TMP) install
627- dh --after dh_auto_install --before dh_installinit binary-arch
628- dh_installinit --name=mysql
629- dh --after dh_installinit binary-arch
630-
631-binary-indep:
632- echo "Making binary"
633- dh --before dh_auto_install binary-indep
634- dh_auto_install
635- cd UDF && make DESTDIR=$(TMP) install
636- dh --after dh_auto_install --before dh_installinit binary-indep
637- dh_installinit --name=mysql
638- dh --after dh_installinit binary-indep
639-
640-install:
641- echo "Making binary"
642- dh --before dh_auto_install install
643- dh_auto_install
644- cd UDF && make DESTDIR=$(TMP) install
645- dh --after dh_auto_install --before dh_installinit install
646- dh_installinit --name=mysql
647- dh --after dh_installinit install
648
649=== renamed directory 'build/debian/source' => 'build/debian/source'
650=== added file 'build/percona-server.spec'
651--- build/percona-server.spec 1970-01-01 00:00:00 +0000
652+++ build/percona-server.spec 2013-04-10 15:00:36 +0000
653@@ -0,0 +1,1877 @@
654+# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
655+#
656+# This program is free software; you can redistribute it and/or modify
657+# it under the terms of the GNU General Public License as published by
658+# the Free Software Foundation; version 2 of the License.
659+#
660+# This program is distributed in the hope that it will be useful,
661+# but WITHOUT ANY WARRANTY; without even the implied warranty of
662+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
663+# GNU General Public License for more details.
664+#
665+# You should have received a copy of the GNU General Public License
666+# along with this program; see the file COPYING. If not, write to the
667+# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
668+# MA 02110-1301 USA.
669+
670+##############################################################################
671+# Some common macro definitions
672+##############################################################################
673+
674+# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
675+# change these, has to be exactly as is.
676+%define mysql_old_vendor MySQL AB
677+%define mysql_vendor_2 Sun Microsystems, Inc.
678+%define mysql_vendor Oracle and/or its affiliates
679+%define percona_server_vendor Percona, Inc
680+
681+%define mysql_version 5.6.10
682+%define redhatversion %(lsb_release -rs | awk -F. '{ print $1}')
683+%define majorversion 60
684+%define minorversion 2
685+%define distribution rhel%{redhatversion}
686+%define percona_server_version alpha%{majorversion}.%{minorversion}
687+
688+%define mysqld_user mysql
689+%define mysqld_group mysql
690+%define mysqldatadir /var/lib/mysql
691+
692+%define release alpha%{majorversion}.%{minorversion}.%{gotrevision}.%{distribution}
693+
694+#
695+# Macros we use which are not available in all supported versions of RPM
696+#
697+# - defined/undefined are missing on RHEL4
698+#
699+%if %{expand:%{?defined:0}%{!?defined:1}}
700+%define defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
701+%endif
702+%if %{expand:%{?undefined:0}%{!?undefined:1}}
703+%define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
704+%endif
705+
706+# ----------------------------------------------------------------------------
707+# RPM build tools now automatically detect Perl module dependencies. This
708+# detection causes problems as it is broken in some versions, and it also
709+# provides unwanted dependencies from mandatory scripts in our package.
710+# It might not be possible to disable this in all versions of RPM, but here we
711+# try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as
712+# disabling here might fail, and that package has the most problems.
713+# See:
714+# http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides
715+# http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html
716+# ----------------------------------------------------------------------------
717+%undefine __perl_provides
718+%undefine __perl_requires
719+
720+##############################################################################
721+# Command line handling
722+##############################################################################
723+#
724+# To set options:
725+#
726+# $ rpmbuild --define="option <x>" ...
727+#
728+
729+# ----------------------------------------------------------------------------
730+# Commercial builds
731+# ----------------------------------------------------------------------------
732+%if %{undefined commercial}
733+%define commercial 0
734+%endif
735+
736+# ----------------------------------------------------------------------------
737+# Source name
738+# ----------------------------------------------------------------------------
739+%if %{undefined src_base}
740+%define src_base Percona-Server
741+%endif
742+%define src_dir %{src_base}-%{mysql_version}-%{percona_server_version}
743+
744+# ----------------------------------------------------------------------------
745+# Feature set (storage engines, options). Default to community (everything)
746+# ----------------------------------------------------------------------------
747+%if %{undefined feature_set}
748+%define feature_set community
749+%endif
750+
751+# ----------------------------------------------------------------------------
752+# Server comment strings
753+# ----------------------------------------------------------------------------
754+%if %{undefined compilation_comment_debug}
755+%define compilation_comment_debug Percona Server - Debug (GPL), Release %{percona_server_version}, Revision %{gotrevision}
756+%endif
757+%if %{undefined compilation_comment_release}
758+%define compilation_comment_release Percona Server (GPL), Release %{percona_server_version}, Revision %{gotrevision}
759+%endif
760+
761+
762+# ----------------------------------------------------------------------------
763+# Product and server suffixes
764+# ----------------------------------------------------------------------------
765+%define product_suffix -56
766+%if %{undefined product_suffix}
767+ %if %{defined short_product_tag}
768+ %define product_suffix -%{short_product_tag}
769+ %else
770+ %define product_suffix %{nil}
771+ %endif
772+%endif
773+
774+%define server_suffix %{product_suffix}
775+%if %{undefined server_suffix}
776+%define server_suffix %{nil}
777+%endif
778+
779+# ----------------------------------------------------------------------------
780+# Distribution support
781+# ----------------------------------------------------------------------------
782+%if %{undefined distro_specific}
783+%define distro_specific 0
784+%endif
785+%if %{distro_specific}
786+ %if %(test -f /etc/enterprise-release && echo 1 || echo 0)
787+ %define oelver %(rpm -qf --qf '%%{version}\\n' /etc/enterprise-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
788+ %if "%oelver" == "4"
789+ %define distro_description Oracle Enterprise Linux 4
790+ %define distro_releasetag oel4
791+ %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
792+ %define distro_requires chkconfig coreutils grep procps shadow-utils
793+ %else
794+ %if "%oelver" == "5"
795+ %define distro_description Oracle Enterprise Linux 5
796+ %define distro_releasetag oel5
797+ %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
798+ %define distro_requires chkconfig coreutils grep procps shadow-utils
799+ %else
800+ %{error:Oracle Enterprise Linux %{oelver} is unsupported}
801+ %endif
802+ %endif
803+ %else
804+ %if %(test -f /etc/redhat-release && echo 1 || echo 0)
805+ %define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
806+ %if "%rhelver" == "4"
807+ %define distro_description Red Hat Enterprise Linux 4
808+ %define distro_releasetag rhel4
809+ %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
810+ %define distro_requires chkconfig coreutils grep procps shadow-utils
811+ %else
812+ %if "%rhelver" == "5"
813+ %define distro_description Red Hat Enterprise Linux 5
814+ %define distro_releasetag rhel5
815+ %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
816+ %define distro_requires chkconfig coreutils grep procps shadow-utils
817+ %else
818+ %{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
819+ %endif
820+ %endif
821+ %else
822+ %if %(test -f /etc/SuSE-release && echo 1 || echo 0)
823+ %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release)
824+ %if "%susever" == "10"
825+ %define distro_description SUSE Linux Enterprise Server 10
826+ %define distro_releasetag sles10
827+ %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel libaio-devel bison cmake
828+ %define distro_requires aaa_base coreutils grep procps pwdutils
829+ %else
830+ %if "%susever" == "11"
831+ %define distro_description SUSE Linux Enterprise Server 11
832+ %define distro_releasetag sles11
833+ %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel libaio-devel bison cmake
834+ %define distro_requires aaa_base coreutils grep procps pwdutils
835+ %else
836+ %{error:SuSE %{susever} is unsupported}
837+ %endif
838+ %endif
839+ %else
840+ %{error:Unsupported distribution}
841+ %endif
842+ %endif
843+ %endif
844+%else
845+ %define generic_kernel %(uname -r | cut -d. -f1-2)
846+ %define distro_description Generic Linux (kernel %{generic_kernel})
847+ %define distro_releasetag linux%{generic_kernel}
848+ %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
849+ %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
850+%endif
851+
852+# ----------------------------------------------------------------------------
853+# Support optional "tcmalloc" library (experimental)
854+# ----------------------------------------------------------------------------
855+%if %{defined malloc_lib_target}
856+%define WITH_TCMALLOC 1
857+%else
858+%define WITH_TCMALLOC 0
859+%endif
860+
861+##############################################################################
862+# Configuration based upon above user input, not to be set directly
863+##############################################################################
864+
865+%if %{commercial}
866+%define license_files_server %{src_dir}/LICENSE.mysql
867+%define license_type Commercial
868+%else
869+%define license_files_server %{src_dir}/COPYING %{src_dir}/README
870+%define license_type GPL
871+%endif
872+
873+##############################################################################
874+# Main spec file section
875+##############################################################################
876+
877+Name: Percona-Server%{product_suffix}
878+Summary: Percona-Server: a very fast and reliable SQL database server
879+Group: Applications/Databases
880+Version: %{mysql_version}
881+Release: %{release}
882+Distribution: %{distro_description}
883+License: Copyright (c) 2000, 2010, %{mysql_vendor}. All rights reserved. Use is subject to license terms. Under %{license_type} license as shown in the Description field.
884+Source: http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-%{mysql_version}-%{majorversion}.%{minorversion}/source/%{src_dir}.tar.gz
885+URL: http://www.percona.com/
886+Packager: Percona MySQL Development Team <mysqldev@percona.com>
887+Vendor: %{percona_server_vendor}
888+Provides: mysql-server
889+BuildRequires: %{distro_buildreq}
890+
891+# Think about what you use here since the first step is to
892+# run a rm -rf
893+BuildRoot: %{_tmppath}/%{name}-%{version}-build
894+
895+# From the manual
896+%description
897+The Percona Server software delivers a very fast, multi-threaded, multi-user,
898+and robust SQL (Structured Query Language) database server. Percona Server
899+is intended for mission-critical, heavy-load production systems.
900+
901+Percona recommends that all production deployments be protected with a support
902+contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
903+be eligible for hot fixes, and boost your team's productivity.
904+
905+##############################################################################
906+# Sub package definition
907+##############################################################################
908+
909+%package -n Percona-Server-server%{product_suffix}
910+Summary: Percona Server: a very fast and reliable SQL database server
911+Group: Applications/Databases
912+Requires: %{distro_requires} Percona-Server-shared%{product_suffix}
913+Provides: mysql-server MySQL-server
914+
915+%description -n Percona-Server-server%{product_suffix}
916+The Percona Server software delivers a very fast, multi-threaded, multi-user,
917+and robust SQL (Structured Query Language) database server. Percona Server
918+is intended for mission-critical, heavy-load production systems.
919+
920+Percona recommends that all production deployments be protected with a support
921+contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
922+be eligible for hot fixes, and boost your team's productivity.
923+
924+This package includes the Percona Server with XtraDB binary
925+as well as related utilities to run and administer Percona Server.
926+
927+If you want to access and work with the database, you have to install
928+package "Percona-Server-client%{product_suffix}" as well!
929+
930+# ----------------------------------------------------------------------------
931+%package -n Percona-Server-client%{product_suffix}
932+Summary: Percona Server - Client
933+Group: Applications/Databases
934+Requires: Percona-Server-shared%{product_suffix}
935+Provides: mysql-client MySQL-client mysql MySQL
936+
937+%description -n Percona-Server-client%{product_suffix}
938+This package contains the standard Percona Server client and administration tools.
939+
940+For a description of Percona Server see http://www.percona.com/software/percona-server/
941+
942+# ----------------------------------------------------------------------------
943+%package -n Percona-Server-test%{product_suffix}
944+Requires: Percona-Server-client%{product_suffix} perl
945+Summary: Percona Server - Test suite
946+Group: Applications/Databases
947+Provides: mysql-test
948+AutoReqProv: no
949+
950+%description -n Percona-Server-test%{product_suffix}
951+This package contains the Percona Server regression test suite.
952+
953+For a description of Percona Server see http://www.percona.com/software/percona-server/
954+
955+# ----------------------------------------------------------------------------
956+%package -n Percona-Server-devel%{product_suffix}
957+Summary: Percona Server - Development header files and libraries
958+Group: Applications/Databases
959+Provides: mysql-devel
960+
961+%description -n Percona-Server-devel%{product_suffix}
962+This package contains the development header files and libraries necessary
963+to develop Percona Server client applications.
964+
965+For a description of Percona Server see http://www.percona.com/software/percona-server/
966+
967+# ----------------------------------------------------------------------------
968+%package -n Percona-Server-shared%{product_suffix}
969+Summary: Percona Server - Shared libraries
970+Group: Applications/Databases
971+Provides: mysql-shared
972+
973+%description -n Percona-Server-shared%{product_suffix}
974+This package contains the shared libraries (*.so*) which certain languages
975+and applications need to dynamically load and use Percona Server.
976+
977+##############################################################################
978+%prep
979+%setup -T -a 0 -c -n %{src_dir}
980+
981+##############################################################################
982+%build
983+
984+# Be strict about variables, bail at earliest opportunity, etc.
985+set -uex
986+
987+BuildUDF() {
988+ cd UDF
989+ CXX="${UDF_CXX:-g++}"\
990+ CXXFLAGS="$CXXFLAGS -I$RPM_BUILD_DIR/%{src_dir}/release/include" \
991+ ./configure --includedir=$RPM_BUILD_DIR/%{src_dir}/%{src_dir}/include \
992+ --libdir=%{_libdir}/mysql/plugin
993+ make all
994+ cd -
995+}
996+
997+# Optional package files
998+touch optional-files-devel
999+
1000+#
1001+# Set environment in order of preference, MYSQL_BUILD_* first, then variable
1002+# name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the
1003+# default RPM build environment.
1004+#
1005+# We set CXX=gcc by default to support so-called 'generic' binaries, where we
1006+# do not have a dependancy on libgcc/libstdc++. This only works while we do
1007+# not require C++ features such as exceptions, and may need to be removed at
1008+# a later date.
1009+#
1010+
1011+# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
1012+# the compile in cmd-line-utils/readline - needs investigation, but for now
1013+# we simply unset it and use those specified directly in cmake.
1014+%if "%{_arch}" == "ia64"
1015+RPM_OPT_FLAGS=
1016+%endif
1017+
1018+export PATH=${MYSQL_BUILD_PATH:-$PATH}
1019+export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
1020+export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
1021+export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
1022+export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
1023+export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
1024+export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
1025+export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-${MAKE_JFLAG:-}}
1026+
1027+# Build debug mysqld and libmysqld.a
1028+mkdir debug
1029+(
1030+ cd debug
1031+ # Attempt to remove any optimisation flags from the debug build
1032+ CFLAGS=`echo " ${CFLAGS} " | \
1033+ sed -e 's/ -O[0-9]* / /' \
1034+ -e 's/ -unroll2 / /' \
1035+ -e 's/ -ip / /' \
1036+ -e 's/^ //' \
1037+ -e 's/ $//'`
1038+ CXXFLAGS=`echo " ${CXXFLAGS} " | \
1039+ sed -e 's/ -O[0-9]* / /' \
1040+ -e 's/ -unroll2 / /' \
1041+ -e 's/ -ip / /' \
1042+ -e 's/^ //' \
1043+ -e 's/ $//'`
1044+ # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
1045+ # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
1046+ ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
1047+ -DCMAKE_BUILD_TYPE=Debug \
1048+ -DENABLE_DTRACE=OFF \
1049+ -DWITH_EMBEDDED_SERVER=OFF \
1050+ -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
1051+ -DFEATURE_SET="%{feature_set}" \
1052+ -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
1053+ -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
1054+ echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
1055+ make ${MAKE_JFLAG}
1056+)
1057+# Build full release
1058+mkdir release
1059+(
1060+ cd release
1061+ # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
1062+ # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
1063+ ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
1064+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
1065+ -DENABLE_DTRACE=OFF \
1066+ -DWITH_EMBEDDED_SERVER=OFF \
1067+ -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
1068+ -DFEATURE_SET="%{feature_set}" \
1069+ -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
1070+ -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
1071+ echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
1072+ make ${MAKE_JFLAG}
1073+ cd ../%{src_dir}
1074+ d="`pwd`"
1075+ BuildUDF
1076+ cd "$d"
1077+)
1078+
1079+# For the debuginfo extraction stage, some source files are not located in the release
1080+# and debug dirs, but in the source dir. Make a link there to avoid errors in the
1081+# strip phase.
1082+for d in debug release
1083+do
1084+ for f in pars/lexyy.cc pars/pars0grm.cc pars/pars0grm.y pars/pars0lex.l \
1085+ fts/fts0pars.cc fts/fts0pars.y fts/fts0blex.l fts/fts0blex.cc \
1086+ include/fts0pars.h fts/fts0tlex.cc fts/fts0tlex.l
1087+ do
1088+ ln -s "../../../%{src_dir}/storage/innobase/$f" "$d/storage/innobase/"
1089+ done
1090+ mkdir -p "$d/storage/include/"
1091+ ln -s "../../../%{src_dir}/storage/innobase/include/fts0tlex.h" \
1092+ "$d/storage/include/"
1093+ ln -s "../../../%{src_dir}/storage/innobase/include/fts0blex.h" \
1094+ "$d/storage/include/"
1095+done
1096+
1097+# Use the build root for temporary storage of the shared libraries.
1098+RBR=$RPM_BUILD_ROOT
1099+
1100+# Clean up the BuildRoot first
1101+[ "$RBR" != "/" ] && [ -d "$RBR" ] && rm -rf "$RBR";
1102+
1103+# For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). This
1104+# needs to be during build phase as $CC is not set during install.
1105+if "$CC" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1
1106+then
1107+ libgcc=`$CC $CFLAGS --print-libgcc-file`
1108+ if [ -f $libgcc ]
1109+ then
1110+ mkdir -p $RBR%{_libdir}/mysql
1111+ install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
1112+ echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
1113+ fi
1114+fi
1115+
1116+# Move temporarily the saved files to the BUILD directory since the BUILDROOT
1117+# dir will be cleaned at the start of the install phase
1118+mkdir -p "$(dirname $RPM_BUILD_DIR/%{_libdir})"
1119+mv $RBR%{_libdir} $RPM_BUILD_DIR/%{_libdir}
1120+
1121+##############################################################################
1122+%install
1123+
1124+RBR=$RPM_BUILD_ROOT
1125+MBD=$RPM_BUILD_DIR/%{src_dir}
1126+
1127+# Move back the libdir from BUILD dir to BUILDROOT
1128+mkdir -p "$(dirname $RBR%{_libdir})"
1129+mv $RPM_BUILD_DIR/%{_libdir} $RBR%{_libdir}
1130+
1131+# Ensure that needed directories exists
1132+install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
1133+install -d $RBR%{mysqldatadir}/mysql
1134+install -d $RBR%{_datadir}/mysql-test
1135+install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
1136+install -d $RBR%{_includedir}
1137+install -d $RBR%{_libdir}
1138+install -d $RBR%{_mandir}
1139+install -d $RBR%{_sbindir}
1140+install -d $RBR%{_libdir}/mysql/plugin
1141+
1142+(
1143+ cd $MBD/release
1144+ make DESTDIR=$RBR benchdir_root=%{_datadir} install
1145+ d="`pwd`"
1146+ cd $MBD/%{src_dir}/UDF
1147+ make DESTDIR=$RBR benchdir_root=%{_datadir} install
1148+ cd "$d"
1149+)
1150+
1151+# Install all binaries
1152+(
1153+ cd $MBD/release
1154+ make DESTDIR=$RBR install
1155+)
1156+
1157+# FIXME: at some point we should stop doing this and just install everything
1158+# FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming
1159+# FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
1160+mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
1161+
1162+# Install logrotate and autostart
1163+install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
1164+install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
1165+
1166+# Create a symlink "rcmysql", pointing to the init.script. SuSE users
1167+# will appreciate that, as all services usually offer this.
1168+ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
1169+
1170+# Touch the place where the my.cnf config file might be located
1171+# Just to make sure it's in the file list and marked as a config file
1172+touch $RBR%{_sysconfdir}/my.cnf
1173+
1174+# Install SELinux files in datadir
1175+install -m 600 $MBD/%{src_dir}/support-files/RHEL4-SElinux/mysql.{fc,te} \
1176+ $RBR%{_datadir}/mysql/SELinux/RHEL4
1177+
1178+%if %{WITH_TCMALLOC}
1179+# Even though this is a shared library, put it under /usr/lib*/mysql, so it
1180+# doesn't conflict with possible shared lib by the same name in /usr/lib*. See
1181+# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
1182+install -m 644 "%{malloc_lib_source}" \
1183+ "$RBR%{_libdir}/mysql/%{malloc_lib_target}"
1184+%endif
1185+
1186+# Remove man pages we explicitly do not want to package, avoids 'unpackaged
1187+# files' warning.
1188+rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
1189+
1190+##############################################################################
1191+# Post processing actions, i.e. when installed
1192+##############################################################################
1193+
1194+%pre -n Percona-Server-server%{product_suffix}
1195+
1196+# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
1197+
1198+mysql_datadir=%{mysqldatadir}
1199+# Check if we can safely upgrade. An upgrade is only safe if it's from one
1200+# of our RPMs in the same version family.
1201+
1202+installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
1203+if [ $? -eq 0 -a -n "$installed" ]; then
1204+ vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
1205+ version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
1206+ myoldvendor='%{mysql_old_vendor}'
1207+ myvendor_2='%{mysql_vendor_2}'
1208+ myvendor='%{mysql_vendor}'
1209+ perconaservervendor='%{percona_server_vendor}'
1210+ myversion='%{mysql_version}'
1211+
1212+ old_family=`echo $version \
1213+ | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
1214+ new_family=`echo $myversion \
1215+ | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
1216+
1217+ [ -z "$vendor" ] && vendor='<unknown>'
1218+ [ -z "$old_family" ] && old_family="<unrecognized version $version>"
1219+ [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
1220+
1221+ error_text=
1222+ if [ "$vendor" != "$myoldvendor" \
1223+ -a "$vendor" != "$myvendor_2" \
1224+ -a "$vendor" != "$myvendor" \
1225+ -a "$vendor" != "$perconaservervendor" ]; then
1226+ error_text="$error_text
1227+The current MySQL server package is provided by a different
1228+vendor ($vendor) than $myoldvendor, $myvendor_2,
1229+$myvendor, or $perconaservervendor.
1230+Some files may be installed to different locations, including log
1231+files and the service startup script in %{_sysconfdir}/init.d/.
1232+"
1233+ fi
1234+
1235+ if [ "$old_family" != "$new_family" ]; then
1236+ error_text="$error_text
1237+Upgrading directly from MySQL $old_family to MySQL $new_family may not
1238+be safe in all cases. A manual dump and restore using mysqldump is
1239+recommended. It is important to review the MySQL manual's Upgrading
1240+section for version-specific incompatibilities.
1241+"
1242+ fi
1243+
1244+ if [ -n "$error_text" ]; then
1245+ cat <<HERE >&2
1246+
1247+******************************************************************
1248+A MySQL server package ($installed) is installed.
1249+$error_text
1250+A manual upgrade is required.
1251+
1252+- Ensure that you have a complete, working backup of your data and my.cnf
1253+ files
1254+- Shut down the MySQL server cleanly
1255+- Remove the existing MySQL packages. Usually this command will
1256+ list the packages you should remove:
1257+ rpm -qa | grep -i '^mysql-'
1258+
1259+ You may choose to use 'rpm --nodeps -ev <package-name>' to remove
1260+ the package which contains the mysqlclient shared library. The
1261+ library will be reinstalled by the MySQL-shared-compat package.
1262+- Install the new MySQL packages supplied by $myvendor
1263+- Ensure that the MySQL server is started
1264+- Run the 'mysql_upgrade' program
1265+
1266+This is a brief description of the upgrade process. Important details
1267+can be found in the MySQL manual, in the Upgrading section.
1268+******************************************************************
1269+HERE
1270+ exit 1
1271+ fi
1272+fi
1273+
1274+# We assume that if there is exactly one ".pid" file,
1275+# it contains the valid PID of a running MySQL server.
1276+NR_PID_FILES=`ls $mysql_datadir/*.pid 2>/dev/null | wc -l`
1277+case $NR_PID_FILES in
1278+ 0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server
1279+ 1 ) SERVER_TO_START='true' ;;
1280+ * ) SERVER_TO_START='' # Situation not clear
1281+ SEVERAL_PID_FILES=true ;;
1282+esac
1283+# That logic may be debated: We might check whether it is non-empty,
1284+# contains exactly one number (possibly a PID), and whether "ps" finds it.
1285+# OTOH, if there is no such process, it means a crash without a cleanup -
1286+# is that a reason not to start a new server after upgrade?
1287+
1288+STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
1289+
1290+if [ -f $STATUS_FILE ]; then
1291+ echo "Some previous upgrade was not finished:"
1292+ ls -ld $STATUS_FILE
1293+ echo "Please check its status, then do"
1294+ echo " rm $STATUS_FILE"
1295+ echo "before repeating the MySQL upgrade."
1296+ exit 1
1297+elif [ -n "$SEVERAL_PID_FILES" ] ; then
1298+ echo "Your MySQL directory '$mysql_datadir' has more than one PID file:"
1299+ ls -ld $mysql_datadir/*.pid
1300+ echo "Please check which one (if any) corresponds to a running server"
1301+ echo "and delete all others before repeating the MySQL upgrade."
1302+ exit 1
1303+fi
1304+
1305+NEW_VERSION=%{mysql_version}-%{release}
1306+
1307+# The "pre" section code is also run on a first installation,
1308+# when there is no data directory yet. Protect against error messages.
1309+if [ -d $mysql_datadir ] ; then
1310+ echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE
1311+ echo "'pre' step running at `date`" >> $STATUS_FILE
1312+ echo >> $STATUS_FILE
1313+ echo "ERR file(s):" >> $STATUS_FILE
1314+ ls -ltr $mysql_datadir/*.err >> $STATUS_FILE
1315+ echo >> $STATUS_FILE
1316+ echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
1317+ grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
1318+ tail -1 >> $STATUS_FILE
1319+ echo >> $STATUS_FILE
1320+
1321+ if [ -n "$SERVER_TO_START" ] ; then
1322+ # There is only one PID file, race possibility ignored
1323+ echo "PID file:" >> $STATUS_FILE
1324+ ls -l $mysql_datadir/*.pid >> $STATUS_FILE
1325+ cat $mysql_datadir/*.pid >> $STATUS_FILE
1326+ echo >> $STATUS_FILE
1327+ echo "Server process:" >> $STATUS_FILE
1328+ ps -fp `cat $mysql_datadir/*.pid` >> $STATUS_FILE
1329+ echo >> $STATUS_FILE
1330+ echo "SERVER_TO_START=$SERVER_TO_START" >> $STATUS_FILE
1331+ else
1332+ # Take a note we checked it ...
1333+ echo "PID file:" >> $STATUS_FILE
1334+ ls -l $mysql_datadir/*.pid >> $STATUS_FILE 2>&1
1335+ fi
1336+fi
1337+
1338+# Shut down a previously installed server first
1339+# Note we *could* make that depend on $SERVER_TO_START, but we rather don't,
1340+# so a "stop" is attempted even if there is no PID file.
1341+# (Maybe the "stop" doesn't work then, but we might fix that in itself.)
1342+if [ -x %{_sysconfdir}/init.d/mysql ] ; then
1343+ %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
1344+ echo "Giving mysqld 5 seconds to exit nicely"
1345+ sleep 5
1346+fi
1347+
1348+%post -n Percona-Server-server%{product_suffix}
1349+
1350+# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
1351+
1352+mysql_datadir=%{mysqldatadir}
1353+NEW_VERSION=%{mysql_version}-%{release}
1354+STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
1355+
1356+# ----------------------------------------------------------------------
1357+# Create data directory if needed, check whether upgrade or install
1358+# ----------------------------------------------------------------------
1359+if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi
1360+if [ -f $STATUS_FILE ] ; then
1361+ SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
1362+else
1363+ SERVER_TO_START=''
1364+fi
1365+# echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
1366+if [ ! -d $mysql_datadir/mysql ] ; then
1367+ mkdir $mysql_datadir/mysql;
1368+ echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE
1369+else
1370+ # If the directory exists, we may assume it is an upgrade.
1371+ echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE
1372+fi
1373+if [ ! -d $mysql_datadir/test ] ; then mkdir $mysql_datadir/test; fi
1374+
1375+# ----------------------------------------------------------------------
1376+# Make MySQL start/shutdown automatically when the machine does it.
1377+# ----------------------------------------------------------------------
1378+# NOTE: This still needs to be debated. Should we check whether these links
1379+# for the other run levels exist(ed) before the upgrade?
1380+# use chkconfig on Enterprise Linux and newer SuSE releases
1381+if [ -x /sbin/chkconfig ] ; then
1382+ /sbin/chkconfig --add mysql
1383+# use insserv for older SuSE Linux versions
1384+elif [ -x /sbin/insserv ] ; then
1385+ /sbin/insserv %{_sysconfdir}/init.d/mysql
1386+fi
1387+
1388+# ----------------------------------------------------------------------
1389+# Create a MySQL user and group. Do not report any problems if it already
1390+# exists.
1391+# ----------------------------------------------------------------------
1392+groupadd -r %{mysqld_group} 2> /dev/null || true
1393+useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \
1394+ -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
1395+# The user may already exist, make sure it has the proper group nevertheless
1396+# (BUG#12823)
1397+usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
1398+
1399+# ----------------------------------------------------------------------
1400+# Change permissions so that the user that will run the MySQL daemon
1401+# owns all database files.
1402+# ----------------------------------------------------------------------
1403+chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
1404+
1405+# ----------------------------------------------------------------------
1406+# Initiate databases if needed
1407+# ----------------------------------------------------------------------
1408+%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
1409+
1410+# ----------------------------------------------------------------------
1411+# Upgrade databases if needed would go here - but it cannot be automated yet
1412+# ----------------------------------------------------------------------
1413+
1414+# ----------------------------------------------------------------------
1415+# Change permissions again to fix any new files.
1416+# ----------------------------------------------------------------------
1417+chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
1418+
1419+# ----------------------------------------------------------------------
1420+# Fix permissions for the permission database so that only the user
1421+# can read them.
1422+# ----------------------------------------------------------------------
1423+chmod -R og-rw $mysql_datadir/mysql
1424+
1425+# ----------------------------------------------------------------------
1426+# install SELinux files - but don't override existing ones
1427+# ----------------------------------------------------------------------
1428+SETARGETDIR=/etc/selinux/targeted/src/policy
1429+SEDOMPROG=$SETARGETDIR/domains/program
1430+SECONPROG=$SETARGETDIR/file_contexts/program
1431+if [ -f /etc/redhat-release ] \
1432+ && (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
1433+ || grep -q "CentOS release 4" /etc/redhat-release) ; then
1434+ echo
1435+ echo
1436+ echo 'Notes regarding SELinux on this platform:'
1437+ echo '========================================='
1438+ echo
1439+ echo 'The default policy might cause server startup to fail because it is'
1440+ echo 'not allowed to access critical files. In this case, please update'
1441+ echo 'your installation.'
1442+ echo
1443+ echo 'The default policy might also cause inavailability of SSL related'
1444+ echo 'features because the server is not allowed to access /dev/random'
1445+ echo 'and /dev/urandom. If this is a problem, please do the following:'
1446+ echo
1447+ echo ' 1) install selinux-policy-targeted-sources from your OS vendor'
1448+ echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':'
1449+ echo ' allow mysqld_t random_device_t:chr_file read;'
1450+ echo ' allow mysqld_t urandom_device_t:chr_file read;'
1451+ echo ' 3) cd to '$SETARGETDIR' and issue the following command:'
1452+ echo ' make load'
1453+ echo
1454+ echo
1455+fi
1456+
1457+if [ -x sbin/restorecon ] ; then
1458+ sbin/restorecon -R var/lib/mysql
1459+fi
1460+
1461+# Was the server running before the upgrade? If so, restart the new one.
1462+if [ "$SERVER_TO_START" = "true" ] ; then
1463+ # Restart in the same way that mysqld will be started normally.
1464+ if [ -x %{_sysconfdir}/init.d/mysql ] ; then
1465+ %{_sysconfdir}/init.d/mysql start
1466+ echo "Giving mysqld 5 seconds to start"
1467+ sleep 5
1468+ fi
1469+fi
1470+
1471+echo "Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit."
1472+echo "Run the following commands to create these functions:"
1473+echo "mysql -e \"CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'\""
1474+echo "mysql -e \"CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'\""
1475+echo "mysql -e \"CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'\""
1476+echo "See http://code.google.com/p/maatkit/source/browse/trunk/udf for more details"
1477+
1478+# Collect an upgrade history ...
1479+echo "Upgrade/install finished at `date`" >> $STATUS_FILE
1480+echo >> $STATUS_FILE
1481+echo "=====" >> $STATUS_FILE
1482+STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
1483+cat $STATUS_FILE >> $STATUS_HISTORY
1484+mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun"
1485+
1486+
1487+#echo "Thank you for installing the MySQL Community Server! For Production
1488+#systems, we recommend MySQL Enterprise, which contains enterprise-ready
1489+#software, intelligent advisory services, and full production support with
1490+#scheduled service packs and more. Visit www.mysql.com/enterprise for more
1491+#information."
1492+
1493+%preun -n Percona-Server-server%{product_suffix}
1494+
1495+# Which '$1' does this refer to? Fedora docs have info:
1496+# " ... a count of the number of versions of the package that are installed.
1497+# Action Count
1498+# Install the first time 1
1499+# Upgrade 2 or higher (depending on the number of versions installed)
1500+# Remove last version of package 0 "
1501+#
1502+# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
1503+
1504+if [ $1 = 0 ] ; then
1505+ # Stop MySQL before uninstalling it
1506+ if [ -x %{_sysconfdir}/init.d/mysql ] ; then
1507+ %{_sysconfdir}/init.d/mysql stop > /dev/null
1508+ # Remove autostart of MySQL
1509+ # use chkconfig on Enterprise Linux and newer SuSE releases
1510+ if [ -x /sbin/chkconfig ] ; then
1511+ /sbin/chkconfig --del mysql
1512+ # For older SuSE Linux versions
1513+ elif [ -x /sbin/insserv ] ; then
1514+ /sbin/insserv -r %{_sysconfdir}/init.d/mysql
1515+ fi
1516+ fi
1517+fi
1518+
1519+# We do not remove the mysql user since it may still own a lot of
1520+# database files.
1521+
1522+%triggerpostun -n Percona-Server-server%{product_suffix} --MySQL-server-community
1523+
1524+# Setup: We renamed this package, so any existing "server-community"
1525+# package will be removed when this "server" is installed.
1526+# Problem: RPM will first run the "pre" and "post" sections of this script,
1527+# and only then the "preun" of that old community server.
1528+# But this "preun" includes stopping the server and uninstalling the service,
1529+# "chkconfig --del mysql" which removes the symlinks to the start script.
1530+# Solution: *After* the community server got removed, restart this server
1531+# and re-install the service.
1532+#
1533+# For information about triggers in spec files, see the Fedora docs:
1534+# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html
1535+# For all details of this code, see the "pre" and "post" sections.
1536+
1537+mysql_datadir=%{mysqldatadir}
1538+NEW_VERSION=%{mysql_version}-%{release}
1539+STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST # Note the difference!
1540+STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
1541+
1542+if [ -f $STATUS_FILE ] ; then
1543+ SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
1544+else
1545+ # This should never happen, but let's be prepared
1546+ SERVER_TO_START=''
1547+fi
1548+echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
1549+
1550+if [ -x /sbin/chkconfig ] ; then
1551+ /sbin/chkconfig --add mysql
1552+# use insserv for older SuSE Linux versions
1553+elif [ -x /sbin/insserv ] ; then
1554+ /sbin/insserv %{_sysconfdir}/init.d/mysql
1555+fi
1556+
1557+# Was the server running before the upgrade? If so, restart the new one.
1558+if [ "$SERVER_TO_START" = "true" ] ; then
1559+ # Restart in the same way that mysqld will be started normally.
1560+ if [ -x %{_sysconfdir}/init.d/mysql ] ; then
1561+ %{_sysconfdir}/init.d/mysql start
1562+ echo "Giving mysqld 5 seconds to start"
1563+ sleep 5
1564+ fi
1565+fi
1566+
1567+echo "Trigger 'postun --community' finished at `date`" >> $STATUS_HISTORY
1568+echo >> $STATUS_HISTORY
1569+echo "=====" >> $STATUS_HISTORY
1570+
1571+
1572+# ----------------------------------------------------------------------
1573+# Clean up the BuildRoot after build is done
1574+# ----------------------------------------------------------------------
1575+%clean
1576+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
1577+ && rm -rf $RPM_BUILD_ROOT;
1578+
1579+##############################################################################
1580+# Files section
1581+##############################################################################
1582+
1583+%files -n Percona-Server-server%{product_suffix}
1584+%defattr(-,root,root,0755)
1585+
1586+%if %{defined license_files_server}
1587+%doc %{license_files_server}
1588+%endif
1589+%doc release/Docs/INFO_SRC
1590+%doc release/Docs/INFO_BIN
1591+%doc release/support-files/my-*.cnf
1592+
1593+%doc %attr(644, root, root) %{_infodir}/mysql.info*
1594+
1595+%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
1596+%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
1597+%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
1598+%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
1599+%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
1600+%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
1601+%doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
1602+%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
1603+%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
1604+%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
1605+%doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
1606+%doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
1607+%doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
1608+%doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
1609+%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
1610+%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
1611+%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
1612+%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
1613+%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
1614+%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
1615+%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
1616+%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
1617+%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
1618+%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
1619+%doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
1620+%doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
1621+%doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1*
1622+
1623+%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
1624+
1625+%attr(755, root, root) %{_bindir}/innochecksum
1626+%attr(755, root, root) %{_bindir}/my_print_defaults
1627+%attr(755, root, root) %{_bindir}/myisam_ftdump
1628+%attr(755, root, root) %{_bindir}/myisamchk
1629+%attr(755, root, root) %{_bindir}/myisamlog
1630+%attr(755, root, root) %{_bindir}/myisampack
1631+%attr(755, root, root) %{_bindir}/mysql_convert_table_format
1632+%attr(755, root, root) %{_bindir}/mysql_fix_extensions
1633+%attr(755, root, root) %{_bindir}/mysql_install_db
1634+%attr(755, root, root) %{_bindir}/mysql_secure_installation
1635+%attr(755, root, root) %{_bindir}/mysql_setpermission
1636+%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
1637+%attr(755, root, root) %{_bindir}/mysql_upgrade
1638+%attr(755, root, root) %{_bindir}/mysql_plugin
1639+%attr(755, root, root) %{_bindir}/mysql_zap
1640+%attr(755, root, root) %{_bindir}/mysqlbug
1641+%attr(755, root, root) %{_bindir}/mysqld_multi
1642+%attr(755, root, root) %{_bindir}/mysqld_safe
1643+%attr(755, root, root) %{_bindir}/mysqldumpslow
1644+%attr(755, root, root) %{_bindir}/mysqlhotcopy
1645+%attr(755, root, root) %{_bindir}/mysqltest
1646+%attr(755, root, root) %{_bindir}/perror
1647+%attr(755, root, root) %{_bindir}/replace
1648+%attr(755, root, root) %{_bindir}/resolve_stack_dump
1649+%attr(755, root, root) %{_bindir}/resolveip
1650+
1651+%attr(755, root, root) %{_sbindir}/mysqld
1652+%attr(755, root, root) %{_sbindir}/mysqld-debug
1653+%attr(755, root, root) %{_sbindir}/rcmysql
1654+%attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
1655+%attr(755, root, root) %{_libdir}/mysql/plugin/adt_null.so
1656+%attr(755, root, root) %{_libdir}/mysql/plugin/libdaemon_example.so
1657+%attr(755, root, root) %{_libdir}/mysql/plugin/mypluglib.so
1658+%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_master.so
1659+%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_slave.so
1660+%attr(755, root, root) %{_libdir}/mysql/plugin/auth.so
1661+%attr(755, root, root) %{_libdir}/mysql/plugin/auth_socket.so
1662+%attr(755, root, root) %{_libdir}/mysql/plugin/auth_test_plugin.so
1663+%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_client.so
1664+%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_interface.so
1665+%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_server.so
1666+%attr(755, root, root) %{_libdir}/mysql/plugin/validate_password.so
1667+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/adt_null.so
1668+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libdaemon_example.so
1669+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/mypluglib.so
1670+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_master.so
1671+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_slave.so
1672+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth.so
1673+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_socket.so
1674+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_test_plugin.so
1675+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_client.so
1676+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_interface.so
1677+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_server.so
1678+%attr(755, root, root) %{_libdir}/mysql/plugin/debug/validate_password.so
1679+# UDF files
1680+%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so
1681+%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so.0
1682+%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so.0.0.0
1683+%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so
1684+%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so.0
1685+%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so.0.0.0
1686+%attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so
1687+%attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so.0
1688+%attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so.0.0.0
1689+
1690+
1691+
1692+
1693+%if %{WITH_TCMALLOC}
1694+%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
1695+%endif
1696+
1697+%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
1698+%attr(755, root, root) %{_sysconfdir}/init.d/mysql
1699+
1700+%attr(755, root, root) %{_datadir}/mysql/
1701+
1702+# ----------------------------------------------------------------------------
1703+%files -n Percona-Server-client%{product_suffix}
1704+
1705+%defattr(-, root, root, 0755)
1706+%attr(755, root, root) %{_bindir}/msql2mysql
1707+%attr(755, root, root) %{_bindir}/mysql
1708+%attr(755, root, root) %{_bindir}/mysql_find_rows
1709+%attr(755, root, root) %{_bindir}/mysql_waitpid
1710+%attr(755, root, root) %{_bindir}/mysqlaccess
1711+# XXX: This should be moved to %{_sysconfdir}
1712+%attr(644, root, root) %{_bindir}/mysqlaccess.conf
1713+%attr(755, root, root) %{_bindir}/mysqladmin
1714+%attr(755, root, root) %{_bindir}/mysqlbinlog
1715+%attr(755, root, root) %{_bindir}/mysqlcheck
1716+%attr(755, root, root) %{_bindir}/mysqldump
1717+%attr(755, root, root) %{_bindir}/mysqlimport
1718+%attr(755, root, root) %{_bindir}/mysqlshow
1719+%attr(755, root, root) %{_bindir}/mysqlslap
1720+%attr(755, root, root) %{_bindir}/mysql_config_editor
1721+
1722+%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
1723+%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
1724+%doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
1725+%doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
1726+%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
1727+%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
1728+%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
1729+%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
1730+%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
1731+%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
1732+%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
1733+%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
1734+
1735+# ----------------------------------------------------------------------------
1736+%files -n Percona-Server-devel%{product_suffix} -f optional-files-devel
1737+%defattr(-, root, root, 0755)
1738+%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
1739+%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
1740+%attr(755, root, root) %{_bindir}/mysql_config
1741+%dir %attr(755, root, root) %{_includedir}/mysql
1742+%dir %attr(755, root, root) %{_libdir}/mysql
1743+%{_includedir}/mysql/*
1744+%{_datadir}/aclocal/mysql.m4
1745+%{_libdir}/mysql/libmysqlclient.a
1746+%{_libdir}/mysql/libmysqlclient_r.a
1747+%{_libdir}/mysql/libmysqlservices.a
1748+
1749+# ----------------------------------------------------------------------------
1750+%files -n Percona-Server-shared%{product_suffix}
1751+%defattr(-, root, root, 0755)
1752+# Shared libraries (omit for architectures that don't support them)
1753+%{_libdir}/libmysql*.so*
1754+# Maatkit UDF libs
1755+%{_libdir}/mysql/plugin/libfnv1a_udf.a
1756+%{_libdir}/mysql/plugin/libfnv1a_udf.la
1757+%{_libdir}/mysql/plugin/libfnv_udf.a
1758+%{_libdir}/mysql/plugin/libfnv_udf.la
1759+%{_libdir}/mysql/plugin/libmurmur_udf.a
1760+%{_libdir}/mysql/plugin/libmurmur_udf.la
1761+
1762+%post -n Percona-Server-shared%{product_suffix}
1763+/sbin/ldconfig
1764+
1765+%postun -n Percona-Server-shared%{product_suffix}
1766+/sbin/ldconfig
1767+
1768+# ----------------------------------------------------------------------------
1769+%files -n Percona-Server-test%{product_suffix}
1770+%defattr(-, root, root, 0755)
1771+%attr(-, root, root) %{_datadir}/mysql-test
1772+%attr(755, root, root) %{_bindir}/mysql_client_test
1773+#%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
1774+#%attr(755, root, root) %{_bindir}/mysqltest_embedded
1775+%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
1776+%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
1777+%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
1778+%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
1779+%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
1780+
1781+##############################################################################
1782+# The spec file changelog only includes changes made to the spec file
1783+# itself - note that they must be ordered by date (important when
1784+# merging BK trees)
1785+##############################################################################
1786+%changelog
1787+* Thu Feb 10 2011 Ignacio Nin <ignacio.nin@percona.com>
1788+
1789+- Removed lines which prevented -debuginfo packages from being built.
1790+
1791+* Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1792+
1793+- EXCEPTIONS-CLIENT has been deleted, remove it from here too
1794+- Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
1795+ a '-j' argument to make.
1796+
1797+* Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1798+
1799+- Added test authentication (WL#1054) plugin binaries
1800+
1801+* Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
1802+
1803+- Added example external authentication (WL#1054) plugin binaries
1804+
1805+* Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
1806+
1807+- With a recent spec file cleanup, names have changed: A "-community" part was dropped.
1808+ Reflect that in the "Obsoletes" specifications.
1809+- Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
1810+- This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
1811+
1812+* Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1813+
1814+- Change the behaviour on installation and upgrade:
1815+ On installation, do not autostart the server.
1816+ *Iff* the server was stopped before the upgrade is started, this is taken as a
1817+ sign the administrator is handling that manually, and so the new server will
1818+ not be started automatically at the end of the upgrade.
1819+ The start/stop scripts will still be installed, so the server will be started
1820+ on the next machine boot.
1821+ This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).
1822+
1823+* Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1824+
1825+- Implement SELinux checks from distribution-specific spec file.
1826+
1827+* Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
1828+
1829+- Large number of changes to build using CMake
1830+- Introduce distribution-specific RPMs
1831+- Drop debuginfo, build all binaries with debug/symbols
1832+- Remove __os_install_post, use native macro
1833+- Remove _unpackaged_files_terminate_build, make it an error to have
1834+ unpackaged files
1835+- Remove cluster RPMs
1836+
1837+* Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1838+
1839+- Add "--with-perfschema" to the configure options.
1840+
1841+* Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1842+
1843+- User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
1844+ mask "rmdir" return code 1.
1845+- Remove "ha_example.*" files from the list, they aren't built.
1846+
1847+* Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1848+
1849+- Fix a wrong path name in handling the debug plugins.
1850+
1851+* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1852+
1853+- Take the result of the debug plugin build and put it into the optimized tree,
1854+ so that it becomes part of the final installation;
1855+ include the files in the packlist. Part of the fixes for bug#49022.
1856+
1857+* Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1858+
1859+- Set "Oracle and/or its affiliates" as the vendor and copyright owner,
1860+ accept upgrading from packages showing MySQL or Sun as vendor.
1861+
1862+* Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1863+
1864+- Formatting changes:
1865+ Have a consistent structure of separator lines and of indentation
1866+ (8 leading blanks => tab).
1867+- Introduce the variable "src_dir".
1868+- Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
1869+ over "CC" ("CXX").
1870+- Drop the old "with_static" argument analysis, this is not supported
1871+ in 5.1 since ages.
1872+- Introduce variables to control the handlers individually, as well
1873+ as other options.
1874+- Use the new "--with-plugin" notation for the table handlers.
1875+- Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
1876+ was done back in 2002 already.
1877+- Make "--with-zlib-dir=bundled" the default, add an option to disable it.
1878+- Add missing manual pages to the file list.
1879+- Improve the runtime check for "libgcc.a", protect it against being tried
1880+ with the Intel compiler "icc".
1881+
1882+* Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
1883+
1884+- Change RPM file naming:
1885+ - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
1886+ - Release counts from 1, not 0.
1887+
1888+* Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1889+
1890+- The "semisync" plugin file name has lost its introductory "lib",
1891+ adapt the file lists for the subpackages.
1892+ This is a part missing from the fix for bug#48351.
1893+- Remove the "fix_privilege_tables" manual, it does not exist in 5.5
1894+ (and likely, the whole script will go, too).
1895+
1896+* Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1897+
1898+- Fix some problems with the directives around "tcmalloc" (experimental),
1899+ remove erroneous traces of the InnoDB plugin (that is 5.1 only).
1900+
1901+* Fri Oct 06 2009 Magnus Blaudd <mvensson@mysql.com>
1902+
1903+- Removed mysql_fix_privilege_tables
1904+
1905+* Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
1906+
1907+- "mysqlmanager" got removed from version 5.4, all references deleted.
1908+
1909+* Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1910+
1911+- Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
1912+
1913+* Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
1914+
1915+- This version does not contain the "Instance manager", "mysqlmanager":
1916+ Remove it from the spec file so that packaging succeeds.
1917+
1918+* Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
1919+
1920+- Add conditionals for bundled zlib and innodb plugin
1921+
1922+* Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
1923+
1924+- Install plugin libraries in appropriate packages.
1925+- Disable libdaemon_example and ftexample plugins.
1926+
1927+* Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
1928+
1929+- Update variable used for mysql-test suite location to match source.
1930+
1931+* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
1932+
1933+- Correct yesterday's fix, so that it also works for the last flag,
1934+ and fix a wrong quoting: un-quoted quote marks must not be escaped.
1935+
1936+* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
1937+
1938+- Removed "mysql_upgrade_shell"
1939+- Removed some copy/paste between debug and normal build
1940+
1941+* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
1942+
1943+- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
1944+ This should cover both gcc and icc flags. Fixes bug#40546.
1945+
1946+* Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
1947+
1948+- Removed the "Federated" storage engine option, and enabled in all
1949+
1950+* Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
1951+
1952+- Get rid of the "warning: Installed (but unpackaged) file(s) found:"
1953+ Some generated files aren't needed in RPMs:
1954+ - the "sql-bench/" subdirectory
1955+ Some files were missing:
1956+ - /usr/share/aclocal/mysql.m4 ("devel" subpackage)
1957+ - Manual "mysqlbug" ("server" subpackage)
1958+ - Program "innochecksum" and its manual ("server" subpackage)
1959+ - Manual "mysql_find_rows" ("client" subpackage)
1960+ - Script "mysql_upgrade_shell" ("client" subpackage)
1961+ - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
1962+ - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
1963+
1964+* Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
1965+
1966+- Made the "Federated" storage engine an option
1967+- Made the "Cluster" storage engine and sub packages an option
1968+
1969+* Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
1970+
1971+- Add the man pages for "ndbd" and "ndb_mgmd".
1972+
1973+* Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
1974+
1975+- Require a manual upgrade if the alread-installed mysql-server is
1976+ from another vendor, or is of a different major version.
1977+
1978+* Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
1979+
1980+- "ndb_size.tmpl" is not needed any more,
1981+ "man1/mysql_install_db.1" lacked the trailing '*'.
1982+
1983+* Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
1984+
1985+- Removed man page for "mysql_create_system_tables"
1986+
1987+* Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
1988+
1989+- Add debug server.
1990+
1991+* Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
1992+
1993+- Remove Max RPMs; the server RPMs contain a mysqld compiled with all
1994+ features that previously only were built into Max.
1995+
1996+* Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
1997+
1998+- Add several man pages for NDB which are now created.
1999+
2000+* Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
2001+
2002+- Put back "libmygcc.a", found no real reason it was removed.
2003+
2004+- Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
2005+ correct "libgcc.a" path is returned for the 32/64 bit architecture.
2006+
2007+* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
2008+
2009+- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
2010+
2011+* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
2012+
2013+- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
2014+ in the server RPM.
2015+- The "mysqlmanager" man page got moved from section 1 to 8.
2016+
2017+* Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
2018+
2019+- Call "make install" using "benchdir_root=%{_datadir}",
2020+ because that is affecting the regression test suite as well.
2021+
2022+* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
2023+
2024+- Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
2025+ replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
2026+ (bug#22081).
2027+
2028+* Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
2029+
2030+- Add "--with-partition" to all server builds.
2031+
2032+- Use "--report-features" in one test run per server build.
2033+
2034+* Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com>
2035+
2036+- The "max" server is removed from packages, effective from 5.1.12-beta.
2037+ Delete all steps to build, package, or install it.
2038+
2039+* Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
2040+
2041+- Fix a typing error in the "make" target for the Perl script to run the tests.
2042+
2043+* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
2044+
2045+- Use the Perl script to run the tests, because it will automatically check
2046+ whether the server is configured with SSL.
2047+
2048+* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
2049+
2050+- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
2051+
2052+- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
2053+ there are some more aspects which need to be solved before this is possible.
2054+ For now, just ensure the binary "mysql_upgrade" is delivered and installed.
2055+
2056+* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
2057+
2058+- Close a gap of the previous version by explicitly using
2059+ a newly created temporary directory for the socket to be used
2060+ in the "mysql_upgrade" operation, overriding any local setting.
2061+
2062+* Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
2063+
2064+- To run "mysql_upgrade", we need a running server;
2065+ start it in isolation and skip password checks.
2066+
2067+* Sat May 20 2006 Kent Boortz <kent@mysql.com>
2068+
2069+- Always compile for PIC, position independent code.
2070+
2071+* Wed May 10 2006 Kent Boortz <kent@mysql.com>
2072+
2073+- Use character set "all" when compiling with Cluster, to make Cluster
2074+ nodes independent on the character set directory, and the problem
2075+ that two RPM sub packages both wants to install this directory.
2076+
2077+* Mon May 01 2006 Kent Boortz <kent@mysql.com>
2078+
2079+- Use "./libtool --mode=execute" instead of searching for the
2080+ executable in current directory and ".libs".
2081+
2082+* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
2083+
2084+- Install and run "mysql_upgrade"
2085+
2086+* Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
2087+
2088+- Remove sql-bench, and MySQL-bench RPM (will be built as an independent
2089+ project from the mysql-bench repository)
2090+
2091+* Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
2092+
2093+- Remove old mysqltestmanager and related programs
2094+* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
2095+
2096+- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
2097+
2098+* Wed Mar 07 2006 Kent Boortz <kent@mysql.com>
2099+
2100+- Changed product name from "Community Edition" to "Community Server"
2101+
2102+* Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
2103+
2104+- Fast mutexes is now disabled by default, but should be
2105+ used in Linux builds.
2106+
2107+* Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
2108+
2109+- Reintroduced a max build
2110+- Limited testing of 'debug' and 'max' servers
2111+- Berkeley DB only in 'max'
2112+
2113+* Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
2114+
2115+- Use "-i" on "make test-force";
2116+ this is essential for later evaluation of this log file.
2117+
2118+* Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
2119+
2120+- Pass '-static' to libtool, link static with our own libraries, dynamic
2121+ with system libraries. Link with the bundled zlib.
2122+
2123+* Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
2124+
2125+- Modified RPM spec to match new 5.1 debug+max combined community packaging.
2126+
2127+* Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
2128+
2129+- Added "client/mysqlslap"
2130+
2131+* Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
2132+
2133+- Added zlib to the list of (static) libraries installed
2134+- Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
2135+- Compile MySQL with bundled zlib
2136+- Fixed %packager name to "MySQL Production Engineering Team"
2137+
2138+* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
2139+
2140+- Avoid using the "bundled" zlib on "shared" builds:
2141+ As it is not installed (on the build system), this gives dependency
2142+ problems with "libtool" causing the build to fail.
2143+ (Change was done on Nov 11, but left uncommented.)
2144+
2145+* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
2146+
2147+- Extend the file existence check for "init.d/mysql" on un-install
2148+ to also guard the call to "insserv"/"chkconfig".
2149+
2150+* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
2151+
2152+- added more man pages
2153+
2154+* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
2155+
2156+- Made yaSSL support an option (off by default)
2157+
2158+* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
2159+
2160+- Enabled yaSSL support
2161+
2162+* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
2163+
2164+- Give mode arguments the same way in all places
2165+- Moved copy of mysqld.a to "standard" build, but
2166+ disabled it as we don't do embedded yet in 5.0
2167+
2168+* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
2169+
2170+- For 5.x, always compile with --with-big-tables
2171+- Copy the config.log file to location outside
2172+ the build tree
2173+
2174+* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
2175+
2176+- Removed unneeded/obsolete configure options
2177+- Added archive engine to standard server
2178+- Removed the embedded server from experimental server
2179+- Changed suffix "-Max" => "-max"
2180+- Changed comment string "Max" => "Experimental"
2181+
2182+* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
2183+
2184+- added a usermod call to assign a potential existing mysql user to the
2185+ correct user group (BUG#12823)
2186+- Save the perror binary built during Max build so it supports the NDB
2187+ error codes (BUG#13740)
2188+- added a separate macro "mysqld_group" to be able to define the
2189+ user group of the mysql user seperately, if desired.
2190+
2191+* Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
2192+
2193+- fixed the removing of the RPM_BUILD_ROOT in the %clean section (the
2194+ $RBR variable did not get expanded, thus leaving old build roots behind)
2195+
2196+* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
2197+
2198+- Fixed the creation of the mysql user group account in the postinstall
2199+ section (BUG 12348)
2200+- Fixed enabling the Archive storage engine in the Max binary
2201+
2202+* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
2203+
2204+- Fixed the Requires: tag for the server RPM (BUG 12233)
2205+
2206+* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
2207+
2208+- create a "mysql" user group and assign the mysql user account to that group
2209+ in the server postinstall section. (BUG 10984)
2210+
2211+* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
2212+
2213+- Do not build statically on i386 by default, only when adding either "--with
2214+ static" or "--define '_with_static 1'" to the RPM build options. Static
2215+ linking really only makes sense when linking against the specially patched
2216+ glibc 2.2.5.
2217+
2218+* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
2219+
2220+- added mysql_client_test to the "bench" subpackage (BUG 10676)
2221+- added the libndbclient static and shared libraries (BUG 10676)
2222+
2223+* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
2224+
2225+- use "mysqldatadir" variable instead of hard-coding the path multiple times
2226+- use the "mysqld_user" variable on all occasions a user name is referenced
2227+- removed (incomplete) Brazilian translations
2228+- removed redundant release tags from the subpackage descriptions
2229+
2230+* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
2231+
2232+- Added a "make clean" between separate calls to "BuildMySQL".
2233+
2234+* Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
2235+
2236+- Removed the mysql_tableinfo script made obsolete by the information schema
2237+
2238+* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
2239+
2240+- Enabled the "blackhole" storage engine for the Max RPM
2241+
2242+* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
2243+
2244+- removed the MySQL manual files (html/ps/texi) - they have been removed
2245+ from the MySQL sources and are now available seperately.
2246+
2247+* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
2248+
2249+- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
2250+ mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
2251+
2252+* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
2253+
2254+- Disabled RAID in the Max binaries once and for all (it has finally been
2255+ removed from the source tree)
2256+
2257+* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
2258+
2259+- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
2260+ password file
2261+
2262+* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
2263+
2264+- Fixed the compilation comments and moved them into the separate build sections
2265+ for Max and Standard
2266+
2267+* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
2268+
2269+- enabled the "Ndbcluster" storage engine for the max binary
2270+- added extra make install in ndb subdir after Max build to get ndb binaries
2271+- added packages for ndbcluster storage engine
2272+
2273+* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
2274+
2275+- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
2276+
2277+* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
2278+
2279+- enabled the "Federated" storage engine for the max binary
2280+
2281+* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
2282+
2283+- ISAM and merge storage engines were purged. As well as appropriate
2284+ tools and manpages (isamchk and isamlog)
2285+
2286+* Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
2287+
2288+- enabled the "Archive" storage engine for the max binary
2289+- enabled the "CSV" storage engine for the max binary
2290+- enabled the "Example" storage engine for the max binary
2291+
2292+* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
2293+
2294+- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
2295+
2296+* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
2297+
2298+- do not link statically on IA64/AMD64 as these systems do not have
2299+ a patched glibc installed
2300+
2301+* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
2302+
2303+- Added libmygcc.a to the devel subpackage (required to link applications
2304+ against the the embedded server libmysqld.a) (BUG 4921)
2305+
2306+* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
2307+
2308+- Added EXCEPTIONS-CLIENT to the "devel" package
2309+
2310+* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
2311+
2312+- disabled OpenSSL in the Max binaries again (the RPM packages were the
2313+ only exception to this anyway) (BUG 1043)
2314+
2315+* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
2316+
2317+- fixed server postinstall (mysql_install_db was called with the wrong
2318+ parameter)
2319+
2320+* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
2321+
2322+- added mysql_tzinfo_to_sql to the server subpackage
2323+- run "make clean" instead of "make distclean"
2324+
2325+* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
2326+
2327+- added ncurses-devel to the build prerequisites (BUG 3377)
2328+
2329+* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
2330+
2331+- when using gcc, _always_ use CXX=gcc
2332+- replaced Copyright with License field (Copyright is obsolete)
2333+
2334+* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
2335+
2336+- added myisam_ftdump to the Server package
2337+
2338+* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
2339+
2340+- link the mysql client against libreadline instead of libedit (BUG 2289)
2341+
2342+* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
2343+
2344+- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
2345+
2346+* Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
2347+
2348+- fixed file permissions (BUG 1672)
2349+
2350+* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
2351+
2352+- made testing for gcc3 a bit more robust
2353+
2354+* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
2355+
2356+- added missing file mysql_create_system_tables to the server subpackage
2357+
2358+* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
2359+
2360+- removed dependency on MySQL-client from the MySQL-devel subpackage
2361+ as it is not really required. (BUG 1610)
2362+
2363+* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
2364+
2365+- Fixed BUG 1162 (removed macro names from the changelog)
2366+- Really fixed BUG 998 (disable the checking for installed but
2367+ unpackaged files)
2368+
2369+* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
2370+
2371+- Fixed BUG 959 (libmysqld not being compiled properly)
2372+- Fixed BUG 998 (RPM build errors): added missing files to the
2373+ distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
2374+ mysql_fix_privilege_tables.1), removed "-n" from install section.
2375+
2376+* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
2377+
2378+- removed the GIF Icon (file was not included in the sources anyway)
2379+- removed unused variable shared_lib_version
2380+- do not run automake before building the standard binary
2381+ (should not be necessary)
2382+- add server suffix '-standard' to standard binary (to be in line
2383+ with the binary tarball distributions)
2384+- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
2385+ _datadir, _includedir) throughout the spec file.
2386+- allow overriding CC and CXX (required when building with other compilers)
2387+
2388+* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
2389+
2390+- re-enabled RAID again
2391+
2392+* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
2393+
2394+- disabled MyISAM RAID (--with-raid) - it throws an assertion which
2395+ needs to be investigated first.
2396+
2397+* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
2398+
2399+- added missing file mysql_secure_installation to server subpackage
2400+ (BUG 141)
2401+
2402+* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
2403+
2404+- re-added missing pre- and post(un)install scripts to server subpackage
2405+- added config file /etc/my.cnf to the file list (just for completeness)
2406+- make sure to create the datadir with 755 permissions
2407+
2408+* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
2409+
2410+- removed unused CC and CXX variables
2411+- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
2412+
2413+* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
2414+
2415+- renamed package "MySQL" to "MySQL-server"
2416+- fixed Copyright tag
2417+- added mysql_waitpid to client subpackage (required for mysql-test-run)
2418+
2419+* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
2420+
2421+- moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
2422+ Linux distributions now support this scheme as proposed by the LSB either
2423+ directly or via a compatibility symlink)
2424+- Use new "restart" init script action instead of starting and stopping
2425+ separately
2426+- Be more flexible in activating the automatic bootup - use insserv (on
2427+ older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
2428+ others) to create the respective symlinks
2429+
2430+* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
2431+
2432+- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
2433+ (mixing 3.23 and 4.0 packages)
2434+
2435+* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
2436+
2437+- Turn off OpenSSL in MySQL-Max for now until it works properly again
2438+- enable RAID for the Max binary instead
2439+- added compatibility link: safe_mysqld -> mysqld_safe to ease the
2440+ transition from 3.23
2441+
2442+* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
2443+
2444+- Reworked the build steps a little bit: the Max binary is supposed
2445+ to include OpenSSL, which cannot be linked statically, thus trying
2446+ to statically link against a special glibc is futile anyway
2447+- because of this, it is not required to make yet another build run
2448+ just to compile the shared libs (saves a lot of time)
2449+- updated package description of the Max subpackage
2450+- clean up the BuildRoot directory afterwards
2451+
2452+* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
2453+
2454+- Updated Packager information
2455+- Fixed the build options: the regular package is supposed to
2456+ include InnoDB and linked statically, while the Max package
2457+ should include BDB and SSL support
2458+
2459+* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
2460+
2461+- Use more RPM macros (e.g. infodir, mandir) to make the spec
2462+ file more portable
2463+- reorganized the installation of documentation files: let RPM
2464+ take care of this
2465+- reorganized the file list: actually install man pages along
2466+ with the binaries of the respective subpackage
2467+- do not include libmysqld.a in the devel subpackage as well, if we
2468+ have a special "embedded" subpackage
2469+- reworked the package descriptions
2470+
2471+* Mon Oct 8 2001 Monty
2472+
2473+- Added embedded server as a separate RPM
2474+
2475+* Fri Apr 13 2001 Monty
2476+
2477+- Added mysqld-max to the distribution
2478+
2479+* Tue Jan 2 2001 Monty
2480+
2481+- Added mysql-test to the bench package
2482+
2483+* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
2484+
2485+- Added separate libmysql_r directory; now both a threaded
2486+ and non-threaded library is shipped.
2487+
2488+* Wed Sep 28 1999 David Axmark <davida@mysql.com>
2489+
2490+- Added the support-files/my-example.cnf to the docs directory.
2491+
2492+- Removed devel dependency on base since it is about client
2493+ development.
2494+
2495+* Wed Sep 8 1999 David Axmark <davida@mysql.com>
2496+
2497+- Cleaned up some for 3.23.
2498+
2499+* Thu Jul 1 1999 David Axmark <davida@mysql.com>
2500+
2501+- Added support for shared libraries in a separate sub
2502+ package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
2503+
2504+- The --enable-assembler switch is now automatically disables on
2505+ platforms there assembler code is unavailable. This should allow
2506+ building this RPM on non i386 systems.
2507+
2508+* Mon Feb 22 1999 David Axmark <david@detron.se>
2509+
2510+- Removed unportable cc switches from the spec file. The defaults can
2511+ now be overridden with environment variables. This feature is used
2512+ to compile the official RPM with optimal (but compiler version
2513+ specific) switches.
2514+
2515+- Removed the repetitive description parts for the sub rpms. Maybe add
2516+ again if RPM gets a multiline macro capability.
2517+
2518+- Added support for a pt_BR translation. Translation contributed by
2519+ Jorge Godoy <jorge@bestway.com.br>.
2520+
2521+* Wed Nov 4 1998 David Axmark <david@detron.se>
2522+
2523+- A lot of changes in all the rpm and install scripts. This may even
2524+ be a working RPM :-)
2525+
2526+* Sun Aug 16 1998 David Axmark <david@detron.se>
2527+
2528+- A developers changelog for MySQL is available in the source RPM. And
2529+ there is a history of major user visible changed in the Reference
2530+ Manual. Only RPM specific changes will be documented here.
2531
2532=== removed file 'build/percona-server.spec'
2533--- build/percona-server.spec 2013-04-10 04:47:26 +0000
2534+++ build/percona-server.spec 1970-01-01 00:00:00 +0000
2535@@ -1,1877 +0,0 @@
2536-# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
2537-#
2538-# This program is free software; you can redistribute it and/or modify
2539-# it under the terms of the GNU General Public License as published by
2540-# the Free Software Foundation; version 2 of the License.
2541-#
2542-# This program is distributed in the hope that it will be useful,
2543-# but WITHOUT ANY WARRANTY; without even the implied warranty of
2544-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2545-# GNU General Public License for more details.
2546-#
2547-# You should have received a copy of the GNU General Public License
2548-# along with this program; see the file COPYING. If not, write to the
2549-# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
2550-# MA 02110-1301 USA.
2551-
2552-##############################################################################
2553-# Some common macro definitions
2554-##############################################################################
2555-
2556-# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
2557-# change these, has to be exactly as is.
2558-%define mysql_old_vendor MySQL AB
2559-%define mysql_vendor_2 Sun Microsystems, Inc.
2560-%define mysql_vendor Oracle and/or its affiliates
2561-%define percona_server_vendor Percona, Inc
2562-
2563-%define mysql_version 5.6.10
2564-%define redhatversion %(lsb_release -rs | awk -F. '{ print $1}')
2565-%define majorversion 60
2566-%define minorversion 2
2567-%define distribution rhel%{redhatversion}
2568-%define percona_server_version alpha%{majorversion}.%{minorversion}
2569-
2570-%define mysqld_user mysql
2571-%define mysqld_group mysql
2572-%define mysqldatadir /var/lib/mysql
2573-
2574-%define release alpha%{majorversion}.%{minorversion}.%{gotrevision}.%{distribution}
2575-
2576-#
2577-# Macros we use which are not available in all supported versions of RPM
2578-#
2579-# - defined/undefined are missing on RHEL4
2580-#
2581-%if %{expand:%{?defined:0}%{!?defined:1}}
2582-%define defined() %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
2583-%endif
2584-%if %{expand:%{?undefined:0}%{!?undefined:1}}
2585-%define undefined() %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
2586-%endif
2587-
2588-# ----------------------------------------------------------------------------
2589-# RPM build tools now automatically detect Perl module dependencies. This
2590-# detection causes problems as it is broken in some versions, and it also
2591-# provides unwanted dependencies from mandatory scripts in our package.
2592-# It might not be possible to disable this in all versions of RPM, but here we
2593-# try anyway. We keep the "AutoReqProv: no" for the "test" sub package, as
2594-# disabling here might fail, and that package has the most problems.
2595-# See:
2596-# http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides
2597-# http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html
2598-# ----------------------------------------------------------------------------
2599-%undefine __perl_provides
2600-%undefine __perl_requires
2601-
2602-##############################################################################
2603-# Command line handling
2604-##############################################################################
2605-#
2606-# To set options:
2607-#
2608-# $ rpmbuild --define="option <x>" ...
2609-#
2610-
2611-# ----------------------------------------------------------------------------
2612-# Commercial builds
2613-# ----------------------------------------------------------------------------
2614-%if %{undefined commercial}
2615-%define commercial 0
2616-%endif
2617-
2618-# ----------------------------------------------------------------------------
2619-# Source name
2620-# ----------------------------------------------------------------------------
2621-%if %{undefined src_base}
2622-%define src_base Percona-Server
2623-%endif
2624-%define src_dir %{src_base}-%{mysql_version}-%{percona_server_version}
2625-
2626-# ----------------------------------------------------------------------------
2627-# Feature set (storage engines, options). Default to community (everything)
2628-# ----------------------------------------------------------------------------
2629-%if %{undefined feature_set}
2630-%define feature_set community
2631-%endif
2632-
2633-# ----------------------------------------------------------------------------
2634-# Server comment strings
2635-# ----------------------------------------------------------------------------
2636-%if %{undefined compilation_comment_debug}
2637-%define compilation_comment_debug Percona Server - Debug (GPL), Release %{percona_server_version}, Revision %{gotrevision}
2638-%endif
2639-%if %{undefined compilation_comment_release}
2640-%define compilation_comment_release Percona Server (GPL), Release %{percona_server_version}, Revision %{gotrevision}
2641-%endif
2642-
2643-
2644-# ----------------------------------------------------------------------------
2645-# Product and server suffixes
2646-# ----------------------------------------------------------------------------
2647-%define product_suffix -56
2648-%if %{undefined product_suffix}
2649- %if %{defined short_product_tag}
2650- %define product_suffix -%{short_product_tag}
2651- %else
2652- %define product_suffix %{nil}
2653- %endif
2654-%endif
2655-
2656-%define server_suffix %{product_suffix}
2657-%if %{undefined server_suffix}
2658-%define server_suffix %{nil}
2659-%endif
2660-
2661-# ----------------------------------------------------------------------------
2662-# Distribution support
2663-# ----------------------------------------------------------------------------
2664-%if %{undefined distro_specific}
2665-%define distro_specific 0
2666-%endif
2667-%if %{distro_specific}
2668- %if %(test -f /etc/enterprise-release && echo 1 || echo 0)
2669- %define oelver %(rpm -qf --qf '%%{version}\\n' /etc/enterprise-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
2670- %if "%oelver" == "4"
2671- %define distro_description Oracle Enterprise Linux 4
2672- %define distro_releasetag oel4
2673- %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
2674- %define distro_requires chkconfig coreutils grep procps shadow-utils
2675- %else
2676- %if "%oelver" == "5"
2677- %define distro_description Oracle Enterprise Linux 5
2678- %define distro_releasetag oel5
2679- %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
2680- %define distro_requires chkconfig coreutils grep procps shadow-utils
2681- %else
2682- %{error:Oracle Enterprise Linux %{oelver} is unsupported}
2683- %endif
2684- %endif
2685- %else
2686- %if %(test -f /etc/redhat-release && echo 1 || echo 0)
2687- %define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
2688- %if "%rhelver" == "4"
2689- %define distro_description Red Hat Enterprise Linux 4
2690- %define distro_releasetag rhel4
2691- %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
2692- %define distro_requires chkconfig coreutils grep procps shadow-utils
2693- %else
2694- %if "%rhelver" == "5"
2695- %define distro_description Red Hat Enterprise Linux 5
2696- %define distro_releasetag rhel5
2697- %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
2698- %define distro_requires chkconfig coreutils grep procps shadow-utils
2699- %else
2700- %{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
2701- %endif
2702- %endif
2703- %else
2704- %if %(test -f /etc/SuSE-release && echo 1 || echo 0)
2705- %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release)
2706- %if "%susever" == "10"
2707- %define distro_description SUSE Linux Enterprise Server 10
2708- %define distro_releasetag sles10
2709- %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel libaio-devel bison cmake
2710- %define distro_requires aaa_base coreutils grep procps pwdutils
2711- %else
2712- %if "%susever" == "11"
2713- %define distro_description SUSE Linux Enterprise Server 11
2714- %define distro_releasetag sles11
2715- %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel libaio-devel bison cmake
2716- %define distro_requires aaa_base coreutils grep procps pwdutils
2717- %else
2718- %{error:SuSE %{susever} is unsupported}
2719- %endif
2720- %endif
2721- %else
2722- %{error:Unsupported distribution}
2723- %endif
2724- %endif
2725- %endif
2726-%else
2727- %define generic_kernel %(uname -r | cut -d. -f1-2)
2728- %define distro_description Generic Linux (kernel %{generic_kernel})
2729- %define distro_releasetag linux%{generic_kernel}
2730- %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel libaio-devel bison cmake
2731- %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
2732-%endif
2733-
2734-# ----------------------------------------------------------------------------
2735-# Support optional "tcmalloc" library (experimental)
2736-# ----------------------------------------------------------------------------
2737-%if %{defined malloc_lib_target}
2738-%define WITH_TCMALLOC 1
2739-%else
2740-%define WITH_TCMALLOC 0
2741-%endif
2742-
2743-##############################################################################
2744-# Configuration based upon above user input, not to be set directly
2745-##############################################################################
2746-
2747-%if %{commercial}
2748-%define license_files_server %{src_dir}/LICENSE.mysql
2749-%define license_type Commercial
2750-%else
2751-%define license_files_server %{src_dir}/COPYING %{src_dir}/README
2752-%define license_type GPL
2753-%endif
2754-
2755-##############################################################################
2756-# Main spec file section
2757-##############################################################################
2758-
2759-Name: Percona-Server%{product_suffix}
2760-Summary: Percona-Server: a very fast and reliable SQL database server
2761-Group: Applications/Databases
2762-Version: %{mysql_version}
2763-Release: %{release}
2764-Distribution: %{distro_description}
2765-License: Copyright (c) 2000, 2010, %{mysql_vendor}. All rights reserved. Use is subject to license terms. Under %{license_type} license as shown in the Description field.
2766-Source: http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-%{mysql_version}-%{majorversion}.%{minorversion}/source/%{src_dir}.tar.gz
2767-URL: http://www.percona.com/
2768-Packager: Percona MySQL Development Team <mysqldev@percona.com>
2769-Vendor: %{percona_server_vendor}
2770-Provides: mysql-server
2771-BuildRequires: %{distro_buildreq}
2772-
2773-# Think about what you use here since the first step is to
2774-# run a rm -rf
2775-BuildRoot: %{_tmppath}/%{name}-%{version}-build
2776-
2777-# From the manual
2778-%description
2779-The Percona Server software delivers a very fast, multi-threaded, multi-user,
2780-and robust SQL (Structured Query Language) database server. Percona Server
2781-is intended for mission-critical, heavy-load production systems.
2782-
2783-Percona recommends that all production deployments be protected with a support
2784-contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
2785-be eligible for hot fixes, and boost your team's productivity.
2786-
2787-##############################################################################
2788-# Sub package definition
2789-##############################################################################
2790-
2791-%package -n Percona-Server-server%{product_suffix}
2792-Summary: Percona Server: a very fast and reliable SQL database server
2793-Group: Applications/Databases
2794-Requires: %{distro_requires} Percona-Server-shared%{product_suffix}
2795-Provides: mysql-server MySQL-server
2796-
2797-%description -n Percona-Server-server%{product_suffix}
2798-The Percona Server software delivers a very fast, multi-threaded, multi-user,
2799-and robust SQL (Structured Query Language) database server. Percona Server
2800-is intended for mission-critical, heavy-load production systems.
2801-
2802-Percona recommends that all production deployments be protected with a support
2803-contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
2804-be eligible for hot fixes, and boost your team's productivity.
2805-
2806-This package includes the Percona Server with XtraDB binary
2807-as well as related utilities to run and administer Percona Server.
2808-
2809-If you want to access and work with the database, you have to install
2810-package "Percona-Server-client%{product_suffix}" as well!
2811-
2812-# ----------------------------------------------------------------------------
2813-%package -n Percona-Server-client%{product_suffix}
2814-Summary: Percona Server - Client
2815-Group: Applications/Databases
2816-Requires: Percona-Server-shared%{product_suffix}
2817-Provides: mysql-client MySQL-client mysql MySQL
2818-
2819-%description -n Percona-Server-client%{product_suffix}
2820-This package contains the standard Percona Server client and administration tools.
2821-
2822-For a description of Percona Server see http://www.percona.com/software/percona-server/
2823-
2824-# ----------------------------------------------------------------------------
2825-%package -n Percona-Server-test%{product_suffix}
2826-Requires: Percona-Server-client%{product_suffix} perl
2827-Summary: Percona Server - Test suite
2828-Group: Applications/Databases
2829-Provides: mysql-test
2830-AutoReqProv: no
2831-
2832-%description -n Percona-Server-test%{product_suffix}
2833-This package contains the Percona Server regression test suite.
2834-
2835-For a description of Percona Server see http://www.percona.com/software/percona-server/
2836-
2837-# ----------------------------------------------------------------------------
2838-%package -n Percona-Server-devel%{product_suffix}
2839-Summary: Percona Server - Development header files and libraries
2840-Group: Applications/Databases
2841-Provides: mysql-devel
2842-
2843-%description -n Percona-Server-devel%{product_suffix}
2844-This package contains the development header files and libraries necessary
2845-to develop Percona Server client applications.
2846-
2847-For a description of Percona Server see http://www.percona.com/software/percona-server/
2848-
2849-# ----------------------------------------------------------------------------
2850-%package -n Percona-Server-shared%{product_suffix}
2851-Summary: Percona Server - Shared libraries
2852-Group: Applications/Databases
2853-Provides: mysql-shared
2854-
2855-%description -n Percona-Server-shared%{product_suffix}
2856-This package contains the shared libraries (*.so*) which certain languages
2857-and applications need to dynamically load and use Percona Server.
2858-
2859-##############################################################################
2860-%prep
2861-%setup -T -a 0 -c -n %{src_dir}
2862-
2863-##############################################################################
2864-%build
2865-
2866-# Be strict about variables, bail at earliest opportunity, etc.
2867-set -uex
2868-
2869-BuildUDF() {
2870- cd UDF
2871- CXX="${UDF_CXX:-g++}"\
2872- CXXFLAGS="$CXXFLAGS -I$RPM_BUILD_DIR/%{src_dir}/release/include" \
2873- ./configure --includedir=$RPM_BUILD_DIR/%{src_dir}/%{src_dir}/include \
2874- --libdir=%{_libdir}/mysql/plugin
2875- make all
2876- cd -
2877-}
2878-
2879-# Optional package files
2880-touch optional-files-devel
2881-
2882-#
2883-# Set environment in order of preference, MYSQL_BUILD_* first, then variable
2884-# name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the
2885-# default RPM build environment.
2886-#
2887-# We set CXX=gcc by default to support so-called 'generic' binaries, where we
2888-# do not have a dependancy on libgcc/libstdc++. This only works while we do
2889-# not require C++ features such as exceptions, and may need to be removed at
2890-# a later date.
2891-#
2892-
2893-# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
2894-# the compile in cmd-line-utils/readline - needs investigation, but for now
2895-# we simply unset it and use those specified directly in cmake.
2896-%if "%{_arch}" == "ia64"
2897-RPM_OPT_FLAGS=
2898-%endif
2899-
2900-export PATH=${MYSQL_BUILD_PATH:-$PATH}
2901-export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
2902-export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
2903-export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
2904-export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
2905-export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
2906-export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
2907-export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-${MAKE_JFLAG:-}}
2908-
2909-# Build debug mysqld and libmysqld.a
2910-mkdir debug
2911-(
2912- cd debug
2913- # Attempt to remove any optimisation flags from the debug build
2914- CFLAGS=`echo " ${CFLAGS} " | \
2915- sed -e 's/ -O[0-9]* / /' \
2916- -e 's/ -unroll2 / /' \
2917- -e 's/ -ip / /' \
2918- -e 's/^ //' \
2919- -e 's/ $//'`
2920- CXXFLAGS=`echo " ${CXXFLAGS} " | \
2921- sed -e 's/ -O[0-9]* / /' \
2922- -e 's/ -unroll2 / /' \
2923- -e 's/ -ip / /' \
2924- -e 's/^ //' \
2925- -e 's/ $//'`
2926- # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
2927- # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
2928- ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
2929- -DCMAKE_BUILD_TYPE=Debug \
2930- -DENABLE_DTRACE=OFF \
2931- -DWITH_EMBEDDED_SERVER=OFF \
2932- -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
2933- -DFEATURE_SET="%{feature_set}" \
2934- -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
2935- -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
2936- echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
2937- make ${MAKE_JFLAG}
2938-)
2939-# Build full release
2940-mkdir release
2941-(
2942- cd release
2943- # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
2944- # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
2945- ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
2946- -DCMAKE_BUILD_TYPE=RelWithDebInfo \
2947- -DENABLE_DTRACE=OFF \
2948- -DWITH_EMBEDDED_SERVER=OFF \
2949- -DMYSQL_UNIX_ADDR="/var/lib/mysql/mysql.sock" \
2950- -DFEATURE_SET="%{feature_set}" \
2951- -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
2952- -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
2953- echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
2954- make ${MAKE_JFLAG}
2955- cd ../%{src_dir}
2956- d="`pwd`"
2957- BuildUDF
2958- cd "$d"
2959-)
2960-
2961-# For the debuginfo extraction stage, some source files are not located in the release
2962-# and debug dirs, but in the source dir. Make a link there to avoid errors in the
2963-# strip phase.
2964-for d in debug release
2965-do
2966- for f in pars/lexyy.cc pars/pars0grm.cc pars/pars0grm.y pars/pars0lex.l \
2967- fts/fts0pars.cc fts/fts0pars.y fts/fts0blex.l fts/fts0blex.cc \
2968- include/fts0pars.h fts/fts0tlex.cc fts/fts0tlex.l
2969- do
2970- ln -s "../../../%{src_dir}/storage/innobase/$f" "$d/storage/innobase/"
2971- done
2972- mkdir -p "$d/storage/include/"
2973- ln -s "../../../%{src_dir}/storage/innobase/include/fts0tlex.h" \
2974- "$d/storage/include/"
2975- ln -s "../../../%{src_dir}/storage/innobase/include/fts0blex.h" \
2976- "$d/storage/include/"
2977-done
2978-
2979-# Use the build root for temporary storage of the shared libraries.
2980-RBR=$RPM_BUILD_ROOT
2981-
2982-# Clean up the BuildRoot first
2983-[ "$RBR" != "/" ] && [ -d "$RBR" ] && rm -rf "$RBR";
2984-
2985-# For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). This
2986-# needs to be during build phase as $CC is not set during install.
2987-if "$CC" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1
2988-then
2989- libgcc=`$CC $CFLAGS --print-libgcc-file`
2990- if [ -f $libgcc ]
2991- then
2992- mkdir -p $RBR%{_libdir}/mysql
2993- install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
2994- echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
2995- fi
2996-fi
2997-
2998-# Move temporarily the saved files to the BUILD directory since the BUILDROOT
2999-# dir will be cleaned at the start of the install phase
3000-mkdir -p "$(dirname $RPM_BUILD_DIR/%{_libdir})"
3001-mv $RBR%{_libdir} $RPM_BUILD_DIR/%{_libdir}
3002-
3003-##############################################################################
3004-%install
3005-
3006-RBR=$RPM_BUILD_ROOT
3007-MBD=$RPM_BUILD_DIR/%{src_dir}
3008-
3009-# Move back the libdir from BUILD dir to BUILDROOT
3010-mkdir -p "$(dirname $RBR%{_libdir})"
3011-mv $RPM_BUILD_DIR/%{_libdir} $RBR%{_libdir}
3012-
3013-# Ensure that needed directories exists
3014-install -d $RBR%{_sysconfdir}/{logrotate.d,init.d}
3015-install -d $RBR%{mysqldatadir}/mysql
3016-install -d $RBR%{_datadir}/mysql-test
3017-install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
3018-install -d $RBR%{_includedir}
3019-install -d $RBR%{_libdir}
3020-install -d $RBR%{_mandir}
3021-install -d $RBR%{_sbindir}
3022-install -d $RBR%{_libdir}/mysql/plugin
3023-
3024-(
3025- cd $MBD/release
3026- make DESTDIR=$RBR benchdir_root=%{_datadir} install
3027- d="`pwd`"
3028- cd $MBD/%{src_dir}/UDF
3029- make DESTDIR=$RBR benchdir_root=%{_datadir} install
3030- cd "$d"
3031-)
3032-
3033-# Install all binaries
3034-(
3035- cd $MBD/release
3036- make DESTDIR=$RBR install
3037-)
3038-
3039-# FIXME: at some point we should stop doing this and just install everything
3040-# FIXME: directly into %{_libdir}/mysql - perhaps at the same time as renaming
3041-# FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
3042-mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
3043-
3044-# Install logrotate and autostart
3045-install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
3046-install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql
3047-
3048-# Create a symlink "rcmysql", pointing to the init.script. SuSE users
3049-# will appreciate that, as all services usually offer this.
3050-ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
3051-
3052-# Touch the place where the my.cnf config file might be located
3053-# Just to make sure it's in the file list and marked as a config file
3054-touch $RBR%{_sysconfdir}/my.cnf
3055-
3056-# Install SELinux files in datadir
3057-install -m 600 $MBD/%{src_dir}/support-files/RHEL4-SElinux/mysql.{fc,te} \
3058- $RBR%{_datadir}/mysql/SELinux/RHEL4
3059-
3060-%if %{WITH_TCMALLOC}
3061-# Even though this is a shared library, put it under /usr/lib*/mysql, so it
3062-# doesn't conflict with possible shared lib by the same name in /usr/lib*. See
3063-# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
3064-install -m 644 "%{malloc_lib_source}" \
3065- "$RBR%{_libdir}/mysql/%{malloc_lib_target}"
3066-%endif
3067-
3068-# Remove man pages we explicitly do not want to package, avoids 'unpackaged
3069-# files' warning.
3070-rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
3071-
3072-##############################################################################
3073-# Post processing actions, i.e. when installed
3074-##############################################################################
3075-
3076-%pre -n Percona-Server-server%{product_suffix}
3077-
3078-# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
3079-
3080-mysql_datadir=%{mysqldatadir}
3081-# Check if we can safely upgrade. An upgrade is only safe if it's from one
3082-# of our RPMs in the same version family.
3083-
3084-installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
3085-if [ $? -eq 0 -a -n "$installed" ]; then
3086- vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
3087- version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
3088- myoldvendor='%{mysql_old_vendor}'
3089- myvendor_2='%{mysql_vendor_2}'
3090- myvendor='%{mysql_vendor}'
3091- perconaservervendor='%{percona_server_vendor}'
3092- myversion='%{mysql_version}'
3093-
3094- old_family=`echo $version \
3095- | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
3096- new_family=`echo $myversion \
3097- | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
3098-
3099- [ -z "$vendor" ] && vendor='<unknown>'
3100- [ -z "$old_family" ] && old_family="<unrecognized version $version>"
3101- [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
3102-
3103- error_text=
3104- if [ "$vendor" != "$myoldvendor" \
3105- -a "$vendor" != "$myvendor_2" \
3106- -a "$vendor" != "$myvendor" \
3107- -a "$vendor" != "$perconaservervendor" ]; then
3108- error_text="$error_text
3109-The current MySQL server package is provided by a different
3110-vendor ($vendor) than $myoldvendor, $myvendor_2,
3111-$myvendor, or $perconaservervendor.
3112-Some files may be installed to different locations, including log
3113-files and the service startup script in %{_sysconfdir}/init.d/.
3114-"
3115- fi
3116-
3117- if [ "$old_family" != "$new_family" ]; then
3118- error_text="$error_text
3119-Upgrading directly from MySQL $old_family to MySQL $new_family may not
3120-be safe in all cases. A manual dump and restore using mysqldump is
3121-recommended. It is important to review the MySQL manual's Upgrading
3122-section for version-specific incompatibilities.
3123-"
3124- fi
3125-
3126- if [ -n "$error_text" ]; then
3127- cat <<HERE >&2
3128-
3129-******************************************************************
3130-A MySQL server package ($installed) is installed.
3131-$error_text
3132-A manual upgrade is required.
3133-
3134-- Ensure that you have a complete, working backup of your data and my.cnf
3135- files
3136-- Shut down the MySQL server cleanly
3137-- Remove the existing MySQL packages. Usually this command will
3138- list the packages you should remove:
3139- rpm -qa | grep -i '^mysql-'
3140-
3141- You may choose to use 'rpm --nodeps -ev <package-name>' to remove
3142- the package which contains the mysqlclient shared library. The
3143- library will be reinstalled by the MySQL-shared-compat package.
3144-- Install the new MySQL packages supplied by $myvendor
3145-- Ensure that the MySQL server is started
3146-- Run the 'mysql_upgrade' program
3147-
3148-This is a brief description of the upgrade process. Important details
3149-can be found in the MySQL manual, in the Upgrading section.
3150-******************************************************************
3151-HERE
3152- exit 1
3153- fi
3154-fi
3155-
3156-# We assume that if there is exactly one ".pid" file,
3157-# it contains the valid PID of a running MySQL server.
3158-NR_PID_FILES=`ls $mysql_datadir/*.pid 2>/dev/null | wc -l`
3159-case $NR_PID_FILES in
3160- 0 ) SERVER_TO_START='' ;; # No "*.pid" file == no running server
3161- 1 ) SERVER_TO_START='true' ;;
3162- * ) SERVER_TO_START='' # Situation not clear
3163- SEVERAL_PID_FILES=true ;;
3164-esac
3165-# That logic may be debated: We might check whether it is non-empty,
3166-# contains exactly one number (possibly a PID), and whether "ps" finds it.
3167-# OTOH, if there is no such process, it means a crash without a cleanup -
3168-# is that a reason not to start a new server after upgrade?
3169-
3170-STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
3171-
3172-if [ -f $STATUS_FILE ]; then
3173- echo "Some previous upgrade was not finished:"
3174- ls -ld $STATUS_FILE
3175- echo "Please check its status, then do"
3176- echo " rm $STATUS_FILE"
3177- echo "before repeating the MySQL upgrade."
3178- exit 1
3179-elif [ -n "$SEVERAL_PID_FILES" ] ; then
3180- echo "Your MySQL directory '$mysql_datadir' has more than one PID file:"
3181- ls -ld $mysql_datadir/*.pid
3182- echo "Please check which one (if any) corresponds to a running server"
3183- echo "and delete all others before repeating the MySQL upgrade."
3184- exit 1
3185-fi
3186-
3187-NEW_VERSION=%{mysql_version}-%{release}
3188-
3189-# The "pre" section code is also run on a first installation,
3190-# when there is no data directory yet. Protect against error messages.
3191-if [ -d $mysql_datadir ] ; then
3192- echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE
3193- echo "'pre' step running at `date`" >> $STATUS_FILE
3194- echo >> $STATUS_FILE
3195- echo "ERR file(s):" >> $STATUS_FILE
3196- ls -ltr $mysql_datadir/*.err >> $STATUS_FILE
3197- echo >> $STATUS_FILE
3198- echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
3199- grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
3200- tail -1 >> $STATUS_FILE
3201- echo >> $STATUS_FILE
3202-
3203- if [ -n "$SERVER_TO_START" ] ; then
3204- # There is only one PID file, race possibility ignored
3205- echo "PID file:" >> $STATUS_FILE
3206- ls -l $mysql_datadir/*.pid >> $STATUS_FILE
3207- cat $mysql_datadir/*.pid >> $STATUS_FILE
3208- echo >> $STATUS_FILE
3209- echo "Server process:" >> $STATUS_FILE
3210- ps -fp `cat $mysql_datadir/*.pid` >> $STATUS_FILE
3211- echo >> $STATUS_FILE
3212- echo "SERVER_TO_START=$SERVER_TO_START" >> $STATUS_FILE
3213- else
3214- # Take a note we checked it ...
3215- echo "PID file:" >> $STATUS_FILE
3216- ls -l $mysql_datadir/*.pid >> $STATUS_FILE 2>&1
3217- fi
3218-fi
3219-
3220-# Shut down a previously installed server first
3221-# Note we *could* make that depend on $SERVER_TO_START, but we rather don't,
3222-# so a "stop" is attempted even if there is no PID file.
3223-# (Maybe the "stop" doesn't work then, but we might fix that in itself.)
3224-if [ -x %{_sysconfdir}/init.d/mysql ] ; then
3225- %{_sysconfdir}/init.d/mysql stop > /dev/null 2>&1
3226- echo "Giving mysqld 5 seconds to exit nicely"
3227- sleep 5
3228-fi
3229-
3230-%post -n Percona-Server-server%{product_suffix}
3231-
3232-# ATTENTION: Parts of this are duplicated in the "triggerpostun" !
3233-
3234-mysql_datadir=%{mysqldatadir}
3235-NEW_VERSION=%{mysql_version}-%{release}
3236-STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
3237-
3238-# ----------------------------------------------------------------------
3239-# Create data directory if needed, check whether upgrade or install
3240-# ----------------------------------------------------------------------
3241-if [ ! -d $mysql_datadir ] ; then mkdir -m 755 $mysql_datadir; fi
3242-if [ -f $STATUS_FILE ] ; then
3243- SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
3244-else
3245- SERVER_TO_START=''
3246-fi
3247-# echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
3248-if [ ! -d $mysql_datadir/mysql ] ; then
3249- mkdir $mysql_datadir/mysql;
3250- echo "MySQL RPM installation of version $NEW_VERSION" >> $STATUS_FILE
3251-else
3252- # If the directory exists, we may assume it is an upgrade.
3253- echo "MySQL RPM upgrade to version $NEW_VERSION" >> $STATUS_FILE
3254-fi
3255-if [ ! -d $mysql_datadir/test ] ; then mkdir $mysql_datadir/test; fi
3256-
3257-# ----------------------------------------------------------------------
3258-# Make MySQL start/shutdown automatically when the machine does it.
3259-# ----------------------------------------------------------------------
3260-# NOTE: This still needs to be debated. Should we check whether these links
3261-# for the other run levels exist(ed) before the upgrade?
3262-# use chkconfig on Enterprise Linux and newer SuSE releases
3263-if [ -x /sbin/chkconfig ] ; then
3264- /sbin/chkconfig --add mysql
3265-# use insserv for older SuSE Linux versions
3266-elif [ -x /sbin/insserv ] ; then
3267- /sbin/insserv %{_sysconfdir}/init.d/mysql
3268-fi
3269-
3270-# ----------------------------------------------------------------------
3271-# Create a MySQL user and group. Do not report any problems if it already
3272-# exists.
3273-# ----------------------------------------------------------------------
3274-groupadd -r %{mysqld_group} 2> /dev/null || true
3275-useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" \
3276- -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
3277-# The user may already exist, make sure it has the proper group nevertheless
3278-# (BUG#12823)
3279-usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true
3280-
3281-# ----------------------------------------------------------------------
3282-# Change permissions so that the user that will run the MySQL daemon
3283-# owns all database files.
3284-# ----------------------------------------------------------------------
3285-chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
3286-
3287-# ----------------------------------------------------------------------
3288-# Initiate databases if needed
3289-# ----------------------------------------------------------------------
3290-%{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
3291-
3292-# ----------------------------------------------------------------------
3293-# Upgrade databases if needed would go here - but it cannot be automated yet
3294-# ----------------------------------------------------------------------
3295-
3296-# ----------------------------------------------------------------------
3297-# Change permissions again to fix any new files.
3298-# ----------------------------------------------------------------------
3299-chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
3300-
3301-# ----------------------------------------------------------------------
3302-# Fix permissions for the permission database so that only the user
3303-# can read them.
3304-# ----------------------------------------------------------------------
3305-chmod -R og-rw $mysql_datadir/mysql
3306-
3307-# ----------------------------------------------------------------------
3308-# install SELinux files - but don't override existing ones
3309-# ----------------------------------------------------------------------
3310-SETARGETDIR=/etc/selinux/targeted/src/policy
3311-SEDOMPROG=$SETARGETDIR/domains/program
3312-SECONPROG=$SETARGETDIR/file_contexts/program
3313-if [ -f /etc/redhat-release ] \
3314- && (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
3315- || grep -q "CentOS release 4" /etc/redhat-release) ; then
3316- echo
3317- echo
3318- echo 'Notes regarding SELinux on this platform:'
3319- echo '========================================='
3320- echo
3321- echo 'The default policy might cause server startup to fail because it is'
3322- echo 'not allowed to access critical files. In this case, please update'
3323- echo 'your installation.'
3324- echo
3325- echo 'The default policy might also cause inavailability of SSL related'
3326- echo 'features because the server is not allowed to access /dev/random'
3327- echo 'and /dev/urandom. If this is a problem, please do the following:'
3328- echo
3329- echo ' 1) install selinux-policy-targeted-sources from your OS vendor'
3330- echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':'
3331- echo ' allow mysqld_t random_device_t:chr_file read;'
3332- echo ' allow mysqld_t urandom_device_t:chr_file read;'
3333- echo ' 3) cd to '$SETARGETDIR' and issue the following command:'
3334- echo ' make load'
3335- echo
3336- echo
3337-fi
3338-
3339-if [ -x sbin/restorecon ] ; then
3340- sbin/restorecon -R var/lib/mysql
3341-fi
3342-
3343-# Was the server running before the upgrade? If so, restart the new one.
3344-if [ "$SERVER_TO_START" = "true" ] ; then
3345- # Restart in the same way that mysqld will be started normally.
3346- if [ -x %{_sysconfdir}/init.d/mysql ] ; then
3347- %{_sysconfdir}/init.d/mysql start
3348- echo "Giving mysqld 5 seconds to start"
3349- sleep 5
3350- fi
3351-fi
3352-
3353-echo "Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit."
3354-echo "Run the following commands to create these functions:"
3355-echo "mysql -e \"CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'\""
3356-echo "mysql -e \"CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'\""
3357-echo "mysql -e \"CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'\""
3358-echo "See http://code.google.com/p/maatkit/source/browse/trunk/udf for more details"
3359-
3360-# Collect an upgrade history ...
3361-echo "Upgrade/install finished at `date`" >> $STATUS_FILE
3362-echo >> $STATUS_FILE
3363-echo "=====" >> $STATUS_FILE
3364-STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
3365-cat $STATUS_FILE >> $STATUS_HISTORY
3366-mv -f $STATUS_FILE ${STATUS_FILE}-LAST # for "triggerpostun"
3367-
3368-
3369-#echo "Thank you for installing the MySQL Community Server! For Production
3370-#systems, we recommend MySQL Enterprise, which contains enterprise-ready
3371-#software, intelligent advisory services, and full production support with
3372-#scheduled service packs and more. Visit www.mysql.com/enterprise for more
3373-#information."
3374-
3375-%preun -n Percona-Server-server%{product_suffix}
3376-
3377-# Which '$1' does this refer to? Fedora docs have info:
3378-# " ... a count of the number of versions of the package that are installed.
3379-# Action Count
3380-# Install the first time 1
3381-# Upgrade 2 or higher (depending on the number of versions installed)
3382-# Remove last version of package 0 "
3383-#
3384-# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s04s05.html
3385-
3386-if [ $1 = 0 ] ; then
3387- # Stop MySQL before uninstalling it
3388- if [ -x %{_sysconfdir}/init.d/mysql ] ; then
3389- %{_sysconfdir}/init.d/mysql stop > /dev/null
3390- # Remove autostart of MySQL
3391- # use chkconfig on Enterprise Linux and newer SuSE releases
3392- if [ -x /sbin/chkconfig ] ; then
3393- /sbin/chkconfig --del mysql
3394- # For older SuSE Linux versions
3395- elif [ -x /sbin/insserv ] ; then
3396- /sbin/insserv -r %{_sysconfdir}/init.d/mysql
3397- fi
3398- fi
3399-fi
3400-
3401-# We do not remove the mysql user since it may still own a lot of
3402-# database files.
3403-
3404-%triggerpostun -n Percona-Server-server%{product_suffix} --MySQL-server-community
3405-
3406-# Setup: We renamed this package, so any existing "server-community"
3407-# package will be removed when this "server" is installed.
3408-# Problem: RPM will first run the "pre" and "post" sections of this script,
3409-# and only then the "preun" of that old community server.
3410-# But this "preun" includes stopping the server and uninstalling the service,
3411-# "chkconfig --del mysql" which removes the symlinks to the start script.
3412-# Solution: *After* the community server got removed, restart this server
3413-# and re-install the service.
3414-#
3415-# For information about triggers in spec files, see the Fedora docs:
3416-# http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html
3417-# For all details of this code, see the "pre" and "post" sections.
3418-
3419-mysql_datadir=%{mysqldatadir}
3420-NEW_VERSION=%{mysql_version}-%{release}
3421-STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER-LAST # Note the difference!
3422-STATUS_HISTORY=$mysql_datadir/RPM_UPGRADE_HISTORY
3423-
3424-if [ -f $STATUS_FILE ] ; then
3425- SERVER_TO_START=`grep '^SERVER_TO_START=' $STATUS_FILE | cut -c17-`
3426-else
3427- # This should never happen, but let's be prepared
3428- SERVER_TO_START=''
3429-fi
3430-echo "Analyzed: SERVER_TO_START=$SERVER_TO_START"
3431-
3432-if [ -x /sbin/chkconfig ] ; then
3433- /sbin/chkconfig --add mysql
3434-# use insserv for older SuSE Linux versions
3435-elif [ -x /sbin/insserv ] ; then
3436- /sbin/insserv %{_sysconfdir}/init.d/mysql
3437-fi
3438-
3439-# Was the server running before the upgrade? If so, restart the new one.
3440-if [ "$SERVER_TO_START" = "true" ] ; then
3441- # Restart in the same way that mysqld will be started normally.
3442- if [ -x %{_sysconfdir}/init.d/mysql ] ; then
3443- %{_sysconfdir}/init.d/mysql start
3444- echo "Giving mysqld 5 seconds to start"
3445- sleep 5
3446- fi
3447-fi
3448-
3449-echo "Trigger 'postun --community' finished at `date`" >> $STATUS_HISTORY
3450-echo >> $STATUS_HISTORY
3451-echo "=====" >> $STATUS_HISTORY
3452-
3453-
3454-# ----------------------------------------------------------------------
3455-# Clean up the BuildRoot after build is done
3456-# ----------------------------------------------------------------------
3457-%clean
3458-[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
3459- && rm -rf $RPM_BUILD_ROOT;
3460-
3461-##############################################################################
3462-# Files section
3463-##############################################################################
3464-
3465-%files -n Percona-Server-server%{product_suffix}
3466-%defattr(-,root,root,0755)
3467-
3468-%if %{defined license_files_server}
3469-%doc %{license_files_server}
3470-%endif
3471-%doc release/Docs/INFO_SRC
3472-%doc release/Docs/INFO_BIN
3473-%doc release/support-files/my-*.cnf
3474-
3475-%doc %attr(644, root, root) %{_infodir}/mysql.info*
3476-
3477-%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
3478-%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
3479-%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
3480-%doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1*
3481-%doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1*
3482-%doc %attr(644, root, man) %{_mandir}/man1/myisampack.1*
3483-%doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1*
3484-%doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1*
3485-%doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1*
3486-%doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1*
3487-%doc %attr(644, root, man) %{_mandir}/man1/mysqldumpslow.1*
3488-%doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1*
3489-%doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1*
3490-%doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1*
3491-%doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1*
3492-%doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1*
3493-%doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1*
3494-%doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1*
3495-%doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1*
3496-%doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1*
3497-%doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1*
3498-%doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1*
3499-%doc %attr(644, root, man) %{_mandir}/man1/perror.1*
3500-%doc %attr(644, root, man) %{_mandir}/man1/replace.1*
3501-%doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1*
3502-%doc %attr(644, root, man) %{_mandir}/man1/resolveip.1*
3503-%doc %attr(644, root, man) %{_mandir}/man1/mysql_plugin.1*
3504-
3505-%ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf
3506-
3507-%attr(755, root, root) %{_bindir}/innochecksum
3508-%attr(755, root, root) %{_bindir}/my_print_defaults
3509-%attr(755, root, root) %{_bindir}/myisam_ftdump
3510-%attr(755, root, root) %{_bindir}/myisamchk
3511-%attr(755, root, root) %{_bindir}/myisamlog
3512-%attr(755, root, root) %{_bindir}/myisampack
3513-%attr(755, root, root) %{_bindir}/mysql_convert_table_format
3514-%attr(755, root, root) %{_bindir}/mysql_fix_extensions
3515-%attr(755, root, root) %{_bindir}/mysql_install_db
3516-%attr(755, root, root) %{_bindir}/mysql_secure_installation
3517-%attr(755, root, root) %{_bindir}/mysql_setpermission
3518-%attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql
3519-%attr(755, root, root) %{_bindir}/mysql_upgrade
3520-%attr(755, root, root) %{_bindir}/mysql_plugin
3521-%attr(755, root, root) %{_bindir}/mysql_zap
3522-%attr(755, root, root) %{_bindir}/mysqlbug
3523-%attr(755, root, root) %{_bindir}/mysqld_multi
3524-%attr(755, root, root) %{_bindir}/mysqld_safe
3525-%attr(755, root, root) %{_bindir}/mysqldumpslow
3526-%attr(755, root, root) %{_bindir}/mysqlhotcopy
3527-%attr(755, root, root) %{_bindir}/mysqltest
3528-%attr(755, root, root) %{_bindir}/perror
3529-%attr(755, root, root) %{_bindir}/replace
3530-%attr(755, root, root) %{_bindir}/resolve_stack_dump
3531-%attr(755, root, root) %{_bindir}/resolveip
3532-
3533-%attr(755, root, root) %{_sbindir}/mysqld
3534-%attr(755, root, root) %{_sbindir}/mysqld-debug
3535-%attr(755, root, root) %{_sbindir}/rcmysql
3536-%attr(755, root, root) %{_libdir}/mysql/plugin/daemon_example.ini
3537-%attr(755, root, root) %{_libdir}/mysql/plugin/adt_null.so
3538-%attr(755, root, root) %{_libdir}/mysql/plugin/libdaemon_example.so
3539-%attr(755, root, root) %{_libdir}/mysql/plugin/mypluglib.so
3540-%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_master.so
3541-%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_slave.so
3542-%attr(755, root, root) %{_libdir}/mysql/plugin/auth.so
3543-%attr(755, root, root) %{_libdir}/mysql/plugin/auth_socket.so
3544-%attr(755, root, root) %{_libdir}/mysql/plugin/auth_test_plugin.so
3545-%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_client.so
3546-%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_interface.so
3547-%attr(755, root, root) %{_libdir}/mysql/plugin/qa_auth_server.so
3548-%attr(755, root, root) %{_libdir}/mysql/plugin/validate_password.so
3549-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/adt_null.so
3550-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/libdaemon_example.so
3551-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/mypluglib.so
3552-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_master.so
3553-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_slave.so
3554-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth.so
3555-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_socket.so
3556-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/auth_test_plugin.so
3557-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_client.so
3558-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_interface.so
3559-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/qa_auth_server.so
3560-%attr(755, root, root) %{_libdir}/mysql/plugin/debug/validate_password.so
3561-# UDF files
3562-%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so
3563-%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so.0
3564-%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv1a_udf.so.0.0.0
3565-%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so
3566-%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so.0
3567-%attr(755, root, root) %{_libdir}/mysql/plugin/libfnv_udf.so.0.0.0
3568-%attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so
3569-%attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so.0
3570-%attr(755, root, root) %{_libdir}/mysql/plugin/libmurmur_udf.so.0.0.0
3571-
3572-
3573-
3574-
3575-%if %{WITH_TCMALLOC}
3576-%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
3577-%endif
3578-
3579-%attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql
3580-%attr(755, root, root) %{_sysconfdir}/init.d/mysql
3581-
3582-%attr(755, root, root) %{_datadir}/mysql/
3583-
3584-# ----------------------------------------------------------------------------
3585-%files -n Percona-Server-client%{product_suffix}
3586-
3587-%defattr(-, root, root, 0755)
3588-%attr(755, root, root) %{_bindir}/msql2mysql
3589-%attr(755, root, root) %{_bindir}/mysql
3590-%attr(755, root, root) %{_bindir}/mysql_find_rows
3591-%attr(755, root, root) %{_bindir}/mysql_waitpid
3592-%attr(755, root, root) %{_bindir}/mysqlaccess
3593-# XXX: This should be moved to %{_sysconfdir}
3594-%attr(644, root, root) %{_bindir}/mysqlaccess.conf
3595-%attr(755, root, root) %{_bindir}/mysqladmin
3596-%attr(755, root, root) %{_bindir}/mysqlbinlog
3597-%attr(755, root, root) %{_bindir}/mysqlcheck
3598-%attr(755, root, root) %{_bindir}/mysqldump
3599-%attr(755, root, root) %{_bindir}/mysqlimport
3600-%attr(755, root, root) %{_bindir}/mysqlshow
3601-%attr(755, root, root) %{_bindir}/mysqlslap
3602-%attr(755, root, root) %{_bindir}/mysql_config_editor
3603-
3604-%doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1*
3605-%doc %attr(644, root, man) %{_mandir}/man1/mysql.1*
3606-%doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1*
3607-%doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1*
3608-%doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1*
3609-%doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1*
3610-%doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1*
3611-%doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1*
3612-%doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1*
3613-%doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1*
3614-%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
3615-%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
3616-
3617-# ----------------------------------------------------------------------------
3618-%files -n Percona-Server-devel%{product_suffix} -f optional-files-devel
3619-%defattr(-, root, root, 0755)
3620-%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
3621-%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
3622-%attr(755, root, root) %{_bindir}/mysql_config
3623-%dir %attr(755, root, root) %{_includedir}/mysql
3624-%dir %attr(755, root, root) %{_libdir}/mysql
3625-%{_includedir}/mysql/*
3626-%{_datadir}/aclocal/mysql.m4
3627-%{_libdir}/mysql/libmysqlclient.a
3628-%{_libdir}/mysql/libmysqlclient_r.a
3629-%{_libdir}/mysql/libmysqlservices.a
3630-
3631-# ----------------------------------------------------------------------------
3632-%files -n Percona-Server-shared%{product_suffix}
3633-%defattr(-, root, root, 0755)
3634-# Shared libraries (omit for architectures that don't support them)
3635-%{_libdir}/libmysql*.so*
3636-# Maatkit UDF libs
3637-%{_libdir}/mysql/plugin/libfnv1a_udf.a
3638-%{_libdir}/mysql/plugin/libfnv1a_udf.la
3639-%{_libdir}/mysql/plugin/libfnv_udf.a
3640-%{_libdir}/mysql/plugin/libfnv_udf.la
3641-%{_libdir}/mysql/plugin/libmurmur_udf.a
3642-%{_libdir}/mysql/plugin/libmurmur_udf.la
3643-
3644-%post -n Percona-Server-shared%{product_suffix}
3645-/sbin/ldconfig
3646-
3647-%postun -n Percona-Server-shared%{product_suffix}
3648-/sbin/ldconfig
3649-
3650-# ----------------------------------------------------------------------------
3651-%files -n Percona-Server-test%{product_suffix}
3652-%defattr(-, root, root, 0755)
3653-%attr(-, root, root) %{_datadir}/mysql-test
3654-%attr(755, root, root) %{_bindir}/mysql_client_test
3655-#%attr(755, root, root) %{_bindir}/mysql_client_test_embedded
3656-#%attr(755, root, root) %{_bindir}/mysqltest_embedded
3657-%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1*
3658-%doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1*
3659-%doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1*
3660-%doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1*
3661-%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
3662-
3663-##############################################################################
3664-# The spec file changelog only includes changes made to the spec file
3665-# itself - note that they must be ordered by date (important when
3666-# merging BK trees)
3667-##############################################################################
3668-%changelog
3669-* Thu Feb 10 2011 Ignacio Nin <ignacio.nin@percona.com>
3670-
3671-- Removed lines which prevented -debuginfo packages from being built.
3672-
3673-* Tue Nov 23 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
3674-
3675-- EXCEPTIONS-CLIENT has been deleted, remove it from here too
3676-- Support MYSQL_BUILD_MAKE_JFLAG environment variable for passing
3677- a '-j' argument to make.
3678-
3679-* Mon Nov 1 2010 Georgi Kodinov <georgi.godinov@oracle.com>
3680-
3681-- Added test authentication (WL#1054) plugin binaries
3682-
3683-* Wed Oct 6 2010 Georgi Kodinov <georgi.godinov@oracle.com>
3684-
3685-- Added example external authentication (WL#1054) plugin binaries
3686-
3687-* Wed Aug 11 2010 Joerg Bruehe <joerg.bruehe@oracle.com>
3688-
3689-- With a recent spec file cleanup, names have changed: A "-community" part was dropped.
3690- Reflect that in the "Obsoletes" specifications.
3691-- Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
3692-- This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
3693-
3694-* Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
3695-
3696-- Change the behaviour on installation and upgrade:
3697- On installation, do not autostart the server.
3698- *Iff* the server was stopped before the upgrade is started, this is taken as a
3699- sign the administrator is handling that manually, and so the new server will
3700- not be started automatically at the end of the upgrade.
3701- The start/stop scripts will still be installed, so the server will be started
3702- on the next machine boot.
3703- This is the 5.5 version of fixing bug#27072 (RPM autostarting the server).
3704-
3705-* Tue Jun 1 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
3706-
3707-- Implement SELinux checks from distribution-specific spec file.
3708-
3709-* Wed May 12 2010 Jonathan Perkin <jonathan.perkin@oracle.com>
3710-
3711-- Large number of changes to build using CMake
3712-- Introduce distribution-specific RPMs
3713-- Drop debuginfo, build all binaries with debug/symbols
3714-- Remove __os_install_post, use native macro
3715-- Remove _unpackaged_files_terminate_build, make it an error to have
3716- unpackaged files
3717-- Remove cluster RPMs
3718-
3719-* Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
3720-
3721-- Add "--with-perfschema" to the configure options.
3722-
3723-* Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
3724-
3725-- User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
3726- mask "rmdir" return code 1.
3727-- Remove "ha_example.*" files from the list, they aren't built.
3728-
3729-* Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
3730-
3731-- Fix a wrong path name in handling the debug plugins.
3732-
3733-* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
3734-
3735-- Take the result of the debug plugin build and put it into the optimized tree,
3736- so that it becomes part of the final installation;
3737- include the files in the packlist. Part of the fixes for bug#49022.
3738-
3739-* Mon Mar 01 2010 Joerg Bruehe <joerg.bruehe@sun.com>
3740-
3741-- Set "Oracle and/or its affiliates" as the vendor and copyright owner,
3742- accept upgrading from packages showing MySQL or Sun as vendor.
3743-
3744-* Fri Feb 12 2010 Joerg Bruehe <joerg.bruehe@sun.com>
3745-
3746-- Formatting changes:
3747- Have a consistent structure of separator lines and of indentation
3748- (8 leading blanks => tab).
3749-- Introduce the variable "src_dir".
3750-- Give the environment variables "MYSQL_BUILD_CC(CXX)" precedence
3751- over "CC" ("CXX").
3752-- Drop the old "with_static" argument analysis, this is not supported
3753- in 5.1 since ages.
3754-- Introduce variables to control the handlers individually, as well
3755- as other options.
3756-- Use the new "--with-plugin" notation for the table handlers.
3757-- Drop handling "/etc/rc.d/init.d/mysql", the switch to "/etc/init.d/mysql"
3758- was done back in 2002 already.
3759-- Make "--with-zlib-dir=bundled" the default, add an option to disable it.
3760-- Add missing manual pages to the file list.
3761-- Improve the runtime check for "libgcc.a", protect it against being tried
3762- with the Intel compiler "icc".
3763-
3764-* Mon Jan 11 2010 Joerg Bruehe <joerg.bruehe@sun.com>
3765-
3766-- Change RPM file naming:
3767- - Suffix like "-m2", "-rc" becomes part of version as "_m2", "_rc".
3768- - Release counts from 1, not 0.
3769-
3770-* Wed Dec 23 2009 Joerg Bruehe <joerg.bruehe@sun.com>
3771-
3772-- The "semisync" plugin file name has lost its introductory "lib",
3773- adapt the file lists for the subpackages.
3774- This is a part missing from the fix for bug#48351.
3775-- Remove the "fix_privilege_tables" manual, it does not exist in 5.5
3776- (and likely, the whole script will go, too).
3777-
3778-* Mon Nov 16 2009 Joerg Bruehe <joerg.bruehe@sun.com>
3779-
3780-- Fix some problems with the directives around "tcmalloc" (experimental),
3781- remove erroneous traces of the InnoDB plugin (that is 5.1 only).
3782-
3783-* Fri Oct 06 2009 Magnus Blaudd <mvensson@mysql.com>
3784-
3785-- Removed mysql_fix_privilege_tables
3786-
3787-* Fri Oct 02 2009 Alexander Nozdrin <alexander.nozdrin@sun.com>
3788-
3789-- "mysqlmanager" got removed from version 5.4, all references deleted.
3790-
3791-* Fri Aug 28 2009 Joerg Bruehe <joerg.bruehe@sun.com>
3792-
3793-- Merge up from 5.1 to 5.4: Remove handling for the InnoDB plugin.
3794-
3795-* Thu Aug 27 2009 Joerg Bruehe <joerg.bruehe@sun.com>
3796-
3797-- This version does not contain the "Instance manager", "mysqlmanager":
3798- Remove it from the spec file so that packaging succeeds.
3799-
3800-* Mon Aug 24 2009 Jonathan Perkin <jperkin@sun.com>
3801-
3802-- Add conditionals for bundled zlib and innodb plugin
3803-
3804-* Fri Aug 21 2009 Jonathan Perkin <jperkin@sun.com>
3805-
3806-- Install plugin libraries in appropriate packages.
3807-- Disable libdaemon_example and ftexample plugins.
3808-
3809-* Thu Aug 20 2009 Jonathan Perkin <jperkin@sun.com>
3810-
3811-- Update variable used for mysql-test suite location to match source.
3812-
3813-* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
3814-
3815-- Correct yesterday's fix, so that it also works for the last flag,
3816- and fix a wrong quoting: un-quoted quote marks must not be escaped.
3817-
3818-* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
3819-
3820-- Removed "mysql_upgrade_shell"
3821-- Removed some copy/paste between debug and normal build
3822-
3823-* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
3824-
3825-- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
3826- This should cover both gcc and icc flags. Fixes bug#40546.
3827-
3828-* Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
3829-
3830-- Removed the "Federated" storage engine option, and enabled in all
3831-
3832-* Tue Aug 26 2008 Joerg Bruehe <joerg@mysql.com>
3833-
3834-- Get rid of the "warning: Installed (but unpackaged) file(s) found:"
3835- Some generated files aren't needed in RPMs:
3836- - the "sql-bench/" subdirectory
3837- Some files were missing:
3838- - /usr/share/aclocal/mysql.m4 ("devel" subpackage)
3839- - Manual "mysqlbug" ("server" subpackage)
3840- - Program "innochecksum" and its manual ("server" subpackage)
3841- - Manual "mysql_find_rows" ("client" subpackage)
3842- - Script "mysql_upgrade_shell" ("client" subpackage)
3843- - Program "ndb_cpcd" and its manual ("ndb-extra" subpackage)
3844- - Manuals "ndb_mgm" + "ndb_restore" ("ndb-tools" subpackage)
3845-
3846-* Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
3847-
3848-- Made the "Federated" storage engine an option
3849-- Made the "Cluster" storage engine and sub packages an option
3850-
3851-* Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
3852-
3853-- Add the man pages for "ndbd" and "ndb_mgmd".
3854-
3855-* Mon Feb 18 2008 Timothy Smith <tim@mysql.com>
3856-
3857-- Require a manual upgrade if the alread-installed mysql-server is
3858- from another vendor, or is of a different major version.
3859-
3860-* Wed May 02 2007 Joerg Bruehe <joerg@mysql.com>
3861-
3862-- "ndb_size.tmpl" is not needed any more,
3863- "man1/mysql_install_db.1" lacked the trailing '*'.
3864-
3865-* Sat Apr 07 2007 Kent Boortz <kent@mysql.com>
3866-
3867-- Removed man page for "mysql_create_system_tables"
3868-
3869-* Wed Mar 21 2007 Daniel Fischer <df@mysql.com>
3870-
3871-- Add debug server.
3872-
3873-* Mon Mar 19 2007 Daniel Fischer <df@mysql.com>
3874-
3875-- Remove Max RPMs; the server RPMs contain a mysqld compiled with all
3876- features that previously only were built into Max.
3877-
3878-* Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com>
3879-
3880-- Add several man pages for NDB which are now created.
3881-
3882-* Fri Jan 05 2007 Kent Boortz <kent@mysql.com>
3883-
3884-- Put back "libmygcc.a", found no real reason it was removed.
3885-
3886-- Add CFLAGS to gcc call with --print-libgcc-file, to make sure the
3887- correct "libgcc.a" path is returned for the 32/64 bit architecture.
3888-
3889-* Mon Dec 18 2006 Joerg Bruehe <joerg@mysql.com>
3890-
3891-- Fix the move of "mysqlmanager" to section 8: Directory name was wrong.
3892-
3893-* Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com>
3894-
3895-- Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql"
3896- in the server RPM.
3897-- The "mysqlmanager" man page got moved from section 1 to 8.
3898-
3899-* Thu Nov 30 2006 Joerg Bruehe <joerg@mysql.com>
3900-
3901-- Call "make install" using "benchdir_root=%{_datadir}",
3902- because that is affecting the regression test suite as well.
3903-
3904-* Thu Nov 16 2006 Joerg Bruehe <joerg@mysql.com>
3905-
3906-- Explicitly note that the "MySQL-shared" RPMs (as built by MySQL AB)
3907- replace "mysql-shared" (as distributed by SuSE) to allow easy upgrading
3908- (bug#22081).
3909-
3910-* Mon Nov 13 2006 Joerg Bruehe <joerg@mysql.com>
3911-
3912-- Add "--with-partition" to all server builds.
3913-
3914-- Use "--report-features" in one test run per server build.
3915-
3916-* Tue Aug 15 2006 Joerg Bruehe <joerg@mysql.com>
3917-
3918-- The "max" server is removed from packages, effective from 5.1.12-beta.
3919- Delete all steps to build, package, or install it.
3920-
3921-* Mon Jul 10 2006 Joerg Bruehe <joerg@mysql.com>
3922-
3923-- Fix a typing error in the "make" target for the Perl script to run the tests.
3924-
3925-* Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com>
3926-
3927-- Use the Perl script to run the tests, because it will automatically check
3928- whether the server is configured with SSL.
3929-
3930-* Tue Jun 27 2006 Joerg Bruehe <joerg@mysql.com>
3931-
3932-- move "mysqldumpslow" from the client RPM to the server RPM (bug#20216)
3933-
3934-- Revert all previous attempts to call "mysql_upgrade" during RPM upgrade,
3935- there are some more aspects which need to be solved before this is possible.
3936- For now, just ensure the binary "mysql_upgrade" is delivered and installed.
3937-
3938-* Thu Jun 22 2006 Joerg Bruehe <joerg@mysql.com>
3939-
3940-- Close a gap of the previous version by explicitly using
3941- a newly created temporary directory for the socket to be used
3942- in the "mysql_upgrade" operation, overriding any local setting.
3943-
3944-* Tue Jun 20 2006 Joerg Bruehe <joerg@mysql.com>
3945-
3946-- To run "mysql_upgrade", we need a running server;
3947- start it in isolation and skip password checks.
3948-
3949-* Sat May 20 2006 Kent Boortz <kent@mysql.com>
3950-
3951-- Always compile for PIC, position independent code.
3952-
3953-* Wed May 10 2006 Kent Boortz <kent@mysql.com>
3954-
3955-- Use character set "all" when compiling with Cluster, to make Cluster
3956- nodes independent on the character set directory, and the problem
3957- that two RPM sub packages both wants to install this directory.
3958-
3959-* Mon May 01 2006 Kent Boortz <kent@mysql.com>
3960-
3961-- Use "./libtool --mode=execute" instead of searching for the
3962- executable in current directory and ".libs".
3963-
3964-* Fri Apr 28 2006 Kent Boortz <kent@mysql.com>
3965-
3966-- Install and run "mysql_upgrade"
3967-
3968-* Wed Apr 12 2006 Jim Winstead <jimw@mysql.com>
3969-
3970-- Remove sql-bench, and MySQL-bench RPM (will be built as an independent
3971- project from the mysql-bench repository)
3972-
3973-* Tue Apr 11 2006 Jim Winstead <jimw@mysql.com>
3974-
3975-- Remove old mysqltestmanager and related programs
3976-* Sat Apr 01 2006 Kent Boortz <kent@mysql.com>
3977-
3978-- Set $LDFLAGS from $MYSQL_BUILD_LDFLAGS
3979-
3980-* Wed Mar 07 2006 Kent Boortz <kent@mysql.com>
3981-
3982-- Changed product name from "Community Edition" to "Community Server"
3983-
3984-* Mon Mar 06 2006 Kent Boortz <kent@mysql.com>
3985-
3986-- Fast mutexes is now disabled by default, but should be
3987- used in Linux builds.
3988-
3989-* Mon Feb 20 2006 Kent Boortz <kent@mysql.com>
3990-
3991-- Reintroduced a max build
3992-- Limited testing of 'debug' and 'max' servers
3993-- Berkeley DB only in 'max'
3994-
3995-* Mon Feb 13 2006 Joerg Bruehe <joerg@mysql.com>
3996-
3997-- Use "-i" on "make test-force";
3998- this is essential for later evaluation of this log file.
3999-
4000-* Thu Feb 09 2006 Kent Boortz <kent@mysql.com>
4001-
4002-- Pass '-static' to libtool, link static with our own libraries, dynamic
4003- with system libraries. Link with the bundled zlib.
4004-
4005-* Wed Feb 08 2006 Kristian Nielsen <knielsen@mysql.com>
4006-
4007-- Modified RPM spec to match new 5.1 debug+max combined community packaging.
4008-
4009-* Sun Dec 18 2005 Kent Boortz <kent@mysql.com>
4010-
4011-- Added "client/mysqlslap"
4012-
4013-* Mon Dec 12 2005 Rodrigo Novo <rodrigo@mysql.com>
4014-
4015-- Added zlib to the list of (static) libraries installed
4016-- Added check against libtool wierdness (WRT: sql/mysqld || sql/.libs/mysqld)
4017-- Compile MySQL with bundled zlib
4018-- Fixed %packager name to "MySQL Production Engineering Team"
4019-
4020-* Mon Dec 05 2005 Joerg Bruehe <joerg@mysql.com>
4021-
4022-- Avoid using the "bundled" zlib on "shared" builds:
4023- As it is not installed (on the build system), this gives dependency
4024- problems with "libtool" causing the build to fail.
4025- (Change was done on Nov 11, but left uncommented.)
4026-
4027-* Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com>
4028-
4029-- Extend the file existence check for "init.d/mysql" on un-install
4030- to also guard the call to "insserv"/"chkconfig".
4031-
4032-* Thu Oct 27 2005 Lenz Grimmer <lenz@grimmer.com>
4033-
4034-- added more man pages
4035-
4036-* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
4037-
4038-- Made yaSSL support an option (off by default)
4039-
4040-* Wed Oct 19 2005 Kent Boortz <kent@mysql.com>
4041-
4042-- Enabled yaSSL support
4043-
4044-* Sat Oct 15 2005 Kent Boortz <kent@mysql.com>
4045-
4046-- Give mode arguments the same way in all places
4047-- Moved copy of mysqld.a to "standard" build, but
4048- disabled it as we don't do embedded yet in 5.0
4049-
4050-* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
4051-
4052-- For 5.x, always compile with --with-big-tables
4053-- Copy the config.log file to location outside
4054- the build tree
4055-
4056-* Fri Oct 14 2005 Kent Boortz <kent@mysql.com>
4057-
4058-- Removed unneeded/obsolete configure options
4059-- Added archive engine to standard server
4060-- Removed the embedded server from experimental server
4061-- Changed suffix "-Max" => "-max"
4062-- Changed comment string "Max" => "Experimental"
4063-
4064-* Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
4065-
4066-- added a usermod call to assign a potential existing mysql user to the
4067- correct user group (BUG#12823)
4068-- Save the perror binary built during Max build so it supports the NDB
4069- error codes (BUG#13740)
4070-- added a separate macro "mysqld_group" to be able to define the
4071- user group of the mysql user seperately, if desired.
4072-
4073-* Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
4074-
4075-- fixed the removing of the RPM_BUILD_ROOT in the %clean section (the
4076- $RBR variable did not get expanded, thus leaving old build roots behind)
4077-
4078-* Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com>
4079-
4080-- Fixed the creation of the mysql user group account in the postinstall
4081- section (BUG 12348)
4082-- Fixed enabling the Archive storage engine in the Max binary
4083-
4084-* Tue Aug 02 2005 Lenz Grimmer <lenz@mysql.com>
4085-
4086-- Fixed the Requires: tag for the server RPM (BUG 12233)
4087-
4088-* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com>
4089-
4090-- create a "mysql" user group and assign the mysql user account to that group
4091- in the server postinstall section. (BUG 10984)
4092-
4093-* Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com>
4094-
4095-- Do not build statically on i386 by default, only when adding either "--with
4096- static" or "--define '_with_static 1'" to the RPM build options. Static
4097- linking really only makes sense when linking against the specially patched
4098- glibc 2.2.5.
4099-
4100-* Mon Jun 06 2005 Lenz Grimmer <lenz@mysql.com>
4101-
4102-- added mysql_client_test to the "bench" subpackage (BUG 10676)
4103-- added the libndbclient static and shared libraries (BUG 10676)
4104-
4105-* Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com>
4106-
4107-- use "mysqldatadir" variable instead of hard-coding the path multiple times
4108-- use the "mysqld_user" variable on all occasions a user name is referenced
4109-- removed (incomplete) Brazilian translations
4110-- removed redundant release tags from the subpackage descriptions
4111-
4112-* Wed May 25 2005 Joerg Bruehe <joerg@mysql.com>
4113-
4114-- Added a "make clean" between separate calls to "BuildMySQL".
4115-
4116-* Thu May 12 2005 Guilhem Bichot <guilhem@mysql.com>
4117-
4118-- Removed the mysql_tableinfo script made obsolete by the information schema
4119-
4120-* Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com>
4121-
4122-- Enabled the "blackhole" storage engine for the Max RPM
4123-
4124-* Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com>
4125-
4126-- removed the MySQL manual files (html/ps/texi) - they have been removed
4127- from the MySQL sources and are now available seperately.
4128-
4129-* Mon Apr 4 2005 Petr Chardin <petr@mysql.com>
4130-
4131-- old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into
4132- mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively
4133-
4134-* Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
4135-
4136-- Disabled RAID in the Max binaries once and for all (it has finally been
4137- removed from the source tree)
4138-
4139-* Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
4140-
4141-- Install MySQL Instance Manager together with mysqld, touch mysqlmanager
4142- password file
4143-
4144-* Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
4145-
4146-- Fixed the compilation comments and moved them into the separate build sections
4147- for Max and Standard
4148-
4149-* Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com>
4150-
4151-- enabled the "Ndbcluster" storage engine for the max binary
4152-- added extra make install in ndb subdir after Max build to get ndb binaries
4153-- added packages for ndbcluster storage engine
4154-
4155-* Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com>
4156-
4157-- replaced obsoleted "BuildPrereq" with "BuildRequires" instead
4158-
4159-* Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com>
4160-
4161-- enabled the "Federated" storage engine for the max binary
4162-
4163-* Tue Jan 04 2005 Petr Chardin <petr@mysql.com>
4164-
4165-- ISAM and merge storage engines were purged. As well as appropriate
4166- tools and manpages (isamchk and isamlog)
4167-
4168-* Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com>
4169-
4170-- enabled the "Archive" storage engine for the max binary
4171-- enabled the "CSV" storage engine for the max binary
4172-- enabled the "Example" storage engine for the max binary
4173-
4174-* Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com>
4175-
4176-- MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860)
4177-
4178-* Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com>
4179-
4180-- do not link statically on IA64/AMD64 as these systems do not have
4181- a patched glibc installed
4182-
4183-* Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com>
4184-
4185-- Added libmygcc.a to the devel subpackage (required to link applications
4186- against the the embedded server libmysqld.a) (BUG 4921)
4187-
4188-* Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com>
4189-
4190-- Added EXCEPTIONS-CLIENT to the "devel" package
4191-
4192-* Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com>
4193-
4194-- disabled OpenSSL in the Max binaries again (the RPM packages were the
4195- only exception to this anyway) (BUG 1043)
4196-
4197-* Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com>
4198-
4199-- fixed server postinstall (mysql_install_db was called with the wrong
4200- parameter)
4201-
4202-* Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com>
4203-
4204-- added mysql_tzinfo_to_sql to the server subpackage
4205-- run "make clean" instead of "make distclean"
4206-
4207-* Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com>
4208-
4209-- added ncurses-devel to the build prerequisites (BUG 3377)
4210-
4211-* Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com>
4212-
4213-- when using gcc, _always_ use CXX=gcc
4214-- replaced Copyright with License field (Copyright is obsolete)
4215-
4216-* Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com>
4217-
4218-- added myisam_ftdump to the Server package
4219-
4220-* Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com>
4221-
4222-- link the mysql client against libreadline instead of libedit (BUG 2289)
4223-
4224-* Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com>
4225-
4226-- marked /etc/logrotate.d/mysql as a config file (BUG 2156)
4227-
4228-* Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com>
4229-
4230-- fixed file permissions (BUG 1672)
4231-
4232-* Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com>
4233-
4234-- made testing for gcc3 a bit more robust
4235-
4236-* Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com>
4237-
4238-- added missing file mysql_create_system_tables to the server subpackage
4239-
4240-* Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com>
4241-
4242-- removed dependency on MySQL-client from the MySQL-devel subpackage
4243- as it is not really required. (BUG 1610)
4244-
4245-* Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com>
4246-
4247-- Fixed BUG 1162 (removed macro names from the changelog)
4248-- Really fixed BUG 998 (disable the checking for installed but
4249- unpackaged files)
4250-
4251-* Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com>
4252-
4253-- Fixed BUG 959 (libmysqld not being compiled properly)
4254-- Fixed BUG 998 (RPM build errors): added missing files to the
4255- distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow,
4256- mysql_fix_privilege_tables.1), removed "-n" from install section.
4257-
4258-* Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com>
4259-
4260-- removed the GIF Icon (file was not included in the sources anyway)
4261-- removed unused variable shared_lib_version
4262-- do not run automake before building the standard binary
4263- (should not be necessary)
4264-- add server suffix '-standard' to standard binary (to be in line
4265- with the binary tarball distributions)
4266-- Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir,
4267- _datadir, _includedir) throughout the spec file.
4268-- allow overriding CC and CXX (required when building with other compilers)
4269-
4270-* Fri May 16 2003 Lenz Grimmer <lenz@mysql.com>
4271-
4272-- re-enabled RAID again
4273-
4274-* Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com>
4275-
4276-- disabled MyISAM RAID (--with-raid) - it throws an assertion which
4277- needs to be investigated first.
4278-
4279-* Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com>
4280-
4281-- added missing file mysql_secure_installation to server subpackage
4282- (BUG 141)
4283-
4284-* Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com>
4285-
4286-- re-added missing pre- and post(un)install scripts to server subpackage
4287-- added config file /etc/my.cnf to the file list (just for completeness)
4288-- make sure to create the datadir with 755 permissions
4289-
4290-* Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com>
4291-
4292-- removed unused CC and CXX variables
4293-- CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS
4294-
4295-* Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com>
4296-
4297-- renamed package "MySQL" to "MySQL-server"
4298-- fixed Copyright tag
4299-- added mysql_waitpid to client subpackage (required for mysql-test-run)
4300-
4301-* Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com>
4302-
4303-- moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of
4304- Linux distributions now support this scheme as proposed by the LSB either
4305- directly or via a compatibility symlink)
4306-- Use new "restart" init script action instead of starting and stopping
4307- separately
4308-- Be more flexible in activating the automatic bootup - use insserv (on
4309- older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and
4310- others) to create the respective symlinks
4311-
4312-* Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com>
4313-
4314-- MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches
4315- (mixing 3.23 and 4.0 packages)
4316-
4317-* Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com>
4318-
4319-- Turn off OpenSSL in MySQL-Max for now until it works properly again
4320-- enable RAID for the Max binary instead
4321-- added compatibility link: safe_mysqld -> mysqld_safe to ease the
4322- transition from 3.23
4323-
4324-* Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com>
4325-
4326-- Reworked the build steps a little bit: the Max binary is supposed
4327- to include OpenSSL, which cannot be linked statically, thus trying
4328- to statically link against a special glibc is futile anyway
4329-- because of this, it is not required to make yet another build run
4330- just to compile the shared libs (saves a lot of time)
4331-- updated package description of the Max subpackage
4332-- clean up the BuildRoot directory afterwards
4333-
4334-* Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com>
4335-
4336-- Updated Packager information
4337-- Fixed the build options: the regular package is supposed to
4338- include InnoDB and linked statically, while the Max package
4339- should include BDB and SSL support
4340-
4341-* Fri May 03 2002 Lenz Grimmer <lenz@mysql.com>
4342-
4343-- Use more RPM macros (e.g. infodir, mandir) to make the spec
4344- file more portable
4345-- reorganized the installation of documentation files: let RPM
4346- take care of this
4347-- reorganized the file list: actually install man pages along
4348- with the binaries of the respective subpackage
4349-- do not include libmysqld.a in the devel subpackage as well, if we
4350- have a special "embedded" subpackage
4351-- reworked the package descriptions
4352-
4353-* Mon Oct 8 2001 Monty
4354-
4355-- Added embedded server as a separate RPM
4356-
4357-* Fri Apr 13 2001 Monty
4358-
4359-- Added mysqld-max to the distribution
4360-
4361-* Tue Jan 2 2001 Monty
4362-
4363-- Added mysql-test to the bench package
4364-
4365-* Fri Aug 18 2000 Tim Smith <tim@mysql.com>
4366-
4367-- Added separate libmysql_r directory; now both a threaded
4368- and non-threaded library is shipped.
4369-
4370-* Wed Sep 28 1999 David Axmark <davida@mysql.com>
4371-
4372-- Added the support-files/my-example.cnf to the docs directory.
4373-
4374-- Removed devel dependency on base since it is about client
4375- development.
4376-
4377-* Wed Sep 8 1999 David Axmark <davida@mysql.com>
4378-
4379-- Cleaned up some for 3.23.
4380-
4381-* Thu Jul 1 1999 David Axmark <davida@mysql.com>
4382-
4383-- Added support for shared libraries in a separate sub
4384- package. Original fix by David Fox (dsfox@cogsci.ucsd.edu)
4385-
4386-- The --enable-assembler switch is now automatically disables on
4387- platforms there assembler code is unavailable. This should allow
4388- building this RPM on non i386 systems.
4389-
4390-* Mon Feb 22 1999 David Axmark <david@detron.se>
4391-
4392-- Removed unportable cc switches from the spec file. The defaults can
4393- now be overridden with environment variables. This feature is used
4394- to compile the official RPM with optimal (but compiler version
4395- specific) switches.
4396-
4397-- Removed the repetitive description parts for the sub rpms. Maybe add
4398- again if RPM gets a multiline macro capability.
4399-
4400-- Added support for a pt_BR translation. Translation contributed by
4401- Jorge Godoy <jorge@bestway.com.br>.
4402-
4403-* Wed Nov 4 1998 David Axmark <david@detron.se>
4404-
4405-- A lot of changes in all the rpm and install scripts. This may even
4406- be a working RPM :-)
4407-
4408-* Sun Aug 16 1998 David Axmark <david@detron.se>
4409-
4410-- A developers changelog for MySQL is available in the source RPM. And
4411- there is a history of major user visible changed in the Reference
4412- Manual. Only RPM specific changes will be documented here.
4413
4414=== removed file 'build/percona-shared-compat.spec'
4415--- build/percona-shared-compat.spec 2013-04-05 20:40:25 +0000
4416+++ build/percona-shared-compat.spec 1970-01-01 00:00:00 +0000
4417@@ -1,91 +0,0 @@
4418-#
4419-# percona-shared-compat.spec
4420-#
4421-# Based on MySQL-shared-compat.spec, which is Copyright (C) 2003 MySQL AB
4422-#
4423-# RPM build instructions to create a "meta" package that includes different
4424-# versions of the MySQL shared libraries (for compatibility with
4425-# distributions that ship older versions of MySQL).
4426-#
4427-# In this version we simply repackage mysql-shared-compat from upstream.
4428-#
4429-# This program is free software; you can redistribute it and/or modify it
4430-# under the terms of the GNU General Public License as published by the Free
4431-# Software Foundation; version 2 of the License.
4432-#
4433-# This program is distributed in the hope that it will be useful, but
4434-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
4435-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4436-# for more details.
4437-#
4438-# You should have received a copy of the GNU General Public License along
4439-# with this program; if not, write to the Free Software Foundation, Inc., 59
4440-# Temple Place, Suite 330, Boston, MA 02111-1307 USA
4441-
4442-# For 5.0 and up, this is needed because of "libndbclient".
4443-%define _unpackaged_files_terminate_build 0
4444-
4445-#
4446-# Change this to match the version of the shared libs you want to include
4447-#
4448-%define version55 5.5.22
4449-%define version51 5.1.48
4450-%define version50 5.0.91
4451-%define version41 4.1.22
4452-%define version40 4.0.27
4453-#%define version3 3.23.58
4454-
4455-%define redhatversion %(lsb_release -rs | awk -F. '{ print $1}')
4456-
4457-Name: Percona-Server-shared-compat
4458-Packager: Percona MySQL Development Team <mysql-dev@percona.com>
4459-Vendor: Percona Inc
4460-License: GPL v2
4461-Group: Applications/Databases
4462-URL: http://www.percona.com/percona-lab.html
4463-Autoreqprov: on
4464-Version: %{version55}
4465-Release: %{release}.%{gotrevision}.rhel%{redhatversion}
4466-BuildRoot: %{_tmppath}/%{name}-%{version}-build
4467-Obsoletes: MySQL-shared mysql-libs
4468-Provides: MySQL-shared mysql-libs
4469-Summary: MySQL shared client libraries for MySQL %{version}, %{version50}, %{version41} and %{version40}
4470-
4471-# We extract the older libraries from mysql-shared-compat and the newer from our sources
4472-Source0: MySQL-shared-compat-%{version55}-1.linux2.6.%{_arch}.rpm
4473-#Source1: MySQL-shared-%{version50}-1.%{_arch}.rpm
4474-#Source2: MySQL-shared-%{version41}-0.%{_arch}.rpm
4475-#Source3: MySQL-shared-%{version40}-0.%{_arch}.rpm
4476-#Source3: MySQL-shared-%{version3}-1.%{_arch}.rpm
4477-# No need to include the RPMs once more - they can be downloaded seperately
4478-# if you want to rebuild this package
4479-NoSource: 0
4480-#NoSource: 1
4481-#NoSource: 2
4482-#NoSource: 3
4483-BuildRoot: %{_tmppath}/%{name}-%{version}-build
4484-
4485-%description
4486-This package includes the shared libraries for MySQL 4.0, 4.1, 5.0 and 5.1.
4487-Install this package instead of "MySQL-shared", if you have applications
4488-installed that are dynamically linked against older versions of the MySQL
4489-client library but you want to upgrade to MySQL %{version} without breaking the
4490-library dependencies.
4491-
4492-%install
4493-[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
4494-mkdir -p $RPM_BUILD_ROOT
4495-cd $RPM_BUILD_ROOT
4496-rpm2cpio %{SOURCE0} | cpio -iv --make-directories
4497-#rpm2cpio %{SOURCE1} | cpio -iv --make-directories
4498-#rpm2cpio %{SOURCE2} | cpio -iv --make-directories
4499-#rpm2cpio %{SOURCE3} | cpio -iv --make-directories
4500-/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
4501-
4502-%clean
4503-[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
4504-
4505-%files
4506-%defattr(-, root, root)
4507-%{_libdir}/libmysqlclient*
4508-

Subscribers

People subscribed via source and target branches