From 02cd70f352bfcdc8df4962009af3f9fbbfde3830b8079c5ad272dbfcbc3e2f99 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Sun, 5 Nov 2017 08:11:36 +0000 Subject: [PATCH] Accepting request 539000 from home:avindra - Update to version 4.1 * Fixed --fuzz CRC function. * Added --encrypt option for shared-secret encrypted packets. * Added --listen --all-interfaces option for automatically binding to all interface IPs (requires Python netifaces module). * Simplified monotonic_clock functionality, relying on Python 3 for most functionality, reducing the possibility of platform bugs. - Includes changes from 4.0 * Rewrite to Python 3 (3.4 or higher). * Fixed hmac-sha256 handling, added hmac-sha512. * --nagios will now work when combined with --deadline, in addition to --count. * Added Wireshark Lua dissector and sample capture. * Added battery level (ExtID 0x88a1f7c7). Note that while 2ping recognizes the new option in incoming packets, it currently does not have the capability to send battery levels. - Make rpmlint happy by avoiding installation in %build. - Update to version 3.2.1 * Please read the ChangeLog; not able to track all changes since previous version - Upstream moved to python * Remove %{perl_requires} dependency * Remove perl recommendations; perl(Digest::CRC), perl(Digest::MD5), perl(Digest::SHA) and perl(IO::Socket::INET6) * Add python-devel and python-setuptools requirements - Use official tarball and download Url - Remove obsolete 2ping-fix-use-of-uninitialized-warning.patch - update to 1397618874.f2c2047 - 2ping-fix-use-of-uninitialized-warning.patch: add - Initial package (version 1.0) OBS-URL: https://build.opensuse.org/request/show/539000 OBS-URL: https://build.opensuse.org/package/show/network:utilities/2ping?expand=0&rev=8 --- 2ping-3.2.1.tar.gz | 3 --- 2ping-4.1.tar.gz | 3 +++ 2ping.changes | 22 +++++++++++++++++++++- 2ping.spec | 25 ++++++++++++------------- 4 files changed, 36 insertions(+), 17 deletions(-) delete mode 100644 2ping-3.2.1.tar.gz create mode 100644 2ping-4.1.tar.gz diff --git a/2ping-3.2.1.tar.gz b/2ping-3.2.1.tar.gz deleted file mode 100644 index b311cfe..0000000 --- a/2ping-3.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e53efd33d0f8b98fcc9c5ece26e87119a6bbbc7c4820a9563610143d46712a6 -size 49000 diff --git a/2ping-4.1.tar.gz b/2ping-4.1.tar.gz new file mode 100644 index 0000000..a539555 --- /dev/null +++ b/2ping-4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85331ae57f445bc8895ba4e61da4c7300b67fde55642f5e42ea02f2daf07b1ed +size 69510 diff --git a/2ping.changes b/2ping.changes index 643f4ea..d7666fe 100644 --- a/2ping.changes +++ b/2ping.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Sat Nov 4 19:24:17 UTC 2017 - aavindraa@gmail.com + +- Update to version 4.1 + * Fixed --fuzz CRC function. + * Added --encrypt option for shared-secret encrypted packets. + * Added --listen --all-interfaces option for automatically binding to + all interface IPs (requires Python netifaces module). + * Simplified monotonic_clock functionality, relying on Python 3 for + most functionality, reducing the possibility of platform bugs. +- Includes changes from 4.0 + * Rewrite to Python 3 (3.4 or higher). + * Fixed hmac-sha256 handling, added hmac-sha512. + * --nagios will now work when combined with --deadline, in addition to + --count. + * Added Wireshark Lua dissector and sample capture. + * Added battery level (ExtID 0x88a1f7c7). Note that while 2ping + recognizes the new option in incoming packets, it currently does not + have the capability to send battery levels. + ------------------------------------------------------------------- Fri Jul 29 09:06:35 UTC 2016 - jengelh@inai.de @@ -27,4 +47,4 @@ Fri Apr 3 15:29:33 UTC 2015 - jslaby@suse.com Wed Nov 10 13:11:18 CET 2010 - jslaby@suse.de - Initial package (version 1.0) - + diff --git a/2ping.spec b/2ping.spec index 904b36b..efc4ad1 100644 --- a/2ping.spec +++ b/2ping.spec @@ -1,7 +1,7 @@ # # spec file for package 2ping # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -17,16 +17,16 @@ Name: 2ping +Version: 4.1 +Release: 0 Summary: Bi-directional ping utility License: GPL-2.0+ Group: Productivity/Networking/Diagnostic -Version: 3.2.1 -Release: 0 Url: http://www.finnie.org/software/2ping/ Source0: http://www.finnie.org/software/2ping/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python3-base +BuildRequires: python3-setuptools +Requires: python >= 3.4 # A bit tricky but should do it Provides: %{name} = 1397618874.f2c20471488c Obsoletes: %{name} = 1397618874.f2c20471488c @@ -41,24 +41,23 @@ a 2ping client to determine which direction packet loss occurs. %setup -q %build -python setup.py build +%py3_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%py3_install install -d -m 0755 %{buildroot}%{_mandir}/man1 install -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping.1 install -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping6.1 %check -python setup.py test +python3 setup.py test %files -%defattr(-,root,root) %doc ChangeLog COPYING README doc/2ping-protocol-examples.py doc/2ping.md doc/2ping-protocol.md %{_bindir}/2ping %{_bindir}/2ping6 -%{_mandir}/man1/2ping.1.* -%{_mandir}/man1/2ping6.1.* -%{python_sitelib}/* +%{_mandir}/man1/2ping.1%{ext_man} +%{_mandir}/man1/2ping6.1%{ext_man} +%{python3_sitelib}/* %changelog