%global pypi_name dnstool Name: %{pypi_name} Version: 0.1.2 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 # Not taken from [dependency-groups] dev via %%pyproject_buildrequires -g: that # group pins pytest >= 9.1.1 and pytest-mock >= 3.16.0 (whatever uv locked to), # which no current Fedora ships. The suite needs nothing newer than the distro # packages, so require them unversioned. BuildRequires: python3-pytest BuildRequires: python3-pytest-mock # 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 install -Dpm 0644 docs/%{pypi_name}.1 %{buildroot}%{_mandir}/man1/%{pypi_name}.1 %check %pytest %files -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/dnstool %{_mandir}/man1/%{pypi_name}.1* %changelog * Mon Oct 12 2026 Andrew Heath - 0.1.2-1 - Install man page from docs/ - Run the unit test suite in %%check * Tue Oct 06 2026 Andrew Heath - 0.1.0-1 - Initial package