Hello community,

here is the log from the commit of package python-dpkt for openSUSE:Factory 
checked in at 2018-01-09 14:52:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dpkt (Old)
 and      /work/SRC/openSUSE:Factory/.python-dpkt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dpkt"

Tue Jan  9 14:52:11 2018 rev:4 rq:561440 version:1.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dpkt/python-dpkt.changes  2013-09-11 
13:07:58.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-dpkt.new/python-dpkt.changes     
2018-01-09 14:52:12.906553433 +0100
@@ -1,0 +2,7 @@
+Wed Jan  3 16:11:39 UTC 2018 - tchva...@suse.com
+
+- Update to version 1.9.1:
+  * Allow building with python3
+- Remove epydoc dependency so we can remove py2 only package
+
+-------------------------------------------------------------------

Old:
----
  dpkt-1.8.tar.gz

New:
----
  v1.9.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-dpkt.spec ++++++
--- /var/tmp/diff_new_pack.BtN9Ze/_old  2018-01-09 14:52:13.798511616 +0100
+++ /var/tmp/diff_new_pack.BtN9Ze/_new  2018-01-09 14:52:13.802511428 +0100
@@ -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 @@
 %setup -q -n dpkt-%{version}
 
 %build
-export CFLAGS="%{optflags}"
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-
-%clean
-rm -rf %{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%files
-%defattr(-,root,root)
-%doc examples AUTHORS CHANGES HACKING LICENSE README
+%files %{python_files}
+%doc examples AUTHORS CHANGES LICENSE README.rst
 %{python_sitelib}/*
 
 %changelog


Reply via email to