Use pyproject-rpm-macros

This replaces %py3_build and %py3_install that rely on deprecated
setuptools functionality.
This commit is contained in:
Maxwell G 2023-06-07 21:35:12 +00:00
parent 6672bb2e7a
commit edae475603
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -9,7 +9,6 @@ Source0: %{pypi_source pathspec}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest
@ -32,23 +31,26 @@ is derived from Rsync's wildmatch. Git uses wildmatch for its gitignore files.
%autosetup -n pathspec-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files pathspec
%check
%pytest
%files -n python3-pathspec
%files -n python3-pathspec -f %{pyproject_files}
%doc README.rst
%license LICENSE
%{python3_sitelib}/pathspec
%{python3_sitelib}/pathspec-%{version}-py%{python3_version}.egg-info
%changelog