File qradiolink.spec of Package qradiolink
#
# spec file for package qradiolink
#
# Copyright (c) 2017-2025, 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/
#
%define realver 0.9.1-1
Name: qradiolink
Version: 0.9.1.1
Release: 0
Summary: SDR TX/RX
License: GPL-3.0
Group: Productivity/Hamradio/Other
URL: http://qradiolink.org
#Git-Clone: https://github.com/kantooon/qradiolink.git
Source: https://github.com/kantooon/%{name}/archive/%{realver}.tar.gz#/%{name}-%{realver}.tar.gz
Patch1: qradiolink-spdlog-use-external-fmt.patch
Patch2: qradiolink-add-missing-include.patch
Patch3: qradiolink-fix-return-in-nonvoid-functions.patch
%if 0%{?suse_version} > 1325
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_thread-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: gcc-c++
BuildRequires: gnuradio-devel
BuildRequires: libftdi0-devel
BuildRequires: libgsm-devel
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(LimeSuite)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(SoapySDR)
BuildRequires: pkgconfig
BuildRequires: qwt6-qt5-devel
BuildRequires: gr-osmosdr-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(codec2)
BuildRequires: pkgconfig(libconfig++)
BuildRequires: pkgconfig(libpulse)
BuildRequires: cppzmq-devel
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(protobuf)
BuildRequires: pkgconfig(speex)
BuildRequires: spdlog-devel
BuildRequires: uhd-devel
%if 0%{?suse_version} > 1500
BuildRequires: log4cpp-devel
%endif
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
%description
QRadioLink is a GUI for a collection of GNURadio modems, built for
hobbyists, tinkerers and radio enthusiasts, which allows experimenting
with SDR hardware using different digital and analog modes.
It can also be used as a SDR transceiver for amateur radio.
%prep
%setup -q -n %{name}-%{realver}
%if 0%{?suse_version} > 1500
%patch -P 1 -p1
%patch -P 2 -p1
%endif
%patch -P 3 -p1
%build
mkdir build
cd src/ext
protoc --cpp_out=. Mumble.proto
protoc --cpp_out=. QRadioLink.proto
cd ../..
%if 0%{?suse_version} > 1500
export LDFLAGS="-Wl,--copy-dt-needed-entries"
%endif
%qmake5
%make_build
%install
install -d %{buildroot}/%{_bindir}
install -m0755 qradiolink %{buildroot}/%{_bindir}
install -Dm0644 src/res/logo.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c qradiolink QRadioLink "SDR TX/RX" qradiolink qradiolink "Network;HamRadio"
%check
%files
%license LICENSE LICENSE.LGPL3 LICENSE.MIT
%doc AUTHORS README.md docs/CONFIGURE
%{_bindir}/qradiolink
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog