Name: python-rpmtool Version: 0.6.0 Release: 1%{?dist} Summary: Tool for rpm License: GPLv2 URL: https://gitlab.com/pgill/python-rpmtool Source0: https://gitlab.com/pgill/python-rpmtool/-/archive/v%{version}/python-rpmtool-v%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm+toml BuildRequires: python3-wheel %global _description %{expand: Tool for rpm.} %description %_description %package -n python3-rpmtool Summary: %{summary} Requires: dnf-plugins-core Requires: rpm-build Requires: rpmdevtools %description -n python3-rpmtool %_description %prep %autosetup -n python-rpmtool-v%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l rpmtool %files -n python3-rpmtool -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/rpmtool %changelog %autochangelog