File qt-dab.spec of Package qt-dab

98
 
1
#
2
# spec file for package qt-dab
3
#
4
# Copyright (c) 2014-2024 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
Name:           qt-dab
19
Version:        6.8
20
Release:        0
21
License:        GPL-2.0-or-later
22
Summary:        Simple DAB/DAB+ receiver
23
Url:            http://www.sdr-j.tk/index.html
24
Group:          Productivity/Multimedia/Other
25
Source0:        https://github.com/JvanKatwijk/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz#/%{name}-%{version}.tar.gz
26
Patch1:         %{name}-6.8-use-qwt6-qt5.patch
27
BuildRequires:  cmake
28
BuildRequires:  gcc-c++
29
BuildRequires:  libqt5-qtbase-devel
30
BuildRequires:  libqt5-qtmultimedia-devel
31
BuildRequires:  qwt6-qt5-devel >= 6.1
32
BuildRequires:  pkgconfig(fftw3)
33
BuildRequires:  hackrf-devel
34
BuildRequires:  pkgconfig(libairspy)
35
BuildRequires:  pkgconfig(librtlsdr)
36
BuildRequires:  sdrplay-devel
37
BuildRequires:  pkgconfig(portaudio-2.0)
38
BuildRequires:  pkgconfig(samplerate)
39
BuildRequires:  pkgconfig(sndfile)
40
BuildRequires:  libusb-1_0-devel
41
BuildRequires:  libfaad-devel
42
BuildRequires:  update-desktop-files
43
44
%description
45
This is the implementation of a -relatively simple DAB/DAB+ receiver.
46
The receiver supports terrestrial DAB reception with as input either
47
the stream from a dabstick or a (prerecorded) file, and it will
48
output through the default soundcard.
49
50
51
%prep
52
%autosetup -p1
53
54
#fix docs permissions
55
chmod a-x AUTHORS
56
chmod a-x COPYING
57
chmod a-x README.md
58
59
60
%build
61
cd %{name}-%{version}
62
%cmake \
63
    -DAIRSPY=ON \
64
    -DHACKRF=ON \
65
    -DRTLSDR=ON \
66
    -DRTLTCP=ON \
67
    -DSDRPLAY=ON
68
%cmake_build
69
70
71
%install
72
cd %{name}-%{version}
73
%cmake_install
74
75
# move binary to /usr/bin and rename it
76
mkdir -p %{buildroot}%{_bindir}
77
mv %{buildroot}/usr/Qt-DAB %{buildroot}%{_bindir}/%{name}-6.8
78
79
# install desktop file
80
%suse_update_desktop_file -G Qt-DAB -i %{name}-6.8 AudioVideo Tuner 
81
82
# install icon
83
install -Dpm 0644 %{name}-6.8.png %{buildroot}%{_datadir}/pixmaps/%{name}-6.8.png
84
85
86
%check
87
88
89
%files
90
%doc AUTHORS README.md
91
%license COPYING
92
%{_bindir}/%{name}-%{version}
93
%{_datadir}/applications/%{name}-6.8.desktop
94
%{_datadir}/pixmaps/%{name}-6.8.png
95
96
97
%changelog
98