File qt-dab.spec of Package qt-dab
#
# spec file for package qt-dab (former SDR-J-DAB)
#
# Copyright (c) 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 https://bugs.opensuse.org/
#
%define _major 6.9
Name: qt-dab
Version: 6.9.6
Release: 0
Summary: Decoder for DAB and DAB+ broadcast radio
License: GPL-2.0-only
URL: https://github.com/JvanKatwijk/qt-dab
Source: https://github.com/JvanKatwijk/qt-dab/archive/refs/tags/Qt-DAB-%{version}.tar.gz#/%{name}-Qt-DAB-%{version}.tar.gz
Source1: qt-dab.desktop
Patch0: 0001-Fix-application-icon-not-shown-on-Wayland.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: qwt6-qt6-devel
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Multimedia)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6Xml)
BuildRequires: pkgconfig(faad2)
BuildRequires: pkgconfig(fftw3f)
BuildRequires: pkgconfig(portaudio-2.0)
%description
Qt-DAB is software listening to terrestrial Digital Audio Broadcasting (DAB and DAB+).
%prep
%autosetup -p1 -n %{name}-Qt-DAB-%{version}
chmod -x COPYING README.md structure.md docs/*
%build
%cmake \
-DRTLSDR_LINUX=ON \
-DAIRSPY=ON \
-DHACKRF=ON \
-DLIMESDR=ON \
-DPLUTO=ON \
-DSPY_SERVER_8=ON \
-DSPY_SERVER_16=ON \
-DRTL_TCP=ON
%make_jobs
%install
install -Dpm 0755 build/Qt-DAB %{buildroot}%{_bindir}/%{name}
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dpm 0644 app-files/qt-dab-%{_major}.png %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%files
%license COPYING
%doc README.md structure.md
%doc docs/manual-6.pdf
%doc docs/using-qt6.pdf
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%changelog