11
0

2 Commits

2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 2 05:34:49 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Actually run fdupes.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 23 20:25:25 UTC 2024 - Dirk Müller <dmueller@suse.com> Wed Oct 23 20:25:25 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-immutables # spec file for package python-immutables
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,8 +25,10 @@ License: Apache-2.0
URL: https://github.com/MagicStack/immutables URL: https://github.com/MagicStack/immutables
Source: https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/i/immutables/immutables-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%python_subpackages %python_subpackages
@@ -39,10 +41,11 @@ Immutable collections for Python.
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
export IMMU_SKIP_MYPY_TESTS=1 export IMMU_SKIP_MYPY_TESTS=1
@@ -52,6 +55,6 @@ export IMMU_SKIP_MYPY_TESTS=1
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitearch}/immutables %{python_sitearch}/immutables
%{python_sitearch}/immutables-%{version}*-info %{python_sitearch}/immutables-%{version}.dist-info
%changelog %changelog