diff options
Diffstat (limited to 'support-files/mysql.spec.sh')
-rw-r--r-- | support-files/mysql.spec.sh | 137 |
1 files changed, 88 insertions, 49 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 28f2b0f773a..390eb95e49b 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -1,4 +1,5 @@ -# Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2000, 2011, Oracle and/or its affiliates. +# Copyright (c) 2010 Monty Program Ab # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,7 +23,7 @@ # change these, has to be exactly as is. %define mysql_old_vendor MySQL AB %define mysql_vendor_2 Sun Microsystems, Inc. -%define mysql_vendor Oracle and/or its affiliates +%define mysql_vendor Oracle and/or its affiliates & Monty Program Ab %define mysql_version @VERSION@ @@ -102,14 +103,24 @@ %{?_with_cluster:%define CLUSTER_BUILD 1} %{!?_with_cluster:%define CLUSTER_BUILD 0} +# use "rpmbuild --with maria" or "rpm --define '_with_maria 1'" (for RPM 3.x) +# to build with maria support (off by default) +%{?_with_maria:%define MARIA_BUILD 1} +%{!?_with_maria:%define MARIA_BUILD 0} + ############################################################################## # Product definitions - set for a "community" package ############################################################################## %define server_suffix -community %define package_suffix -community +%if %{MARIA_BUILD} +%define ndbug_comment MariaDB, a community SQL server based on the MySQL Server with Maria (GPL) +%define debug_comment MySQL Community Server - Debug [Maria] (GPL) +%else %define ndbug_comment MySQL Community Server (GPL) %define debug_comment MySQL Community Server - Debug (GPL) +%endif %define commercial 0 %define EMBEDDED_BUILD 1 %define PARTITION_BUILD 1 @@ -129,14 +140,15 @@ ############################################################################## Name: MySQL -Summary: MySQL: a very fast and reliable SQL database server +Summary: MariaDB: a very fast and reliable SQL database server Group: Applications/Databases Version: @MYSQL_U_SCORE_VERSION@ Release: %{release} -License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Under %{mysql_license} license as shown in the Description field. -Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/%{src_dir}.tar.gz -URL: http://www.mysql.com/ -Packager: %{mysql_vendor} Product Engineering Team <build@mysql.com> +License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. Under %{mysql_license} license as shown in the Description field. + +Source: http://http://askmonty.org/wiki/MariaDB:Download +URL: http://www.askmonty.org/ +Packager: Monty Program Ab Vendor: %{mysql_vendor} Provides: msqlormysql MySQL-server mysql BuildRequires: ncurses-devel @@ -148,49 +160,52 @@ 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 MariaDB(TM) software delivers a very fast, multi-threaded, +multi-user, and robust SQL (Structured Query Language) database server +that is binary compatible with MySQL(TM). MariaDB Server is intended +for mission-critical, heavy-load production systems as well as for +embedding into mass-deployed software. + +MariaDB is a trademark of Monty Program Ab. -Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. +Copyright (c) 2000, 2011 @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. +Use is subject to license terms. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license. -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. +The MariaDB web sites (http://askmonty.org && http://mariadb.org/) +provides the latest news and information about the MariaDB +software. ############################################################################## # Sub package definition ############################################################################## %package server -Summary: MySQL: a very fast and reliable SQL database server +Summary: MariaDB: a very fast and reliable SQL database server Group: Applications/Databases Requires: coreutils grep procps /usr/sbin/useradd /usr/sbin/groupadd /sbin/chkconfig Provides: msqlormysql mysql-server mysql MySQL Obsoletes: MySQL mysql mysql-server %description server -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 MariaDB(TM) software delivers a very fast, multi-threaded, +multi-user, and robust SQL (Structured Query Language) database server +that is binary compatible with MySQL(TM). MariaDB Server is intended +for mission-critical, heavy-load production systems as well as for +embedding into mass-deployed software. -Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. +Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license. -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. +The MariaDB web sites (http://askmonty.org && http://mariadb.org/) +provides the latest news and information about the MariaDB +software. -This package includes the MySQL server binary +This package includes the MariaDB server binary %if %{INNODB_BUILD} (configured including InnoDB) %endif @@ -208,7 +223,8 @@ Obsoletes: mysql-client Provides: mysql-client %description client -This package contains the standard MySQL clients and administration tools. +This package contains the standard MariaDB & MySQL clients and +administration tools. %{see_base} @@ -216,7 +232,7 @@ This package contains the standard MySQL clients and administration tools. %if %{CLUSTER_BUILD} %package ndb-storage -Summary: MySQL - ndbcluster storage engine +Summary: MariaDB - ndbcluster storage engine Group: Applications/Databases %description ndb-storage @@ -229,7 +245,7 @@ computers that should store ndbcluster table data. # ------------------------------------------------------------------------------ %package ndb-management -Summary: MySQL - ndbcluster storage engine management +Summary: MariaDB - ndbcluster storage engine management Group: Applications/Databases %description ndb-management @@ -242,7 +258,7 @@ one computer in the cluster. # ------------------------------------------------------------------------------ %package ndb-tools -Summary: MySQL - ndbcluster storage engine basic tools +Summary: MariaDB - ndbcluster storage engine basic tools Group: Applications/Databases %description ndb-tools @@ -253,7 +269,7 @@ This package contains ndbcluster storage engine basic tools. # ------------------------------------------------------------------------------ %package ndb-extra -Summary: MySQL - ndbcluster storage engine extra tools +Summary: MariaDB - ndbcluster storage engine extra tools Group: Applications/Databases %description ndb-extra @@ -267,40 +283,40 @@ They should be used with caution. %package test Requires: %{name}-client perl -Summary: MySQL - Test suite +Summary: MariaDB - Test suite Group: Applications/Databases Provides: mysql-test Obsoletes: mysql-bench mysql-test AutoReqProv: no %description test -This package contains the MySQL regression test suite. +This package contains the MariaDB regression test suite. %{see_base} # ------------------------------------------------------------------------------ %package devel -Summary: MySQL - Development header files and libraries +Summary: MariaDB - Development header files and libraries Group: Applications/Databases Provides: mysql-devel Obsoletes: mysql-devel %description devel This package contains the development header files and libraries -necessary to develop MySQL client applications. +necessary to develop MariaDB client applications. %{see_base} # ------------------------------------------------------------------------------ %package shared -Summary: MySQL - Shared libraries +Summary: MariaDB - Shared libraries Group: Applications/Databases %description shared This package contains the shared libraries (*.so*) which certain -languages and applications need to dynamically load and use MySQL. +languages and applications need to dynamically load and use MariaDB. # ------------------------------------------------------------------------------ @@ -308,19 +324,19 @@ languages and applications need to dynamically load and use MySQL. %package embedded Requires: %{name}-devel -Summary: MySQL - embedded library +Summary: MariaDB - embedded library Group: Applications/Databases Obsoletes: mysql-embedded %description embedded -This package contains the MySQL server as an embedded library. +This package contains the MariaDB 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 embedded MariaDB server library makes it possible to run a +full-featured MariaDB 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 +The API is identical for the embedded MariaDB version and the client/server version. %{see_base} @@ -376,6 +392,26 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \ LDFLAGS=\"$LDFLAGS\" \ ./configure \ $* \ + --with-innodb \ +%if %{CLUSTER_BUILD} + --with-ndbcluster \ +%else + --without-ndbcluster \ +%endif + --with-archive-storage-engine \ + --with-csv-storage-engine \ + --with-blackhole-storage-engine \ +%if %{FEDERATED_BUILD} + --with-federated-storage-engine \ +%else + --without-federated-storage-engine \ +%endif +%if %{MARIA_BUILD} + --with-plugin-maria \ + --with-maria-tmp-tables \ +%endif + --with-partition \ + --with-big-tables \ --with-mysqld-ldflags='-static' \ --with-client-ldflags='-static' \ --enable-assembler \ @@ -688,7 +724,8 @@ A manual upgrade is required. - Run the 'mysql_upgrade' program This is a brief description of the upgrade process. Important details -can be found in the MySQL manual, in the Upgrading section. +can be found in the MySQL manual, in the Upgrading section and in the +MariaDB knowledge base at http://www.askmonty.org ****************************************************************** HERE exit 1 @@ -874,11 +911,8 @@ if [ "$SERVER_TO_START" = "true" ] ; then sleep 2 fi -#echo "Thank you for installing the MySQL Community Server! For Production -#systems, we recommend MySQL Enterprise, which contains enterprise-ready -#software, intelligent advisory services, and full production support with -#scheduled service packs and more. Visit www.mysql.com/enterprise for more -#information." +#echo "Thank you for installing the MariaDB Server!" +#echo "For more information about MariaDB, visit www.mariadb.org." # Collect an upgrade history ... echo "Upgrade/install finished at `date`" >> $STATUS_FILE @@ -1103,6 +1137,7 @@ fi %files devel %defattr(-, root, root, 0755) +%doc mysql-release-%{mysql_version}/EXCEPTIONS-CLIENT %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1* %attr(755, root, root) %{_bindir}/mysql_config %dir %attr(755, root, root) %{_includedir}/mysql @@ -1188,6 +1223,10 @@ fi not in an RPM upgrade. This affects both the "mkdir" and the call of "mysql_install_db". +* Sun Feb 20 2011 Monty + Updated texts to include information about MariaDB + Added back EXCEPTIONS-CLIENT + * Thu Feb 03 2011 Joerg Bruehe <joerg.bruehe@oracle.com> - Fix bug#56581: If an installation deviates from the default file locations |