File sparrow-wifi.spec of Package sparrow-wifi
#
# spec file for package sparrow-wifi
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: sparrow-wifi
Version: 0~git20240725.b6018c5
Release: 0
Summary: Next-Gen GUI-based WiFi and Bluetooth Analyzer
License: GPL-3.0-or-later
URL: https://github.com/ghostop14/sparrow-wifi
Source0: %{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: python3
#Requires:
BuildRequires: aircrack-ng
BuildRequires: iw
BuildRequires: tk
BuildRequires: python3-matplotlib
BuildRequires: python3-qscintilla-qt5
BuildRequires: python3-pyqt5-sip
### verify
###BuildRequires: qt5-declarative
BuildRequires: python3-gps3
BuildRequires: python3-manuf
BuildRequires: python3-dateutil
BuildRequires: python3-numpy
BuildRequires: python3-pyqt5-chart
BuildRequires: polkit
BuildRequires: wireless-tools
### optional
###BuildRequires: gpsd
BuildRequires: bluez-utils-compat
BuildRequires: ubertooth
###BuildRequires: python3-dronekit
BuildRequires: net-tools
BuildRequires: python3-elasticsearch
BuildRequires: python3-pytz
BuildArch: noarch
%description
Sparrow-wifi has been built from the ground up to be the next generation 2.4
GHz and 5 GHz Wifi spectral awareness tool. At its most basic it provides a more
comprehensive GUI-based replacement for tools like inSSIDer and linssid that
runs specifically on linux. In its most comprehensive use cases, sparrow-wifi
integrates wifi, software-defined radio (hackrf), advanced bluetooth tools
(traditional and Ubertooth), traditional GPS (via gpsd), and drone/rover GPS via
mavlink in one solution.
%prep
%autosetup -p1
# fix shebang
sed -e 's|^#!.*|#!%__python3|' \
-i sparrow-wifi.py
%build
# nothing to do here
%install
mkdir -pv %{buildroot}%{python_sitelib}/sparrow_wifi/plugins
cp -a *.py %{buildroot}%{python_sitelib}/sparrow_wifi
cp -a plugins/*.py %{buildroot}%{python_sitelib}/sparrow_wifi/plugins
chmod -x %{buildroot}%{python_sitelib}/sparrow_wifi/__init__.py
%python_compileall
%fdupes %{buildroot}%{python_sitelib}
%files
%license LICENSE
%doc README.md
%{python_sitelib}/sparrow_wifi
%changelog