2022-08-01 08:38:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-recordclass
|
|
|
|
#
|
2025-04-04 00:58:10 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2022-08-01 08:38:43 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-recordclass
|
2024-08-05 19:13:23 +00:00
|
|
|
Version: 0.22.1
|
2022-08-01 08:38:43 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library implementing a mutable variant of namedtuple
|
|
|
|
License: MIT
|
2023-12-29 09:36:21 +00:00
|
|
|
URL: https://github.com/intellimath/recordclass
|
2022-08-01 08:38:43 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/recordclass/recordclass-%{version}.tar.gz
|
2025-04-04 00:58:10 +00:00
|
|
|
# PATCH-FIX-UPSTREAM Based on gh#intellimath/recordclass#338044cbf771e5665a744d3b36b5d7edd126d16a
|
|
|
|
Patch0: do-not-use-pytuple-get-size.patch
|
2022-08-01 08:38:43 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2024-08-05 19:13:23 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-08-01 08:38:43 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-08-05 19:13:23 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2022-08-01 08:38:43 +00:00
|
|
|
BuildRequires: fdupes
|
2022-10-07 07:52:26 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-08-01 08:38:43 +00:00
|
|
|
# SECTION Test requirements
|
|
|
|
BuildRequires: %{python_module psutil}
|
|
|
|
BuildRequires: %{python_module pyperf}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mutable variant of namedtuple -- recordclass, which support assignments, and
|
|
|
|
other memory saving variants.
|
|
|
|
|
|
|
|
%prep
|
2025-04-04 00:58:10 +00:00
|
|
|
%autosetup -p1 -n recordclass-%{version}
|
2022-08-01 08:38:43 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
2024-08-05 19:13:23 +00:00
|
|
|
%pyproject_wheel
|
2022-08-01 08:38:43 +00:00
|
|
|
|
|
|
|
%install
|
2024-08-05 19:13:23 +00:00
|
|
|
%pyproject_install
|
2022-08-01 08:38:43 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# Crashes when run using pytest
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} python%{$python_version} test_all.py
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{python_sitearch}/recordclass/
|
2024-08-05 19:13:23 +00:00
|
|
|
%{python_sitearch}/recordclass-%{version}.dist-info
|
2022-08-01 08:38:43 +00:00
|
|
|
|
|
|
|
%changelog
|