%global debug_package %{nil} Name: rpmtool Version: 0.2.0 Release: 3%{?dist} Summary: A CLI for rpm packages. License: GPL-2.0 URL: https://github.com/ps-gill/rpmtool Source0: https://github.com/ps-gill/rpmtool/archive/refs/tags/v%{version}.tar.gz ExclusiveArch: x86_64 BuildRequires: git BuildRequires: golang-bin BuildRequires: rpm-devel Requires: dnf-plugins-core Requires: gnupg2 Requires: rpm Requires: rpmdevtools Requires: rpm-build Requires: rpm-libs Requires: rpm-sign Conflicts: python3-rpmtool %description A CLI for rpm packages. %prep %autosetup -n %{name}-%{version} %build go build %install install --mode=0755 -D rpmtool %{buildroot}%{_bindir}/rpmtool %files %doc README.md %license LICENSE %{_bindir}/rpmtool %changelog %autochangelog