forked from pool/python-apsw
- Update to 3.42.0.1:
- Work with SQLite compiled with
SQLITE_OMIT_DEPRECATED. Connection.setprofile() was changed
from using the deprecated sqlite3_profile to sqlite3_trace_v2
giving the same results. When including the amalgamation,
SQLITE_OMIT_DEPRECATED is defined. (APSW issue 443)
- Shell updates adding various commands to match the SQLite
shell, as well as code and documentation improvements. (APSW
issue 397)
- Added Connection.read() and apsw.ext.dbinfo() to provide
information from the database and journal/wal files. The
shell command .dbinfo displays it.
- Added apsw.vfs_details(). The shell command .vfslist displays
it.
- Implemented VFS method xCurrentTimeInt64. The default SQLite
VFS no longer provide xCurrentTime (floating point version)
if SQLITE_OMIT_DEPRECATED is defined, so this is needed for
inheritance to work. (APSW issue 451)
- Backwards incompatible change: VFS If you override
xCurrentTime, then you will need to override
xCurrentTimeInt64 in the same way, or exclude
xCurrentTimeInt64 in VFS, or use iVersion of 1.
- speedtest now shows summary statistics, and improved help
text. (APSW issue 444)
- Clean up the SPEC file, use %pyproject_* macros instead.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apsw?expand=0&rev=37
This commit is contained in:
@@ -18,15 +18,17 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-apsw
|
||||
Version: 3.42.0.0
|
||||
Version: 3.42.0.1
|
||||
Release: 0
|
||||
Summary: Another Python SQLite Wrapper
|
||||
License: Zlib
|
||||
Group: Development/Libraries/Python
|
||||
URL: https://github.com/rogerbinns/apsw/
|
||||
Source: https://github.com/rogerbinns/apsw/archive/%{version}.tar.gz
|
||||
Source: https://github.com/rogerbinns/apsw/archive/refs/tags/%{version}.tar.gz#/apsw-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: pkgconfig(sqlite3) >= 3.42
|
||||
@@ -39,29 +41,25 @@ being a minimal layer over SQLite attempting just to translate the
|
||||
complete SQLite API into Python.
|
||||
|
||||
%prep
|
||||
%setup -q -n apsw-%{version}
|
||||
%autosetup -p1 -n apsw-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
#%%python_build
|
||||
%{python_expand $python setup.py build --enable-all-extensions --enable=load_extension}
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# python setup.py test is in this case very complicated home-brewn,
|
||||
# and using unittest, so it shouldn't be affected by changes in
|
||||
# setuptools.
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%{python_expand $python setup.py build_ext --inplace
|
||||
$python setup.py test
|
||||
$python setup.py clean
|
||||
}
|
||||
# gh#rogerbinns/apsw#462
|
||||
# export CFLAGS="%%{optflags} -fno-strict-aliasing"
|
||||
# %%pyunittest -v apsw/tests.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitearch}/*
|
||||
%{python_sitearch}/apsw
|
||||
%{python_sitearch}/apsw-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user