forked from pool/python-kismetdb
Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c87844aba6 | |||
| 23a44b38b0 | |||
| 4b044e5ceb | |||
| 63a1f43244 | |||
| 98f026a100 |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 9 09:38:54 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 30 09:31:46 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 25 06:50:31 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
Mon May 25 06:50:31 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-kismetdb
|
# spec file for package python-kismetdb
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,8 +17,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!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
|
%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
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%define pkg_version 2019.5.5
|
||||||
Name: python-kismetdb
|
Name: python-kismetdb
|
||||||
Version: 2019.05.05
|
Version: 2019.05.05
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,13 +27,15 @@ Summary: A python wrapper for the Kismet database
|
|||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
URL: https://github.com/kismetwireless/python-kismet-db
|
URL: https://github.com/kismetwireless/python-kismet-db
|
||||||
Source: https://github.com/kismetwireless/python-kismet-db/archive/%{version}.tar.gz
|
Source: https://github.com/kismetwireless/python-kismet-db/archive/%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-python-dateutil
|
Requires: python-python-dateutil
|
||||||
Requires: python-simplekml
|
Requires: python-simplekml
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -43,10 +46,10 @@ Kismet database wrapper.
|
|||||||
%setup -q -n python-kismet-db-%{version}
|
%setup -q -n python-kismet-db-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
for b in %{binaries}; do
|
for b in %{binaries}; do
|
||||||
%python_clone -a %{buildroot}%{_bindir}/$b
|
%python_clone -a %{buildroot}%{_bindir}/$b
|
||||||
done
|
done
|
||||||
@@ -56,14 +59,9 @@ done
|
|||||||
# tests are disabled for now since those need a docker environment for testing
|
# tests are disabled for now since those need a docker environment for testing
|
||||||
#%%pytest
|
#%%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
for b in %{binaries}; do
|
for b in %{binaries}; do
|
||||||
%python_install_alternative $b
|
%python_libalternatives_reset_alternative $b
|
||||||
done
|
|
||||||
|
|
||||||
%postun
|
|
||||||
for b in %{binaries}; do
|
|
||||||
%python_uninstall_alternative $b
|
|
||||||
done
|
done
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
@@ -74,6 +72,7 @@ done
|
|||||||
%python_alternative %{_bindir}/kismet_log_to_csv
|
%python_alternative %{_bindir}/kismet_log_to_csv
|
||||||
%python_alternative %{_bindir}/kismet_log_to_pcap
|
%python_alternative %{_bindir}/kismet_log_to_pcap
|
||||||
%python_alternative %{_bindir}/kismet_log_devices_to_filebeat_json
|
%python_alternative %{_bindir}/kismet_log_devices_to_filebeat_json
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/kismetdb
|
||||||
|
%{python_sitelib}/kismetdb-%{pkg_version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user