File qt-dab.spec of Package qt-dab

# spec file for package qt-dab
# Copyright (c) 2014-2022 Wojciech Kazubski <>
# 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

%define bname qt-dab
%define sversion 4.4.2

Name:           %{bname}
Version:        4.4.2
Release:        0
License:        GPL-2.0-or-later
Summary:        Simple DAB/DAB+ receiver
Group:          Productivity/Multimedia/Other
Patch1:         %{bname}-use-qwt6-qt5.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  qwt6-qt5-devel >= 6.1
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  hackrf-devel
BuildRequires:  pkgconfig(libairspy)
BuildRequires:  pkgconfig(librtlsdr)
BuildRequires:  sdrplay-devel
BuildRequires:  pkgconfig(portaudio-2.0)
BuildRequires:  pkgconfig(samplerate)
BuildRequires:  pkgconfig(sndfile)
BuildRequires:  ImageMagick
BuildRequires:  libusb-1_0-devel
BuildRequires:  libfaad-devel
BuildRequires:  update-desktop-files
BuildRequires:  hicolor-icon-theme

This is the implementation of a -relatively simple DAB/DAB+ receiver.
The receiver supports terrestrial DAB reception with as input either
the stream from a dabstick or a (prerecorded) file, and it will
output through the default soundcard.

%setup -q -n %{name}-%{sversion}
%patch1 -p 1

cd dab-maxi
%cmake \

cd dab-maxi
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}/usr/%{name}-%{sversion} %{buildroot}%{_bindir}/%{name}

#install desktop file
%suse_update_desktop_file -G Qt-DAB -i %{name} AudioVideo Tuner 

#create and install icons
convert %{bname}.ico %{name}.png
install -Dpm 0644 %{name}-9.png \
install -Dpm 0644 %{name}-8.png \
install -Dpm 0644 %{name}-7.png \
install -Dpm 0644 %{name}-6.png \
install -Dpm 0644 %{name}-5.png \
install -Dpm 0644 %{name}-4.png \
install -Dpm 0644 %{name}-2.png \
install -Dpm 0644 %{name}-1.png \
install -Dpm 0644 %{name}-0.png \

#fix docs permissions
chmod a-x AUTHORS
chmod a-x COPYING
chmod a-x ../

%doc dab-maxi/AUTHORS
%license dab-maxi/COPYING