29bec09
%global pypi_name snallygaster
29bec09
29bec09
Name:           snallygaster
0158dfc
Version:        0.0.12
0158dfc
Release:        %autorelease
29bec09
Summary:        Tool to scan for secret files on HTTP servers
29bec09
29bec09
License:        CC0
29bec09
URL:            https://github.com/hannob/snallygaster
29bec09
Source0:        %{pypi_source}
29bec09
BuildArch:      noarch
29bec09
29bec09
BuildRequires:  python3-devel
29bec09
BuildRequires:  python3-beautifulsoup4
29bec09
BuildRequires:  python3-dns
29bec09
BuildRequires:  python3-setuptools
29bec09
BuildRequires:  python3-urllib3
29bec09
29bec09
Requires:       python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release}
29bec09
29bec09
%description
29bec09
snallygaster is a tool that looks for files accessible on web servers that
29bec09
shouldn't be public and can pose a security risk.Typical examples include
29bec09
publicly accessible git repositories, backup files potentially containing
29bec09
passwords or database dumps.
29bec09
29bec09
%package -n     python3-%{pypi_name}
29bec09
Summary:        %{summary}
29bec09
%{?python_provide:%python_provide python3-%{pypi_name}}
29bec09
29bec09
%description -n python3-%{pypi_name}
29bec09
Python files or module parts for %{pypi_name}.
29bec09
29bec09
%prep
29bec09
%autosetup -n %{pypi_name}-%{version}
29bec09
rm -rf %{pypi_name}.egg-info
29bec09
29bec09
%build
29bec09
%py3_build
29bec09
29bec09
%install
29bec09
%py3_install
29bec09
29bec09
%check
29bec09
# Not running the lint test
29bec09
# Set RUN_ONLINETESTS to run the tests
29bec09
%{__python3} tests/test_scan_testdata.py
29bec09
29bec09
%files
29bec09
%{_bindir}/%{pypi_name}
29bec09
29bec09
%files -n python3-%{pypi_name}
29bec09
%license LICENSE
29bec09
%doc README.md
29bec09
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
29bec09
29bec09
%changelog
0158dfc
%autochangelog
254646a