Search
j0ke.net Open Build Service
>
Projects
>
server:database
:
mysql
>
MySQL-cluster_com_pro
> mysqlcluster.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mysqlcluster.spec of Package MySQL-cluster_com_pro
############################################################################## # # This is the spec file for the distribution specific RPM files # ############################################################################## ############################################################################## # Some common macro definitions ############################################################################## %define cluster_com_pro 1 %define mysql_version 6.3.20 %define mysql_vendor Sun Microsystems, Inc. %if 0%{?sles_verson} == 10 %define distribution sles10 %define %dist_long "SUSE Linux Enterprise 10" %endif %if 0%{?rhel_version} == 5 %define distribution rhel5 %define %dist_long "Redhat Enterprise Linux 5" %endif %if 0%{?centos_version} == 5 %define distribution centos5 %define %dist_long "Community Enterprise Operationg System 5" %endif %define release 0.%{distribution} %define mysqld_user mysql %define mysqld_group mysql %define mysqldatadir /var/lib/mysql %define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com # ------------------------------------------------------------------------------ # Meta information, don't remove! # ------------------------------------------------------------------------------ # norootforbuild # ------------------------------------------------------------------------------ # On SuSE 9 no separate "debuginfo" package is built. To enable basic # debugging on that platform, we don't strip binaries on SuSE 9. We # disable the strip of binaries by redefining the RPM macro # "__os_install_post" leaving out the script calls that normally does # this. We do this in all cases, as on platforms where "debuginfo" is # created, a script "find-debuginfo.sh" will be called that will do # the strip anyway, part of separating the executable and debug # information into separate files put into separate packages. # # Some references (shows more advanced conditional usage): # http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html # http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html # http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html # http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html # ------------------------------------------------------------------------------ %define __os_install_post /usr/lib/rpm/brp-compress # ------------------------------------------------------------------------------ # We don't package all files installed into the build root by intention - # See BUG#998 for details. # ------------------------------------------------------------------------------ %define _unpackaged_files_terminate_build 0 # ------------------------------------------------------------------------------ # RPM build tools now automatically detects Perl module dependencies. This # detection gives problems as it is broken in some versions, and it also # give unwanted dependencies from mandatory scripts in our package. # Might not be possible to disable in all RPM tool versions, but here we # try. We keep the "AutoReqProv: no" for the "test" sub package, as disabling # here might fail, and that package has the most problems. # See http://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provides # http://www.wideopen.com/archives/rpm-list/2002-October/msg00343.html # ------------------------------------------------------------------------------ %undefine __perl_provides %undefine __perl_requires ############################################################################## # Command line handling ############################################################################## # ---------------------------------------------------------------------- # use "rpmbuild --with yassl" or "rpm --define '_with_yassl 1'" (for RPM 3.x) # to build with yaSSL support (off by default) # ---------------------------------------------------------------------- %{?_with_yassl:%define YASSL_BUILD 1} %{!?_with_yassl:%define YASSL_BUILD 0} # ---------------------------------------------------------------------- # use "rpmbuild --without libgcc" or "rpm --define '_without_libgcc 1'" (for RPM 3.x) # to include libgcc (as libmygcc) (on by default) # ---------------------------------------------------------------------- %{!?_with_libgcc: %{!?_without_libgcc: %define WITH_LIBGCC 1}} %{?_with_libgcc:%define WITH_LIBGCC 1} %{?_without_libgcc:%define WITH_LIBGCC 0} ############################################################################## # Product definitions - one of these has to be defined via the RPM build # options, e.g. "--define 'enterprise 1'" ############################################################################## %{!?advanced:%define advanced 0} %{!?advanced_gpl:%define advanced_gpl 0} %{!?enterprise:%define enterprise 0} %{!?enterprise_gpl:%define enterprise_gpl 0} %{!?cluster_com:%define cluster_com 0} %{!?cluster_com_pro:%define cluster_com_pro 0} %{!?cluster_gpl:%define cluster_gpl 0} %{!?community:%define community 0} %{!?community_maria:%define community_maria 0} # On SuSE 9 no separate "debuginfo" package is built. To enable basic # debugging on that platform, we don't strip binaries on SuSE 9. We # disable the strip of binaries by redefining the RPM macro # "__os_install_post" leaving out the script calls that normally does # this. We do this in all cases, as on platforms where "debuginfo" is # created, a script "find-debuginfo.sh" will be called that will do # the strip anyway, part of separating the executable and debug # information into separate files put into separate packages. # # Some references (shows more advanced conditional usage): # http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html # http://www.redhat.com/archives/rpm-list/2003-February/msg00275.html # http://www.redhat.com/archives/rhl-devel-list/2004-January/msg01546.html # http://lists.opensuse.org/archive/opensuse-commit/2006-May/1171.html %define __os_install_post /usr/lib/rpm/brp-compress %if %{community} %define product_name MySQL Server %define base_product_prefix MySQL %define product_prefix MySQL %define product_suffix -community %define server_suffix -community %define ndbug_comment MySQL Community Server (GPL) %define debug_comment MySQL Community Server - Debug (GPL) %define commercial 0 %define PARTITION_BUILD 1 %define CLUSTER_BUILD 0 %define COMMUNITY_BUILD 1 %define INNODB_BUILD 1 %define MARIA_BUILD 0 %define NORMAL_TEST_MODE test-bt %define DEBUG_TEST_MODE test-bt-debug %endif %if %{community_maria} %define product_name MySQL Server %define base_product_prefix MySQL %define product_prefix MySQL %define product_suffix -community-maria %define server_suffix -community-maria %define ndbug_comment MySQL Community Server [Maria] (GPL) %define debug_comment MySQL Community Server - Debug [Maria] (GPL) %define commercial 0 %define PARTITION_BUILD 1 %define CLUSTER_BUILD 0 %define COMMUNITY_BUILD 1 %define INNODB_BUILD 1 %define MARIA_BUILD 1 %define NORMAL_TEST_MODE test-bt %define DEBUG_TEST_MODE test-bt-debug %endif %if %{advanced} %define product_name MySQL Server %define base_product_prefix MySQL %define product_prefix MySQL %define product_suffix -advanced %define server_suffix -advanced %define ndbug_comment MySQL Advanced Server (Commercial) %define debug_comment MySQL Advanced Server - Debug (Commercial) %define commercial 1 %define PARTITION_BUILD 1 %define CLUSTER_BUILD 0 %define COMMUNITY_BUILD 0 %define INNODB_BUILD 1 %define MARIA_BUILD 0 %define NORMAL_TEST_MODE test-bt-fast %define DEBUG_TEST_MODE test-bt-debug-fast %endif %if %{advanced_gpl} %define product_name MySQL Server %define base_product_prefix MySQL %define product_prefix MySQL %define product_suffix -advanced-gpl %define server_suffix -advanced-gpl %define ndbug_comment MySQL Advanced Server (GPL) %define debug_comment MySQL Advanced Server - Debug (GPL) %define commercial 0 %define PARTITION_BUILD 1 %define CLUSTER_BUILD 0 %define COMMUNITY_BUILD 0 %define INNODB_BUILD 1 %define MARIA_BUILD 0 %define NORMAL_TEST_MODE test-bt %define DEBUG_TEST_MODE test-bt-debug %endif %if %{enterprise} %define product_name MySQL Server %define base_product_prefix MySQL %define product_prefix MySQL %define product_suffix -enterprise %define server_suffix -enterprise %define ndbug_comment MySQL Enterprise Server (Commercial) %define debug_comment MySQL Enterprise Server - Debug (Commercial) %define commercial 1 %define PARTITION_BUILD 0 %define CLUSTER_BUILD 0 %define COMMUNITY_BUILD 0 %define INNODB_BUILD 1 %define MARIA_BUILD 0 %define NORMAL_TEST_MODE test-bt-fast %define DEBUG_TEST_MODE test-bt-debug-fast %endif %if %{enterprise_gpl} %define product_name MySQL Server %define base_product_prefix MySQL %define product_prefix MySQL %define product_suffix -enterprise-gpl %define server_suffix -enterprise-gpl %define ndbug_comment MySQL Enterprise Server (GPL) %define debug_comment MySQL Enterprise Server - Debug (GPL) %define commercial 0 %define PARTITION_BUILD 0 %define CLUSTER_BUILD 0 %define COMMUNITY_BUILD 0 %define INNODB_BUILD 1 %define MARIA_BUILD 0 %define NORMAL_TEST_MODE test-bt %define DEBUG_TEST_MODE test-bt-debug %endif %if %{cluster_com} %define product_name MySQL Cluster Server %define base_product_prefix MySQL-Cluster %define product_prefix MySQL-Cluster-com %define product_suffix %{nil} %define server_suffix -cluster-com %define ndbug_comment MySQL Cluster Server (Commercial) %define debug_comment MySQL Cluster Server - Debug (Commercial) %define commercial 1 %define PARTITION_BUILD 1 %define CLUSTER_BUILD 1 %define COMMUNITY_BUILD 0 %define INNODB_BUILD 0 %define MARIA_BUILD 0 %define NORMAL_TEST_MODE test-bt %define DEBUG_TEST_MODE test-bt-debug %endif %if %{cluster_com_pro} %define product_name MySQL Cluster Server %define base_product_prefix MySQL-Cluster %define product_prefix MySQL-Cluster-com-pro %define product_suffix %{nil} %define server_suffix -cluster-com-pro %define ndbug_comment MySQL Cluster Server Pro (Commercial) %define debug_comment MySQL Cluster Server Pro - Debug (Commercial) %define commercial 1 %define PARTITION_BUILD 1 %define CLUSTER_BUILD 1 %define COMMUNITY_BUILD 0 %define INNODB_BUILD 1 %define MARIA_BUILD 0 %define NORMAL_TEST_MODE test-bt-fast %define DEBUG_TEST_MODE test-bt-debug-fast %endif %if %{cluster_gpl} %define product_name MySQL Cluster Server %define base_product_prefix MySQL-Cluster %define product_prefix MySQL-Cluster-gpl %define product_suffix %{nil} %define server_suffix -cluster-gpl %define ndbug_comment MySQL Cluster Server (GPL) %define debug_comment MySQL Cluster Server - Debug (GPL) %define commercial 0 %define PARTITION_BUILD 1 %define CLUSTER_BUILD 1 %define COMMUNITY_BUILD 0 %define INNODB_BUILD 1 %define MARIA_BUILD 0 %define NORMAL_TEST_MODE test-bt-fast %define DEBUG_TEST_MODE test-bt-debug-fast %endif %if %{commercial} %define lic_type Commercial %define lic_files LICENSE.mysql %define src_dir mysql-cluster-com-%{mysql_version} %else %define lic_type GPL %define lic_files COPYING README %define src_dir mysql-cluster-gpl-%{mysql_version} %endif ############################################################################## # Main spec file section ############################################################################## Name: %{product_prefix} Summary: %{product_name}, a very fast and reliable SQL database server Group: Applications/Databases Version: 6.3.20 Release: %{release} Distribution: %dist_long License: Copyright 2000-2008 MySQL AB, 2008 %{mysql_vendor} All rights reserved. Use is subject to license terms. Under %{lic_type} license as shown in the Description field. Source: %{src_dir}.tar.gz URL: http://www.mysql.com/ Packager: %{mysql_vendor} Product Engineering Team <build@mysql.com> Vendor: %{mysql_vendor} Conflicts: msqlormysql MySQL-server mysql %if 0%{?sles_version} == 10 BuildRequires: gperf gcc-c++ gdbm-devel ncurses-devel readline-devel zlib-devel libtool automake autoconf openldap2-client %endif %if 0%{?centos_version} || 0%{?rhel_version} BuildRequires: gperf perl readline-devel gcc-c++ ncurses-devel zlib-devel libtool automake autoconf time %endif # Think about what you use here since the first step is to # run a rm -rf BuildRoot: %{_tmppath}/%{name}-%{version}-build # From the manual %description The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. MySQL is a trademark of %{mysql_vendor} The MySQL software has Dual Licensing, which means you can use the MySQL software free of charge under the GNU General Public License (http://www.gnu.org/licenses/). You can also purchase commercial MySQL licenses from %{mysql_vendor} if you do not wish to be bound by the terms of the GPL. See the chapter "Licensing and Support" in the manual for further info. The MySQL web site (http://www.mysql.com/) provides the latest news and information about the MySQL software. Also please see the documentation and the manual for more information. ############################################################################## # Sub package definition ############################################################################## %package -n %{product_prefix}-server%{product_suffix} Summary: @COMMENT@ for %dist_long Group: Applications/Databases %if 0%{?sles_version} == 10 Requires: aaa_base coreutils pwdutils grep procps %endif %if 0%{?centos_version} || 0%{?rhel_version} Requires: chkconfig coreutils shadow-utils grep procps %endif %if %{CLUSTER_BUILD} Conflicts: MySQL mysql mysql-server MySQL-server Obsoletes: %{base_product_prefix}-server Provides: %{base_product_prefix}-server %else Obsoletes: MySQL mysql mysql-server MySQL-server Provides: msqlormysql mysql-server mysql MySQL MySQL-server %endif %description -n %{product_prefix}-server%{product_suffix} The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. MySQL is a trademark of %{mysql_vendor} The MySQL software has Dual Licensing, which means you can use the MySQL software free of charge under the GNU General Public License (http://www.gnu.org/licenses/). You can also purchase commercial MySQL licenses from %{mysql_vendor} if you do not wish to be bound by the terms of the GPL. See the chapter "Licensing and Support" in the manual for further info. The MySQL web site (http://www.mysql.com/) provides the latest news and information about the MySQL software. Also please see the documentation and the manual for more information. This package includes the MySQL server binary %if %{INNODB_BUILD} (configured including InnoDB) %endif as well as related utilities to run and administer a MySQL server. If you want to access and work with the database, you have to install package "%{product_prefix}-client%{product_suffix}" as well! # ------------------------------------------------------------------------------ %package -n %{product_prefix}-client%{product_suffix} Summary: MySQL - Client Group: Applications/Databases %if %{CLUSTER_BUILD} Conflicts: mysql-client MySQL-client Obsoletes: %{base_product_prefix}-client Provides: %{base_product_prefix}-client %else Obsoletes: mysql-client MySQL-client Provides: mysql-client MySQL-client %endif %description -n %{product_prefix}-client%{product_suffix} This package contains the standard MySQL clients and administration tools. %{see_base} # ------------------------------------------------------------------------------ %if %{CLUSTER_BUILD} %package -n %{product_prefix}-storage%{product_suffix} Summary: MySQL - ndbcluster storage engine Group: Applications/Databases Conflicts: ndb-storage Obsoletes: %{base_product_prefix}-storage Provides: %{base_product_prefix}-storage %description -n %{product_prefix}-storage%{product_suffix} This package contains the ndbcluster storage engine. It is necessary to have this package installed on all computers that should store ndbcluster table data. Note that this storage engine can only be used in conjunction with the MySQL Max server. %{see_base} # ------------------------------------------------------------------------------ %package -n %{product_prefix}-management%{product_suffix} Summary: MySQL - ndbcluster storage engine management Group: Applications/Databases Conflicts: ndb-management Obsoletes: %{base_product_prefix}-management Provides: %{base_product_prefix}-management %description -n %{product_prefix}-management%{product_suffix} This package contains ndbcluster storage engine management. It is necessary to have this package installed on at least one computer in the cluster. %{see_base} # ------------------------------------------------------------------------------ %package -n %{product_prefix}-tools%{product_suffix} Summary: MySQL - ndbcluster storage engine basic tools Group: Applications/Databases Conflicts: ndb-tools Obsoletes: %{base_product_prefix}-tools Provides: %{base_product_prefix}-tools %description -n %{product_prefix}-tools%{product_suffix} This package contains ndbcluster storage engine basic tools. %{see_base} # ------------------------------------------------------------------------------ %package -n %{product_prefix}-extra%{product_suffix} Summary: MySQL - ndbcluster storage engine extra tools Group: Applications/Databases Conflicts: ndb-extra Obsoletes: %{base_product_prefix}-extra Provides: %{base_product_prefix}-extra %description -n %{product_prefix}-extra%{product_suffix} This package contains some extra ndbcluster storage engine tools for the advanced user. They should be used with caution. %{see_base} %endif # ------------------------------------------------------------------------------ %package -n %{product_prefix}-test%{product_suffix} Summary: MySQL - Test suite Group: Applications/Databases %if %{CLUSTER_BUILD} Conflicts: mysql-test MySQL-test Requires: %{base_product_prefix}-client perl Obsoletes: %{base_product_prefix}-test Provides: %{base_product_prefix}-test %else Obsoletes: mysql-test MySQL-test Requires: mysql-client perl Provides: mysql-test MySQL-test %endif AutoReqProv: no %description -n %{product_prefix}-test%{product_suffix} This package contains the MySQL regression test suite. %{see_base} # ------------------------------------------------------------------------------ %package -n %{product_prefix}-devel%{product_suffix} Summary: MySQL - Development header files and libraries Group: Applications/Databases %if %{CLUSTER_BUILD} Conflicts: mysql-devel MySQL-devel Obsoletes: %{base_product_prefix}-devel Provides: %{base_product_prefix}-devel %else Obsoletes: mysql-devel MySQL-devel Provides: mysql-devel MySQL-devel %endif %description -n %{product_prefix}-devel%{product_suffix} This package contains the development header files and libraries necessary to develop MySQL client applications. %{see_base} # ------------------------------------------------------------------------------ %package -n %{product_prefix}-shared%{product_suffix} Summary: MySQL - Shared libraries Group: Applications/Databases # Obsoletes below to correct old missing Provides:/Obsoletes %if %{CLUSTER_BUILD} Conflicts: mysql-shared MySQL-shared-standard MySQL-shared-pro Conflicts: MySQL-shared-pro-cert MySQL-shared-pro-gpl Conflicts: MySQL-shared-pro-gpl-cert MySQL-shared Obsoletes: %{base_product_prefix}-shared Provides: %{base_product_prefix}-shared %else Obsoletes: mysql-shared MySQL-shared-standard MySQL-shared-pro Obsoletes: MySQL-shared-pro-cert MySQL-shared-pro-gpl Obsoletes: MySQL-shared-pro-gpl-cert MySQL-shared Provides: mysql-shared MySQL-shared %endif %description -n %{product_prefix}-shared%{product_suffix} This package contains the shared libraries (*.so*) which certain languages and applications need to dynamically load and use MySQL. # ------------------------------------------------------------------------------ %package -n %{product_prefix}-embedded%{product_suffix} Summary: MySQL - Embedded library Group: Applications/Databases %if %{CLUSTER_BUILD} Conflicts: mysql-embedded MySQL-embedded Conflicts: MySQL-embedded-classic MySQL-embedded-pro Requires: %{base_product_prefix}-devel Obsoletes: %{base_product_prefix}-embedded Provides: %{base_product_prefix}-embedded %else Obsoletes: mysql-embedded MySQL-embedded Obsoletes: MySQL-embedded-classic MySQL-embedded-pro Requires: mysql-devel Provides: mysql-embedded MySQL-embedded %endif %description -n %{product_prefix}-embedded%{product_suffix} This package contains the MySQL server as an embedded library. The embedded MySQL server library makes it possible to run a full-featured MySQL server inside the client application. The main benefits are increased speed and more simple management for embedded applications. The API is identical for the embedded MySQL version and the client/server version. ############################################################################## # ############################################################################## %prep %setup -n %{src_dir} ############################################################################## # The actual build ############################################################################## %build BuildMySQL() { # Get flags from environment. RPM_OPT_FLAGS seems not to be set anywhere. CFLAGS=${CFLAGS:-$RPM_OPT_FLAGS} CXXFLAGS=${CXXFLAGS:-$RPM_OPT_FLAGS} # Evaluate current setting of $DEBUG if [ $DEBUG -gt 0 ] ; then OPT_COMMENT='--with-comment="%{debug_comment}"' OPT_DEBUG='--with-debug' CFLAGS=`echo " $CFLAGS " | \ sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \ -e 's/^ //' -e 's/ $//'` CXXFLAGS=`echo " $CXXFLAGS " | \ sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \ -e 's/^ //' -e 's/ $//'` else OPT_COMMENT='--with-comment="%{ndbug_comment}"' OPT_DEBUG='' fi # The --enable-assembler simply does nothing on systems that does not # support assembler speedups. sh -c "CFLAGS=\"$CFLAGS\" \ CXXFLAGS=\"$CXXFLAGS\" \ LDFLAGS=\"$LDFLAGS\" \ ./configure \ $* \ --enable-assembler \ --enable-local-infile \ --with-mysqld-user=%{mysqld_user} \ --with-unix-socket-path=/var/lib/mysql/mysql.sock \ --with-pic \ --prefix=/ \ %if %{CLUSTER_BUILD} --with-extra-charsets=all \ %else --with-extra-charsets=complex \ %endif %if %{YASSL_BUILD} --with-ssl \ %endif --exec-prefix=%{_exec_prefix} \ --libexecdir=%{_sbindir} \ --libdir=%{_libdir} \ --sysconfdir=%{_sysconfdir} \ --datadir=%{_datadir} \ --localstatedir=%{mysqldatadir} \ --infodir=%{_infodir} \ --includedir=%{_includedir} \ --mandir=%{_mandir} \ --enable-thread-safe-client \ %if %{?ndbug_comment:1}0 $OPT_COMMENT \ %endif $OPT_DEBUG \ %if %{commercial} --with-libedit \ %else --with-readline \ %endif ; make" } # end of function definition "BuildMySQL" BuildServer() { BuildMySQL "--disable-shared \ %if %{?server_suffix:1}0 --with-server-suffix='%{server_suffix}' \ %endif %if %{CLUSTER_BUILD} --with-ndbcluster \ %endif %if %{INNODB_BUILD} --with-innodb \ %else --without-innodb \ %endif %if %{MARIA_BUILD} --with-plugin-maria \ --with-maria-tmp-tables \ %else --without-plugin-maria \ %endif %if %{PARTITION_BUILD} --with-plugin-partition \ %else --without-plugin-partition \ %endif --with-csv-storage-engine \ --with-archive-storage-engine \ --with-blackhole-storage-engine \ --with-federated-storage-engine \ --with-embedded-server \ --without-bench \ --with-zlib-dir=bundled \ --with-big-tables" if [ -n "$MYSQL_CONFLOG_DEST" ] ; then cp -fp config.log "$MYSQL_CONFLOG_DEST" fi if [ -f sql/.libs/mysqld ] ; then nm --numeric-sort sql/.libs/mysqld > sql/mysqld.sym else nm --numeric-sort sql/mysqld > sql/mysqld.sym fi } # end of function definition "BuildServer" RBR=$RPM_BUILD_ROOT MBD=$RPM_BUILD_DIR/%{src_dir} # Clean up the BuildRoot first [ "$RBR" != "/" ] && [ -d $RBR ] && rm -rf $RBR; mkdir -p $RBR%{_libdir}/mysql $RBR%{_sbindir} # Use gcc for C and C++ code (to avoid a dependency on libstdc++ and # including exceptions into the code if [ -z "$CXX" -a -z "$CC" ] ; then export CC="gcc" CXX="gcc" fi # Create the shared libs seperately to avoid a dependency for the client utilities DEBUG=0 BuildMySQL "--enable-shared --without-server" # Install shared libraries cp -av libmysql/.libs/*.so* $RBR/%{_libdir} cp -av libmysql_r/.libs/*.so* $RBR/%{_libdir} ############################################################################## # Include libgcc.a in the devel subpackage (BUG 4921) %if %{WITH_LIBGCC} libgcc=`$CC $CFLAGS --print-libgcc-file` install -m 644 "$libgcc" $RBR%{_libdir}/mysql/libmygcc.a %endif ############################################################################## # Now create a debug server DEBUG=1 make clean ( BuildServer ) # subshell, so that CFLAGS + CXXFLAGS are modified only locally if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then MTR_BUILD_THREAD=auto make %{DEBUG_TEST_MODE} fi # Get the debug server and its .sym file from the build tree if [ -f sql/.libs/mysqld ] ; then cp sql/.libs/mysqld $RBR%{_sbindir}/mysqld-debug else cp sql/mysqld $RBR%{_sbindir}/mysqld-debug fi cp libmysqld/libmysqld.a $RBR%{_libdir}/mysql/libmysqld-debug.a cp sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld-debug.sym # Now, the default server DEBUG=0 make clean BuildServer if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then MTR_BUILD_THREAD=auto make %{NORMAL_TEST_MODE} fi %install RBR=$RPM_BUILD_ROOT MBD=$RPM_BUILD_DIR/%{src_dir} # Ensure that needed directories exists install -d $RBR%{_sysconfdir}/{logrotate.d,init.d} install -d $RBR%{mysqldatadir}/mysql install -d $RBR%{_datadir}/mysql-test install -d $RBR%{_datadir}/mysql/SELinux/RHEL4 install -d $RBR%{_includedir} install -d $RBR%{_libdir} install -d $RBR%{_mandir} install -d $RBR%{_sbindir} make DESTDIR=$RBR benchdir_root=%{_datadir} install # install symbol files ( for stack trace resolution) install -m644 $MBD/sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld.sym # Install logrotate and autostart install -m644 $MBD/support-files/mysql-log-rotate \ $RBR%{_sysconfdir}/logrotate.d/mysql install -m755 $MBD/support-files/mysql.server \ $RBR%{_sysconfdir}/init.d/mysql # in RPMs, it is unlikely that anybody should use "sql-bench" rm -fr $RBR%{_datadir}/sql-bench # Create a symlink "rcmysql", pointing to the init.script. SuSE users # will appreciate that, as all services usually offer this. ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql # Touch the place where the my.cnf config file and mysqlmanager.passwd # (MySQL Instance Manager password file) might be located # Just to make sure it's in the file list and marked as a config file touch $RBR%{_sysconfdir}/my.cnf touch $RBR%{_sysconfdir}/mysqlmanager.passwd # Install SELinux files in datadir install -m600 $MBD/support-files/RHEL4-SElinux/mysql.{fc,te} \ $RBR%{_datadir}/mysql/SELinux/RHEL4 ############################################################################## # Post processing actions, i.e. when installed ############################################################################## %post -n %{product_prefix}-server%{product_suffix} mysql_datadir=%{mysqldatadir} # ---------------------------------------------------------------------- # Create data directory # ---------------------------------------------------------------------- mkdir -p $mysql_datadir/{mysql,test} # ---------------------------------------------------------------------- # Make MySQL start/shutdown automatically when the machine does it. # ---------------------------------------------------------------------- if [ -x /sbin/chkconfig ] ; then /sbin/chkconfig --add mysql fi # ---------------------------------------------------------------------- # Create a MySQL user and group. Do not report any problems if it already # exists. # ---------------------------------------------------------------------- groupadd -r %{mysqld_group} 2> /dev/null || true useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true # The user may already exist, make sure it has the proper group nevertheless (BUG#12823) usermod -g %{mysqld_group} %{mysqld_user} 2> /dev/null || true # ---------------------------------------------------------------------- # Change permissions so that the user that will run the MySQL daemon # owns all database files. # ---------------------------------------------------------------------- chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir # ---------------------------------------------------------------------- # Initiate databases # ---------------------------------------------------------------------- %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} # ---------------------------------------------------------------------- # FIXME upgrade databases if needed would go here - but it cannot be # automated yet # ---------------------------------------------------------------------- # ---------------------------------------------------------------------- # Change permissions again to fix any new files. # ---------------------------------------------------------------------- chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir # ---------------------------------------------------------------------- # Fix permissions for the permission database so that only the user # can read them. # ---------------------------------------------------------------------- chmod -R og-rw $mysql_datadir/mysql # ---------------------------------------------------------------------- # install SELinux files - but don't override existing ones # ---------------------------------------------------------------------- SETARGETDIR=/etc/selinux/targeted/src/policy SEDOMPROG=$SETARGETDIR/domains/program SECONPROG=$SETARGETDIR/file_contexts/program if [ -f /etc/redhat-release ] && \ (grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \ || grep -q "CentOS release 4" /etc/redhat-release) ; then echo echo echo 'Notes regarding SELinux on this platform:' echo '=========================================' echo echo 'The default policy might cause server startup to fail because it is ' echo 'not allowed to access critical files. In this case, please update ' echo 'your installation. ' echo echo 'The default policy might also cause inavailability of SSL related ' echo 'features because the server is not allowed to access /dev/random ' echo 'and /dev/urandom. If this is a problem, please do the following: ' echo echo ' 1) install selinux-policy-targeted-sources from your OS vendor' echo ' 2) add the following two lines to '$SEDOMPROG/mysqld.te':' echo ' allow mysqld_t random_device_t:chr_file read;' echo ' allow mysqld_t urandom_device_t:chr_file read;' echo ' 3) cd to '$SETARGETDIR' and issue the following command:' echo ' make load' echo echo fi if [ -x sbin/restorecon ] ; then sbin/restorecon -R var/lib/mysql fi # ---------------------------------------------------------------------- # Create cluster directory if needed # ---------------------------------------------------------------------- %if %{CLUSTER_BUILD} %post -n %{product_prefix}-storage%{product_suffix} mkdir -p /var/lib/mysql-cluster %endif # ---------------------------------------------------------------------- # Clean up the BuildRoot after build is done # ---------------------------------------------------------------------- %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; ############################################################################## # Files section ############################################################################## %files -n %{product_prefix}-server%{product_suffix} %defattr(-,root,root,0755) %doc %{lic_files} %doc support-files/my-*.cnf %if %{CLUSTER_BUILD} %doc support-files/ndb-*.ini %endif %doc %attr(644, root, root) %{_infodir}/mysql.info* %if %{INNODB_BUILD} %doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1* %endif %doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1* %doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1* %doc %attr(644, root, man) %{_mandir}/man1/myisamchk.1* %doc %attr(644, root, man) %{_mandir}/man1/myisamlog.1* %doc %attr(644, root, man) %{_mandir}/man1/myisampack.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_convert_table_format.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_extensions.1* %doc %attr(644, root, man) %{_mandir}/man8/mysqld.8* %doc %attr(644, root, man) %{_mandir}/man1/mysqld_multi.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqld_safe.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_fix_privilege_tables.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_install_db.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_secure_installation.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_setpermission.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_upgrade.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlhotcopy.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlman.1* %doc %attr(644, root, man) %{_mandir}/man8/mysqlmanager.8* %doc %attr(644, root, man) %{_mandir}/man1/mysql.server.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqltest.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_tzinfo_to_sql.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_zap.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlbug.1* %doc %attr(644, root, man) %{_mandir}/man1/perror.1* %doc %attr(644, root, man) %{_mandir}/man1/replace.1* %doc %attr(644, root, man) %{_mandir}/man1/resolve_stack_dump.1* %doc %attr(644, root, man) %{_mandir}/man1/resolveip.1* %ghost %config(noreplace,missingok) %{_sysconfdir}/my.cnf %ghost %config(noreplace,missingok) %{_sysconfdir}/mysqlmanager.passwd %if %{INNODB_BUILD} %attr(755, root, root) %{_bindir}/innochecksum %endif %attr(755, root, root) %{_bindir}/my_print_defaults %attr(755, root, root) %{_bindir}/myisam_ftdump %attr(755, root, root) %{_bindir}/myisamchk %attr(755, root, root) %{_bindir}/myisamlog %attr(755, root, root) %{_bindir}/myisampack %attr(755, root, root) %{_bindir}/mysql_convert_table_format %attr(755, root, root) %{_bindir}/mysql_fix_extensions %attr(755, root, root) %{_bindir}/mysql_fix_privilege_tables %attr(755, root, root) %{_bindir}/mysql_install_db %attr(755, root, root) %{_bindir}/mysql_secure_installation %attr(755, root, root) %{_bindir}/mysql_setpermission %attr(755, root, root) %{_bindir}/mysql_tzinfo_to_sql %attr(755, root, root) %{_bindir}/mysql_upgrade %attr(755, root, root) %{_bindir}/mysql_zap %attr(755, root, root) %{_bindir}/mysqlbug %attr(755, root, root) %{_bindir}/mysqld_multi %attr(755, root, root) %{_bindir}/mysqld_safe %attr(755, root, root) %{_bindir}/mysqldumpslow %attr(755, root, root) %{_bindir}/mysqlhotcopy %attr(755, root, root) %{_bindir}/mysqltest %attr(755, root, root) %{_bindir}/perror %attr(755, root, root) %{_bindir}/replace %attr(755, root, root) %{_bindir}/resolve_stack_dump %attr(755, root, root) %{_bindir}/resolveip %attr(755, root, root) %{_sbindir}/mysqld %attr(755, root, root) %{_sbindir}/mysqld-debug %attr(755, root, root) %{_sbindir}/mysqlmanager %attr(755, root, root) %{_sbindir}/rcmysql %attr(644, root, root) %{_libdir}/mysql/mysqld.sym %attr(644, root, root) %{_libdir}/mysql/mysqld-debug.sym %attr(644, root, root) %config(noreplace,missingok) %{_sysconfdir}/logrotate.d/mysql %attr(755, root, root) %{_sysconfdir}/init.d/mysql %attr(755, root, root) %{_datadir}/mysql/ %files -n %{product_prefix}-client%{product_suffix} %defattr(-, root, root, 0755) %attr(755, root, root) %{_bindir}/msql2mysql %attr(755, root, root) %{_bindir}/mysql %attr(755, root, root) %{_bindir}/mysql_find_rows %attr(755, root, root) %{_bindir}/mysql_waitpid %attr(755, root, root) %{_bindir}/mysqlaccess %attr(755, root, root) %{_bindir}/mysqladmin %attr(755, root, root) %{_bindir}/mysqlbinlog %attr(755, root, root) %{_bindir}/mysqlcheck %attr(755, root, root) %{_bindir}/mysqldump %attr(755, root, root) %{_bindir}/mysqlimport %attr(755, root, root) %{_bindir}/mysqlshow %attr(755, root, root) %{_bindir}/mysqlslap %doc %attr(644, root, man) %{_mandir}/man1/msql2mysql.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_find_rows.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_waitpid.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlaccess.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqladmin.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlbinlog.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlcheck.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqldump.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlimport.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1* %post -n %{product_prefix}-shared%{product_suffix} /sbin/ldconfig %postun -n %{product_prefix}-shared%{product_suffix} /sbin/ldconfig %if %{CLUSTER_BUILD} %files -n %{product_prefix}-storage%{product_suffix} %defattr(-,root,root,0755) %attr(755, root, root) %{_sbindir}/ndbd %doc %attr(644, root, man) %{_mandir}/man8/ndbd.8* %files -n %{product_prefix}-management%{product_suffix} %defattr(-,root,root,0755) %attr(755, root, root) %{_sbindir}/ndb_mgmd %doc %attr(644, root, man) %{_mandir}/man8/ndb_mgmd.8* %files -n %{product_prefix}-tools%{product_suffix} %defattr(-,root,root,0755) %attr(755, root, root) %{_bindir}/ndb_config %attr(755, root, root) %{_bindir}/ndb_desc %attr(755, root, root) %{_bindir}/ndb_error_reporter %attr(755, root, root) %{_bindir}/ndb_mgm %attr(755, root, root) %{_bindir}/ndb_print_backup_file %attr(755, root, root) %{_bindir}/ndb_print_schema_file %attr(755, root, root) %{_bindir}/ndb_print_sys_file %attr(755, root, root) %{_bindir}/ndb_restore %attr(755, root, root) %{_bindir}/ndb_select_all %attr(755, root, root) %{_bindir}/ndb_select_count %attr(755, root, root) %{_bindir}/ndb_show_tables %attr(755, root, root) %{_bindir}/ndb_size.pl %attr(755, root, root) %{_bindir}/ndb_test_platform %attr(755, root, root) %{_bindir}/ndb_waiter %attr(755, root, root) %{_bindir}/ndbd_redo_log_reader %doc %attr(644, root, man) %{_mandir}/man1/ndb_config.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_desc.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_error_reporter.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_mgm.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_backup_file.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_schema_file.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_print_sys_file.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_restore.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_select_all.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_select_count.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_show_tables.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_size.pl.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_waiter.1* %doc %attr(644, root, man) %{_mandir}/man1/ndbd_redo_log_reader.1* %files -n %{product_prefix}-extra%{product_suffix} %defattr(-,root,root,0755) %attr(755, root, root) %{_bindir}/ndb_delete_all %attr(755, root, root) %{_bindir}/ndb_drop_index %attr(755, root, root) %{_bindir}/ndb_drop_table %attr(755, root, root) %{_sbindir}/ndb_cpcd %doc %attr(644, root, man) %{_mandir}/man1/ndb_delete_all.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_index.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_drop_table.1* %doc %attr(644, root, man) %{_mandir}/man1/ndb_cpcd.1* %endif %files -n %{product_prefix}-devel%{product_suffix} %defattr(-, root, root, 0755) %if %{commercial} %else %doc EXCEPTIONS-CLIENT %endif %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1* %attr(755, root, root) %{_bindir}/mysql_config %dir %attr(755, root, root) %{_libdir}/mysql %{_includedir}/mysql %{_datadir}/aclocal/mysql.m4 %{_libdir}/mysql/libdbug.a %{_libdir}/mysql/libheap.a %if %{WITH_LIBGCC} %{_libdir}/mysql/libmygcc.a %endif %{_libdir}/mysql/libmyisam.a %{_libdir}/mysql/libmyisammrg.a %{_libdir}/mysql/libmysqlclient.a %{_libdir}/mysql/libmysqlclient.la %{_libdir}/mysql/libmysqlclient_r.a %{_libdir}/mysql/libmysqlclient_r.la %{_libdir}/mysql/libmystrings.a %{_libdir}/mysql/libmysys.a %{_libdir}/mysql/libvio.a %{_libdir}/mysql/libz.a %{_libdir}/mysql/libz.la %if %{CLUSTER_BUILD} %{_libdir}/mysql/libndbclient.a %{_libdir}/mysql/libndbclient.la %endif %files -n %{product_prefix}-shared%{product_suffix} %defattr(-, root, root, 0755) # Shared libraries (omit for architectures that don't support them) %{_libdir}/*.so* %files -n %{product_prefix}-test%{product_suffix} %defattr(-, root, root, 0755) %{_datadir}/mysql-test %attr(755, root, root) %{_bindir}/mysql_client_test %attr(755, root, root) %{_bindir}/mysql_client_test_embedded %attr(755, root, root) %{_bindir}/mysqltest_embedded %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_client_test_embedded.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql-stress-test.pl.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql-test-run.pl.1* %doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1* %files -n %{product_prefix}-embedded%{product_suffix} %defattr(-, root, root, 0755) %attr(644, root, root) %{_libdir}/mysql/libmysqld.a %attr(644, root, root) %{_libdir}/mysql/libmysqld-debug.a ############################################################################## # The spec file changelog only includes changes made to the spec file # itself - note that they must be ordered by date (important when # merging BK trees) ############################################################################## %changelog * Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com> - Modify CFLAGS and CXXFLAGS such that a debug build is not optimized. This should cover both gcc and icc flags. Fixes bug#40546. * Fri Aug 29 2008 Kent Boortz <kent@mysql.com> - Removed the "Federated" storage engine option, and enabled in all * Fri Aug 29 2008 Joerg Bruehe <joerg@mysql.com> - Fix configuration settings: "cluster_gpl" does contain InnoDB. * Mon Aug 25 2008 Joerg Bruehe <joerg@mysql.com> - Copied from the spec file for Cluster-6.2 RPMs - Get rid of the "warning: Installed (but unpackaged) file(s) found:" Some generated files aren't needed in RPMs: - the "sql-bench/" subdirectory Some files were missing: - /usr/share/aclocal/mysql.m4 ("devel" subpackage) - Manuals for embedded tests ("test" subpackage) - Manual "mysqlbug" ("server" subpackage) - Manual "mysql_find_rows" ("client" subpackage) - "ndb_print_backup_file", "ndb_print_schema_file", "ndb_print_sys_file", "ndbd_redo_log_reader", and their manuals ("tools" subpackage) * Sat Jun 21 2008 Kent Boortz <kent@mysql.com> - Added new way of avoiding Perl automatic dependencies, we don't want any - Removed the old "AutoReqProv: no" for the test package, not needed * Wed Jun 11 2008 Kent Boortz <kent@mysql.com> - Removed the Example storage engine, it is not to be in products * Fri Apr 04 2008 Daniel Fischer <df@mysql.com> - Added Cluster+InnoDB product * Mon Mar 31 2008 Kent Boortz <kent@mysql.com> - Made the "Federated" storage engine an option * Tue Mar 11 2008 Joerg Bruehe <joerg@mysql.com> - Cleanup: Remove manual file "mysql_tableinfo.1". * Mon Feb 18 2008 Timothy Smith <tim@mysql.com> - Require a manual upgrade if the alread-installed mysql-server is from another vendor, or is of a different major version. * Fri Dec 14 2007 Joerg Bruehe <joerg@mysql.com> - Add the "%doc" directive for all man pages and other documentation; also, some re-ordering to reduce differences between spec files. * Fri Dec 14 2007 Joerg Bruehe <joerg@mysql.com> - Added "client/mysqlslap" (bug#32077) * Wed Oct 31 2007 Joerg Bruehe <joerg@mysql.com> - Explicitly handle InnoDB using its own variable and "--with"/"--without" options, because the "configure" default is "yes". Also, fix the specification of "community" to include "partitioning". * Mon Sep 03 2007 Kent Boortz <kent@mysql.com> - Let libmygcc be included unless "--without libgcc" is given. * Sun Sep 02 2007 Kent Boortz <kent@mysql.com> - Changed SSL flag given to configure to "--with-ssl" - Removed symbolic link "safe_mysqld" - Removed script and man page for "mysql_explain_log" - Removed scripts "mysql_tableinfo" and "mysql_upgrade_shell" - Removed "comp_err" from list to install - Removed duplicates of "libndbclient.a" and "libndbclient.la" * Tue Jul 17 2007 Joerg Bruehe <joerg@mysql.com> - Add the man page for "mysql-stress-test.pl" to the "test" RPM (consistency in fixing bug#21023, the script is handled by "Makefile.am") * Wed Jul 11 2007 Daniel Fischer <df@mysql.com> - Change the way broken SELinux policies on RHEL4 and CentOS 4 are handled to be more likely to actually work * Thu Jun 05 2007 kent Boortz <kent@mysql.com> - Enabled the CSV engine in all builds * Thu May 3 2007 Mads Martin Joergensen <mmj@mysql.com> - Spring cleanup * Thu Apr 19 2007 Mads Martin Joergensen <mmj@mysql.com> - If sbin/restorecon exists then run it * Wed Apr 18 2007 Kent Boortz <kent@mysql.com> - Packed unpacked files /usr/sbin/ndb_cpcd /usr/bin/mysql_upgrade_shell /usr/bin/innochecksum /usr/share/man/man1/ndb_cpcd.1.gz /usr/share/man/man1/innochecksum.1.gz /usr/share/man/man1/mysql_fix_extensions.1.gz /usr/share/man/man1/mysql_secure_installation.1.gz /usr/share/man/man1/mysql_tableinfo.1.gz /usr/share/man/man1/mysql_waitpid.1.gz - Commands currently not installed but that has man pages /usr/share/man/man1/make_win_bin_dist.1.gz /usr/share/man/man1/make_win_src_distribution.1.gz /usr/share/man/man1/mysql-stress-test.pl.1.gz /usr/share/man/man1/ndb_print_backup_file.1.gz /usr/share/man/man1/ndb_print_schema_file.1.gz /usr/share/man/man1/ndb_print_sys_file.1.gz * Thu Mar 22 2007 Joerg Bruehe <joerg@mysql.com> - Add "comment" options to the test runs, for better log analysis. * Wed Mar 21 2007 Joerg Bruehe <joerg@mysql.com> - Add even more man pages. * Fri Mar 16 2007 Joerg Bruehe <joerg@mysql.com> - Build the server twice, once as "mysqld-debug" and once as "mysqld"; test them both, and include them in the resulting file. - Consequences of the fix for bug#20166: Remove "mysql_create_system_tables", new "mysql_fix_privilege_tables.sql" is included implicitly. * Wed Mar 14 2007 Daniel Fischer <df@mysql.com> - Adjust compile options some more and change naming of community cluster RPMs to explicitly say 'cluster'. * Mon Mar 12 2007 Daniel Fischer <df@mysql.com> - Adjust compile options and other settings for 5.0 community builds. * Fri Mar 02 2007 Joerg Bruehe <joerg@mysql.com> - Add several man pages which are now created. * Mon Jan 29 2007 Mads Martin Joergensen <mmj@mysql.com> - Make sure SELinux works correctly. Files from Colin Charles. * Fri Jan 05 2007 Kent Boortz <kent@mysql.com> - Add CFLAGS to gcc call with --print-libgcc-file, to make sure the correct "libgcc.a" path is returned for the 32/64 bit architecture. * Tue Dec 19 2006 Joerg Bruehe <joerg@mysql.com> - The man page for "mysqld" is now in section 8. * Thu Dec 14 2006 Joerg Bruehe <joerg@mysql.com> - Include the new man pages for "my_print_defaults" and "mysql_tzinfo_to_sql" in the server RPM. - The "mysqlmanager" man page was relocated to section 8, reflect that. * Fri Nov 17 2006 Mads Martin Joergensen <mmj@mysql.com> - Really fix obsoletes/provides for community -> this - Make it possible to not run test by setting MYSQL_RPMBUILD_TEST to "no" * Wed Nov 15 2006 Joerg Bruehe <joerg@mysql.com> - Switch from "make test*" to explicit calls of the test suite, so that "report features" can be used. * Wed Nov 15 2006 Kent Boortz <kent@mysql.com> - Added "--with cluster" and "--define cluster{_gpl}" * Tue Oct 24 2006 Mads Martin Joergensen <mmj@mysql.com> - Shared need to Provide/Obsolete mysql-shared * Mon Oct 23 2006 Mads Martin Joergensen <mmj@mysql.com> - Run sbin/restorecon after db init (Bug#12676) * Thu Jul 06 2006 Joerg Bruehe <joerg@mysql.com> - Correct a typing error in my previous change. * Tue Jul 04 2006 Joerg Bruehe <joerg@mysql.com> - Use the Perl script to run the tests, because it will automatically check whether the server is configured with SSL. * Wed Jun 28 2006 Joerg Bruehe <joerg@mysql.com> - Revert all previous attempts to call "mysql_upgrade" during RPM upgrade, there are some more aspects which need to be solved before this is possible. For now, just ensure the binary "mysql_upgrade" is delivered and installed. * Wed Jun 28 2006 Joerg Bruehe <joerg@mysql.com> - Move "mysqldumpslow" from the client RPM to the server RPM (bug#20216). * Wed Jun 21 2006 Joerg Bruehe <joerg@mysql.com> - To run "mysql_upgrade", we need a running server; start it in isolation and skip password checks. * Sat May 23 2006 Kent Boortz <kent@mysql.com> - Always compile for PIC, position independent code. * Fri Apr 28 2006 Kent Boortz <kent@mysql.com> - Install and run "mysql_upgrade" * Sat Apr 01 2006 Kent Boortz <kent@mysql.com> - Allow to override $LDFLAGS * Fri Jan 06 2006 Lenz Grimmer <lenz@mysql.com> - added a MySQL-test subpackage (BUG#16070) * Tue Dec 27 2005 Joerg Bruehe <joerg@mysql.com> - Some minor alignment with the 4.1 version * Wed Dec 14 2005 Rodrigo Novo <rodrigo@mysql.com> - Cosmetic changes: source code location & rpm packager - Protect "nm -D" against libtool weirdness - Add libz.a & libz.la to the list of files for subpackage -devel - moved --with-zlib-dir=bundled out of BuildMySQL, as it doesn't makes sense for the shared package * Tue Nov 22 2005 Joerg Bruehe <joerg@mysql.com> - Extend the file existence check for "init.d/mysql" on un-install to also guard the call to "insserv"/"chkconfig". * Wed Nov 16 2005 Lenz Grimmer <lenz@mysql.com> - added mysql_client_test to the "client" subpackage (BUG#14546) * Tue Nov 15 2005 Lenz Grimmer <lenz@mysql.com> - changed default definitions to build a standard GPL release when not defining anything else - install the shared libs more elegantly by using "make install" * Wed Oct 19 2005 Kent Boortz <kent@mysql.com> - Made yaSSL support an option (off by default) * Wed Oct 19 2005 Kent Boortz <kent@mysql.com> - Enabled yaSSL support * Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com> - added a usermod call to assign a potential existing mysql user to the correct user group (BUG#12823) - added a separate macro "mysqld_group" to be able to define the user group of the mysql user seperately, if desired. * Fri Oct 1 2005 Kent Boortz <kent@mysql.com> - Copy the config.log file to location outside the build tree * Fri Sep 30 2005 Lenz Grimmer <lenz@mysql.com> - don't use install-strip to install the binaries (strip segfaults on icc-compiled binaries on IA64) * Thu Sep 22 2005 Lenz Grimmer <lenz@mysql.com> - allow overriding the CFLAGS (needed for Intel icc compiles) - replace the CPPFLAGS=-DBIG_TABLES with "--with-big-tables" configure option * Fri Aug 19 2005 Joerg Bruehe <joerg@mysql.com> - Protect against failing tests. * Thu Aug 04 2005 Lenz Grimmer <lenz@mysql.com> - Fixed the creation of the mysql user group account in the postinstall section (BUG 12348) * Fri Jul 29 2005 Lenz Grimmer <lenz@mysql.com> - Fixed external RPM Requirements to better suit the target distribution (BUG 12233) * Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com> - create a "mysql" user group and assign the mysql user account to that group in the server postinstall section. (BUG 10984) * Wed Jun 01 2005 Lenz Grimmer <lenz@mysql.com> - use "mysqldatadir" variable instead of hard-coding the path multiple times - use the "mysqld_user" variable on all occasions a user name is referenced - removed (incomplete) Brazilian translations - removed redundant release tags from the subpackage descriptions * Fri May 27 2005 Lenz Grimmer <lenz@mysql.com> - fixed file list (removed libnisam.a and libmerge.a from the devel subpackage) - force running the test suite * Wed Apr 20 2005 Lenz Grimmer <lenz@mysql.com> - Enabled the "blackhole" storage engine for the Max RPM * Wed Apr 13 2005 Lenz Grimmer <lenz@mysql.com> - removed the MySQL manual files (html/ps/texi) - they have been removed from the MySQL sources and are now available seperately. * Mon Apr 4 2005 Petr Chardin <petr@mysql.com> - old mysqlmanager, mysqlmanagerc and mysqlmanager-pwger renamed into mysqltestmanager, mysqltestmanager and mysqltestmanager-pwgen respectively * Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com> - Disabled RAID in the Max binaries once and for all (it has finally been removed from the source tree) * Sun Feb 20 2005 Petr Chardin <petr@mysql.com> - Install MySQL Instance Manager together with mysqld, touch mysqlmanager password file * Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com> - Fixed the compilation comments and moved them into the separate build sections for Max and Standard * Mon Feb 7 2005 Tomas Ulin <tomas@mysql.com> - enabled the "Ndbcluster" storage engine for the max binary - added extra make install in ndb subdir after Max build to get ndb binaries - added packages for ndbcluster storage engine * Fri Jan 14 2005 Lenz Grimmer <lenz@mysql.com> - replaced obsoleted "BuildPrereq" with "BuildRequires" instead * Thu Jan 13 2005 Lenz Grimmer <lenz@mysql.com> - enabled the "Federated" storage engine for the max binary * Tue Jan 04 2005 Petr Chardin <petr@mysql.com> - ISAM and merge storage engines were purged. As well as appropriate tools and manpages (isamchk and isamlog) * Thu Dec 31 2004 Lenz Grimmer <lenz@mysql.com> - enabled the "Archive" storage engine for the max binary - enabled the "CSV" storage engine for the max binary - enabled the "Example" storage engine for the max binary * Thu Aug 26 2004 Lenz Grimmer <lenz@mysql.com> - MySQL-Max now requires MySQL-server instead of MySQL (BUG 3860) * Fri Aug 20 2004 Lenz Grimmer <lenz@mysql.com> - do not link statically on IA64/AMD64 as these systems do not have a patched glibc installed * Tue Aug 10 2004 Lenz Grimmer <lenz@mysql.com> - Added libmygcc.a to the devel subpackage (required to link applications against the the embedded server libmysqld.a) (BUG 4921) * Mon Aug 09 2004 Lenz Grimmer <lenz@mysql.com> - Added EXCEPTIONS-CLIENT to the "devel" package * Thu Jul 29 2004 Lenz Grimmer <lenz@mysql.com> - disabled OpenSSL in the Max binaries again (the RPM packages were the only exception to this anyway) (BUG 1043) * Wed Jun 30 2004 Lenz Grimmer <lenz@mysql.com> - fixed server postinstall (mysql_install_db was called with the wrong parameter) * Thu Jun 24 2004 Lenz Grimmer <lenz@mysql.com> - added mysql_tzinfo_to_sql to the server subpackage - run "make clean" instead of "make distclean" * Mon Apr 05 2004 Lenz Grimmer <lenz@mysql.com> - added ncurses-devel to the build prerequisites (BUG 3377) * Thu Feb 12 2004 Lenz Grimmer <lenz@mysql.com> - when using gcc, _always_ use CXX=gcc - replaced Copyright with License field (Copyright is obsolete) * Tue Feb 03 2004 Lenz Grimmer <lenz@mysql.com> - added myisam_ftdump to the Server package * Tue Jan 13 2004 Lenz Grimmer <lenz@mysql.com> - link the mysql client against libreadline instead of libedit (BUG 2289) * Mon Dec 22 2003 Lenz Grimmer <lenz@mysql.com> - marked /etc/logrotate.d/mysql as a config file (BUG 2156) * Fri Dec 13 2003 Lenz Grimmer <lenz@mysql.com> - fixed file permissions (BUG 1672) * Thu Dec 11 2003 Lenz Grimmer <lenz@mysql.com> - made testing for gcc3 a bit more robust * Fri Dec 05 2003 Lenz Grimmer <lenz@mysql.com> - added missing file mysql_create_system_tables to the server subpackage * Fri Nov 21 2003 Lenz Grimmer <lenz@mysql.com> - removed dependency on MySQL-client from the MySQL-devel subpackage as it is not really required. (BUG 1610) * Fri Aug 29 2003 Lenz Grimmer <lenz@mysql.com> - Fixed BUG 1162 (removed macro names from the changelog) - Really fixed BUG 998 (disable the checking for installed but unpackaged files) * Tue Aug 05 2003 Lenz Grimmer <lenz@mysql.com> - Fixed BUG 959 (libmysqld not being compiled properly) - Fixed BUG 998 (RPM build errors): added missing files to the distribution (mysql_fix_extensions, mysql_tableinfo, mysqldumpslow, mysql_fix_privilege_tables.1), removed "-n" from install section. * Wed Jul 09 2003 Lenz Grimmer <lenz@mysql.com> - removed the GIF Icon (file was not included in the sources anyway) - removed unused variable shared_lib_version - do not run automake before building the standard binary (should not be necessary) - add server suffix '-standard' to standard binary (to be in line with the binary tarball distributions) - Use more RPM macros (_exec_prefix, _sbindir, _libdir, _sysconfdir, _datadir, _includedir) throughout the spec file. - allow overriding CC and CXX (required when building with other compilers) * Fri May 16 2003 Lenz Grimmer <lenz@mysql.com> - re-enabled RAID again * Wed Apr 30 2003 Lenz Grimmer <lenz@mysql.com> - disabled MyISAM RAID (--with-raid) - it throws an assertion which needs to be investigated first. * Mon Mar 10 2003 Lenz Grimmer <lenz@mysql.com> - added missing file mysql_secure_installation to server subpackage (BUG 141) * Tue Feb 11 2003 Lenz Grimmer <lenz@mysql.com> - re-added missing pre- and post(un)install scripts to server subpackage - added config file /etc/my.cnf to the file list (just for completeness) - make sure to create the datadir with 755 permissions * Mon Jan 27 2003 Lenz Grimmer <lenz@mysql.com> - removed unused CC and CXX variables - CFLAGS and CXXFLAGS should honor RPM_OPT_FLAGS * Fri Jan 24 2003 Lenz Grimmer <lenz@mysql.com> - renamed package "MySQL" to "MySQL-server" - fixed Copyright tag - added mysql_waitpid to client subpackage (required for mysql-test-run) * Wed Nov 27 2002 Lenz Grimmer <lenz@mysql.com> - moved init script from /etc/rc.d/init.d to /etc/init.d (the majority of Linux distributions now support this scheme as proposed by the LSB either directly or via a compatibility symlink) - Use new "restart" init script action instead of starting and stopping separately - Be more flexible in activating the automatic bootup - use insserv (on older SuSE versions) or chkconfig (Red Hat, newer SuSE versions and others) to create the respective symlinks * Wed Sep 25 2002 Lenz Grimmer <lenz@mysql.com> - MySQL-Max now requires MySQL >= 4.0 to avoid version mismatches (mixing 3.23 and 4.0 packages) * Fri Aug 09 2002 Lenz Grimmer <lenz@mysql.com> - Turn off OpenSSL in MySQL-Max for now until it works properly again - enable RAID for the Max binary instead - added compatibility link: safe_mysqld -> mysqld_safe to ease the transition from 3.23 * Thu Jul 18 2002 Lenz Grimmer <lenz@mysql.com> - Reworked the build steps a little bit: the Max binary is supposed to include OpenSSL, which cannot be linked statically, thus trying to statically link against a special glibc is futile anyway - because of this, it is not required to make yet another build run just to compile the shared libs (saves a lot of time) - updated package description of the Max subpackage - clean up the BuildRoot directory afterwards * Mon Jul 15 2002 Lenz Grimmer <lenz@mysql.com> - Updated Packager information - Fixed the build options: the regular package is supposed to include InnoDB and linked statically, while the Max package should include BDB and SSL support * Fri May 03 2002 Lenz Grimmer <lenz@mysql.com> - Use more RPM macros (e.g. infodir, mandir) to make the spec file more portable - reorganized the installation of documentation files: let RPM take care of this - reorganized the file list: actually install man pages along with the binaries of the respective subpackage - do not include libmysqld.a in the devel subpackage as well, if we have a special "embedded" subpackage - reworked the package descriptions * Mon Oct 8 2001 Monty - Added embedded server as a separate RPM * Fri Apr 13 2001 Monty - Added mysqld-max to the distribution * Tue Jan 2 2001 Monty - Added mysql-test to the bench package * Fri Aug 18 2000 Tim Smith <tim@mysql.com> - Added separate libmysql_r directory; now both a threaded and non-threaded library is shipped. * Wed Sep 28 1999 David Axmark <davida@mysql.com> - Added the support-files/my-example.cnf to the docs directory. - Removed devel dependency on base since it is about client development. * Wed Sep 8 1999 David Axmark <davida@mysql.com> - Cleaned up some for 3.23. * Thu Jul 1 1999 David Axmark <davida@mysql.com> - Added support for shared libraries in a separate sub package. Original fix by David Fox (dsfox@cogsci.ucsd.edu) - The --enable-assembler switch is now automatically disables on platforms there assembler code is unavailable. This should allow building this RPM on non i386 systems. * Mon Feb 22 1999 David Axmark <david@detron.se> - Removed unportable cc switches from the spec file. The defaults can now be overridden with environment variables. This feature is used to compile the official RPM with optimal (but compiler version specific) switches. - Removed the repetitive description parts for the sub rpms. Maybe add again if RPM gets a multiline macro capability. - Added support for a pt_BR translation. Translation contributed by Jorge Godoy <jorge@bestway.com.br>. * Wed Nov 4 1998 David Axmark <david@detron.se> - A lot of changes in all the rpm and install scripts. This may even be a working RPM :-) * Sun Aug 16 1998 David Axmark <david@detron.se> - A developers changelog for MySQL is available in the source RPM. And there is a history of major user visible changed in the Reference Manual. Only RPM specific changes will be documented here.