%define upstream_name mitmproxy Name: python-%{upstream_name} Version: 0.12.1 Release: 0.1 Summary: An interactive, SSL-capable, man-in-the-middle HTTP proxy for penetration testers and software developers. Group: Development/Python License: MIT URL: http://mitmproxy.org. Source0: https://pypi.python.org/packages/source/m/%{upstream_name}/%{upstream_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools %description mitmproxy is an interactive, SSL-capable man-in-the-middle proxy for HTTP with a console interface. mitmdump is the command-line version of mitmproxy. Think tcpdump for HTTP. libmproxy is the library that mitmproxy and mitmdump are built on. Complete documentation and a set of practical tutorials is included in the distribution package, and is also available at mitmproxy.org. %prep %setup -q -n %{upstream_name}-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %files #%doc %{_bindir}/mitmdump %{_bindir}/mitmproxy %{_bindir}/mitmweb %{python_sitelib}/libmproxy/ %{python_sitelib}/%{upstream_name}-%{version}-* %changelog * Wed Jun 24 2015 Scott R. Shinn - 1.0.1-1 - Initial build