Name: nanovna-saver Version: 0.4.0 Release: 5%{?dist} Summary: Tool for reading, displaying and saving data from the NanoVNA License: GPLv3 URL: https://github.com/mihtjel/%{name} Source0: %{URL}/archive/v%{version}/%{name}-%{version}.tar.gz # Reported upstream: https://github.com/mihtjel/nanovna-saver/issues/163 Source1: nanovna-saver.desktop BuildArch: noarch BuildRequires: python3-setuptools BuildRequires: python3-devel BuildRequires: python3-pyserial BuildRequires: python3-numpy BuildRequires: python3-scipy BuildRequires: python3-qt5 BuildRequires: python3-Cython BuildRequires: sed BuildRequires: desktop-file-utils Requires: hicolor-icon-theme # OS/distro specific Patch0: nanovna-saver-0.3.9-fedora-icon.patch Patch1: nanovna-saver-0.4.0-relax-deps.patch %description A multiplatform tool to save Touchstone files from the NanoVNA, sweep frequency spans in segments to gain more than 101 data points, and generally display and analyze the resulting data. %prep %autosetup -p1 # Drop shebang of non-executable sed -i '1 d' NanoVNASaver/__main__.py %build %py3_build %install %py3_install # Drop tests rm -rf %{buildroot}%{python3_sitelib}/test # Icon install -Dpm 0644 icon_48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png # Desktop file mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --add-category="Utility" \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} # https://github.com/NanoVNA-Saver/nanovna-saver/issues/443 #%%check #%%{python3} setup.py test %files %license LICENSE %doc README.md %{_bindir}/NanoVNASaver %{python3_sitelib}/NanoVNASaver %{python3_sitelib}/NanoVNASaver-%{version}-py*.egg-info %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %{_datadir}/applications/%{name}.desktop %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.4.0-4 - Rebuilt for Python 3.11 * Thu Apr 21 2022 Jaroslav Škarvada - 0.4.0-3 - More relaxed dependencies Resolves: rhbz#2075865 * Wed Apr 6 2022 Jaroslav Škarvada - 0.4.0-2 - Relaxed dependencies Resolves: rhbz#2071947 * Mon Apr 4 2022 Jaroslav Škarvada - 0.4.0-1 - New version Resolves: rhbz#2071189 * Thu Jan 20 2022 Fedora Release Engineering - 0.3.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Jan 10 2022 Jaroslav Škarvada - 0.3.10-3 - Relaxed dependencies Resolves: rhbz#2038547 * Fri Jan 7 2022 Jaroslav Škarvada - 0.3.10-2 - Rebuilt for new versions of python deps Resolves: rhbz#2037947 * Thu Jan 6 2022 Jaroslav Škarvada - 0.3.10-1 - New version Resolves: rhbz#2030250 * Tue Dec 7 2021 Jaroslav Škarvada - 0.3.9-1 - New version * Thu Jul 22 2021 Fedora Release Engineering - 0.2.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.2.2-7 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 0.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.2.2-4 - Rebuilt for Python 3.9 * Tue Feb 25 2020 Jaroslav Škarvada - 0.2.2-3 - Fixed according to the review * Fri Feb 21 2020 Jaroslav Škarvada - 0.2.2-2 - Fixed according to the review * Wed Feb 5 2020 Jaroslav Škarvada - 0.2.2-1 - Initial version