forked from pool/python-pythonfinder
- 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:
@@ -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>
|
Mon Feb 6 06:22:28 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pythonfinder
|
# 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
|
# 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,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
|
Source: https://github.com/sarugaku/pythonfinder/archive/refs/tags/v%{version}.tar.gz#/pythonfinder-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM gh#sarugaku/pythonfinder#127
|
# PATCH-FIX-UPSTREAM gh#sarugaku/pythonfinder#127
|
||||||
Patch0: support-packaging-22.patch
|
Patch0: support-packaging-22.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools >= 36.2.2}
|
BuildRequires: %{python_module setuptools >= 36.2.2}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-attrs
|
Requires: python-attrs
|
||||||
@@ -34,7 +36,7 @@ Requires: python-click
|
|||||||
Requires: python-packaging >= 22.0
|
Requires: python-packaging >= 22.0
|
||||||
Requires: python-vistir >= 0.2.5
|
Requires: python-vistir >= 0.2.5
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module attrs}
|
BuildRequires: %{python_module attrs}
|
||||||
@@ -61,10 +63,10 @@ sed -i '/addopts/d' setup.cfg
|
|||||||
rm -rf src/pythonfinder/_vendor/pep514tools
|
rm -rf src/pythonfinder/_vendor/pep514tools
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyfinder
|
%python_clone -a %{buildroot}%{_bindir}/pyfinder
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@@ -83,6 +85,7 @@ rm -rf src/pythonfinder/_vendor/pep514tools
|
|||||||
%doc CHANGELOG.rst README.rst
|
%doc CHANGELOG.rst README.rst
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python_alternative %{_bindir}/pyfinder
|
%python_alternative %{_bindir}/pyfinder
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pythonfinder
|
||||||
|
%{python_sitelib}/pythonfinder-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user