diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-09-29 11:12:55 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-09-29 11:12:55 +0200 |
commit | fd4bf51c95218eba3922ca2410fb838a116c93b4 (patch) | |
tree | 6854891851c32194e6595cf50986cea718dfb00e | |
parent | a1ed7cf0f44da7ec8d28dd5bb95acd5ee34e0111 (diff) |
MySQL: upstream spec
-rw-r--r-- | mysql.5.5.28.spec (renamed from mysql.5.5.27.spec) | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/mysql.5.5.27.spec b/mysql.5.5.28.spec index c47085f..77dc4c7 100644 --- a/mysql.5.5.27.spec +++ b/mysql.5.5.28.spec @@ -24,7 +24,7 @@ %define mysql_vendor_2 Sun Microsystems, Inc. %define mysql_vendor Oracle and/or its affiliates -%define mysql_version 5.5.27 +%define mysql_version 5.5.28 %define mysqld_user mysql %define mysqld_group mysql @@ -241,7 +241,7 @@ Name: MySQL%{product_suffix} Summary: MySQL: a very fast and reliable SQL database server Group: Applications/Databases -Version: 5.5.27 +Version: 5.5.28 Release: %{release}%{?distro_releasetag:.%{distro_releasetag}} Distribution: %{distro_description} License: Copyright (c) 2000, 2012, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field. @@ -252,6 +252,9 @@ Vendor: %{mysql_vendor} Provides: msqlormysql MySQL-server mysql BuildRequires: %{distro_buildreq} +# Regression tests may take a long time, override the default to skip them +%{!?runselftest:%global runselftest 1} + # Think about what you use here since the first step is to # run a rm -rf BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -403,6 +406,16 @@ For a description of MySQL see the base MySQL RPM or http://www.mysql.com/ ############################################################################## %build +# Fail quickly and obviously if user tries to build as root +%if %runselftest + if [ x"`id -u`" = x0 ]; then + echo "The MySQL regression tests may fail if run as root." + echo "If you really need to build the RPM as root, use" + echo "--define='runselftest 0' to skip the regression tests." + exit 1 + fi +%endif + # Be strict about variables, bail at earliest opportunity, etc. set -eu @@ -480,6 +493,13 @@ mkdir release make ${MAKE_JFLAG} VERBOSE=1 ) +%if %runselftest + MTR_BUILD_THREAD=auto + export MTR_BUILD_THREAD + + (cd release && make test-bt-fast || true) +%endif + ############################################################################## %install @@ -1146,6 +1166,14 @@ echo "=====" >> $STATUS_HISTORY # merging BK trees) ############################################################################## %changelog +* Tue Jul 24 2012 Joerg Bruehe <joerg.bruehe@oracle.com> + +- Add a macro "runselftest": + if set to 1 (default), the test suite will be run during the RPM build; + this can be oveeridden via the command line by adding + --define "runselftest 0" + Failures of the test suite will NOT make the RPM build fail! + * Wed Sep 28 2011 Joerg Bruehe <joerg.bruehe@oracle.com> - Fix duplicate mentioning of "mysql_plugin" and its manual page, |