File gqrx.spec of Package gqrx
#
# spec file for package gqrx
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: gqrx
Version: 2.11.5
Release: 0
Summary: Software defined radio receiver
License: GPL-3.0-only
Group: Productivity/Hamradio/Other
URL: https://gqrx.dk/
#Git-Clone: https://github.com/csete/gqrx.git
Source0: https://github.com/csete/gqrx/releases/download/v%{version}/gqrx-sdr-%{version}-src.tar.xz
Source1: %{name}.png
Patch0: 0001-Replace-deprecated-qt5_use_modules-macro.patch
Patch1: 0001-Port-to-GNU-Radio-3.8.patch
BuildRequires: cmake
BuildRequires: orc
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fftw3f)
BuildRequires: pkgconfig(gnuradio-osmosdr)
BuildRequires: pkgconfig(gnuradio-runtime)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(python3)
BuildRequires: libboost_date_time-devel
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_regex-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_test-devel
BuildRequires: libboost_thread-devel
BuildRequires: libmpir-devel
Recommends: airspy
%description
Gqrx is an experimental software defined radio receiver implemented using
GNU Radio and the Qt GUI toolkit. Currently it can use the Funcube
Dongle, RTL2832U-based DVB-T dongles, OsmoSDR devices and
USRP devices as input source.
%prep
%setup -q -n gqrx-sdr-%{version}
%patch0 -p1
%patch1 -p1
%build
%cmake \
-Wno-dev
%cmake_build
%install
%cmake_install
install -D -p -m 0644 %{name}.appdata.xml \
%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
%suse_update_desktop_file -i -r gqrx "Network;HamRadio"
%files
%license LICENSE-CTK COPYING
%doc README.md
%{_bindir}/%{name}
%{_datadir}/pixmaps/gqrx.png
%{_datadir}/applications/gqrx.desktop
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/%{name}.appdata.xml
%changelog