LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-netlib.spec of Package python-netlib (Project home:flavio_castelli:mitmproxy)

Name:           python-netlib
Version:        0.2.2
Release:        1
Summary:        A collection of network utility classes
Group:          Development/Languages/Python
License:        GPL-3.0
URL:            https://github.com/cortesi/netlib
Source:         netlib-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
BuildRequires:  python-devel
BuildRequires:  python-distribute
BuildRequires:  fdupes
Requires:       python-distribute
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif


%description
Netlib is a collection of network utility classes, used by the pathod and
mitmproxy projects. It differs from other projects in some fundamental
respects, because both pathod and mitmproxy often need to violate standards.
This means that protocols are implemented as small, well-contained and flexible
functions, and are designed to allow misbehaviour when needed.

%prep
%setup -q -n netlib-%{version}
%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root %{buildroot}
%fdupes %{buildroot}

%files
%defattr(-,root,root,-)
%{python_sitelib}/netlib
%{python_sitelib}/netlib*

%changelog