Compare commits

2 Commits

2 changed files with 16 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 12 14:28:35 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 11 01:51:53 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com> Wed Nov 11 01:51:53 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-PyTrie # spec file for package python-PyTrie
# #
# Copyright (c) 2020 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
@@ -16,8 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-PyTrie Name: python-PyTrie
Version: 0.4.0 Version: 0.4.0
Release: 0 Release: 0
@@ -25,14 +23,16 @@ Summary: A pure Python implementation of the trie data structure
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/gsakkis/pytrie/ URL: https://github.com/gsakkis/pytrie/
Source: https://files.pythonhosted.org/packages/source/P/PyTrie/PyTrie-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/PyTrie/PyTrie-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sortedcontainers} BuildRequires: %{python_module sortedcontainers}
BuildRequires: %{python_module testsuite} BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-sortedcontainers Requires: python-sortedcontainers
Provides: python-pytrie Provides: python-pytrie = %{version}
Obsoletes: python-pytrie Obsoletes: python-pytrie < %{version}
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -49,18 +49,20 @@ prefix, and vice versa, finding the items whose keys are prefixes of a given key
%autopatch -p1 %autopatch -p1
%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
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest discover %pyunittest
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python_sitelib}/* %{python_sitelib}/pytrie.py
%{python_sitelib}/[Pp]y[Tt]rie-%{version}*-info
%pycache_only %{python_sitelib}/__pycache__/pytrie*
%changelog %changelog