8db1b00
%bcond_with tests
8db1b00
8db1b00
Name:           wapiti
8db1b00
Version:        3.0.2
69cbdef
Release:        12%{?dist}
8db1b00
Summary:        A web application vulnerability scanner
8db1b00
8db1b00
# wapiti is GPLv2+
8db1b00
# PyNarcissus is MPL 1.1/GPL 2.0+/LGPL 2.1
8db1b00
# Kube CSS frameworka nd jQuery are MIT
8db1b00
License:        GPLv2+ and MIT
8db1b00
URL:            http://wapiti.sourceforge.net/
8db1b00
Source0:        https://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}3-%{version}.tar.gz
8db1b00
8db1b00
BuildArch:      noarch
8db1b00
8db1b00
BuildRequires:  python3-devel
8db1b00
BuildRequires:  python3-responses
8db1b00
BuildRequires:  python3-setuptools
3e5aef1
BuildRequires:  python3-pytest-runner
8db1b00
8db1b00
%if %{with tests}
8db1b00
BuildRequires:  python3-pytest
8db1b00
BuildRequires:  python3-pytest-mock
8db1b00
BuildRequires:  php-cli
8db1b00
%endif
8db1b00
8db1b00
%description
8db1b00
Wapiti allows you to audit the security of your web applications. It performs
8db1b00
"black-box" scans, i.e. it does not study the source code of the application 
8db1b00
but will scans the web pages of the deployed web app, looking for scripts and 
8db1b00
forms where it can inject data. Once it gets this list, Wapiti acts like a 
8db1b00
fuzzer, injecting payloads to see if a script is vulnerable.
8db1b00
8db1b00
%prep
8db1b00
%autosetup -n %{name}3-%{version}
8db1b00
find -name '*.py' | xargs sed -i '/^#!\//, 1d'
8db1b00
8db1b00
%build
8db1b00
%py3_build
8db1b00
8db1b00
%install
8db1b00
%py3_install
8db1b00
rm -rf %{buildroot}%{_defaultdocdir}/%{name}/
8db1b00
8db1b00
%if %{with tests}
8db1b00
%check
8db1b00
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
8db1b00
%endif
8db1b00
8db1b00
%files
8db1b00
%doc README.md doc/FAQ.md doc/example.txt
8db1b00
%license doc/COPYING
8db1b00
%{_mandir}/man*/%{name}*.*
8db1b00
%{_bindir}/%{name}*
8db1b00
%{python3_sitelib}/wapitiCore/
8db1b00
%{python3_sitelib}/%{name}3-%{version}-py*.egg-info
8db1b00
8db1b00
%changelog
69cbdef
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-12
69cbdef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
69cbdef
7593cff
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-11
7593cff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
7593cff
098619f
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.0.2-10
098619f
- Rebuilt for Python 3.11
098619f
d31a982
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-9
d31a982
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d31a982
b0daa62
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-8
b0daa62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b0daa62
6849e8d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.0.2-7
6849e8d
- Rebuilt for Python 3.10
6849e8d
7a7ff93
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-6
7a7ff93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7a7ff93
b0c61a1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-5
b0c61a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b0c61a1
310b32c
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 3.0.2-4
310b32c
- Rebuilt for Python 3.9
310b32c
3b2b252
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
3b2b252
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3b2b252
8db1b00
* Fri Jan 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.2-2
8db1b00
- Adjust BRs
8db1b00
- Update the source URL
8db1b00
- Better use of wildcards (rhbz#1787225)
8db1b00
8db1b00
* Wed Jan 01 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.2-1
8db1b00
- Initial package for Fedora