1
0
forked from pool/python-pyodbc

Accepting request 865075 from home:Monex:Database

The build for openSUSE factory fails at the moment, because of different python3 flavors. The spec file was updated to handle the case of different flavors so that the build succeeds.

OBS-URL: https://build.opensuse.org/request/show/865075
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyodbc?expand=0&rev=21
This commit is contained in:
Dirk Mueller 2021-01-21 08:34:30 +00:00 committed by Git OBS Bridge
parent ac3a23d0b3
commit 2dd7fe4b0d
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 20 20:12:59 UTC 2021 - Dirk Hartmann <2monex@gmx.net>
- Updated spec file for compatibility with different python3
flavours.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 20 12:10:57 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com> Fri Mar 20 12:10:57 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pyodbc # spec file for package python-pyodbc
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -43,8 +43,6 @@ even more.
%prep %prep
%setup -q -n pyodbc-%{version} %setup -q -n pyodbc-%{version}
mv tests2 tests-%{python2_bin_suffix}
mv tests3 tests-%{python3_bin_suffix}
%build %build
%python_build %python_build
@ -54,8 +52,8 @@ mv tests3 tests-%{python3_bin_suffix}
%check %check
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} export TESTDIRSUFFIX=%{$python_bin_suffix}
$python tests-%{$python_bin_suffix}/sqlitetests.py -v "Driver=SQLITE3;Database=sqlite.db" $python tests${TESTDIRSUFFIX::1}/sqlitetests.py -v "Driver=SQLITE3;Database=sqlite.db"
} }
%files %{python_files} %files %{python_files}