File sniffnet.spec of Package sniffnet

#
# spec file for package sniffnet
#
# 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:           sniffnet
Version:        1.2.1
Release:        0
Summary:        Application to monitor Internet traffic
License:        Apache-2.0 AND MIT
URL:            https://www.sniffnet.net
Source0:        %{name}-%{version}.tar.gz
Source1:        vendor.tar.xz
Source2:        cargo_config
BuildRequires:  c++_compiler
BuildRequires:  cargo-packaging
BuildRequires:  cmake
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(fontconfig) >= 2.11.1
BuildRequires:  pkgconfig(libpcap)

%description
Sniffnet is a network monitoring tool to help you keep track of your Internet
traffic.

Whether you want to gather statistics, or you need to inspect more in depth
what's going on in your network, this app will get you covered.

%prep
%autosetup -p1 -a1
install -D -m 644 %{SOURCE2} .cargo/config

%build
%{cargo_build} --verbose

%install
%{cargo_install} --verbose

###%%check
###%%{cargo_test} --verbose
# find a way to disable this:
# test secondary_threads::check_updates::tests::fetch_latest_release_from_github ... FAILED

%files
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by