update to 3.1.0
This commit is contained in:
parent
4cac37d132
commit
f4bc2036cc
@ -1,5 +1,5 @@
|
|||||||
Name: ssh-audit
|
Name: ssh-audit
|
||||||
Version: 3.0.0
|
Version: 3.1.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: An SSH server & client configuration security auditing tool
|
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
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: gnupg2
|
BuildRequires: gnupg2
|
||||||
|
BuildRequires: python3dist(pytest)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ssh-audit is an SSH server & client security auditing (banner, key exchange,
|
ssh-audit is an SSH server & client security auditing (banner, key exchange,
|
||||||
@ -21,10 +22,10 @@ encryption, mac, compression, compatibility, security, etc)
|
|||||||
%prep
|
%prep
|
||||||
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
||||||
|
|
||||||
%autosetup -n ssh-audit-%{version}
|
%autosetup
|
||||||
|
|
||||||
# Remove bundled egg-info
|
#remove shebang
|
||||||
rm -rf %{name}.egg-info
|
sed -i -e '1{\@^#!/usr/bin/env python@d}' src/ssh_audit/ssh_audit.py
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires -t
|
%pyproject_buildrequires -t
|
||||||
@ -37,15 +38,21 @@ rm -rf %{name}.egg-info
|
|||||||
# importable module is underscore :)
|
# importable module is underscore :)
|
||||||
%pyproject_save_files ssh_audit
|
%pyproject_save_files ssh_audit
|
||||||
|
|
||||||
|
install -t %{buildroot}%{_mandir}/man1 -Dpm 0644 ssh-audit.1
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%tox
|
# Upstream uses tox, but doesn't have definitions for py3.12 yet
|
||||||
%py3_check_import ssh_audit
|
%pytest
|
||||||
|
|
||||||
%files -f %{pyproject_files}
|
%files -f %{pyproject_files}
|
||||||
%license LICENSE
|
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
%{_mandir}/man1/ssh-audit.1*
|
||||||
%{_bindir}/ssh-audit
|
%{_bindir}/ssh-audit
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sun Oct 15 2023 Neil Hanlon <neil@shrug.pw> - 3.0.0-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
Loading…
Reference in New Issue
Block a user