File qt-dab4.spec of Package qt-dab
106
1
#
2
# spec file for package qt-dab
3
#
4
# Copyright (c) 2014-2023 Wojciech Kazubski <wk@ire.pw.edu.pl>
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via http://bugs.links2linux.org/
16
#
17
18
%define bname qt-dab
19
%define branch qt-dab-s4
20
%define version4 4.8
21
%define version5 5.5
22
%define version6 6.4
23
24
Name: %{bname}4
25
Version: %{version4}
26
Release: 0
27
License: GPL-2.0-or-later
28
Summary: Simple DAB/DAB+ receiver
29
Url: http://www.sdr-j.tk/index.html
30
Group: Productivity/Multimedia/Other
31
Source0: https://github.com/JvanKatwijk/%{bname}/archive/refs/tags/%{bname}-%{version6}.tar.gz#/%{bname}-Qt-DAB-%{version6}0.tar.gz
32
Patch1: %{bname}-6.1-use-qwt6-qt5.patch
33
BuildRequires: cmake
34
BuildRequires: gcc-c++
35
BuildRequires: libqt5-qtbase-devel
36
BuildRequires: qwt6-qt5-devel >= 6.1
37
BuildRequires: pkgconfig(fftw3)
38
BuildRequires: hackrf-devel
39
BuildRequires: pkgconfig(libairspy)
40
BuildRequires: pkgconfig(librtlsdr)
41
BuildRequires: sdrplay-devel
42
BuildRequires: pkgconfig(portaudio-2.0)
43
BuildRequires: pkgconfig(samplerate)
44
BuildRequires: pkgconfig(sndfile)
45
BuildRequires: ImageMagick
46
BuildRequires: libusb-1_0-devel
47
BuildRequires: libfaad-devel
48
BuildRequires: update-desktop-files
49
BuildRequires: hicolor-icon-theme
50
51
%description
52
This is the implementation of a -relatively simple DAB/DAB+ receiver.
53
The receiver supports terrestrial DAB reception with as input either
54
the stream from a dabstick or a (prerecorded) file, and it will
55
output through the default soundcard.
56
57
58
%prep
59
%setup -q -n %{bname}-Qt-DAB-%{version6}0
60
%patch -P 1 -p 1
61
chmod a-x README.md AUTHORS COPYING LICENSE
62
63
#rename files
64
mv src/scopes-qwt6/iqdisplay.cpp-xxx src/scopes-qwt6/iqdisplay.cpp
65
mv includes/scopes-qwt6/iqdisplay.h-xxx includes/scopes-qwt6/iqdisplay.h
66
67
68
%build
69
cd %{branch}
70
%cmake \
71
-DAIRSPY=ON \
72
-DHACKRF=ON \
73
-DRTLSDR=ON \
74
-DRTLTCP=ON \
75
-DSDRPLAY=ON
76
%cmake_build
77
78
79
%install
80
cd %{branch}
81
%cmake_install
82
mkdir -p %{buildroot}%{_bindir}
83
mv %{buildroot}/usr/%{bname}-%{version} %{buildroot}%{_bindir}/%{name}-4
84
85
#install desktop file
86
%suse_update_desktop_file -G Qt-DAB -i %{bname}-4 AudioVideo Tuner
87
88
#create and install icons
89
convert %{bname}-4.ico %{name}.png
90
install -Dpm 0644 %{name}.png \
91
%{buildroot}%{_datadir}/pixmaps/%{name}.png
92
93
94
%check
95
96
97
%files
98
%doc AUTHORS README.md
99
%license COPYING
100
%{_bindir}/*
101
%{_datadir}/applications/%{bname}-4.desktop
102
%{_datadir}/pixmaps/%{name}.png
103
104
105
%changelog
106