%global pypi_name dnstool Name: %{pypi_name} Version: 0.1.0 Release: 1%{?dist} Summary: Tool for getting all DNS records for a hostname License: MIT URL: https://github.com/aheath1992/dnstool Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # No manual Requires: %%pyproject_save_files generates # python3.Xdist(dnspython) >= 2.8 from the wheel metadata. %global _description %{expand: A CLI tool for forward and reverse DNS lookups. Queries both your local (internal) resolver and an external nameserver side by side so you can compare results.} %description %_description %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files main %files -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/dnstool %changelog * Tue Oct 06 2026 Andrew Heath - 0.1.0-1 - Initial package