File gqrx.spec of Package gqrx

#
# spec file for package gqrx
#
# Copyright (c) 2013-2024 Walter Fey DL8FCL
#
# This file is under MIT license

Name:           gqrx
Version:        2.17.5+git20240817
Release:        0
License:        GPL-3.0-only
Summary:        Software defined radio receiver
Url:            https://gqrx.dk/
Group:          Productivity/Hamradio/Other
Source0:        %{name}-%{version}.tar.xz

BuildRequires:  gnuradio-devel
BuildRequires:  gr-osmosdr-devel
BuildRequires:  libboost_atomic-devel
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:  orc
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
%if 0%{?suse_version} > 1500
BuildRequires:  qt6-core-devel
BuildRequires:  qt6-network-devel
BuildRequires:  qt6-svg-devel
%else
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Svg)
%endif
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(jack)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(portaudio-2.0)
BuildRequires:  pkgconfig(sndfile)

%description
Gqrx is an open source software defined radio receiver (SDR) powered by the 
GNU Radio and the Qt graphical toolkit. It supports many of the SDR hardware 
available, including Airspy, Funcube Dongles, rtl-sdr, HackRF and USRP devices.

%prep
%setup -q

%build
%cmake
%make_build

%install
%cmake_install
%suse_update_desktop_file -i -r dk.gqrx.gqrx "Network;HamRadio"

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/dk.gqrx.gqrx.desktop
%{_datadir}/metainfo/dk.gqrx.gqrx.appdata.xml
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/gqrx.svg

%changelog
openSUSE Build Service is sponsored by