forked from pool/python-kismetdb
		
	- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kismetdb?expand=0&rev=8
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
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>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,7 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
%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
 | 
			
		||||
Version:        2019.05.05
 | 
			
		||||
@@ -29,12 +30,12 @@ Source:         https://github.com/kismetwireless/python-kismet-db/archive/%{ver
 | 
			
		||||
BuildRequires:  %{python_module pip}
 | 
			
		||||
BuildRequires:  %{python_module setuptools}
 | 
			
		||||
BuildRequires:  %{python_module wheel}
 | 
			
		||||
BuildRequires:  alts
 | 
			
		||||
BuildRequires:  fdupes
 | 
			
		||||
BuildRequires:  python-rpm-macros
 | 
			
		||||
Requires:       alts
 | 
			
		||||
Requires:       python-python-dateutil
 | 
			
		||||
Requires:       python-simplekml
 | 
			
		||||
Requires(post): alts
 | 
			
		||||
Requires(postun): alts
 | 
			
		||||
BuildArch:      noarch
 | 
			
		||||
%python_subpackages
 | 
			
		||||
 | 
			
		||||
@@ -58,14 +59,9 @@ done
 | 
			
		||||
# tests are disabled for now since those need a docker environment for testing
 | 
			
		||||
#%%pytest
 | 
			
		||||
 | 
			
		||||
%post
 | 
			
		||||
%pre
 | 
			
		||||
for b in %{binaries}; do
 | 
			
		||||
  %python_install_alternative $b
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
%postun
 | 
			
		||||
for b in %{binaries}; do
 | 
			
		||||
  %python_uninstall_alternative $b
 | 
			
		||||
  %python_libalternatives_reset_alternative $b
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
%files %{python_files}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user