2014-09-23 13:40:06 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-mysql-connector-python
|
|
|
|
|
#
|
2025-07-05 10:30:44 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2014-09-23 13:40:06 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-12-04 13:42:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-10-22 14:22:54 +00:00
|
|
|
#
|
2014-09-23 13:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-mysql-connector-python
|
2025-07-05 10:30:44 +00:00
|
|
|
Version: 9.3.0
|
2014-09-23 13:40:06 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: MySQL driver written in Python
|
2014-10-22 14:22:54 +00:00
|
|
|
License: SUSE-GPL-2.0-with-FLOSS-exception
|
2014-09-23 13:40:06 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 17:17:21 +00:00
|
|
|
URL: http://dev.mysql.com/doc/connector-python/en/index.html
|
2023-11-01 15:51:11 +00:00
|
|
|
# GitHub: https://github.com/mysql/mysql-connector-python
|
|
|
|
|
Source: https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-%{version}-src.tar.gz
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module protobuf}
|
2024-10-21 12:29:37 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-02-16 10:01:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-11-01 15:51:11 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-02-16 10:01:39 +00:00
|
|
|
BuildRequires: fdupes
|
2023-11-01 15:51:11 +00:00
|
|
|
BuildRequires: gcc-c++
|
2024-10-21 12:29:37 +00:00
|
|
|
BuildRequires: mariadb
|
2018-02-16 10:01:39 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-06-11 11:29:09 +00:00
|
|
|
Requires: python-dnspython
|
|
|
|
|
Requires: python-protobuf
|
2018-02-16 10:01:39 +00:00
|
|
|
%python_subpackages
|
2014-09-23 13:40:06 +00:00
|
|
|
|
|
|
|
|
%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
|
2024-10-21 12:29:37 +00:00
|
|
|
%autosetup -p1 -n mysql-connector-python-%{version}-src
|
2014-09-23 13:40:06 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-10-21 12:29:37 +00:00
|
|
|
pushd mysql-connector-python
|
2018-02-16 10:01:39 +00:00
|
|
|
%python_build
|
2024-10-21 12:29:37 +00:00
|
|
|
popd
|
|
|
|
|
pushd mysqlx-connector-python
|
|
|
|
|
%python_build
|
|
|
|
|
popd
|
2014-09-23 13:40:06 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-10-21 12:29:37 +00:00
|
|
|
pushd mysql-connector-python
|
|
|
|
|
%python_install
|
|
|
|
|
popd
|
|
|
|
|
pushd mysqlx-connector-python
|
2023-11-01 15:51:11 +00:00
|
|
|
%python_install
|
2024-10-21 12:29:37 +00:00
|
|
|
popd
|
2023-11-01 15:51:11 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2014-09-23 13:40:06 +00:00
|
|
|
|
|
|
|
|
#FIXME(toabctl): Reenable testuite
|
2016-10-21 15:45:01 +00:00
|
|
|
# probably won't work against mariadb 10
|
|
|
|
|
# the test script is using rather deep details
|
|
|
|
|
# of `mysql` table structure
|
|
|
|
|
# --matejcik
|
2018-02-16 10:01:39 +00:00
|
|
|
#check
|
2016-10-21 15:45:01 +00:00
|
|
|
#python unittests.py --with-mysql=/usr
|
2014-09-23 13:40:06 +00:00
|
|
|
|
2018-02-16 10:01:39 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:17:21 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc README.txt CHANGES.txt
|
2023-11-01 15:51:11 +00:00
|
|
|
%{python_sitearch}/mysql
|
|
|
|
|
%{python_sitearch}/mysql*.egg-info
|
|
|
|
|
%{python_sitearch}/mysqlx
|
2014-09-23 13:40:06 +00:00
|
|
|
|
|
|
|
|
%changelog
|