File flent.spec of Package flent

#
# spec file for package flent
#
# Copyright (c) 2021-2024, Martin Hauke <mardnh@gmx.de>
#
# 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:           flent
Version:        2.2.0
Release:        0
Summary:        FLExible Network Tester for bufferbloat testing and more
License:        GPL-3.0-or-later
URL:            http://flent.org
Source:         https://github.com/tohojo/flent/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python3-pytest
BuildRequires:  python3-setuptools
#Suggests:       python-QtPy
#Suggests:       python-PyQt5
# SECTION test requirements
BuildRequires:  python3-matplotlib
# /SECTION
# FIXME:
## requires + suggests
#Requires:       python3-matplotlib
BuildArch:      noarch

%description
The FLExible Network Tester

%prep
%setup -q -n flent-%{version}

%build
%python3_build

%install
%python3_install
fdupes %{buildroot}%{python3_sitelib}

%check
%make_build test PYTHON=%{__python3}

%files
%license LICENSE
%doc CHANGES.md README.rst
%doc %{_datadir}/doc/flent/
%{_bindir}/flent
%{_bindir}/flent-gui
%{python3_sitelib}/flent*
%{_mandir}/man1/flent.1%{?ext_man}
%{_datadir}/metainfo/flent.appdata.xml
%{_datadir}/mime/packages/flent-mime.xml
%{_datadir}/applications/flent.desktop
# FIXME: better doc-handling
# FIXME: better doc-handling
%doc %{_datadir}/doc/flent/

%changelog
openSUSE Build Service is sponsored by