File retrogram-rtlsdr.spec of Package retrogram-rtlsdr

#
# spec file for package retrogram-rtlsdr
#
# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           retrogram-rtlsdr
Version:        0.0.0+git.20181215
Release:        0
Summary:        Spectrum analyzer on your terminal/ssh console with ASCII art
License:        GPL-3.0-or-later
Group:          Productivity/Hamradio/Other
URL:            https://github.com/r4d10n/retrogram-rtlsdr
#Git-Clone:     https://github.com/r4d10n/retrogram-rtlsdr.git
Source:         %{name}-%{version}.tar.xz
Patch0:         retrogram-rtlsdr-obey-cxx-flags.patch
BuildRequires:  gcc-c++
BuildRequires:  ncurses-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(librtlsdr)
%if 0%{?suse_version} > 1325
BuildRequires:  libboost_program_options-devel
%else
BuildRequires:  boost-devel
%endif

%description
Wideband Spectrum analyzer on your terminal/ssh console with ASCII art.
Hacked from Ettus UHD RX ASCII Art DFT code for RTLSDR.

%prep
%setup -q
%patch0 -p1

%build
export CXXFLAGS='%{optflags}'
make %{?_smp_mflags}

%install
install -Dpm 0755 retrogram-rtlsdr %{buildroot}/%{_bindir}/retrogram-rtlsdr

%files
%doc Readme.md
%{_bindir}/retrogram-rtlsdr

%changelog
openSUSE Build Service is sponsored by