File kismon.spec of Package kismon

#
# spec file for package kismon
#
# Copyright (c) 2023 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:           kismon
Version:        1.0.3
Release:        0
Summary:        GUI client for kismet
License:        BSD-2-Clause
Group:          Productivity/Networking/Other
URL:            https://www.salecker.org/software/kismon.html
Source0:        https://github.com/Kismon/kismon/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gail-3.0)
BuildRequires:  pkgconfig(gdk-3.0)
BuildRequires:  pkgconfig(gdk-broadway-3.0)
BuildRequires:  pkgconfig(gdk-wayland-3.0)
BuildRequires:  pkgconfig(gdk-x11-3.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtk+-broadway-3.0)
BuildRequires:  pkgconfig(gtk+-unix-print-3.0)
BuildRequires:  pkgconfig(gtk+-wayland-3.0)
BuildRequires:  pkgconfig(gtk+-x11-3.0)
BuildRequires:  pkgconfig(osmgpsmap-1.0) >= 1.0.2
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-gobject
BuildRequires:  python3-cairo
BuildRequires:  python3-setuptools
BuildRequires:  python3-simplejson
Requires:       kismet <= 2020_12_R3
Requires:       kismet >= 2019_12_R2
Requires:       python3-kismet-rest
BuildArch:      noarch

%description
Kismon is a PyGTK Kismet Newcore client that creates a live map of the
networks.

%prep
%autosetup -p1
# fix shebang
for f in client_rest config core gui map networks test_main tracks; do
 sed -i '/^#!/d' kismon/${f}.py
done

%build
%py3_build

%install
%py3_install
chmod -x %{buildroot}%{_datadir}/applications/%{name}.desktop

%fdupes %{buildroot}%{python_sitelib}

%files
%license COPYING
%doc NEWS README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{python3_sitelib}/*

%changelog
openSUSE Build Service is sponsored by