File SigDigger.spec of Package SigDigger

#
# spec file for package SigDigger
#
# Copyright (c) 2020-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 http://bugs.opensuse.org/
#

Name:           SigDigger
Version:        0.3.0+git20241026
Release:        0
Summary:        Graphical Digital Signal Analyzer
# Gqrx controls are licensed under the "Simplified BSD License"
# Spinner Widget is licensed under MIT
License:        GPL-3.0-or-later
Group:          Productivity/Hamradio/Other
URL:            https://batchdrake.github.io/SigDigger/
#Git-Clone:     https://github.com/BatchDrake/SigDigger.git
#Source:         https://github.com/BatchDrake/SigDigger/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source:         %{name}-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  ImageMagick
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  libqt5-linguist
BuildRequires:  pkgconfig
BuildRequires:  suwidgets-devel >= 0.3.0
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(suscan) >= 0.3.0
Recommends:     soapysdr0.8-module-rtlsdr

%description
SigDigger has your typical AM/FM/LSB/USB demodulation and audio
playback features. However, it also has some key additional
features that make it worth taking a look at if you're interested
in reverse engineering, or taking a closer look at digital signals.

The features include:
 * Both realtime and replay analysis modes
 * Analog audio playback (AM, FM, LSB and USB)
 * Baseband recording (full spectrum and per-channel)
 * Per-device gain presents
 * Dynamic spectrum browsing
 * ASK, FSK and PSK inspection
 * Gradient-descent SNR calculation
 * Different spectrum sources (cyclostarionary analysis, signal power…)
 * Symbol recording and visualization
 * Transition analysis

%prep
%setup -q
convert icons/icon-pro.png -resize 256x256 icons/icon256.png

%build
%qmake5 SigDigger.pro SIGDIGGER_PREFIX=%{_prefix}
%make_jobs

%install
install -D -m0755 SigDigger %{buildroot}/%{_bindir}/SigDigger
install -D -m0644 icons/icon256.png %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%suse_update_desktop_file -c %{name} %{name} "SigDigger: Digital Signal Analyzer" %{name} %{name} Network HamRadio

%files
%license LICENSE
%doc README.md
%{_bindir}/SigDigger
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

%changelog
openSUSE Build Service is sponsored by