a0f0b6e
Name:           wfuzz
a0f0b6e
Version:        2.4.5
a0f0b6e
Release:        3%{?dist}
a0f0b6e
Summary:        Web fuzzer
a0f0b6e
a0f0b6e
License:        GPLv2
a0f0b6e
URL:            http://wfuzz.io
a0f0b6e
Source0:        https://github.com/xmendez/wfuzz/archive/v%{version}/%{name}-%{version}.tar.gz
a0f0b6e
BuildArch:      noarch
a0f0b6e
 
a0f0b6e
BuildRequires:  python3-devel
a0f0b6e
BuildRequires:  python3-mock
a0f0b6e
BuildRequires:  python3-netaddr
a0f0b6e
BuildRequires:  python3-setuptools
a0f0b6e
a0f0b6e
%description
a0f0b6e
Wfuzz has been created to facilitate the task in web applications assessments
a0f0b6e
and it is based on a simple concept: it replaces any reference to the FUZZ
a0f0b6e
keyword by the value of a given payload.
a0f0b6e
a0f0b6e
%package -n %{name}-doc
a0f0b6e
Summary:        The %{name} documentation
a0f0b6e
a0f0b6e
BuildRequires:  python3-sphinx
a0f0b6e
BuildRequires:  python3-sphinx-theme-alabaster
a0f0b6e
a0f0b6e
%description -n %{name}-doc
a0f0b6e
Documentation for %{name}.
a0f0b6e
a0f0b6e
%prep
a0f0b6e
%autosetup
a0f0b6e
rm -rf %{name}.egg-info
a0f0b6e
# Remove shebang
a0f0b6e
sed -i -e '/^#!\//, 1d' src/wfuzz/wfuzz.py
a0f0b6e
# Remove release pinning 
a0f0b6e
sed -i -e 's/pycurl<=7.43.0.3/pycurl/g' setup.py
a0f0b6e
# We don't need this as we have the whole documentation
a0f0b6e
sed -i -e '/data_files/d' setup.py
a0f0b6e
a0f0b6e
%build
a0f0b6e
%py3_build
a0f0b6e
PYTHONPATH=${PWD} sphinx-build-3 docs html
a0f0b6e
rm -rf html/.{doctrees,buildinfo}
a0f0b6e
a0f0b6e
%install
a0f0b6e
%py3_install
a0f0b6e
a0f0b6e
%files
a0f0b6e
%license LICENSE
a0f0b6e
%doc README.md
a0f0b6e
%{_bindir}/wfencode
a0f0b6e
%{_bindir}/wfpayload
a0f0b6e
%{_bindir}/wfuzz
a0f0b6e
%{_bindir}/wxfuzz
a0f0b6e
%{python3_sitelib}/%{name}/
a0f0b6e
%{python3_sitelib}/%{name}-%{version}-py*.egg-info/
a0f0b6e
a0f0b6e
%files -n %{name}-doc
a0f0b6e
%doc html
a0f0b6e
%license LICENSE
a0f0b6e
a0f0b6e
%changelog
a0f0b6e
* Mon Mar 23 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.4.5-3
a0f0b6e
- Fix changelog entries
a0f0b6e
a0f0b6e
* Fri Feb 28 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.4.5-2
a0f0b6e
- Create docs
a0f0b6e
a0f0b6e
* Sun Jan 26 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.4.5-1
a0f0b6e
- Initial package for Fedora