Name: pyp2spec Version: 0.8.0 Release: %autorelease Summary: Summary # Code is MIT, templates and files generated by the tool CC0 License: MIT AND MIT-0 URL: https://github.com/befeleme/pyp2spec Source0: /home/ksurma/rpmbuild/SOURCES/pyp2spec-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %description pyp2spec is a tool to generate working Fedora RPM spec files for Python projects. The produced spec files must be compliant with the current Python Packaging Guidelines (in effect since 2021). It utilizes the benefits of pyproject-rpm-macros. %prep %autosetup -p1 -n pyp2spec-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pyp2spec %check %pytest %files -f %{pyproject_files} %doc README.md %{_bindir}/pyp2spec %{_bindir}/conf2spec %{_bindir}/pyp2conf %changelog %autochangelog