https://bugzilla.redhat.com/show_bug.cgi?id=2256466
Steve Cossette farchord@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |farchord@gmail.com
--- Comment #4 from Steve Cossette farchord@gmail.com --- 1- Remove all build requirements except for python3-devel and kf6-filesystem (kf6-rpm-macros is included in that, thus not needed here either)
2- Add the following build requirements, used for the import test: # Test dependencies: BuildRequires: python3dist(pytest) BuildRequires: python3dist(gv)
3- Add the following right after the %prep section, per https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/:
%generate_buildrequires %pyproject_buildrequires
4- %build section should only contain: %pyproject_wheel
5- %install section should only contain the following: %pyproject_install %pyproject_save_files kapidox
6- Some tests should be added in %check. Seems the meager test(s) in this package dont really work with %tox or %pytest, and the test script itself don't run with python. So we basically can only do an import test. Add a %check section, and add this in it: %pyproject_check_import
7- Change %files to: %files -f %{pyproject_files}
8- Remove the following from %files: %{python3_sitelib}/kapidox %{python3_sitelib}/kapidox-%{version}-py*.egg-info
9- Change licensing to SPDX: BSD-2-Clause AND CC0-1.0 AND LGPL-3.0-or-later
That should do it.