15
0
forked from pool/python-dpkt
Files
python-dpkt/python-dpkt.spec
Tomáš Chvátal 4365ee69fc - Update to version 1.9.1:
* Allow building with python3
- Remove epydoc dependency so we can remove py2 only package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dpkt?expand=0&rev=10
2018-01-03 16:08:41 +00:00

54 lines
1.6 KiB
RPMSpec

#
# spec file for package python-dpkt
#
# Copyright (c) 2018 SUSE LINUX 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dpkt
Version: 1.9.1
Release: 0
Summary: Fast, simple packet creation and parsing
License: BSD-3-Clause
Group: Development/Libraries/Python
Url: https://github.com/kbandla/dpkt
Source: https://github.com/kbandla/dpkt/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Fast, simple packet creation / parsing, with definitions for the basic TCP/IP
protocols.
%prep
%setup -q -n dpkt-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc examples AUTHORS CHANGES LICENSE README.rst
%{python_sitelib}/*
%changelog