forked from pool/python-mysql-connector-python
Accepting request 436710 from home:matejcik:branches:devel:languages:python
- update to 2.1.4
* significant incompatible changes from 1.2 line
* better Django compatibility
* C extension linking to libmysqlclient is available
(not included in this version of package)
* bug fixes
- includes fix for CVE-2016-5598, bsc#1005559
OBS-URL: https://build.opensuse.org/request/show/436710
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysql-connector-python?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
8638d2e5b6
commit
3f2244bce1
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-mysql-connector-python
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,22 +17,16 @@
|
||||
|
||||
|
||||
Name: python-mysql-connector-python
|
||||
Version: 1.2.3
|
||||
Version: 2.1.4
|
||||
Release: 0
|
||||
Summary: MySQL driver written in Python
|
||||
License: SUSE-GPL-2.0-with-FLOSS-exception
|
||||
Group: Development/Languages/Python
|
||||
Url: http://dev.mysql.com/doc/connector-python/en/index.html
|
||||
Source: mysql-connector-python-%{version}.zip
|
||||
#Source: http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-%{version}.zip#md5=6d42998cfec6e85b902d4ffa5a35ce86
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: unzip
|
||||
Source: http://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-%{version}.tar.gz
|
||||
BuildRequires: python-base
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
MySQL driver written in Python which does not depend on MySQL C client libraries and implements the DB API v2.0 specification (PEP-249).
|
||||
@@ -47,12 +41,16 @@ python setup.py build
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
#FIXME(toabctl): Reenable testuite
|
||||
# probably won't work against mariadb 10
|
||||
# the test script is using rather deep details
|
||||
# of `mysql` table structure
|
||||
# --matejcik
|
||||
#%check
|
||||
#nosetests
|
||||
#python unittests.py --with-mysql=/usr
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README COPYING ChangeLog
|
||||
%doc README.txt CHANGES.txt LICENSE.txt
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user