Name: w3af Version: 1.1 Release: 2%{?dist} Summary: Web Application Attack and Audit Framework Group: Applications/Internet License: GPLv2 and ( LGPLv3 and LGPLv2 and GPLv2+ and GPLv3 and CC-BY-SA ) URL: http://w3af.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-1.1.tar.bz2 Source1: %{name}.png Patch0: w3af-fedora.patch Patch1: w3af-paths.patch ExclusiveArch: x86_64 BuildRequires: python2-devel BuildRequires: gettext dos2unix desktop-file-utils Requires: python2 python-fpconst graphviz-python pyPdf pygtk2 python-BeautifulSoup python-SocksiPy wordnet Requires: python-ntlk pysvn scapy python-pybloomfiltermmap Requires: libcanberra-gtk3 PackageKit-gtk3-module pygtksourceview %global _binaries_in_noarch_packages_terminate_build 0 %define debug_package %{nil} %description The W3AF, is a Web Application Attack and Audit Framework. The W3AF core and it's plug-ins are fully written in python. The project has more than 130 plug-ins, which check for SQL injection, cross site scripting (XSS), local and remote file inclusion and much more. %package doc Summary: Web Application Attack and Audit Framework - documentation Requires: %{name}%{?_isa} = %{version}-%{release} %description doc Documentation for the W3AF package. %prep %setup -q -n %{name} %patch0 -p 1 -b .0fedora %patch1 -p 1 -b .1paths #Fix permissions find core extlib plugins -name "*.py" |xargs chmod -x chmod +x plugins/attack/payloads/webshell/webshell.pl #Fix dos eol dos2unix readme/GPL #Old python #sed -i -e "s%/usr/bin/env python2.[0-9]%/usr/bin/env python%" extlib/nltk_contrib/mit/six863/tagging/tagparse.py #sed -i -e "s%/usr/bin/env python2.[0-9]%/usr/bin/env python%" extlib/nltk/test/doctest_driver.py #Shebang find core extlib plugins -name '*.py' |xargs sed -i -e 's%^#!%#%' sed -i -e 's%^#!%#%' plugins/discovery/oHalberd/scripts/halberd #Empty files rm core/data/timeAnalysis.py echo "" >> core/ui/userInterface.dtd %build %install # clean up svn mess find -name .svn -type d -exec rm -rf {} + install -d %{buildroot}%{_bindir}/%{name} install -d %{buildroot}%{_datadir}/%{name} cp -r core extlib plugins profiles scripts tools %{buildroot}%{_datadir}/%{name}/ install -m 755 w3af_console w3af_gui %{buildroot}%{_datadir}/%{name}/ ln -s %{_datadir}/%{name}/w3af_gui %{buildroot}%{_bindir}/w3af_gui ln -s %{_datadir}/%{name}/w3af_console %{buildroot}%{_bindir}/w3af_console #Remove libraries which are installed separately or are no longer fuctional rm -rf %{buildroot}%{_datadir}/%{name}/extlib/SOAPpy rm -rf %{buildroot}%{_datadir}/%{name}/extlib/pygoogle rm -rf %{buildroot}%{_datadir}/%{name}/extlib/pyPdf rm -rf %{buildroot}%{_datadir}/%{name}/extlib/yaml rm -rf %{buildroot}%{_datadir}/%{name}/extlib/fpconst-0.7.2 #Locales install -d %{buildroot}%{_datadir}/locale/es/LC_MESSAGES install locales/es/LC_MESSAGES/w3af.mo %{buildroot}%{_datadir}/locale/es/LC_MESSAGES/w3af.mo install -d %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES install locales/ru/LC_MESSAGES/w3af.mo %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/w3af.mo %find_lang %{name} #Desktop desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ fedora/%{name}.desktop install -d %{buildroot}%{_datadir}/pixmaps install %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png cp readme/GPL LICENSE %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %license LICENSE fedora/copyright %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_bindir}/w3af_gui %{_bindir}/w3af_console %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/%{name}.png %files doc %defattr(-,root,root,-) %doc readme/EN readme/FR %doc readme/CONTRIBUTORS readme/README readme/TODO %changelog * Tue Aug 04 2015 Jakub Jelen 1.1-2 - Updated dependencies and possibility to start gui * Tue Aug 04 2015 Jakub Jelen 1.1-1 - Current version with fedora-review related issues * Tue Jan 05 2010 Michal Ambroz 1.0-0.1.rc3 - Initial SPEC for Fedora 12