14
0
forked from pool/python-lmdb
Files
python-lmdb/python-lmdb.spec
Mia Herkt 13861e4ed3 - Update to v1.2.1 (no changes)
- Update to v1.2.0
  * Remove wheel generation for 2.7 because the manylinux images
    no longer support it.
  * Allow passing None as a value to transaction.del in CFFI
    implementation for parity with cpython implementation.
  * Fix Cursor.put behavior on a dupsort DB with append=True.
  * Add warning to docs about use of Environment.set_mapsize.
    This is currently an unresolved issue with upstream LMDB.
  * CFFI implementation:
    fix a seg fault when open_db returns map full.
  * CFFI implementation:
    fix a bug in open_db in a read-only environment.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lmdb?expand=0&rev=18
2021-04-20 02:12:28 +00:00

77 lines
2.6 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package python-lmdb
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-lmdb
Version: 1.2.1
Release: 0
Summary: Universal Python binding for the LMDB 'Lightning' Database
License: OLDAP-2.8
Group: Development/Languages/Python
URL: http://github.com/dw/py-lmdb/
Source: https://files.pythonhosted.org/packages/source/l/lmdb/lmdb-%{version}.tar.gz
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: lmdb-devel
BuildRequires: python-rpm-macros
%python_subpackages
%description
This is a universal Python binding for the LMDB 'Lightning' Database.
LMDB is a tiny database with the following properties:
* Ordered map interface (keys are always lexicographically sorted).
* Reader/writer transactions: readers dont block writers,
writers dont block readers.
Each environment supports one concurrent write transaction.
* Cheap read transactions.
* Environments may be opened by multiple processes on the same host.
* Multiple named databases may be created with transactions covering
all named databases.
* Memory mapped, allowing for zero copy lookup and iteration.
This is optionally exposed to Python using the buffer() interface.
* Maintenance requires no external process or background threads.
* No application-level caching is required:
LMDB uses the operating systems buffer cache.
%prep
%setup -q -n lmdb-%{version}
%build
export LMDB_FORCE_SYSTEM=1
%python_build
%check
%python_exec setup.py develop --user
%python_exec -c 'import lmdb.cpython'
%python_exec -m pytest -v tests
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %{python_files}
%license LICENSE
%doc README.md ChangeLog
%{python_sitearch}/*
%changelog