Merge lp:~shawx/maria/maria-fix-bug992312 into lp:~maria-captains/maria/trunk

Proposed by Shawn Sterling
Status: Rejected
Rejected by: Sergei Golubchik
Proposed branch: lp:~shawx/maria/maria-fix-bug992312
Merge into: lp:~maria-captains/maria/trunk
Diff against target: 1981 lines (+1977/-0)
1 file modified
support-files/mariadb.5.5.23.spec (+1977/-0)
To merge this branch: bzr merge lp:~shawx/maria/maria-fix-bug992312
Reviewer Review Type Date Requested Status
Sergei Golubchik Disapprove
Review via email: mp+104595@code.launchpad.net

Description of the change

I modified the upstream spec file to work with mariadb-5.5.23 . Someone more official than me should change the descriptions, vendor, and packager in the spec file but these are very simple changes.

To post a comment you must log in.
Revision history for this message
Sergei Golubchik (sergii) wrote :

Thanks. But at the moment we're trying to create rpms with cpack. It could do that - if we're lucky - without an explicit spec file. If that'll fail (if CPackRPM cannot do what we need), and we'll have to resort to a hand-crafted spec file, we'll look at your spec file again.

review: Disapprove
Revision history for this message
Shawn Sterling (shawx) wrote :

No worries.

As long as there is eventually a src.rpm so users can modify that spec file and recompile, I'm good to go.

Is there an ETA on getting cpack working?

Thanks.

Revision history for this message
Sergei Golubchik (sergii) wrote :

There's no src.rpm. May be later CPackRPM will support it. Currently one needs to modify CMakeLists.txt files.

ETA: Hopefully today.

Unmerged revisions

3369. By shawn <email address hidden>

Adding mariadb spec file

3368. By shawn <email address hidden>

adding mariadb spec file

3367. By Sergei Golubchik

tweak the test to pass, until the upstream bug#61209 is *completely* fixed
(see my comments starting from [9 Apr 22:18])

3366. By Sergei Golubchik

mysql 5.5.23 merge

3365. By Sergei Golubchik

merge

3364. By Sergei Golubchik

mdev-208 thread pool breaks the server on XP

3363. By Kristian Nielsen

lp:886550 Wrong installation path for some include files.

Now install all includes in a flat hierarchy under
$PREFIX/include/mysq/, same as 5.3. User can override with
-DINSTALL_INCLUDEDIR

3362. By Michael Widenius

Merge with 5.3

3361. By Michael Widenius

Define dummy my_init_stacktrace() to allow one to call it without #ifdef HAVE_STACKTRACE
Fixed compilation problem on windows.

3360. By Sergei Golubchik

merge

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: