15
0
Files
python-mysql-connector-python/python-mysql-connector-python.spec
Jan Matejek 3f2244bce1 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
2016-10-21 15:45:01 +00:00

57 lines
1.8 KiB
RPMSpec

#
# spec file for package python-mysql-connector-python
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-mysql-connector-python
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: http://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-%{version}.tar.gz
BuildRequires: python-base
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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).
%prep
%setup -q -n mysql-connector-python-%{version}
%build
python setup.py build
%install
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
#python unittests.py --with-mysql=/usr
%files
%defattr(-,root,root,-)
%doc README.txt CHANGES.txt LICENSE.txt
%{python_sitelib}/*
%changelog