15
0
forked from pool/python-BTrees
Files
python-BTrees/python-BTrees.spec
Tomáš Chvátal 4c0ad9b8a0 Accepting request 788263 from home:mcalabkova:branches:devel:languages:python
- update to 4.7.1
  * Ensure the interface resolution order of all objects is consistent.
    See `issue 137 <https://github.com/zopefoundation/BTrees/issues/137>`_.
  * Add unsigned variants of the trees. These use the initial "U" for
    32-bit data and "Q" for 64-bit data (for "quad", which is similar to
    what the C ``printf`` function uses and the Python struct module
    uses).
  * Fix the value for ``BTrees.OIBTree.using64bits`` when using the pure Python
    implementation (PyPy and when ``PURE_PYTHON`` is in the environment).
  * Make the errors that are raised when values are out of range more
    consistent between Python 2 and Python 3 and between 32-bit and
    64-bit variants.
  * Make the Bucket types consistent with the BTree types as updated in
    versions 4.3.2: Querying for keys with default comparisons or that
    are not integers no longer raises ``TypeError``.

OBS-URL: https://build.opensuse.org/request/show/788263
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-BTrees?expand=0&rev=18
2020-03-25 16:18:30 +00:00

99 lines
3.1 KiB
RPMSpec

#
# spec file for package python-BTrees
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# 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-BTrees
Version: 4.7.1
Release: 0
Summary: Persistent B-tree object containers for Python
License: ZPL-2.1
URL: http://www.zope.org/Products/ZODB
Source: https://files.pythonhosted.org/packages/source/B/BTrees/BTrees-%{version}.tar.gz
# Documentation requirements:
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module persistent-devel >= 4.1.0}
BuildRequires: %{python_module repoze.sphinx.autointerface}
BuildRequires: %{python_module setuptools}
# Testing requirements:
BuildRequires: %{python_module transaction}
BuildRequires: %{python_module zope.interface}
BuildRequires: %{python_module zope.testrunner}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-persistent >= 4.1.0
Requires: python-zope.interface
%python_subpackages
%description
This package contains a generic BTrees implementation for Python. It is
mainly used by the ZODB, though.
Note that the data manager API, BTrees.interfaces.IDataManager, is
syntactically simple, but semantically complex. The semantics were not easy to
express in the interface. This could probably use more work. The semantics are
presented in detail through examples of a sample data manager in
BTrees.tests.test_SampleDataManager.
%package devel
Summary: Development files for the python-BTrees module
Requires: %{name} = %{version}
%description devel
This package contains the files needed for binding the %{name} C module.
%package doc
Summary: Documentation for the python-BTrees module
Requires: %{name} = %{version}
%description doc
This package contains documentation files for %{name}.
%prep
%setup -q -n BTrees-%{version}
rm -rf BTrees.egg-info
%build
%python_build
%{_python_use_flavor python3}
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
%python_install
%{python_expand rm %{buildroot}%{$python_sitearch}/BTrees/*.c
%fdupes %{buildroot}%{$python_sitearch}
}
%check
%python_exec setup.py -q test
%files %{python_files}
%doc CHANGES.rst README.rst PKG-INFO
%license COPYRIGHT.txt LICENSE.txt
%exclude %{python_sitearch}/BTrees/*.h
%{python_sitearch}/*
%files %{python_files devel}
%{python_sitearch}/BTrees/*.h
%files %{python_files doc}
%doc build/sphinx/html/
%changelog