version 1.0.9 GA, disable test suite in mock
This commit is contained in:
parent
843583334e
commit
34d36bd0d3
3 changed files with 16 additions and 15 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 <remi@fedoraproject.org> - 1.0.9-1
|
||||
- version 1.0.9 GA
|
||||
- disable test suite in mock, fix FTBFS #914203
|
||||
|
||||
* Sat Dec 29 2012 Remi Collet <remi@fedoraproject.org> - 1.0.8-1
|
||||
- version 1.0.8 GA
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
38655dade1b06d18ba1085ac6f00018f mysql-connector-python-1.0.8-nodocs.tar.bz2
|
||||
4dcae4f24576958bfb6f02a1554f1dfe mysql-connector-python-1.0.9-nodocs.tar.bz2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue