# # spec file for package gqrx # %global git_commit 8bbe051d7983187fe8958c63e1e2cc6f483427e7 %global git_date 20160307 %global git_short_commit %(echo %{git_commit} | cut -c -8) %global git_suffix %{git_date}git%{git_short_commit} # git clone https://github.com/csete/gqrx.git gqrx.git # cd %%{name} # git archive --format=tar --prefix=%%{name}-%%{version}/ %%{git_commit} | \ # bzip2 > ../%%{name}-%%{version}-%%{git_suffix}.tar.bz2 Name: gqrx Version: 2.5.3 Release: 1.%{git_suffix}%{?dist} License: GPL-3.0 Summary: Software defined radio receiver Url: http://www.w1hjk.com Group: Productivity/Hamradio/Other Source0: %{name}-%{version}-%{git_suffix}.tar.bz2 Source1: gqrx.png Source2: gqrx.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: boost-devel BuildRequires: gnuradio-devel >= 3.7.0 BuildRequires: gr-osmosdr-devel >= 0.1.5 BuildRequires: pulseaudio-libs-devel BuildRequires: qt-devel >= 4.7.0 BuildRequires: wxPython-devel BuildRequires: rtl-sdr-devel BuildRequires: uhd-devel BuildRequires: desktop-file-utils %description Gqrx is an experimental software defined radio receiver implemented using GNU Radio and the Qt GUI toolkit. Currently it works on Linux and Mac and it can use the Funcube Dongle, RTL2832U-based DVB-T dongles, OsmoSDR devices and USRP devices as input source. %prep %setup -q mv gqrx.pro gqrx.pro_in sed s/'VER = 0.0'/'VER = %{version}'/g gqrx.pro_in > gqrx.pro rm gqrx.pro_in %build export QTDIR="/usr/lib64/qt4" #To make debug builds, you need to add # -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo qmake-qt4 gqrx.pro make %install install -d %{buildroot}/%{_bindir} install gqrx %{buildroot}%{_prefix}/bin #%suse_update_desktop_file -c gqrx Gqrx "SDR receiver" gqrx gqrx "Network;HamRadio" install -d %{buildroot}/%{_datadir}/pixmaps install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps mkdir -p %{buildroot}%{_datadir}/applications/ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE2} %files %defattr(-,root,root) %{_bindir}/%{name} %{_datadir}/applications/gqrx.desktop %doc COPYING README.md %{_datadir}/pixmaps/gqrx.png %changelog * Mon Mar 7 2016 dranch@trinnet.net - newest release * Mon Dec 14 2015 dranch@trinnet.net - update to newest version * Sun Dec 15 2013 dranch@trinnet.net - update to latest git version - updated spec file to be more GIT aware - Support for specific Qt library path support * Wed Jan 16 2013 dl8fcl@darc.de - update to latest git version * Sun Jan 13 2013 dl8fcl@darc.de - initial release