Hello community, here is the log from the commit of package 2ping for openSUSE:Factory checked in at 2020-07-10 14:12:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/2ping (Old) and /work/SRC/openSUSE:Factory/.2ping.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "2ping" Fri Jul 10 14:12:44 2020 rev:9 rq:819846 version:4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/2ping/2ping.changes 2019-02-04 14:26:04.853034742 +0100 +++ /work/SRC/openSUSE:Factory/.2ping.new.3060/2ping.changes 2020-07-10 14:12:55.775538949 +0200 @@ -1,0 +2,29 @@ +Thu Jul 9 20:24:04 UTC 2020 - Matthias Eliasson <[email protected]> + +- Change optional requirements to recommends since they just enhance the tool +- Use correct package names for the recommends + +------------------------------------------------------------------- +Thu Jul 2 20:19:07 UTC 2020 - Matthias Eliasson <[email protected]> + +- Update to version 4.5 + * Added PyCryptodome support (recommended over PyCrypto, though the latter is still detected/supported). + * Replaced best_poller module with Python native selectors module. + * Changed --flood output: dots/backspaces are no longer printed, and loss results / errors display full details. + * --audible tones will only occur if stdout is a TTY. + * Improved hostname/IP display edge cases. + * Added an AF_UNIX --loopback test mode. + * Listener sockets are added and removed as needed, instead of being re-created on each rescan. + * Listener sockets are automatically rescanned periodically. + * Multiple systemd sockets are now allowed. + * A run can be both a listener and a client at the same time (mainly useful for smoke testing). + * Other socket handling refactoring. + * Other code refactoring. + * Listener statistics are displayer per-bind. + * Many, many testing/CI improvements. +- Remove groups in spec +- Package systemd service unit +- Add missing optional build requirements to enable all available options +- Some other clean up in spec + +------------------------------------------------------------------- Old: ---- 2ping-4.3.tar.gz 2ping-4.3.tar.gz.asc New: ---- 2ping-4.5.tar.gz 2ping-4.5.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ 2ping.spec ++++++ --- /var/tmp/diff_new_pack.NnYD9y/_old 2020-07-10 14:12:56.799542313 +0200 +++ /var/tmp/diff_new_pack.NnYD9y/_new 2020-07-10 14:12:56.803542326 +0200 @@ -1,7 +1,7 @@ # # spec file for package 2ping # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,32 @@ # +%define skip_python2 1 Name: 2ping -Version: 4.3 +Version: 4.5 Release: 0 Summary: Bi-directional ping utility License: GPL-2.0-or-later -Group: Productivity/Networking/Diagnostic -URL: http://www.finnie.org/software/2ping/ +URL: https://www.finnie.org/software/2ping/ Source0: http://www.finnie.org/software/2ping/%{name}-%{version}.tar.gz Source1: http://www.finnie.org/software/2ping/%{name}-%{version}.tar.gz.asc Source2: %{name}.keyring +BuildRequires: %{python_module devel} +BuildRequires: %{python_module distro} +BuildRequires: %{python_module dnspython} +BuildRequires: %{python_module netifaces} +BuildRequires: %{python_module pycryptodomex} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -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 +BuildRequires: systemd-rpm-macros +Requires: python >= 3.5 +Recommends: python3-distro +Recommends: python3-dnspython +Recommends: python3-netifaces +Recommends: python3-pycryptodomex BuildArch: noarch +%{?systemd_requires} %description 2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP SYN, @@ -41,32 +49,49 @@ a 2ping client to determine which direction packet loss occurs. %prep -%setup -q +%autosetup %build -%{py3_build} +%python_build %install -%{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 +%python_install +install -Dp -m 0644 2ping.service %{buildroot}%{_unitdir}/2ping.service +install -Dp -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping.1 +install -Dp -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping6.1 + +mkdir -p %{buildroot}%{_sbindir} +ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc2ping # create symlinks for man pages -%fdupes -s %{buildroot}/%{_mandir} +%fdupes -s %{buildroot}%{_mandir} # create hardlinks for the rest -%fdupes %{buildroot}/%{_prefix} +%fdupes %{buildroot}%{_prefix} %check -python3 setup.py test +%pytest + +%pre +%service_add_pre 2ping.service + +%post +%service_add_post 2ping.service + +%preun +%service_del_preun 2ping.service + +%postun +%service_del_postun 2ping.service %files %license COPYING -%doc ChangeLog README doc/2ping-protocol-examples.py doc/2ping.md doc/2ping-protocol.md -%{_bindir}/2ping -%{_bindir}/2ping6 -%{_mandir}/man1/2ping.1%{?ext_man} -%{_mandir}/man1/2ping6.1%{?ext_man} +%doc ChangeLog README.md +%{_bindir}/%{name} +%{_bindir}/%{name}6 +%{_mandir}/man1/%{name}.1%{?ext_man} +%{_mandir}/man1/%{name}6.1%{?ext_man} +%{_sbindir}/rc%{name} +%{_unitdir}/2ping.service %{python3_sitelib}/* %changelog ++++++ 2ping-4.3.tar.gz -> 2ping-4.5.tar.gz ++++++ ++++ 7627 lines of diff (skipped)
