Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package snmpsim for openSUSE:Factory checked in at 2025-10-21 11:15:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/snmpsim (Old) and /work/SRC/openSUSE:Factory/.snmpsim.new.18484 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "snmpsim" Tue Oct 21 11:15:25 2025 rev:5 rq:1312278 version:0.4.7 Changes: -------- --- /work/SRC/openSUSE:Factory/snmpsim/snmpsim.changes 2021-08-30 13:55:52.937874308 +0200 +++ /work/SRC/openSUSE:Factory/.snmpsim.new.18484/snmpsim.changes 2025-10-21 11:16:31.367051151 +0200 @@ -1,0 +2,5 @@ +Mon Oct 20 03:42:29 UTC 2025 - Steve Kowalik <[email protected]> + +- Use pyproject_wheel and pyproject_install to build and install. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ snmpsim.spec ++++++ --- /var/tmp/diff_new_pack.7RWxHQ/_old 2025-10-21 11:16:31.999077713 +0200 +++ /var/tmp/diff_new_pack.7RWxHQ/_new 2025-10-21 11:16:32.003077881 +0200 @@ -1,7 +1,7 @@ # # spec file for package snmpsim # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2018, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -17,6 +17,7 @@ # +%define pythons python3 Name: snmpsim Version: 0.4.7 Release: 0 @@ -28,9 +29,11 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-dbm +BuildRequires: python3-pip BuildRequires: python3-pycryptodomex BuildRequires: python3-pysnmp BuildRequires: python3-setuptools +BuildRequires: python3-wheel Requires: python3-dbm Requires: python3-pysnmp >= 4.4.3 BuildArch: noarch @@ -55,14 +58,14 @@ %setup -q %build -python3 setup.py build +%pyproject_wheel %install -python3 setup.py install \ - --root=%{buildroot} \ - --prefix=%{_prefix} \ - --exec-prefix=%{_prefix} \ - --install-data=%{_datadir} +%pyproject_install + +# Move data directory to the correct place +mkdir -p %{buildroot}%{_datadir}/snmpsim +mv -v %{buildroot}/usr/snmpsim %{buildroot}%{_datadir}/snmpsim mv %{buildroot}%{_bindir}/datafile.py %{buildroot}%{_bindir}/snmpsim-datafile mv %{buildroot}%{_bindir}/mib2dev.py %{buildroot}%{_bindir}/snmpsim-mib2dev @@ -80,6 +83,7 @@ %{_bindir}/pcap2dev %{_bindir}/snmprec %{_bindir}/snmpsimd -%{python3_sitelib}/* +%{python3_sitelib}/snmpsim +%{python3_sitelib}/snmpsim-%{version}.dist-info %{_datadir}/snmpsim
