forked from pool/python-BTrees
- Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-BTrees?expand=0&rev=42
This commit is contained in:
90
python-BTrees.spec
Normal file
90
python-BTrees.spec
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package python-BTrees
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2015-2022 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/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-BTrees
|
||||
Version: 6.1
|
||||
Release: 0
|
||||
Summary: Persistent B-tree object containers for Python
|
||||
License: ZPL-2.1
|
||||
URL: https://github.com/zopefoundation/BTrees
|
||||
Source: https://files.pythonhosted.org/packages/source/b/btrees/btrees-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel >= 3.8}
|
||||
BuildRequires: %{python_module persistent-devel >= 4.1.0}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module transaction}
|
||||
BuildRequires: %{python_module wheel}
|
||||
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
|
||||
Provides: %{name}-doc = %{version}-%{release}
|
||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%setup -q -n btrees-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%{python_expand rm %{buildroot}%{$python_sitearch}/BTrees/*.c
|
||||
%fdupes %{buildroot}%{$python_sitearch}
|
||||
}
|
||||
|
||||
%check
|
||||
# the failing tests would require this step which setup.py test did:
|
||||
#%%{python_expand cp build/lib.linux-*/BTrees/*.so src/BTrees/}
|
||||
# it can be overcome with --import-mode=append
|
||||
%pytest_arch -k 'not testPurePython and not testSubclassesCanHaveAttributes and not testCannotSetArbitraryAttributeOnBase'
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst PKG-INFO
|
||||
%license COPYRIGHT.txt LICENSE.txt
|
||||
%exclude %{python_sitearch}/BTrees/*.h
|
||||
%{python_sitearch}/BTrees
|
||||
%{python_sitearch}/btrees-%{version}.dist-info
|
||||
|
||||
%files %{python_files devel}
|
||||
%{python_sitearch}/BTrees/*.h
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user