15
0

Accepting request 577102 from home:winski:python

- Update to 2.1.7
- Convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/577102
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysql-connector-python?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal
2018-02-16 10:01:39 +00:00
committed by Git OBS Bridge
parent 3f2244bce1
commit 5618ef8498
4 changed files with 65 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-mysql-connector-python
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -16,17 +16,22 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mysql-connector-python
Version: 2.1.4
Version: 2.1.7
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
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%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).
@@ -35,21 +40,23 @@ MySQL driver written in Python which does not depend on MySQL C client libraries
%setup -q -n mysql-connector-python-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# bug in setuptools prevents proper c lib installation
# when using python_install so use custom python_exec instead
%python_exec setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#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
#check
#python unittests.py --with-mysql=/usr
%files
%defattr(-,root,root,-)
%files %{python_files}
%doc README.txt CHANGES.txt LICENSE.txt
%{python_sitelib}/*