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