7
0
Files
python3-immutables/python3-immutables.spec
2026-01-30 12:28:41 +01:00

58 lines
1.6 KiB
RPMSpec

#
# spec file for package python3-immutables
#
# Copyright (c) 2022 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/
#
Name: python3-immutables
Version: 0.11
Release: 0
Summary: Immutable collections for Python
License: Apache-2.0
URL: https://github.com/MagicStack/immutables
Source: https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz
Patch0: py38.patch
BuildRequires: fdupes
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-setuptools
%description
Immutable collections for Python.
%prep
%setup -q -n immutables-%{version}
%patch0 -p1
sed -i 's/\.system//' setup.py
%build
export CFLAGS="%{optflags}"
%py3_build
%install
%py3_install
%fdupes %{buildroot}%{python3_sitearch}
%check
%{__python3} setup.py test
%files
%doc README.rst
%license LICENSE
%{python3_sitearch}/immutables
%{python3_sitearch}/immutables-%{version}-py%{python3_version}.egg-info
%changelog