14
0

- Switch to pyproject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythonfinder?expand=0&rev=23
This commit is contained in:
2025-06-11 06:26:52 +00:00
committed by Git OBS Bridge
parent 465e6654a1
commit 3952a6d4e5
2 changed files with 14 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 11 05:56:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Mon Feb 6 06:22:28 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pythonfinder
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,9 @@ URL: https://github.com/sarugaku/pythonfinder
Source: https://github.com/sarugaku/pythonfinder/archive/refs/tags/v%{version}.tar.gz#/pythonfinder-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#sarugaku/pythonfinder#127
Patch0: support-packaging-22.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 36.2.2}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-attrs
@@ -61,10 +63,10 @@ sed -i '/addopts/d' setup.cfg
rm -rf src/pythonfinder/_vendor/pep514tools
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pyfinder
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -83,6 +85,7 @@ rm -rf src/pythonfinder/_vendor/pep514tools
%doc CHANGELOG.rst README.rst
%license LICENSE.txt
%python_alternative %{_bindir}/pyfinder
%{python_sitelib}/*
%{python_sitelib}/pythonfinder
%{python_sitelib}/pythonfinder-%{version}.dist-info
%changelog