python-mysqlclient/python-mysqlclient.spec

119 lines
3.2 KiB
RPMSpec
Raw Normal View History

Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
#
# spec file for package python-mysqlclient-test
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
#
# Copyright (c) 2021 SUSE LLC
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Python2 support has been dropped in version 2.0.0
%define skip_python2 1
%define oldpython python
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-mysqlclient%{psuffix}
Version: 2.0.3
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
Release: 0
Summary: Python interface to MySQL
License: GPL-2.0-or-later
URL: https://github.com/PyMySQL/mysqlclient-python
Source: https://files.pythonhosted.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: libmysqlclient-devel
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildRequires: python3-attrs
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
BuildRequires: unzip
Recommends: mariadb
Provides: python-mysql = %{version}
Obsoletes: python-mysql < %{version}
Provides: python-MySQL-python = %{version}
Obsoletes: python-MySQL-python < %{version}
%if %{with test}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module mysqlclient >= %{version}}
BuildRequires: %{python_module pytest}
BuildRequires: mariadb-rpm-macros
%endif
%ifpython2
Provides: %{oldpython}-mysql = %{version}
Obsoletes: %{oldpython}-mysql < %{version}
Provides: %{oldpython}-MySQL-python = %{version}
Obsoletes: %{oldpython}-MySQL-python < %{version}
%endif
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%python_subpackages
%description
MySQLdb is an interface to the popular MySQL database server for Python.
This package adds Python 3 support and bug fixes to MySQLdb1.
%prep
%setup -q -n mysqlclient-%{version}
%build
%if !%{with test}
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%python_build
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%endif
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%check
%if %{with test}
exit_code=0
cconf=abuild-myclient.cnf
#
# start the mariadb server
#
%mysql_testserver_start -u auth_db_user -p auth_db_pass -d test_database
#
# creating client mysql config
#
%mysql_testserver_cconf -n $cconf -d test_database
#
# running the test
#
rm -r MySQLdb
export TESTDB="$PWD/$cconf"
%pytest_arch -k "not (test_LONG or test_TEXT)" || exit_code=1
#
# stopping mariadb
#
%mysql_testserver_stop
exit $exit_code
%endif
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%install
%if !%{with test}
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%endif
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%if !%{with test}
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%files %{python_files}
%license LICENSE
%doc HISTORY.rst MANIFEST.in README.md build/sphinx/html
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%{python_sitearch}/*
%endif
Accepting request 619460 from home:awissu - Switch to fork of MySQLdb1 - Update a package description - Build with python3 and python2 (singlespec) - Mark obsolete packages: python-mysql, python-MySQL-python - Spec file cleanup - Fix build on non-SUSE distros by conditionalizing Recommends: tag - Update to version 1.2.4 + No changelog available - Set correct Group : Development/Languages/Python - Use download Url as source - Spec file general clean-up - Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try to use unavailable python-distribute - Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags - Add unzip requirement to support tarball format - Add python-Sphinx requirement and generate html documentation - Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch} in %files instead - Package GPL-2.0, HISTORY and Sphinx documentation - fix the previous fix, patch went upstream - update to 1.2.3 - no upstream changelog available - taking out the reconnect patch as the upstream sources contain a very specific comment that this means trouble - removed usage of deprecated sets module (bnc#462974) - update to 1.2.2 - various bugfixes - much better support for mysql5 - python2.5 support (crude, though, let's keep our patch for a while) - switch from distutils to setuptools - added patch supporting reconnect in mysql5 - update to 1.2.1_p2 - support for some new features of mysql 4.1 and 5.0 - fixes for 64bit bugs due to PEP353 - updated to reflect python changes due to #149809 - converted neededforbuild to BuildRequires - update to 1.2.0 - update to 1.1.9 (MySQL 4.1 support) - updated to 1.1.1 - fixed lib64 build - update to 1.1.0 - drop python 2.1 support - build as user - updated to 0.9.3a2: * Add some support for Python 2.3 datetime classes. * Removed some casts in _mysql_init() that caused problems with Python 2.3. The type for tp_free was changed from destructor to freefunc. Removing the casts make both 2.2 and 2.3 happy. * Fixed the bug that prevented member access. * Embedded server support. Can't get it use InnoDB tables yet. However, MyISAM (default) tables seem to work fine. - one source package for both python versions - added few more files to docs - builds on lib64 - updated to 0.9.2 - use record-rpm - use versioned dependency on python - using build root - file list is correct on lib64 arches - up to 0.9.1 to make it build on python-2.2 - Add mysql-shared to neededforbuild. - initial version 0.9.0 OBS-URL: https://build.opensuse.org/request/show/619460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysqlclient?expand=0&rev=1
2018-06-30 08:55:38 +00:00
%changelog