15
0
forked from pool/python-bsddb3
Files
python-bsddb3/python-bsddb3.spec
Dirk Mueller 5a48bd6971 - update to 6.2.9:
* For some reason, 6.2.8 release was incomplete. Let's try again.
  * In Python 3.9, "find_unused_port" has been moved to
    "test.support.socket_helper". Reported by Michał Górny.
  * If we use "set_get_returns_none()" in the environment,
    the value could not be correctly inherited by the child
    databases. Reported by Patrick Laimbock and modern GCC
    warnings.
  * If you install this library under Python 3 >= 3.6, let
    you know this is a legacy library and urges you to
    migrate to "berkeleydb" library.
  * Update copyright notices.
  * https links.
  * Fix Python 3 deprecation warning.
    Notified by Arthur Gautier.
  * Fix compilation Python 3.8 deprecation warnings.
  * Fix compilation Python 3.9 deprecation warnings.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bsddb3?expand=0&rev=35
2020-12-29 13:41:00 +00:00

79 lines
2.5 KiB
RPMSpec

#
# spec file for package python-bsddb3
#
# Copyright (c) 2020 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-bsddb3
Version: 6.2.9
Release: 0
Summary: Python interface for Berkeley DB
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: http://pypi.python.org/pypi/bsddb3
#Freecode-URL: https://www.jcea.es/programacion/pybsddb.htm
Source: https://files.pythonhosted.org/packages/source/b/bsddb3/bsddb3-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: db-devel
BuildRequires: python-rpm-macros
BuildRequires: python3-testsuite
%python_subpackages
%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
bsddb3.db module.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%description 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
bsddb3.db module.
This package contains the development files for %{name}
%prep
%setup -q -n bsddb3-%{version}
sed -i "1d" Lib/bsddb/dbshelve.py # Fix non-executable bits
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
%python_expand rm -rf %{buildroot}%{$python_sitearch}/bsddb3/tests
%check
%python_exec test.py
%files %{python_files}
%doc ChangeLog README.txt TODO.txt docs/*
%license licenses.txt LICENSE.txt
%{python_sitearch}/*
%files %{python_files devel}
%license licenses.txt LICENSE.txt
%{_includedir}/python%{python_version}*/bsddb3
%changelog