Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package 2ping for openSUSE:Factory checked 
in at 2026-06-30 15:14:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/2ping (Old)
 and      /work/SRC/openSUSE:Factory/.2ping.new.11887 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "2ping"

Tue Jun 30 15:14:33 2026 rev:17 rq:1362633 version:4.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/2ping/2ping.changes      2024-12-02 
17:00:15.656044184 +0100
+++ /work/SRC/openSUSE:Factory/.2ping.new.11887/2ping.changes   2026-06-30 
15:14:54.319033882 +0200
@@ -1,0 +2,13 @@
+Tue Jun 30 09:09:39 UTC 2026 - Jiri Slaby <[email protected]>
+
+- Update to version 4.6.1
+  * Remove license classifier (PEP 639)
+  * pyproject.toml: Fix malformed license statement
+  * SPDX headers cleanup
+  * flake8 fixes
+  * Packaging updates
+- Removed harden_2ping.service.patch -- applied to the (now local)
+  2ping.service
+- add bash completion
+
+-------------------------------------------------------------------

Old:
----
  2ping-4.5.1+20241102.obscpio
  2ping.obsinfo
  _service
  _servicedata
  harden_2ping.service.patch

New:
----
  2ping-4.6.1.tar.gz
  2ping-4.6.1.tar.gz.asc
  2ping.service
  _scmsync.obsinfo
  build.specials.obscpio

----------(Old B)----------
  Old:  * Packaging updates
- Removed harden_2ping.service.patch -- applied to the (now local)
  2ping.service
----------(Old E)----------

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

Other differences:
------------------
++++++ 2ping.spec ++++++
--- /var/tmp/diff_new_pack.PzX1O6/_old  2026-06-30 15:14:54.963055744 +0200
+++ /var/tmp/diff_new_pack.PzX1O6/_new  2026-06-30 15:14:54.967055881 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package 2ping
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,26 +16,27 @@
 #
 
 
+%define pythons python3
+
 Name:           2ping
-Version:        4.5.1+20241102
+Version:        4.6.1
 Release:        0
 Summary:        Bi-directional ping utility
 License:        MPL-2.0
 URL:            https://www.finnie.org/software/2ping/
-Source0:        %{name}-%{version}.tar.xz
+Source0:        
https://github.com/rfinnie/2ping/releases/download/v%{version}/%{name}-%{version}.tar.gz
+Source1:        
https://github.com/rfinnie/2ping/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
 Source2:        %{name}.keyring
-Patch0:         harden_2ping.service.patch
+Source3:        2ping.service
+BuildRequires:  %{python_module distro}
+BuildRequires:  %{python_module dnspython}
+BuildRequires:  %{python_module netifaces}
+BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module pycryptodomex}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-devel >= 3.6
-BuildRequires:  python3-distro
-BuildRequires:  python3-dnspython
-BuildRequires:  python3-netifaces
-BuildRequires:  python3-pycryptodomex
-BuildRequires:  python3-pytest
-BuildRequires:  python3-setuptools
 BuildRequires:  systemd-rpm-macros
-Requires:       python3 >= 3.6
 Recommends:     python3-distro
 Recommends:     python3-dnspython
 Recommends:     python3-netifaces
@@ -48,20 +49,29 @@
 SYN/ACK, ACK) and after-the-fact state comparison between a 2ping listener and
 a 2ping client to determine which direction packet loss occurs.
 
+%package bash-completion
+Summary:        Bash completion for 2ping
+Group:          System/Shells
+Requires:       %{name}
+Requires:       bash-completion
+Supplements:    (%{name} and bash-completion)
+
+%description bash-completion
+bash command line completion support for 2ping.
+
 %prep
 %autosetup
 
 %build
-%python3_build
+%pyproject_wheel
 
 %install
-%python3_install
-install -Dp -m 0644 2ping.service %{buildroot}%{_unitdir}/2ping.service
+%pyproject_install
+
+install -Dp -m 0644 %{SOURCE3} %{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
+install -Dp -m 0644 2ping.bash_completion 
%{buildroot}%{_datadir}/bash-completion/completions/2ping
 
 # Fix python shebangs
 %python3_fix_shebang
@@ -72,7 +82,7 @@
 %fdupes %{buildroot}%{_prefix}
 
 %check
-py.test -v
+%pytest
 
 %pre
 %service_add_pre 2ping.service
@@ -93,7 +103,11 @@
 %{_bindir}/%{name}6
 %{_mandir}/man1/%{name}.1%{?ext_man}
 %{_mandir}/man1/%{name}6.1%{?ext_man}
-%{_sbindir}/rc%{name}
 %{_unitdir}/2ping.service
 %{python3_sitelib}/*
 
+%files bash-completion
+%dir %{_datadir}/bash-completion
+%dir %{_datadir}/bash-completion/completions
+%{_datadir}/bash-completion/completions/%{name}
+


++++++ 2ping.service ++++++
[Unit]
Description=2ping listener
Documentation=man:2ping(1)
Documentation=https://www.finnie.org/software/2ping/

# Recommended listener method is with python3-netifaces, so we want to
# wait until the network is up before starting, so we can get a full
# list of IPs.
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/bin/2ping --listen --quiet

# 2ping requires very little; lock down the running space as much as
# possible.
DevicePolicy=closed
LockPersonality=yes
NoNewPrivileges=yes
PrivateDevices=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=strict
RestrictAddressFamilies=AF_NETLINK AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectHostname=true
# end of automatic additions
DynamicUser=yes

[Install]
WantedBy=multi-user.target

++++++ _scmsync.obsinfo ++++++
mtime: 1782811492
commit: 632f2df891e8c695af70d256dfbfba01c507a09adb6000f7cd8a8b7ec1755091
url: https://src.opensuse.org/jirislaby/n-u-2ping

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-06-30 11:24:52.000000000 +0200
@@ -0,0 +1,4 @@
+*.obscpio
+*.osc
+_build.*
+.pbuild

Reply via email to