From 34d36bd0d3b3af782dea2dd87f255840a272cea8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 27 Feb 2013 09:03:53 +0100 Subject: [PATCH] version 1.0.9 GA, disable test suite in mock --- .gitignore | 1 + mysql-connector-python.spec | 28 ++++++++++++++-------------- sources | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index a3bae76..68fb7a6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /mysql-connector-python-1.0.6b2-nodocs.tar.bz2 /mysql-connector-python-1.0.7-nodocs.tar.bz2 /mysql-connector-python-1.0.8-nodocs.tar.bz2 +/mysql-connector-python-1.0.9-nodocs.tar.bz2 diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec index 2f927ef..1f79366 100644 --- a/mysql-connector-python.spec +++ b/mysql-connector-python.spec @@ -5,10 +5,13 @@ %else %global with_python3 0 %endif -#global versuffix b2 + +# Tests only run on manual build --with tests +# Tests rely on MySQL version 5.6 +%global with_tests %{?_with_tests:1}%{!?_with_tests:0} Name: mysql-connector-python -Version: 1.0.8 +Version: 1.0.9 Release: 1%{?versuffix:.%{versuffix}}%{?dist} Summary: MySQL Connector for Python 2 @@ -70,21 +73,14 @@ rm -rf build %check -ver=$(mysql_config --version 2>/dev/null || echo 0) -if [ "$ver" \< "5.5" ] -then - ## Test 809033 fails with mysql 5.1 - sed -e '/test_bugs/d' \ - -i python2/tests/__init__.py -fi -%if 0%{?rhel} == 5 - sed -e '/test_network/d' \ - -e '/test_connection/d' \ - -i python2/tests/__init__.py -%endif +%if %{with_tests} %{__python} unittests.py \ --mysql-basedir=%{_prefix} \ --verbosity=1 +%else +: echo test suite disabled, need '--with tests' option +%endif + %clean rm -rf $RPM_BUILD_ROOT @@ -106,6 +102,10 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Wed Feb 27 2013 Remi Collet - 1.0.9-1 +- version 1.0.9 GA +- disable test suite in mock, fix FTBFS #914203 + * Sat Dec 29 2012 Remi Collet - 1.0.8-1 - version 1.0.8 GA diff --git a/sources b/sources index 2041f84..c20d42a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -38655dade1b06d18ba1085ac6f00018f mysql-connector-python-1.0.8-nodocs.tar.bz2 +4dcae4f24576958bfb6f02a1554f1dfe mysql-connector-python-1.0.9-nodocs.tar.bz2