1
0

Compare commits

2 Commits

2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 9 05:08:58 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 22 20:34:43 UTC 2023 - Matthias Bach <marix@marix.org> Wed Nov 22 20:34:43 UTC 2023 - Matthias Bach <marix@marix.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-editdistance # spec file for package python-editdistance
# #
# Copyright (c) 2023 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
@@ -15,6 +15,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%{?sle15allpythons} %{?sle15allpythons}
Name: python-editdistance Name: python-editdistance
@@ -27,8 +28,10 @@ URL: https://www.github.com/aflc/editdistance
Source: https://github.com/roy-ht/editdistance/archive/refs/tags/v%{version}.tar.gz#/editdistance-%{version}.tar.gz Source: https://github.com/roy-ht/editdistance/archive/refs/tags/v%{version}.tar.gz#/editdistance-%{version}.tar.gz
BuildRequires: %{python_module Cython} BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
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: gcc-c++ BuildRequires: gcc-c++
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -56,10 +59,10 @@ This package contains the files needed for binding the %{name} C module.
%setup -q -n editdistance-%{version} %setup -q -n editdistance-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
@@ -70,7 +73,7 @@ This package contains the files needed for binding the %{name} C module.
%doc README.rst %doc README.rst
%exclude %{python_sitearch}/editdistance/*.h %exclude %{python_sitearch}/editdistance/*.h
%{python_sitearch}/editdistance %{python_sitearch}/editdistance
%{python_sitearch}/editdistance-%{version}*info %{python_sitearch}/editdistance-%{version}.dist-info
%files %{python_files devel} %files %{python_files devel}
%{python_sitearch}/editdistance/*.h %{python_sitearch}/editdistance/*.h