]>
Commit | Line | Data |
---|---|---|
11dfa3ae AM |
1 | # |
2 | %bcond_with pulseaudio | |
3 | # | |
c1111171 AM |
4 | Summary: Software defined radio receiver powered by GNU Radio and Qt |
5 | Name: gqrx | |
dd32e5b0 | 6 | Version: 2.3.2 |
e7b196f2 | 7 | Release: 1 |
c1111171 | 8 | License: GPL v3+ |
195207e1 | 9 | Group: Applications/Engineering |
e7b196f2 | 10 | Source0: http://downloads.sourceforge.net/gqrx/%{name}-%{version}.tar.xz |
dd32e5b0 | 11 | # Source0-md5: 2dae602db3e7d637a01c7deced7fad4f |
11dfa3ae | 12 | Patch0: %{name}-nopulse.patch |
cba1a377 | 13 | URL: http://gqrx.dk/ |
195207e1 AM |
14 | BuildRequires: QtCore-devel |
15 | BuildRequires: QtGui-devel | |
16 | BuildRequires: QtSvg-devel | |
c1111171 AM |
17 | BuildRequires: boost-devel |
18 | BuildRequires: gnuradio-devel >= 3.7 | |
19 | BuildRequires: gr-osmosdr-devel | |
11dfa3ae | 20 | %if %{with pulseaudio} |
c1111171 | 21 | BuildRequires: pulseaudio-devel |
11dfa3ae AM |
22 | %else |
23 | BuildRequires: portaudio-devel | |
24 | %endif | |
195207e1 AM |
25 | BuildRequires: qt4-qmake |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
c1111171 AM |
27 | |
28 | %description | |
29 | Gqrx is a software defined radio receiver powered by the GNU Radio SDR | |
30 | framework and the Qt graphical toolkit. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
11dfa3ae | 34 | %patch0 -p1 |
c1111171 AM |
35 | |
36 | %build | |
195207e1 AM |
37 | install -d build |
38 | cd build | |
39 | qmake-qt4 \ | |
40 | PREFIX=%{_prefix} \ | |
11dfa3ae | 41 | AUDIO_BACKEND=%{?with_pulseaudio:pulse}%{!?with_pulseaudio:portaudio} \ |
195207e1 AM |
42 | ../gqrx.pro |
43 | %{__make} | |
c1111171 AM |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
195207e1 | 48 | %{__make} -C build install \ |
c1111171 AM |
49 | INSTALL_ROOT=$RPM_BUILD_ROOT |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
195207e1 AM |
56 | %doc README.md |
57 | %attr(755,root,root) %{_bindir}/gqrx |