File qt-dab-15.5.spec of Package qt-dab
115
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-s6
20
%define version4 4.7
21
%define version5 5.4
22
%define version6 6.2
23
24
Name: %{bname}
25
Version: %{version6}
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/%{name}/archive/refs/tags/%{name}-%{version6}.tar.gz#/%{name}-Qt-DAB-%{version6}.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 %{name}-Qt-DAB-%{version6}
60
%patch1 -p 1
61
62
63
%build
64
cd %{branch}
65
%cmake \
66
-DAIRSPY=ON \
67
-DHACKRF=ON \
68
-DRTLSDR=ON \
69
-DRTLTCP=ON \
70
-DSDRPLAY=ON
71
%cmake_build
72
73
74
%install
75
cd %{branch}
76
%cmake_install
77
mkdir -p %{buildroot}%{_bindir}
78
mv %{buildroot}/usr/%{name}-%{version} %{buildroot}%{_bindir}/%{name}-6
79
80
#install desktop file
81
%suse_update_desktop_file -G Qt-DAB -i %{name}-6 AudioVideo Tuner
82
83
#create and install icons
84
convert %{bname}-6.ico %{name}.png
85
install -Dpm 0644 %{name}-7.png \
86
%{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
87
install -Dpm 0644 %{name}-6.png \
88
%{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
89
install -Dpm 0644 %{name}-5.png \
90
%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
91
install -Dpm 0644 %{name}-4.png \
92
%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
93
install -Dpm 0644 %{name}-3.png \
94
%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
95
install -Dpm 0644 %{name}-2.png \
96
%{buildroot}%{_datadir}/icons/hicolor/72x72/apps/%{name}.png
97
install -Dpm 0644 %{name}-1.png \
98
%{buildroot}%{_datadir}/icons/hicolor/96x96/apps/%{name}.png
99
install -Dpm 0644 %{name}-0.png \
100
%{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
101
102
#fix docs permissions
103
chmod a-x ../README.md
104
105
106
%files
107
%doc AUTHORS README.md
108
%license COPYING
109
%{_bindir}/*
110
%{_datadir}/applications/%{name}-6.desktop
111
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
112
113
114
%changelog
115