forked from pool/python-lmdb
		
	- Modernize specfile OBS-URL: https://build.opensuse.org/request/show/1225330 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lmdb?expand=0&rev=29
		
			
				
	
	
		
			78 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
#
 | 
						||
# spec file for package python-lmdb
 | 
						||
#
 | 
						||
# Copyright (c) 2024 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-lmdb
 | 
						||
Version:        1.5.1
 | 
						||
Release:        0
 | 
						||
Summary:        Universal Python binding for the LMDB 'Lightning' Database
 | 
						||
License:        OLDAP-2.8
 | 
						||
Group:          Development/Languages/Python
 | 
						||
URL:            https://github.com/dw/py-lmdb/
 | 
						||
Source:         https://files.pythonhosted.org/packages/source/l/lmdb/lmdb-%{version}.tar.gz
 | 
						||
Patch1:         https://github.com/jnwatson/py-lmdb/pull/368/commits/206a3754466397baeb418e70be9d35b12cc4079f.patch#/py313-support.patch
 | 
						||
BuildRequires:  %{python_module cffi}
 | 
						||
BuildRequires:  %{python_module devel}
 | 
						||
BuildRequires:  %{python_module pip}
 | 
						||
BuildRequires:  %{python_module pytest}
 | 
						||
BuildRequires:  %{python_module setuptools}
 | 
						||
BuildRequires:  %{python_module wheel}
 | 
						||
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 don’t block writers,
 | 
						||
    writers don’t 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 system’s buffer cache.
 | 
						||
 | 
						||
%prep
 | 
						||
%autosetup -p1 -n lmdb-%{version}
 | 
						||
 | 
						||
%build
 | 
						||
export LMDB_FORCE_SYSTEM=1
 | 
						||
%pyproject_wheel
 | 
						||
 | 
						||
%install
 | 
						||
%pyproject_install
 | 
						||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
 | 
						||
 | 
						||
%check
 | 
						||
%pytest_arch
 | 
						||
 | 
						||
%files %{python_files}
 | 
						||
%license LICENSE
 | 
						||
%doc README.md ChangeLog
 | 
						||
%{python_sitearch}/lmdb
 | 
						||
%{python_sitearch}/lmdb-%{version}.dist-info
 | 
						||
 | 
						||
%changelog
 |