# Created by pyp2rpm-3.3.7 %global pypi_name berkeleydb %global pypi_version 18.1.4 Name: python-%{pypi_name} Version: %{pypi_version} Release: 6%{?dist} Summary: Python bindings for Oracle Berkeley DB # For a breakdown of the licensing, see licenses.txt License: BSD and ZPLv2.0 URL: https://www.jcea.es/programacion/pybsddb.htm Source0: %{pypi_source} BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: gcc BuildRequires: libdb-devel BuildRequires: chrpath %description This module provides a nearly complete wrapping of the Oracle/Sleepycat C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and Transaction objects, and each of these is exposed as a Python type in the berkeleydb.db module. The database objects can use various access methods: btree, hash, recno, queue and heap. Complete support of Oracle Berkeley DB distributed transactions. Complete support for Oracle Berkeley DB Replication Manager. Complete support for Oracle Berkeley DB Base Replication. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} This module provides a nearly complete wrapping of the Oracle/Sleepycat C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and Transaction objects, and each of these is exposed as a Python type in the berkeleydb.db module. The database objects can use various access methods: btree, hash, recno, queue and heap. Complete support of Oracle Berkeley DB distributed transactions. Complete support for Oracle Berkeley DB Replication Manager. Complete support for Oracle Berkeley DB Base Replication. %package -n python3-%{pypi_name}-devel Summary: %{summary} Requires: python3-%{pypi_name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description -n python3-%{pypi_name}-devel This module provides a nearly complete wrapping of the Oracle/Sleepycat C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and Transaction objects, and each of these is exposed as a Python type in the berkeleydb.db module. The database objects can use various access methods: btree, hash, recno, queue and heap. Complete support of Oracle Berkeley DB distributed transactions. Complete support for Oracle Berkeley DB Replication Manager. Complete support for Oracle Berkeley DB Base Replication. %prep %autosetup -n %{pypi_name}-%{pypi_version} %build %py3_build %install %py3_install chrpath --delete $RPM_BUILD_ROOT%{python3_sitearch}/berkeleydb/_berkeleydb.cpython-*-linux-gnu*so sed -i /env\ python/d $RPM_BUILD_ROOT%{python3_sitearch}/berkeleydb/dbshelve.py %files -n python3-%{pypi_name} %license LICENSE.txt licenses.txt %doc README.txt %{python3_sitearch}/%{pypi_name} %{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info %files -n python3-%{pypi_name}-devel %{_includedir}/python%{python3_version}/berkeleydb/ %changelog * Fri Jul 22 2022 Fedora Release Engineering - 18.1.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 18.1.4-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 18.1.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 12 2022 Gwyn Ciesla - 18.1.4-3 - Review fixes. * Wed Jan 12 2022 Gwyn Ciesla - 18.1.4-2 - Review fixes. * Wed Jan 12 2022 Gwyn Ciesla - 18.1.4-1 - Initial package.