forked from pool/python-berkeleydb
Accepting request 1242847 from home:glaubitz:branches:devel:languages:python
- Update to 18.1.13
* WARNING: Being able to compile the bindings on non x86/x86_64 Linux
systems (ARM, RISC-V, etc). This improvement required to change the
way compilation on Linux worked. If you find any issue with this,
please report.
* Compile the C module with extra static analysis and be more strict.
* Some functions have unused parameters that we would like to preserve.
* Different types in different python subinterpreters are tricky under
Py_LIMITED_API < Python 3.10. We will delete the workarounds when
Python 3.10 be the minimal supported version.
* Delete some unused parameters thru all the source code.
* Be explicit and complete in the sentinel values.
* Be explicit initializing (missing) docstrings.
* Rewrite some function prototypes to avoid warning when being strict
and to avoid unneeded function castings.
+ Functions METH_NOARGS require two parameters, although one of them
will be ignored.
* Be sure we don't wrap an unsigned int operation, bypassing an assertion.
* Update copyright to 2025.
* Oracle Berkeley DB>=5.3: Beside db.DB_VERSION_STRING we now have
db.DB_VERSION_FULL_STRING.
* Oracle Berkeley DB>=6.2: Beside db.DB_DBT_BLOB we now have
db.DB_DBT_EXT_FILE.
* Being able to test against an especific Oracle Berkeley DB release.
* Code cleanup:
+ Remove unnecessary semicolons in Python code.
+ Remove unused imports.
+ Split multiple imports in a single line.
+ Split multiple statements in multiple lines.
+ Delete dead assignments.
OBS-URL: https://build.opensuse.org/request/show/1242847
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-berkeleydb?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-berkeleydb
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,8 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-berkeleydb
|
||||
Version: 18.1.11
|
||||
Version: 18.1.13
|
||||
Release: 0
|
||||
Summary: Python bindings for Oracle Berkeley DB
|
||||
License: BSD-3-Clause
|
||||
@@ -56,6 +57,7 @@ This package contains the development files for %{name}
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n berkeleydb-%{version}
|
||||
sed -i '/\#\!\/usr\/bin\/env\ python/d' src/berkeleydb/dbshelve.py
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
|
||||
Reference in New Issue
Block a user