14
0
forked from pool/python-pyodbc
Files
python-pyodbc/python-pyodbc.spec
Dirk Mueller ff1aab1e82 - update to 4.0.39:
* Version 4.0.38 had a serious bug in Row.__repr__ which could
    cause crashes (#1196 ).
  * Version 5.0 is on its way and will drop support for Python 2.
    This release is a (hopefully final) bug fix release for
    the 4.x line.
  * added typing for Connection, Cursor, and connect parameters.
  * corrected the install location of the pyi file.
  * fixed Unicode errors in repr(row)
  * fixed more typing related issues by removing TypeAlias
  * arturxedex128 opened a security advisory for a buffer
    overflow if selecting a decimal more
  * than 100 digits long.  Fixed by Michael Kleehammer.
- drop fix_install_location_of_pyodbc.pyi.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyodbc?expand=0&rev=26
2023-04-17 19:06:05 +00:00

67 lines
2.0 KiB
RPMSpec

#
# spec file for package python-pyodbc
#
# Copyright (c) 2023 SUSE LLC
#
# 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/
#
Name: python-pyodbc
Version: 4.0.39
Release: 0
Summary: Python ODBC API
License: MIT
Group: Development/Languages/Python
URL: https://github.com/mkleehammer/pyodbc
Source: https://files.pythonhosted.org/packages/source/p/pyodbc/pyodbc-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: sqliteodbc
BuildRequires: unixODBC-devel
%python_subpackages
%description
pyodbc is a Python 2.x and 3.x module that allows you to use ODBC
to connect to almost any database.
It implements the Python Database API Specification v2.0, but
additional features have been added to simplify database programming
even more.
%prep
%setup -q -n pyodbc-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%check
export PYTHONDONTWRITEBYTECODE=1
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} export TESTDIRSUFFIX=%{$python_bin_suffix}
$python tests${TESTDIRSUFFIX::1}/sqlitetests.py -v "Driver=SQLITE3;Database=sqlite.db"
}
%files %{python_files}
%{python_sitearch}/pyodbc*-info
%{python_sitearch}/pyodbc.pyi
%{python_sitearch}/pyodbc*.so
%license LICENSE.txt
%doc README.md
%changelog