]> git.pld-linux.org Git - packages/gqrx.git/blob - gqrx.spec
- up to 2.11.5
[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.11.5
7 Release:        1
8 License:        GPL v3+
9 Group:          Applications/Engineering
10 Source0:        https://github.com/csete/gqrx/releases/download/v%{version}/%{name}-sdr-%{version}-src.tar.xz
11 # Source0-md5:  fed4994d5c04daf70cb19e2393da7a04
12 URL:            http://gqrx.dk/
13 BuildRequires:  Qt5Core-devel
14 BuildRequires:  Qt5Gui-devel
15 BuildRequires:  Qt5Svg-devel
16 BuildRequires:  boost-devel
17 BuildRequires:  gnuradio-devel >= 3.7
18 BuildRequires:  gr-osmosdr-devel
19 %if %{with pulseaudio}
20 BuildRequires:  pulseaudio-devel
21 %else
22 BuildRequires:  portaudio-devel
23 %endif
24 BuildRequires:  qt5-qmake
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Gqrx is a software defined radio receiver powered by the GNU Radio SDR
29 framework and the Qt graphical toolkit.
30
31 %prep
32 %setup -q -n %{name}-sdr-%{version}
33
34 %build
35 install -d build
36 cd build
37 qmake-qt5 \
38         PREFIX=%{_prefix} \
39         AUDIO_BACKEND=%{?with_pulseaudio:pulse}%{!?with_pulseaudio:portaudio} \
40         ../gqrx.pro
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} -C build install \
47         INSTALL_ROOT=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc README.md
55 %attr(755,root,root) %{_bindir}/gqrx
This page took 0.073348 seconds and 3 git commands to generate.