%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: proxyfuzz Version: 20110923 Release: 1%{?dist} Summary: Man-in-the-middle non-deterministic network fuzzer Group: Applications/Internet License: GPLv3+ URL: http://www.secforce.co.uk/research/tools.html Source0: http://www.secforce.co.uk/media/tools/proxyfuzz.py.txt Source1: README-Fedora BuildArch: noarch Requires: python-twisted-core BuildRequires: python2-devel %if 0%{?with_python3} BuildRequires: python3-devel %endif # if with_python3 Patch0: make-executable.patch %description ProxyFuzz is a man-in-the-middle non-deterministic network fuzzier written in Python. ProxyFuzz randomly changes (fuzzes) contents on the network traffic. It supports TCP and UDP protocols and can also be configured to fuzz only one side of the communication. ProxyFuzz is protocol agnostic so it can randomly fuzz any network communication. %prep cp -p %{SOURCE0} . cp -p %{SOURCE1} . %patch0 -p1 -b .make-executable %build %install rm -rf $RPM_BUILD_ROOT install -m 755 -p -d ${RPM_BUILD_ROOT}/%{_sbindir} install -m 755 -p proxyfuzz.py.txt ${RPM_BUILD_ROOT}/%{_sbindir}/proxyfuzz %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README-Fedora %{_sbindir}/proxyfuzz %changelog * Mon Jan 2 2012 Petr Sklenar 20110923-1 - version changed - released changed * Thu Oct 13 2011 Petr Sklenar 0.1-20110923 - version changed - spec file improved - README-Fedora created * Wed Sep 7 2011 Petr Sklenar 1-2 - make script being executable * Wed Aug 31 2011 Petr Sklenar 1-1 - Initial commit