forked from pool/python-pylev
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylev?expand=0&rev=9
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 10 08:09:24 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 8 07:08:19 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
Mon May 8 07:08:19 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pylev
|
# spec file for package python-pylev
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -27,7 +27,9 @@ URL: https://github.com/toastdriven/pylev
|
|||||||
Source: https://files.pythonhosted.org/packages/source/p/pylev/pylev-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pylev/pylev-%{version}.tar.gz
|
||||||
Source1: https://raw.githubusercontent.com/toastdriven/pylev/master/LICENSE
|
Source1: https://raw.githubusercontent.com/toastdriven/pylev/master/LICENSE
|
||||||
Source2: https://raw.githubusercontent.com/toastdriven/pylev/master/tests.py
|
Source2: https://raw.githubusercontent.com/toastdriven/pylev/master/tests.py
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -41,10 +43,10 @@ A pure Python Levenshtein implementation.
|
|||||||
cp %{SOURCE1} %{SOURCE2} .
|
cp %{SOURCE1} %{SOURCE2} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -53,6 +55,7 @@ cp %{SOURCE1} %{SOURCE2} .
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pylev
|
||||||
|
%{python_sitelib}/pylev-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user