Convert to pyproject-rpm-macros
This commit is contained in:
parent
e3f158b531
commit
e595f10324
@ -26,7 +26,6 @@ BuildRequires: gcc
|
||||
BuildRequires: sed
|
||||
BuildRequires: make
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
# Test dependencies
|
||||
BuildRequires: procps-ng
|
||||
|
||||
@ -67,12 +66,18 @@ find psutil -name \*.py | while read file; do
|
||||
done
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files psutil
|
||||
|
||||
|
||||
# Ignore tests when building with flatpak-module-tools to avoid build failures
|
||||
# when building inside VMs or containers. Flatpaks would usually build this package
|
||||
@ -87,11 +92,9 @@ done
|
||||
make test APPVEYOR=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitearch}
|
||||
%endif
|
||||
|
||||
%files -n python%{python3_pkgversion}-psutil
|
||||
%license LICENSE
|
||||
|
||||
%files -n python%{python3_pkgversion}-psutil -f %{pyproject_files}
|
||||
%doc CREDITS HISTORY.rst README.rst
|
||||
%{python3_sitearch}/psutil/
|
||||
%{python3_sitearch}/psutil-%{version}-py%{python3_version}.egg-info/
|
||||
%exclude %{python3_sitearch}/psutil/tests
|
||||
|
||||
%files -n python%{python3_pkgversion}-psutil-tests
|
||||
|
Loading…
Reference in New Issue
Block a user