diff --git a/dpkt-1.8.tar.gz b/dpkt-1.8.tar.gz deleted file mode 100644 index b9a1588..0000000 --- a/dpkt-1.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c56de2f9dc2f4654a356de0f0d458bb7b1c86c374988e8b4f358556f7dbe0507 -size 76311 diff --git a/python-dpkt.changes b/python-dpkt.changes index 47b1807..829c706 100644 --- a/python-dpkt.changes +++ b/python-dpkt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 3 16:11:39 UTC 2018 - tchvatal@suse.com + +- Update to version 1.9.1: + * Allow building with python3 +- Remove epydoc dependency so we can remove py2 only package + ------------------------------------------------------------------- Mon Aug 26 15:05:21 UTC 2013 - Greg.Freemyer@gmail.com diff --git a/python-dpkt.spec b/python-dpkt.spec index 49ba2f4..1f2517d 100644 --- a/python-dpkt.spec +++ b/python-dpkt.spec @@ -1,7 +1,7 @@ # -# spec file for package python-TraitsGUI +# spec file for package python-dpkt # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -11,27 +11,26 @@ # 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.8 +Version: 1.9.1 Release: 0 Summary: Fast, simple packet creation and parsing -URL: http://code.google.com/p/dpkt/ License: BSD-3-Clause Group: Development/Libraries/Python -Source: http://dpkt.googlecode.com/files/dpkt-1.8.tar.gz -BuildRoot: %{_tmppath}/%{name}-buildroot -BuildRequires: python-devel -BuildRequires: python-xml -BuildRequires: epydoc -%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 +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 -%endif +%python_subpackages %description Fast, simple packet creation / parsing, with definitions for the basic TCP/IP @@ -41,18 +40,14 @@ protocols. %setup -q -n dpkt-%{version} %build -export CFLAGS="%{optflags}" -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%clean -rm -rf %{buildroot} - -%files -%defattr(-,root,root) -%doc examples AUTHORS CHANGES HACKING LICENSE README +%files %{python_files} +%doc examples AUTHORS CHANGES LICENSE README.rst %{python_sitelib}/* %changelog diff --git a/v1.9.1.tar.gz b/v1.9.1.tar.gz new file mode 100644 index 0000000..f11d78c --- /dev/null +++ b/v1.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e07d3f17b1ff9b19352d6a97dab2ce4a8ea82f17a4c5723b219bd902ad97bc6e +size 133711