File qradiolink.spec of Package qradiolink
#
# spec file for package qradiolink
#
# Copyright (c) 2017-2020, 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.8.5-2
Name: qradiolink
Version: 0.8.5
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
%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: libgsm-devel
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig
BuildRequires: qwt-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: pkgconfig(opus)
BuildRequires: pkgconfig(protobuf)
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(libftdi)
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}
%build
mkdir build
cd src/ext
protoc --cpp_out=. Mumble.proto
protoc --cpp_out=. QRadioLink.proto
cd ../..
%qmake5
make %{?_smp_mflags}
%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"
%files
%license LICENSE LICENSE.LGPL3 LICENSE.MIT
%doc AUTHORS README.md docs/CONFIGURE
%{_bindir}/qradiolink
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog