Hello community,
here is the log from the commit of package python-kismetdb for
openSUSE:Leap:15.2 checked in at 2020-05-28 20:10:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-kismetdb (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-kismetdb.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-kismetdb"
Thu May 28 20:10:56 2020 rev:2 rq:809548 version:2019.05.05
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-kismetdb/python-kismetdb.changes
2020-02-22 17:49:38.477431861 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-kismetdb.new.3606/python-kismetdb.changes
2020-05-28 20:10:56.467139187 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:31 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-kismetdb.spec ++++++
--- /var/tmp/diff_new_pack.xvlUAy/_old 2020-05-28 20:10:56.755140044 +0200
+++ /var/tmp/diff_new_pack.xvlUAy/_new 2020-05-28 20:10:56.755140044 +0200
@@ -1,6 +1,7 @@
#
# spec file for package python-kismetdb
#
+# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2019, Martin Hauke <[email protected]>
#
# All modifications and additions to the file contributed by third parties
@@ -12,10 +13,12 @@
# 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define binaries kismet_log_devices_to_filebeat_json kismet_log_to_pcap
kismet_log_to_csv kismet_log_devices_to_json kismet_log_to_kml
Name: python-kismetdb
Version: 2019.05.05
Release: 0
@@ -28,6 +31,8 @@
BuildRequires: python-rpm-macros
Requires: python-python-dateutil
Requires: python-simplekml
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -42,20 +47,33 @@
%install
%python_install
+for b in %{binaries}; do
+ %python_clone -a %{buildroot}%{_bindir}/$b
+done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# tests are disabled for now since those need a docker environment for testing
#%%pytest
+%post
+for b in %{binaries}; do
+ %python_install_alternative $b
+done
+
+%postun
+for b in %{binaries}; do
+ %python_uninstall_alternative $b
+done
+
%files %{python_files}
%license LICENSE
%doc CHANGELOG.rst README.rst
-%python3_only %{_bindir}/kismet_log_to_kml
-%python3_only %{_bindir}/kismet_log_devices_to_json
-%python3_only %{_bindir}/kismet_log_to_csv
-%python3_only %{_bindir}/kismet_log_to_pcap
-%python3_only %{_bindir}/kismet_log_devices_to_filebeat_json
+%python_alternative %{_bindir}/kismet_log_to_kml
+%python_alternative %{_bindir}/kismet_log_devices_to_json
+%python_alternative %{_bindir}/kismet_log_to_csv
+%python_alternative %{_bindir}/kismet_log_to_pcap
+%python_alternative %{_bindir}/kismet_log_devices_to_filebeat_json
%{python_sitelib}/*
%changelog