14
0
forked from pool/python-lmdb

Accepting request 1225330 from home:bnavigator:branches:devel:languages:python:numeric

- 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
This commit is contained in:
2024-11-20 22:52:48 +00:00
committed by Git OBS Bridge
parent 509a84dbad
commit 346c27dc19
2 changed files with 13 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 20 16:01:02 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Modernize specfile
-------------------------------------------------------------------
Tue Nov 19 10:20:27 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -27,8 +27,10 @@ Source: https://files.pythonhosted.org/packages/source/l/lmdb/lmdb-%{ver
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
@@ -57,21 +59,19 @@ LMDB is a tiny database with the following properties:
%build
export LMDB_FORCE_SYSTEM=1
%python_build
%check
%python_exec setup.py develop --user
%python_exec -c 'import lmdb.cpython'
%pytest tests
%pyproject_wheel
%install
%python_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}*-info
%{python_sitearch}/lmdb-%{version}.dist-info
%changelog