LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

# spec file for package python-netlib
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           python-netlib
Version:        0.2.2
Release:        0
Summary:        A collection of network utility classes
License:        GPL-3.0
Group:          Development/Languages/Python
Url:            https://github.com/cortesi/netlib
Source:         netlib-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRequires:  python-distribute
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()")}
BuildArch:      noarch

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.

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

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