Name: ssh-audit Version: 3.9.0 Release: 1%{?dist} Summary: An SSH server & client configuration security auditing tool License: MIT URL: https://github.com/jtesta/ssh-audit Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig Source2: %{url}/releases/download/v%{version}/jtesta_2026-2029.asc BuildArch: noarch # # Choose the newest Python available on the build system. # %if 0%{?fedora} >= 43 || 0%{?rhel} >= 10 %global python3_pkgversion 3.14 %else %global python3_pkgversion 3.12 %endif BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-setuptools-wheel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: pyproject-rpm-macros BuildRequires: gnupg2 BuildRequires: python%{python3_pkgversion}-pytest Requires: python%{python3_pkgversion} %description ssh-audit is an SSH server & client configuration security auditing tool. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup sed -i "/^[[:space:]]*\"wheel\"/d" pyproject.toml sed -i '1{/^#!\/usr\/bin\/env python/d}' src/ssh_audit/ssh_audit.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files ssh_audit install -Dpm0644 ssh-audit.1 \ %{buildroot}%{_mandir}/man1/ssh-audit.1 %check %pytest %files -f %{pyproject_files} %doc README.md %{_bindir}/ssh-audit %{_mandir}/man1/ssh-audit.1* %changelog * Wed Jul 29 2026 Danie de Jager - 3.9.0-1 - Initial package