]> git.pld-linux.org Git - packages/gqrx.git/blob - gqrx.spec
- up to 2.3.2
[packages/gqrx.git] / gqrx.spec
1 #
2 %bcond_with     pulseaudio
3 #
4 Summary:        Software defined radio receiver powered by GNU Radio and Qt
5 Name:           gqrx
6 Version:        2.3.2
7 Release:        1
8 License:        GPL v3+
9 Group:          Applications/Engineering
10 Source0:        http://downloads.sourceforge.net/gqrx/%{name}-%{version}.tar.xz
11 # Source0-md5:  2dae602db3e7d637a01c7deced7fad4f
12 Patch0:         %{name}-nopulse.patch
13 URL:            http://gqrx.dk/
14 BuildRequires:  QtCore-devel
15 BuildRequires:  QtGui-devel
16 BuildRequires:  QtSvg-devel
17 BuildRequires:  boost-devel
18 BuildRequires:  gnuradio-devel >= 3.7
19 BuildRequires:  gr-osmosdr-devel
20 %if %{with pulseaudio}
21 BuildRequires:  pulseaudio-devel
22 %else
23 BuildRequires:  portaudio-devel
24 %endif
25 BuildRequires:  qt4-qmake
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
34 %patch0 -p1
35
36 %build
37 install -d build
38 cd build
39 qmake-qt4 \
40         PREFIX=%{_prefix} \
41         AUDIO_BACKEND=%{?with_pulseaudio:pulse}%{!?with_pulseaudio:portaudio} \
42         ../gqrx.pro
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} -C build install \
49         INSTALL_ROOT=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc README.md
57 %attr(755,root,root) %{_bindir}/gqrx
This page took 0.061962 seconds and 3 git commands to generate.