update to 3.1.0

This commit is contained in:
Neil Hanlon 2024-01-02 10:30:21 -05:00 committed by Neil Hanlon
parent 4cac37d132
commit f4bc2036cc
Signed by: neil
GPG Key ID: 705BC21EC3C70F34

View File

@ -1,5 +1,5 @@
Name: ssh-audit
Version: 3.0.0
Version: 3.1.0
Release: 1%{?dist}
Summary: An SSH server & client configuration security auditing tool
@ -13,6 +13,7 @@ Source: %{url}/releases/download/v%{version}/jtesta_2020-2025.asc
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: gnupg2
BuildRequires: python3dist(pytest)
%description
ssh-audit is an SSH server & client security auditing (banner, key exchange,
@ -21,10 +22,10 @@ encryption, mac, compression, compatibility, security, etc)
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n ssh-audit-%{version}
%autosetup
# Remove bundled egg-info
rm -rf %{name}.egg-info
#remove shebang
sed -i -e '1{\@^#!/usr/bin/env python@d}' src/ssh_audit/ssh_audit.py
%generate_buildrequires
%pyproject_buildrequires -t
@ -37,15 +38,21 @@ rm -rf %{name}.egg-info
# importable module is underscore :)
%pyproject_save_files ssh_audit
install -t %{buildroot}%{_mandir}/man1 -Dpm 0644 ssh-audit.1
%check
%tox
%py3_check_import ssh_audit
# Upstream uses tox, but doesn't have definitions for py3.12 yet
%pytest
%files -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_mandir}/man1/ssh-audit.1*
%{_bindir}/ssh-audit
%changelog
* Tue Jan 02 2024 Neil Hanlon <neil@shrug.pw> - 3.1.0-1
- add in man page
- use pytest
* Sun Oct 15 2023 Neil Hanlon <neil@shrug.pw> - 3.0.0-1
- Initial package.